@adaptabletools/adaptable 11.1.14 → 11.2.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/base.css +2 -0
  2. package/bundle.cjs.js +98 -98
  3. package/index.css +3 -0
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableOptions/AlertOptions.d.ts +8 -2
  8. package/src/AdaptableOptions/DashboardOptions.d.ts +4 -3
  9. package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
  10. package/src/AdaptableOptions/FilterOptions.d.ts +5 -4
  11. package/src/AdaptableOptions/LayoutOptions.d.ts +56 -10
  12. package/src/AdaptableOptions/ToolPanelOptions.d.ts +4 -3
  13. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +18 -16
  14. package/src/Api/AdaptableApi.d.ts +10 -0
  15. package/src/Api/AlertApi.d.ts +3 -1
  16. package/src/Api/ConditionalStyleApi.d.ts +3 -1
  17. package/src/Api/ConfigApi.d.ts +3 -3
  18. package/src/Api/CustomSortApi.d.ts +3 -1
  19. package/src/Api/EventApi.d.ts +1 -0
  20. package/src/Api/Events/LayoutChanged.d.ts +1 -1
  21. package/src/Api/ExportApi.d.ts +16 -0
  22. package/src/Api/FinanceApi.d.ts +104 -3
  23. package/src/Api/FlashingCellApi.d.ts +3 -1
  24. package/src/Api/FormatColumnApi.d.ts +3 -1
  25. package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -0
  26. package/src/Api/Implementation/AdaptableApiImpl.js +53 -0
  27. package/src/Api/Implementation/AlertApiImpl.d.ts +3 -1
  28. package/src/Api/Implementation/AlertApiImpl.js +7 -6
  29. package/src/Api/Implementation/ApiBase.d.ts +1 -1
  30. package/src/Api/Implementation/ApiBase.js +5 -2
  31. package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +3 -1
  32. package/src/Api/Implementation/ConditionalStyleApiImpl.js +5 -4
  33. package/src/Api/Implementation/ConfigApiImpl.js +5 -1
  34. package/src/Api/Implementation/CustomSortApiImpl.d.ts +3 -1
  35. package/src/Api/Implementation/CustomSortApiImpl.js +6 -5
  36. package/src/Api/Implementation/EventApiImpl.d.ts +1 -0
  37. package/src/Api/Implementation/EventApiImpl.js +3 -0
  38. package/src/Api/Implementation/ExportApiImpl.d.ts +3 -0
  39. package/src/Api/Implementation/ExportApiImpl.js +10 -0
  40. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +3 -1
  41. package/src/Api/Implementation/FlashingCellApiImpl.js +8 -6
  42. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -1
  43. package/src/Api/Implementation/FormatColumnApiImpl.js +7 -6
  44. package/src/Api/Implementation/InternalApiImpl.d.ts +14 -5
  45. package/src/Api/Implementation/InternalApiImpl.js +75 -3
  46. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +3 -1
  47. package/src/Api/Implementation/PlusMinusApiImpl.js +6 -8
  48. package/src/Api/Implementation/ScheduleApiImpl.d.ts +17 -6
  49. package/src/Api/Implementation/ScheduleApiImpl.js +25 -12
  50. package/src/Api/Implementation/ShortcutApiImpl.d.ts +3 -1
  51. package/src/Api/Implementation/ShortcutApiImpl.js +5 -4
  52. package/src/Api/Implementation/ToolPanelApiImpl.d.ts +1 -2
  53. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  54. package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
  55. package/src/Api/InternalApi.d.ts +14 -7
  56. package/src/Api/LayoutApi.d.ts +4 -6
  57. package/src/Api/PlusMinusApi.d.ts +3 -1
  58. package/src/Api/ScheduleApi.d.ts +20 -6
  59. package/src/Api/ShortcutApi.d.ts +3 -1
  60. package/src/Api/ToolPanelApi.d.ts +1 -2
  61. package/src/PredefinedConfig/AlertState.d.ts +3 -3
  62. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +2 -5
  63. package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -1
  64. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +4 -3
  65. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +18 -1
  66. package/src/PredefinedConfig/Common/AdaptablePredicate.js +9 -0
  67. package/src/PredefinedConfig/Common/BaseContext.d.ts +10 -0
  68. package/src/PredefinedConfig/Common/BaseContext.js +2 -0
  69. package/src/PredefinedConfig/Common/CellSummary.d.ts +3 -3
  70. package/src/PredefinedConfig/Common/FDC3Context.d.ts +9 -9
  71. package/src/PredefinedConfig/Common/Menu.d.ts +4 -13
  72. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
  73. package/src/PredefinedConfig/DataSourceState.d.ts +2 -2
  74. package/src/PredefinedConfig/FilterState.d.ts +1 -1
  75. package/src/PredefinedConfig/SystemState.d.ts +1 -0
  76. package/src/PredefinedConfig/Uuid.js +1 -0
  77. package/src/Redux/ActionsReducers/PopupRedux.d.ts +5 -5
  78. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  79. package/src/Redux/ActionsReducers/SystemRedux.js +11 -1
  80. package/src/Redux/Store/AdaptableStore.d.ts +1 -0
  81. package/src/Redux/Store/AdaptableStore.js +6 -1
  82. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +1 -0
  83. package/src/Strategy/AdaptableModuleBase.d.ts +5 -0
  84. package/src/Strategy/AdaptableModuleBase.js +9 -0
  85. package/src/Strategy/AlertModule.d.ts +4 -1
  86. package/src/Strategy/AlertModule.js +12 -4
  87. package/src/Strategy/CalculatedColumnModule.d.ts +3 -17
  88. package/src/Strategy/CalculatedColumnModule.js +2 -0
  89. package/src/Strategy/ConditionalStyleModule.d.ts +4 -1
  90. package/src/Strategy/ConditionalStyleModule.js +12 -4
  91. package/src/Strategy/CustomSortModule.d.ts +4 -1
  92. package/src/Strategy/CustomSortModule.js +10 -3
  93. package/src/Strategy/DataSourceModule.js +2 -0
  94. package/src/Strategy/ExportModule.d.ts +5 -3
  95. package/src/Strategy/ExportModule.js +10 -0
  96. package/src/Strategy/FlashingCellModule.d.ts +4 -1
  97. package/src/Strategy/FlashingCellModule.js +10 -5
  98. package/src/Strategy/FormatColumnModule.d.ts +4 -1
  99. package/src/Strategy/FormatColumnModule.js +10 -3
  100. package/src/Strategy/FreeTextColumnModule.js +2 -0
  101. package/src/Strategy/Interface/IModule.d.ts +6 -3
  102. package/src/Strategy/Interface/IScheduleModule.d.ts +1 -1
  103. package/src/Strategy/LayoutModule.d.ts +2 -1
  104. package/src/Strategy/LayoutModule.js +35 -2
  105. package/src/Strategy/PlusMinusModule.d.ts +4 -1
  106. package/src/Strategy/PlusMinusModule.js +15 -7
  107. package/src/Strategy/QueryModule.d.ts +2 -8
  108. package/src/Strategy/QueryModule.js +2 -0
  109. package/src/Strategy/ScheduleModule.d.ts +8 -4
  110. package/src/Strategy/ScheduleModule.js +16 -9
  111. package/src/Strategy/ShortcutModule.d.ts +4 -1
  112. package/src/Strategy/ShortcutModule.js +14 -4
  113. package/src/Strategy/StatusBarModule.d.ts +2 -1
  114. package/src/Strategy/StatusBarModule.js +2 -3
  115. package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +2 -2
  116. package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -2
  117. package/src/Strategy/Utilities/getObjectTagsViewItems.d.ts +4 -0
  118. package/src/Strategy/Utilities/getObjectTagsViewItems.js +13 -0
  119. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
  120. package/src/Utilities/Emitter.d.ts +1 -0
  121. package/src/Utilities/Emitter.js +9 -0
  122. package/src/Utilities/Extensions/TypeExtensions.d.ts +2 -0
  123. package/src/Utilities/Interface/MessagePopups.d.ts +3 -3
  124. package/src/Utilities/ObjectFactory.d.ts +2 -2
  125. package/src/Utilities/Services/AlertService.js +1 -1
  126. package/src/Utilities/Services/DataService.js +1 -1
  127. package/src/Utilities/Services/Interface/IModuleService.d.ts +1 -1
  128. package/src/Utilities/Services/ModuleService.d.ts +1 -1
  129. package/src/Utilities/Services/ModuleService.js +1 -0
  130. package/src/View/Alert/AlertStatusSubPanel.js +2 -1
  131. package/src/View/Alert/Wizard/AlertWizard.js +9 -0
  132. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -4
  133. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +9 -0
  134. package/src/View/ColorPicker.d.ts +1 -1
  135. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  136. package/src/View/Components/AdaptableInput/index.d.ts +1 -1
  137. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -0
  138. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  139. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  140. package/src/View/Components/FilterForm/QuickFilterForm.js +11 -7
  141. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  142. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
  143. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
  144. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -0
  145. package/src/View/Components/Popups/AdaptableToaster.js +3 -1
  146. package/src/View/Components/Popups/FormPopups/FormPopups.d.ts +3 -3
  147. package/src/View/Components/TagValueSelector/index.d.ts +13 -0
  148. package/src/View/Components/TagValueSelector/index.js +22 -0
  149. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -2
  150. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +9 -0
  151. package/src/View/CustomSort/Wizard/CustomSortWizard.js +9 -0
  152. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +1 -1
  153. package/src/View/DataSource/Wizard/DataSourceWizard.js +10 -0
  154. package/src/View/Export/ExportSelector.d.ts +4 -0
  155. package/src/View/Export/ExportSelector.js +75 -0
  156. package/src/View/Export/ExportViewPanel.js +6 -7
  157. package/src/View/Export/ReportExportDropdown.d.ts +2 -5
  158. package/src/View/Export/Wizard/NewReportWizard.js +9 -0
  159. package/src/View/Export/constants.d.ts +2 -0
  160. package/src/View/Export/constants.js +5 -0
  161. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +9 -0
  162. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
  163. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +9 -0
  164. package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -1
  165. package/src/View/GridInfo/GridOptionsComponent.js +0 -1
  166. package/src/View/Layout/LayoutCloneButton.d.ts +6 -0
  167. package/src/View/Layout/LayoutCloneButton.js +15 -0
  168. package/src/View/Layout/LayoutRadioSelector.d.ts +2 -1
  169. package/src/View/Layout/LayoutRadioSelector.js +1 -1
  170. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -1
  171. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -0
  172. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +9 -0
  173. package/src/View/Query/Wizard/NamedQueryWizard.js +9 -0
  174. package/src/View/Schedule/Wizard/ScheduleWizard.js +10 -0
  175. package/src/View/Shortcut/Wizard/ShortcutWizard.js +10 -0
  176. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  177. package/src/View/StatusBar/StatusBarPopup.js +1 -1
  178. package/src/View/Wizard/ObjectTagsWizardSection.d.ts +8 -0
  179. package/src/View/Wizard/ObjectTagsWizardSection.js +22 -0
  180. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
  181. package/src/View/Wizard/OnePageAdaptableWizard.js +12 -5
  182. package/src/agGrid/Adaptable.d.ts +14 -1
  183. package/src/agGrid/Adaptable.js +103 -68
  184. package/src/agGrid/agGridHelper.js +2 -1
  185. package/src/agGrid/createAgStatusPanelComponent.js +1 -0
  186. package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +8 -7
  187. package/src/components/Datepicker/index.d.ts +1 -1
  188. package/src/components/ExpressionEditor/index.js +5 -2
  189. package/src/components/Input/index.d.ts +1 -1
  190. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  191. package/src/components/PopupWithFooter.d.ts +1 -1
  192. package/src/components/Textarea/index.d.ts +1 -1
  193. package/src/components/WindowModal/useStacking.js +2 -2
  194. package/src/metamodel/adaptable.metamodel.d.ts +44 -2
  195. package/src/metamodel/adaptable.metamodel.js +229 -21
  196. package/src/types.d.ts +6 -5
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
@@ -12,6 +12,7 @@ const Enums_1 = require("../../../PredefinedConfig/Common/Enums");
12
12
  const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
13
13
  const react_redux_1 = require("react-redux");
14
14
  const ScheduleRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ScheduleRedux"));
15
+ const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
15
16
  exports.ScheduleWizard = (props) => {
16
17
  var _a, _b, _c;
17
18
  const data = (_a = props.data) !== null && _a !== void 0 ? _a : props.popupParams.value;
@@ -101,6 +102,15 @@ exports.ScheduleWizard = (props) => {
101
102
  render: () => (React.createElement(rebass_1.Box, { p: 3 },
102
103
  React.createElement(ScheduleScheduleWizard_1.ScheduleScheduleWizard, { isOneOff: isOneOff, onSetIsOneOff: setIsOneOff, onChange: setSchedule }))),
103
104
  },
105
+ {
106
+ details: 'Select Schedule tags',
107
+ title: 'Tags',
108
+ isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
109
+ render: () => (React.createElement(rebass_1.Box, { padding: 2 },
110
+ React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setSchedule }))),
111
+ renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
112
+ },
113
+ '-',
104
114
  {
105
115
  render: () => {
106
116
  return (React.createElement(rebass_1.Box, { padding: 2 },
@@ -14,6 +14,7 @@ const react_redux_1 = require("react-redux");
14
14
  const ShortcutRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ShortcutRedux"));
15
15
  const shortcutKeys_1 = require("../shortcutKeys");
16
16
  const AdaptableContext_1 = require("../../AdaptableContext");
17
+ const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
17
18
  exports.ShortcutWizard = (props) => {
18
19
  const [shortcut, setShortcut] = React.useState(() => {
19
20
  var _a;
@@ -71,6 +72,15 @@ exports.ShortcutWizard = (props) => {
71
72
  React.createElement(ShortcutSettingsWizard_1.ShortcutSettingsWizard, { availableKeys: (_a = props.availableKeys) !== null && _a !== void 0 ? _a : availableKeys, onChange: setShortcut })));
72
73
  },
73
74
  },
75
+ {
76
+ details: 'Select Shortcut tags',
77
+ title: 'Tags',
78
+ isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
79
+ render: () => (React.createElement(rebass_1.Box, { padding: 2 },
80
+ React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setShortcut }))),
81
+ renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
82
+ },
83
+ '-',
74
84
  {
75
85
  render: () => {
76
86
  return (React.createElement(rebass_1.Box, { padding: 2 },
@@ -31,7 +31,7 @@ exports.SpecialColumnSettingsWizardStep = (props) => {
31
31
  React.createElement(Tabs_1.Tabs, { marginTop: 2, autoFocus: false },
32
32
  React.createElement(Tabs_1.Tabs.Tab, null, "Column Properties"),
33
33
  React.createElement(Tabs_1.Tabs.Content, null,
34
- React.createElement(rebass_1.Flex, { flexDirection: "row" },
34
+ React.createElement(rebass_1.Flex, { flexDirection: "column" },
35
35
  React.createElement(FormLayout_1.default, { style: { width: '100%' }, columns: [
36
36
  { name: 'first', size: '30%' },
37
37
  { size: '30%', name: 'second' },
@@ -22,7 +22,7 @@ exports.StatusBarPopup = (props) => {
22
22
  const handleTabChange = React.useCallback((tabs) => {
23
23
  const newStatusPanels = tabs.map((tab) => {
24
24
  const statusPanel = statusPanels.find((sp) => sp.Key === tab.Name);
25
- return Object.assign(Object.assign({}, statusPanel), { SubPanels: tab.Items });
25
+ return Object.assign(Object.assign({}, statusPanel), { StatusBarPanels: tab.Items });
26
26
  });
27
27
  adaptable.api.statusBarApi.setStatusPanels(newStatusPanels);
28
28
  }, [statusPanels]);
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
3
+ declare type ObjectTagsWizardSectionProps<T extends AdaptableObject> = {
4
+ onChange: (data: T) => void;
5
+ };
6
+ export declare const ObjectTagsWizardSection: <T extends AdaptableObject>(props: ObjectTagsWizardSectionProps<T>) => JSX.Element;
7
+ export declare const renderObjectTagsSummary: <T extends AdaptableObject>(data: T) => JSX.Element;
8
+ export {};
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.renderObjectTagsSummary = exports.ObjectTagsWizardSection = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const Tabs_1 = require("../../components/Tabs");
7
+ const TagValueSelector_1 = require("../Components/TagValueSelector");
8
+ const OnePageAdaptableWizard_1 = require("./OnePageAdaptableWizard");
9
+ const rebass_1 = require("rebass");
10
+ exports.ObjectTagsWizardSection = (props) => {
11
+ const { onChange } = props;
12
+ const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
13
+ return (React.createElement(Tabs_1.Tabs, { style: { height: '100%' } },
14
+ React.createElement(Tabs_1.Tabs.Tab, null, "Tags"),
15
+ React.createElement(Tabs_1.Tabs.Content, null,
16
+ React.createElement(TagValueSelector_1.TagValueSelector, { selectedTags: data.Tags, onChange: (selectedTags) => onChange(Object.assign(Object.assign({}, data), { Tags: selectedTags })) }))));
17
+ };
18
+ exports.renderObjectTagsSummary = (data) => {
19
+ var _a;
20
+ return ((_a = data.Tags) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement(rebass_1.Text, { fontSize: 2 },
21
+ React.createElement(TagValueSelector_1.TagValueOptionsTags, { tags: data.Tags }))) : null;
22
+ };
@@ -21,6 +21,7 @@ export declare type OnePageWizardSection<ENTITY> = {
21
21
  title: string;
22
22
  details?: React.ReactNode;
23
23
  isValid?: (data: ENTITY, api: AdaptableApi, context: OnePageAdaptableWizardContextType<ENTITY>) => true | string;
24
+ isVisible?: (data: ENTITY, api: AdaptableApi, context: OnePageAdaptableWizardContextType<ENTITY>) => boolean;
24
25
  render: (data: ENTITY, index: number) => React.ReactNode;
25
26
  renderSummary?: (data: ENTITY, api: AdaptableApi) => React.ReactNode;
26
27
  };
@@ -36,9 +36,9 @@ function useOnePageWizardContext() {
36
36
  exports.useOnePageWizardContext = useOnePageWizardContext;
37
37
  exports.OnePageAdaptableWizard = (props) => {
38
38
  var _a, _b;
39
+ const { api } = AdaptableContext_1.useAdaptable();
39
40
  const dispatch = react_redux_1.useDispatch();
40
41
  const saveNamedQuery = React.useCallback((namedQuery) => dispatch(QueryRedux.NamedQueryAdd(namedQuery)), []);
41
- const { api } = AdaptableContext_1.useAdaptable();
42
42
  let defaultCurrentIndex = 0;
43
43
  if (props.defaultCurrentSectionName) {
44
44
  const candidate = props.sections.findIndex((section) => section !== '-' && section.title === props.defaultCurrentSectionName);
@@ -62,7 +62,7 @@ exports.OnePageAdaptableWizard = (props) => {
62
62
  (_a = props.onFinish) === null || _a === void 0 ? void 0 : _a.call(props, props.data);
63
63
  };
64
64
  const renderSection = (index) => {
65
- const section = props.sections[index];
65
+ const section = visibleSections[index];
66
66
  if (section === '-') {
67
67
  return React.createElement(React.Fragment, { key: index });
68
68
  }
@@ -92,7 +92,6 @@ exports.OnePageAdaptableWizard = (props) => {
92
92
  node.style.height = `${activeElement.offsetHeight}px`;
93
93
  node.style.width = `${activeElement.offsetWidth}px`;
94
94
  }, [currentSection, width]);
95
- useKeyboardNavigation_1.useKeyboardNavigation(setCurrentSection, props.sections);
96
95
  let navIndex = 0;
97
96
  const dialogRef = react_1.useRef(null);
98
97
  let invalidCount = 0;
@@ -100,12 +99,19 @@ exports.OnePageAdaptableWizard = (props) => {
100
99
  const contextValue = {
101
100
  data: props.data,
102
101
  api,
102
+ //visible sections is updated below, as this is a chicken-egg problem
103
103
  sections: props.sections,
104
104
  setCurrentSection,
105
105
  namedQuery,
106
106
  moduleInfo: props.moduleInfo,
107
107
  };
108
- const validSectionsMap = props.sections.reduce((acc, section, index) => {
108
+ const visibleSections = React.useMemo(() => {
109
+ return props.sections.filter((section) => section === '-' ||
110
+ section.isVisible == undefined ||
111
+ section.isVisible(props.data, api, contextValue));
112
+ }, [props.sections]);
113
+ contextValue.sections = visibleSections;
114
+ const validSectionsMap = visibleSections.reduce((acc, section, index) => {
109
115
  if (section === '-') {
110
116
  acc.set(index, true);
111
117
  return acc;
@@ -120,6 +126,7 @@ exports.OnePageAdaptableWizard = (props) => {
120
126
  acc.set(index, valid);
121
127
  return acc;
122
128
  }, new Map());
129
+ useKeyboardNavigation_1.useKeyboardNavigation(setCurrentSection, visibleSections);
123
130
  const canFinish = !invalidCount;
124
131
  return (React.createElement(NamedQueryContext_1.NamedQueryContext.Provider, { value: { namedQuery, setNamedQuery } },
125
132
  React.createElement(exports.OnePageAdaptableWizardContext.Provider, { value: contextValue },
@@ -150,7 +157,7 @@ exports.OnePageAdaptableWizard = (props) => {
150
157
  : '', style: Object.assign({ height: '100%', width: '90vw', maxWidth: 1000 }, props.style) },
151
158
  React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "stretch", flex: 1, style: { overflow: 'auto' } },
152
159
  React.createElement(rebass_1.Flex, { flexDirection: "column", padding: 3, className: "ab-OnePageWizard__section-title-container", ref: sizeOwnerRef, style: { overflow: 'auto', position: 'relative', flex: 'none' } },
153
- props.sections.map((section, index) => {
160
+ visibleSections.map((section, index) => {
154
161
  if (section === '-') {
155
162
  return (React.createElement(rebass_1.Box, { as: "hr", mt: 2, className: "ab-OnePageWizard__section-separator", key: `${index}-`, style: {
156
163
  width: '100%',
@@ -82,6 +82,18 @@ export declare class Adaptable implements IAdaptable {
82
82
  private _adaptableReady;
83
83
  isDestroyed: boolean;
84
84
  private agGridModules;
85
+ private listenerKeydown;
86
+ private listenerFirstDataRendered;
87
+ private listenerPivotModeChanged;
88
+ private listenerPivotChanged;
89
+ private listenerColumnRowGroupChanged;
90
+ private listenerColumnResized;
91
+ private listenerRangeSelectionChanged;
92
+ private listenerSortChanged;
93
+ private listenerModelUpdated;
94
+ private listenerGlobalSetRowSelection;
95
+ private listenerGlobalColumnEventsThatTriggerStateChange;
96
+ private listenerGlobalColumnEventsThatTriggerAutoLayoutSave;
85
97
  static init(adaptableOptions: AdaptableOptions): Promise<AdaptableApi>;
86
98
  /**
87
99
  * Lazy static constructor for Adaptable
@@ -219,6 +231,7 @@ export declare class Adaptable implements IAdaptable {
219
231
  enablePivot: boolean;
220
232
  suppressMenu: boolean;
221
233
  suppressMovable: boolean;
234
+ headerTooltip: string;
222
235
  cellEditor: string | typeof AdaptableNumberEditor | typeof AdaptableDateEditor;
223
236
  type: string[];
224
237
  valueSetter: (params: ValueSetterParams) => any;
@@ -270,7 +283,7 @@ export declare class Adaptable implements IAdaptable {
270
283
  setupColumnValueSetter({ col, colId, abColumn }: ColumnSetupInfo): void;
271
284
  setupColumnComparator({ col, colId, abColumn }: ColumnSetupInfo): void;
272
285
  private applyCurrentTheme;
273
- private getDefaultGroupOrderComparator;
286
+ private getInitialGroupOrderComparator;
274
287
  private applyFinalRendering;
275
288
  private isModulePresent;
276
289
  private getPreviousColDefInfo;