@adaptabletools/adaptable 12.0.0-canary.0 → 12.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 (149) hide show
  1. package/base.css +561 -283
  2. package/bundle.cjs.js +162 -148
  3. package/index.css +631 -280
  4. package/package.json +3 -3
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -0
  8. package/src/AdaptableOptions/AlertOptions.d.ts +5 -9
  9. package/src/AdaptableOptions/DashboardOptions.d.ts +1 -5
  10. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +2 -2
  11. package/src/AdaptableOptions/EditOptions.d.ts +26 -8
  12. package/src/AdaptableOptions/ExportOptions.d.ts +4 -7
  13. package/src/AdaptableOptions/GeneralOptions.d.ts +12 -2
  14. package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -5
  15. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +21 -3
  16. package/src/Api/AlertApi.d.ts +3 -3
  17. package/src/Api/ColumnApi.d.ts +7 -2
  18. package/src/Api/EventApi.d.ts +11 -0
  19. package/src/Api/Events/RowFormSubmitted.d.ts +15 -0
  20. package/src/Api/Events/SearchChanged.d.ts +1 -1
  21. package/src/Api/ExportApi.d.ts +2 -2
  22. package/src/Api/FilterApi.d.ts +69 -1
  23. package/src/Api/Implementation/AlertApiImpl.d.ts +3 -3
  24. package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -2
  25. package/src/Api/Implementation/ColumnApiImpl.js +15 -14
  26. package/src/Api/Implementation/ConfigApiImpl.js +1 -1
  27. package/src/Api/Implementation/ExportApiImpl.d.ts +2 -2
  28. package/src/Api/Implementation/FilterApiImpl.d.ts +16 -1
  29. package/src/Api/Implementation/FilterApiImpl.js +141 -0
  30. package/src/Api/Implementation/FormatColumnApiImpl.js +2 -2
  31. package/src/Api/Implementation/GridApiImpl.js +7 -3
  32. package/src/Api/Implementation/InternalApiImpl.d.ts +3 -3
  33. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -15
  34. package/src/Api/Implementation/LayoutApiImpl.js +0 -152
  35. package/src/Api/Implementation/PredicateApiImpl.d.ts +2 -0
  36. package/src/Api/Implementation/PredicateApiImpl.js +18 -0
  37. package/src/Api/LayoutApi.d.ts +1 -72
  38. package/src/Api/PredicateApi.d.ts +7 -0
  39. package/src/PredefinedConfig/AlertState.d.ts +4 -4
  40. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
  41. package/src/PredefinedConfig/Common/FormContext.d.ts +11 -0
  42. package/src/PredefinedConfig/Common/FormContext.js +2 -0
  43. package/src/Redux/ActionsReducers/LayoutRedux.js +0 -1
  44. package/src/Redux/ActionsReducers/PopupRedux.d.ts +3 -2
  45. package/src/Redux/Store/AdaptableStore.js +6 -0
  46. package/src/Strategy/AdaptableModuleBase.js +1 -2
  47. package/src/Strategy/BulkUpdateModule.js +3 -4
  48. package/src/Strategy/CellSummaryModule.js +1 -2
  49. package/src/Strategy/FilterModule.js +15 -18
  50. package/src/Strategy/LayoutModule.js +1 -0
  51. package/src/Strategy/PlusMinusModule.js +1 -4
  52. package/src/Strategy/SmartEditModule.js +2 -2
  53. package/src/Utilities/Constants/GeneralConstants.d.ts +2 -0
  54. package/src/Utilities/Constants/GeneralConstants.js +3 -1
  55. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -0
  56. package/src/Utilities/Services/CalculatedColumnExpressionService.js +6 -7
  57. package/src/Utilities/Services/RowEditService.d.ts +1 -0
  58. package/src/Utilities/Services/RowEditService.js +34 -2
  59. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +8 -3
  60. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +3 -2
  61. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -2
  62. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +30 -0
  63. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +87 -0
  64. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +18 -0
  65. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +16 -0
  66. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +2 -9
  67. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +2 -75
  68. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +3 -1
  69. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +9 -4
  70. package/src/View/AdaptableWizardView/Utils.d.ts +1 -0
  71. package/src/View/AdaptableWizardView/Utils.js +24 -0
  72. package/src/View/AdaptableWizardView/Wizard.d.ts +54 -0
  73. package/src/View/AdaptableWizardView/Wizard.js +98 -0
  74. package/src/View/AdaptableWizardView/index.d.ts +1 -22
  75. package/src/View/AdaptableWizardView/index.js +2 -103
  76. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +1 -1
  77. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +3 -3
  78. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
  79. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
  80. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
  81. package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -3
  82. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -4
  83. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +5 -6
  84. package/src/View/CellSummary/CellSummaryDetails.js +2 -2
  85. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  86. package/src/View/Components/FilterForm/QuickFilterForm.js +1 -1
  87. package/src/View/Components/PreviewResultsPanel.js +3 -3
  88. package/src/View/Components/WizardSummaryPage.js +2 -2
  89. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +1 -1
  90. package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +1 -1
  91. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
  92. package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +1 -1
  93. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
  94. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
  95. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
  96. package/src/View/Export/Wizard/ReportColumnsWizardSection.js +1 -1
  97. package/src/View/Export/Wizard/ReportNameWizardSection.js +1 -1
  98. package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
  99. package/src/View/Filter/ActiveFiltersPanel.js +1 -1
  100. package/src/View/Filter/FilterSummary.js +1 -1
  101. package/src/View/Filter/FilterViewPanel.js +2 -2
  102. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
  103. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -1
  104. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +1 -1
  105. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +1 -1
  106. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  107. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
  108. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  109. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
  110. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +5 -6
  111. package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
  112. package/src/View/GridInfo/GridInfoPopup.js +1 -1
  113. package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -2
  114. package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +1 -1
  115. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
  116. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
  117. package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
  118. package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +1 -1
  119. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
  120. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +1 -1
  121. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
  122. package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +1 -1
  123. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +2 -2
  124. package/src/View/UIHelper.js +6 -6
  125. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -2
  126. package/src/View/Wizard/ObjectTagsWizardSection.js +1 -1
  127. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +5 -6
  128. package/src/View/Wizard/OnePageAdaptableWizard.js +35 -169
  129. package/src/View/Wizard/OnePageWizards.d.ts +37 -0
  130. package/src/View/Wizard/OnePageWizards.js +187 -0
  131. package/src/View/Wizard/useKeyboardNavigation.d.ts +1 -1
  132. package/src/agGrid/Adaptable.js +25 -11
  133. package/src/agGrid/FilterWrapper.js +2 -2
  134. package/src/agGrid/agGridHelper.d.ts +2 -3
  135. package/src/agGrid/agGridHelper.js +37 -33
  136. package/src/agGrid/rowEditIcons.d.ts +1 -0
  137. package/src/agGrid/rowEditIcons.js +2 -1
  138. package/src/components/Datepicker/Caption.js +1 -1
  139. package/src/components/InfiniteTable/index.js +1 -0
  140. package/src/components/List/GridList/index.js +1 -1
  141. package/src/components/WindowModal/WindowModal.js +13 -7
  142. package/src/components/icons/add-row.d.ts +3 -0
  143. package/src/components/icons/add-row.js +7 -0
  144. package/src/components/icons/index.js +2 -0
  145. package/src/metamodel/adaptable.metamodel.d.ts +106 -22
  146. package/src/metamodel/adaptable.metamodel.js +238 -121
  147. package/src/types.d.ts +5 -4
  148. package/version.d.ts +1 -1
  149. package/version.js +1 -1
@@ -9,9 +9,9 @@ const check_1 = tslib_1.__importDefault(require("../../components/icons/check"))
9
9
  const UIHelper_1 = tslib_1.__importDefault(require("../UIHelper"));
10
10
  const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
11
11
  const columnsMap = new Map([
12
- ['InitialValue', { field: 'InitialValue', flex: 1, header: 'Current', align: 'center' }],
13
- ['ComputedValue', { field: 'ComputedValue', flex: 1, header: 'New', align: 'center' }],
14
- ['ValidInfo', { field: 'ValidInfo', width: 80, header: 'Valid', align: 'center' }],
12
+ ['InitialValue', { field: 'InitialValue', defaultFlex: 1, header: 'Current', align: 'center' }],
13
+ ['ComputedValue', { field: 'ComputedValue', defaultFlex: 1, header: 'New', align: 'center' }],
14
+ ['ValidInfo', { field: 'ValidInfo', defaultWidth: 80, header: 'Valid', align: 'center' }],
15
15
  ]);
16
16
  const tableDOMProps = {
17
17
  style: { flex: 1 },
@@ -6,8 +6,8 @@ const React = tslib_1.__importStar(require("react"));
6
6
  const WizardPanel_1 = tslib_1.__importDefault(require("../../components/WizardPanel"));
7
7
  const InfiniteTable_1 = require("../../components/InfiniteTable");
8
8
  const columnsMap = new Map([
9
- ['Key', { field: 'Key', header: 'Property', flex: 1 }],
10
- ['Value', { field: 'Value', header: 'Value', flex: 3 }],
9
+ ['Key', { field: 'Key', header: 'Property', defaultFlex: 1 }],
10
+ ['Value', { field: 'Value', header: 'Value', defaultFlex: 3 }],
11
11
  ]);
12
12
  const tableDOMProps = {
13
13
  className: 'ab-WizardSummary__list',
@@ -21,7 +21,7 @@ function renderConditionalStyleRuleSummary(data) {
21
21
  }
22
22
  exports.renderConditionalStyleRuleSummary = renderConditionalStyleRuleSummary;
23
23
  function ConditionalStyleRuleWizardSection(props) {
24
- const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageWizardContext();
24
+ const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
25
25
  return (React.createElement(React.Fragment, null,
26
26
  React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: props.defaultPredicateId, predicateDefs: api.conditionalStyleApi.getCondStylePredicateDefsForScope(data.Scope), showAggregation: false, showObservable: false, showPredicate: !api.scopeApi.scopeIsAll(data.Scope), data: data, onChange: props.onChange, descriptions: {
27
27
  selectPredicate: 'Select a Conditional Style Rule - to be applied when data changes',
@@ -14,7 +14,7 @@ exports.renderConditionalStyleScopeSummary = (data) => {
14
14
  });
15
15
  };
16
16
  function ConditionalStyleScopeWizardSection(props) {
17
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
17
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
18
18
  return (React.createElement(React.Fragment, null,
19
19
  React.createElement(NewScopeComponent_1.NewScopeComponent, { scope: data.Scope, descriptions: {
20
20
  rowScope: 'Matching Rows will have the Conditional Style applied',
@@ -12,7 +12,7 @@ exports.renderConditionalStyleSettingsSummary = (data) => (React.createElement(r
12
12
  React.createElement(rebass_1.Text, null, "Include grouped rows"),
13
13
  React.createElement(rebass_1.Text, { mt: 3 }, data.IncludeGroupedRows ? 'Yes' : 'No')));
14
14
  exports.ConditionalStyleSettingsWizardSettings = (props) => {
15
- const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
15
+ const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
16
16
  const onIncludeGroupedRowsChanged = (checked) => {
17
17
  props.onChange(Object.assign(Object.assign({}, data), { IncludeGroupedRows: checked }));
18
18
  };
@@ -14,7 +14,7 @@ exports.renderConditionalStyleStyleSummary = (data) => {
14
14
  return (React.createElement(rebass_1.Text, { padding: 2, style: toStyle(data.Style) }, "Preview result"));
15
15
  };
16
16
  function ConditionalStyleStyleWizardSection(props) {
17
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
17
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
18
18
  return (React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: api, Style: data.Style, UpdateStyle: (Style) => {
19
19
  props.onChange(Object.assign(Object.assign({}, data), { Style }));
20
20
  } }));
@@ -9,7 +9,7 @@ const Tag_1 = require("../../../components/Tag");
9
9
  const ColumnSelector_1 = require("../../Components/ColumnSelector");
10
10
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
11
11
  exports.renderCustomSortColumn = (data) => {
12
- const { api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
12
+ const { api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
13
13
  return (React.createElement(rebass_1.Text, { pr: 2, py: 2, fontSize: 2 },
14
14
  "Custom sort column: ",
15
15
  React.createElement(Tag_1.Tag, null, api.columnApi.getFriendlyNameFromColumnId(data.ColumnId))));
@@ -21,7 +21,7 @@ exports.isValidCustomSortColumn = (data) => {
21
21
  return true;
22
22
  };
23
23
  exports.CustomSortColumnWizardSection = (props) => {
24
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
24
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
25
25
  const sortableCols = React.useMemo(() => {
26
26
  var _a, _b;
27
27
  const sortableColumns = api.columnApi.getSortableColumns();
@@ -23,7 +23,7 @@ exports.renderCustomSortValuesSummary = (data) => {
23
23
  React.createElement(ValueSelector_1.ValueOptionsTags, { options: data.SortedValues, value: data.SortedValues, toIdentifier: (x) => `${x}`, toLabel: (x) => `${x}`, allowWrap: true, readOnly: true }))) : null;
24
24
  };
25
25
  exports.CustomSortValuesWizardSection = (props) => {
26
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
26
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
27
27
  const [distinctValues, setDistinctValues] = react_1.useState([]);
28
28
  const [isDistinctValuesLoading, setIsDistinctValuesLoading] = react_1.useState(false);
29
29
  react_1.useEffect(() => {
@@ -1,3 +1,3 @@
1
1
  import { RowNode } from '@ag-grid-community/all-modules';
2
- import { ActionColumnButtonContext, AdaptableButton, DataChangeHistoryOptions } from '../../types';
3
- export declare const buildActionColumnButton: (options: DataChangeHistoryOptions, undoRowNode: (rowNode: RowNode) => void) => AdaptableButton<ActionColumnButtonContext>[];
2
+ import { ActionColumnContext, AdaptableButton, DataChangeHistoryOptions } from '../../types';
3
+ export declare const buildActionColumnButton: (options: DataChangeHistoryOptions, undoRowNode: (rowNode: RowNode) => void) => AdaptableButton<ActionColumnContext>[];
@@ -31,7 +31,7 @@ exports.renderReportColumnsSummary = (report) => {
31
31
  }))) : null));
32
32
  };
33
33
  exports.ReportColumnsWizardSection = (props) => {
34
- const { api, data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
34
+ const { api, data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
35
35
  return (React.createElement(rebass_1.Flex, { flexDirection: "column", style: { height: '100%' }, padding: 2 },
36
36
  React.createElement(Tabs_1.Tabs, { m: 2, value: data.ReportColumnScope, onValueChange: (ReportColumnScope) => {
37
37
  const report = Object.assign(Object.assign({}, data), { ReportColumnScope });
@@ -28,7 +28,7 @@ exports.isValidReportName = (report, api) => {
28
28
  return hasAlreadyExistingName ? 'A Report already exists with that name' : true;
29
29
  };
30
30
  exports.ReportNameWizardSection = (props) => {
31
- const { api, data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
31
+ const { api, data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
32
32
  const validCheck = exports.isValidReportName(data, api);
33
33
  const ErrorMessage = validCheck === true ? null : validCheck;
34
34
  return (React.createElement(React.Fragment, null,
@@ -34,7 +34,7 @@ exports.renderReportRowsSummary = (report) => {
34
34
  };
35
35
  exports.ReportRowsWizardSection = (props) => {
36
36
  var _a, _b;
37
- const { api, data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageWizardContext();
37
+ const { api, data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
38
38
  const initialData = react_1.useMemo(() => api.internalApi.getQueryPreviewData(), []);
39
39
  return (React.createElement(React.Fragment, null,
40
40
  React.createElement(Tabs_1.Tabs, { m: 2, value: data.ReportRowScope, onValueChange: (ReportRowScope) => {
@@ -9,6 +9,6 @@ const AdaptableObjectCompactList_1 = require("../Components/AdaptableObjectList/
9
9
  exports.ActiveFiltersPanel = () => {
10
10
  const adaptable = AdaptableContext_1.useAdaptable();
11
11
  const filterModule = adaptable.ModuleService.getModuleById(ModuleConstants.FilterModuleId);
12
- const columnFilters = adaptable.api.layoutApi.getAllColumnFilter();
12
+ const columnFilters = adaptable.api.filterApi.getColumnFilters();
13
13
  return React.createElement(AdaptableObjectCompactList_1.AdaptableObjectCompactList, { abObjects: columnFilters, module: filterModule });
14
14
  };
@@ -34,7 +34,7 @@ class FilterSummaryComponent extends React.Component {
34
34
  if (columnFilter == null) {
35
35
  return 'No Column Filter Active';
36
36
  }
37
- return this.props.api.layoutApi.columnFilterToString(columnFilter);
37
+ return this.props.api.filterApi.columnFilterToString(columnFilter);
38
38
  }
39
39
  }
40
40
  exports.FilterSummaryComponent = FilterSummaryComponent;
@@ -27,10 +27,10 @@ class FilterViewPanelComponent extends React.Component {
27
27
  } }, "Show Quick Filter")))));
28
28
  }
29
29
  onClearFilters() {
30
- this.props.api.layoutApi.clearAllColumnFilter();
30
+ this.props.api.filterApi.clearColumnFilters();
31
31
  }
32
32
  onClearColumnFilter(columnFilter) {
33
- this.props.api.layoutApi.clearColumnFilterByColumn(columnFilter.ColumnId);
33
+ this.props.api.filterApi.clearColumnFilterByColumn(columnFilter.ColumnId);
34
34
  }
35
35
  }
36
36
  function mapStateToProps(state) {
@@ -8,7 +8,7 @@ const CodeBlock_1 = require("../../../components/CodeBlock");
8
8
  const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
9
9
  exports.renderFlashingAlertRulesSummary = (flashingAlert) => {
10
10
  var _a;
11
- const { api: { flashingCellApi }, } = OnePageAdaptableWizard_1.useOnePageWizardContext();
11
+ const { api: { flashingCellApi }, } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
12
12
  const FlashTarget = (_a = flashingAlert.FlashTarget) !== null && _a !== void 0 ? _a : flashingCellApi.getFlashingCellFlashTarget(flashingAlert);
13
13
  return (React.createElement(EntityRulesEditor_1.EntityRulesSummary, { data: flashingAlert, renderPredicate: (content) => {
14
14
  return (React.createElement(React.Fragment, null,
@@ -28,7 +28,7 @@ exports.renderFlashingAlertRulesSummary = (flashingAlert) => {
28
28
  } }));
29
29
  };
30
30
  exports.FlashingAlertRulesWizardSection = (props) => {
31
- const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageWizardContext();
31
+ const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
32
32
  const predicateDefs = api.flashingCellApi.getFlashingCellPredicateDefsForScope(data.Scope);
33
33
  return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "Any", data: data, predicateDefs: predicateDefs, onChange: props.onChange, showAggregation: false, showObservable: false, showBoolean: true, showPredicate: true, descriptions: {
34
34
  selectPredicate: 'Select an Flashing Cell Rule - to be applied when data changes',
@@ -7,7 +7,7 @@ const rebass_1 = require("rebass");
7
7
  const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
8
8
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
9
9
  exports.FlashingAlertScopeWizardSection = (props) => {
10
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
10
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
11
11
  return (React.createElement(rebass_1.Flex, { flexDirection: "column", style: { height: '100%' }, padding: 2 },
12
12
  React.createElement(NewScopeComponent_1.NewScopeComponent, { descriptions: {
13
13
  rowScope: 'Changes anywhere in the row will trigger an Flashing Cell',
@@ -23,7 +23,7 @@ exports.renderFlashingAlertSettingsSummary = (flashingAlert) => {
23
23
  };
24
24
  exports.FlashingAlertSettingsWizardSection = (props) => {
25
25
  var _a, _b, _c, _d, _e, _f, _g;
26
- let { data: flashingCell } = OnePageAdaptableWizard_1.useOnePageWizardContext();
26
+ let { data: flashingCell } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
27
27
  flashingCell = flashingCell !== null && flashingCell !== void 0 ? flashingCell : props.flashingCell;
28
28
  const setDuration = (FlashDuration) => {
29
29
  props.onChange(Object.assign(Object.assign({}, flashingCell), { FlashDuration: FlashDuration }));
@@ -11,7 +11,7 @@ const StylePreview_1 = require("../../../components/StylePreview");
11
11
  const changeStyle = (React.createElement(rebass_1.Text, { fontSize: 2, style: { display: 'inline-block' } }, "Change style"));
12
12
  exports.FlashingAlertStyleWizardSection = (props) => {
13
13
  var _a, _b, _c;
14
- let { data: flashingAlert, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
14
+ let { data: flashingAlert, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
15
15
  flashingAlert = flashingAlert !== null && flashingAlert !== void 0 ? flashingAlert : props.flashingAlert;
16
16
  return (React.createElement(React.Fragment, null,
17
17
  React.createElement(Tabs_1.Tabs, { defaultValue: "up" },
@@ -355,7 +355,7 @@ const renderStringFormat = (data, _onChange, setFormatOption, customFormatters,
355
355
  };
356
356
  exports.FormatColumnFormatWizardSection = (props) => {
357
357
  var _a, _b, _c;
358
- const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
358
+ const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
359
359
  const adaptable = AdaptableContext_1.useAdaptable();
360
360
  const formatColumnApi = adaptable.api.formatColumnApi;
361
361
  const customDisplayFormatters = (_c = (_b = (_a = adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.userInterfaceOptions) === null || _b === void 0 ? void 0 : _b.customDisplayFormatters) !== null && _c !== void 0 ? _c : [];
@@ -13,7 +13,7 @@ exports.renderFormatColumnScopeSummary = (data) => {
13
13
  });
14
14
  };
15
15
  exports.FormatColumnScopeWizardSection = (props) => {
16
- const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
16
+ const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
17
17
  return (React.createElement(NewScopeComponent_1.NewScopeComponent, { descriptions: {
18
18
  rowScope: 'Apply a style to an entire row',
19
19
  columnScope: 'Select columns to format',
@@ -33,7 +33,7 @@ exports.renderFormatColumnSettingsSummary = (data) => {
33
33
  React.createElement(Tag_1.Tag, null, data.IncludeGroupedRows ? 'yes' : 'no'))));
34
34
  };
35
35
  exports.FormatColumnSettingsWizardSection = (props) => {
36
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
36
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
37
37
  const onCellAlignmentSelectChanged = (CellAlignment) => {
38
38
  props.onChange(Object.assign(Object.assign({}, data), { CellAlignment }));
39
39
  };
@@ -105,7 +105,7 @@ exports.renderFormatColumnStyleSummary = (data, api) => {
105
105
  };
106
106
  function FormatColumnStyleWizardSection(props) {
107
107
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
108
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
108
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
109
109
  const singleNumericColumn = api.scopeApi.isSingleNumericColumnScope(data.Scope);
110
110
  const onlyBooleanColumnsInScope = api.scopeApi.areAllBooleanColumnsInScope(data.Scope) ||
111
111
  api.scopeApi.scopeHasOnlyBooleanDataType(data.Scope);
@@ -8,7 +8,6 @@ const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
8
8
  const ErrorBox_1 = tslib_1.__importDefault(require("../../../components/ErrorBox"));
9
9
  const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
10
10
  const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
11
- const Enums_1 = require("../../../PredefinedConfig/Common/Enums");
12
11
  const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
13
12
  const react_1 = require("react");
14
13
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
@@ -19,10 +18,10 @@ const DateHelper_1 = require("../../../Utilities/Helpers/DateHelper");
19
18
  const Tag_1 = require("../../../components/Tag");
20
19
  const SpecialColumnSettingsWizardStep_1 = require("../../SpecialColumnSettingsWizardStep");
21
20
  const options = [
22
- { value: Enums_1.DataType.Number, label: Enums_1.DataType.Number },
23
- { value: Enums_1.DataType.String, label: Enums_1.DataType.String },
24
- { value: Enums_1.DataType.Date, label: Enums_1.DataType.Date },
25
- { value: Enums_1.DataType.Boolean, label: Enums_1.DataType.Boolean },
21
+ { value: 'Number', label: 'Number' },
22
+ { value: 'String', label: 'String' },
23
+ { value: 'Date', label: 'Date' },
24
+ { value: 'Boolean', label: 'Boolean' },
26
25
  ];
27
26
  exports.renderFreeTextColumnSummary = (data) => {
28
27
  var _a;
@@ -59,7 +58,7 @@ exports.isValidFreeTextColumn = (data, api) => {
59
58
  return true;
60
59
  };
61
60
  exports.FreeTextColumnSettingsWizardSection = (props) => {
62
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
61
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
63
62
  const Pattern = api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat;
64
63
  const [ColumnNameFocused, setColumnNameFocused] = react_1.useState(false);
65
64
  const inEdit = props.isEdit;
@@ -125,7 +125,7 @@ class ColumnInfoComponent extends React.Component {
125
125
  React.createElement(FreeTextColumnSummary_1.FreeTextColumnSummary, { key: ModuleConstants.FreeTextColumnModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.FreeTextColumnModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.FreeTextColumnModuleId) })));
126
126
  }
127
127
  if (this.isModuleAvailable(ModuleConstants.PlusMinusModuleId) &&
128
- this.state.SelectedColumn.dataType == Enums_1.DataType.Number) {
128
+ this.state.SelectedColumn.dataType == 'Number') {
129
129
  summaries.push(React.createElement("div", { key: ModuleConstants.PlusMinusModuleId, className: this.isModuleReadOnly(ModuleConstants.PlusMinusModuleId)
130
130
  ? GeneralConstants.READ_ONLY_STYLE
131
131
  : '' },
@@ -57,7 +57,7 @@ exports.GridInfoPopup = (props) => {
57
57
  const freeTextColumns = props.api.freeTextColumnApi
58
58
  .getAllFreeTextColumn()
59
59
  .map((c) => c.ColumnId);
60
- const columnFilterDescription = props.api.layoutApi.columnFiltersToString(props.api.layoutApi.getAllColumnFilter());
60
+ const columnFilterDescription = props.api.filterApi.columnFiltersToString(props.api.filterApi.getColumnFilters());
61
61
  const sorts = ArrayExtensions_1.default.IsNotNullOrEmpty(props.api.gridApi.getColumnSorts())
62
62
  ? props.api.gridApi.getColumnSorts().map((gs) => {
63
63
  return props.api.columnApi.getFriendlyNameFromColumnId(gs.ColumnId) + ': ' + gs.SortOrder;
@@ -7,7 +7,7 @@ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
7
7
  const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
8
8
  const CodeBlock_1 = require("../../../components/CodeBlock");
9
9
  function PlusMinusRuleSummary() {
10
- const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
10
+ const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
11
11
  return (React.createElement(EntityRulesEditor_1.EntityRulesSummary, { data: data, renderPredicate: (contents) => {
12
12
  return (React.createElement(React.Fragment, null,
13
13
  "Apply Plus Minus on ",
@@ -23,7 +23,7 @@ function PlusMinusRuleSummary() {
23
23
  exports.PlusMinusRuleSummary = PlusMinusRuleSummary;
24
24
  function PlusMinusRuleWizardSection(props) {
25
25
  var _a;
26
- const { data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageWizardContext();
26
+ const { data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
27
27
  const plusMinusNudge = Object.assign(Object.assign({}, data), { Rule: (_a = data === null || data === void 0 ? void 0 : data.Rule) !== null && _a !== void 0 ? _a : { BooleanExpression: '' } });
28
28
  return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName,
29
29
  // min-height 0 so the container does not min-size from it's children
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
6
6
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
7
7
  const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
8
8
  exports.PlusMinusScopeWizardSection = (props) => {
9
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
9
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
10
10
  const availableColumns = React.useMemo(() => api.columnApi.getNumericColumns(), []);
11
11
  return (React.createElement(NewScopeComponent_1.NewScopeComponent, { availableDataTypes: ['Number'], scopeColumns: availableColumns, scope: data.Scope, descriptions: {
12
12
  rowScope: 'Matching rows will have the plus/minus applied',
@@ -15,7 +15,7 @@ const OnePageAdaptableWizard_2 = require("../../../View/Wizard/OnePageAdaptableW
15
15
  const Tag_1 = require("../../../components/Tag");
16
16
  exports.PlusMinusSettingsSummary = (props) => {
17
17
  var _a;
18
- const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
18
+ const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
19
19
  return (React.createElement(React.Fragment, null,
20
20
  React.createElement(OnePageAdaptableWizard_2.SummaryText, null,
21
21
  "Nudge Value ",
@@ -37,7 +37,7 @@ exports.isSettingsValid = (hasCondition) => (data, api, context) => {
37
37
  };
38
38
  exports.PlusMinusSettingsWizardSection = (props) => {
39
39
  var _a;
40
- const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
40
+ const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
41
41
  const handleNudgeValueChange = (event) => {
42
42
  const newValue = parseFloat(event.target.value);
43
43
  props.onChange(Object.assign(Object.assign({}, data), { NudgeValue: isNaN(newValue) ? '' : newValue }));
@@ -27,7 +27,7 @@ exports.renderNamedQueryExpressionSummary = (data) => {
27
27
  };
28
28
  exports.NamedQueryExpressionWizardSection = (props) => {
29
29
  const { api } = AdaptableContext_1.useAdaptable();
30
- const { data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageWizardContext();
30
+ const { data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
31
31
  const initialData = react_1.useMemo(() => api.internalApi.getQueryPreviewData(), []);
32
32
  return (React.createElement(ExpressionEditor_1.ExpressionEditor, { allowSaveNamedQuery: false, type: 'boolean', module: moduleInfo.ModuleName, value: data.BooleanExpression, onChange: (BooleanExpression) => {
33
33
  props.onChange(Object.assign(Object.assign({}, data), { BooleanExpression }));
@@ -24,7 +24,7 @@ exports.renderNamedQuerySettingsSummary = (data) => {
24
24
  React.createElement(Tag_1.Tag, null, data.Name)));
25
25
  };
26
26
  exports.NamedQuerySettingsWizardSection = (props) => {
27
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
27
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
28
28
  const valid = exports.isValidNamedQuerySettings(data, api);
29
29
  const errorMessage = valid === true ? null : valid;
30
30
  const handleColumnNameChange = (event) => {
@@ -7,7 +7,7 @@ const Tag_1 = require("../../../components/Tag");
7
7
  const UIHelper_1 = require("../../UIHelper");
8
8
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
9
9
  exports.ScheduleScheduleSummary = () => {
10
- const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
10
+ const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
11
11
  return (React.createElement(OnePageAdaptableWizard_1.SummaryText, null,
12
12
  "Schedule: ",
13
13
  React.createElement(Tag_1.Tag, null, UIHelper_1.UIHelper.getScheduleDescription(data.Schedule))));
@@ -59,7 +59,7 @@ const daysMap = [
59
59
  ];
60
60
  exports.ScheduleScheduleWizard = (props) => {
61
61
  var _a, _b, _c, _d, _e;
62
- const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
62
+ const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
63
63
  const handleIsOneOfChange = (isOneOffNew) => {
64
64
  var _a, _b;
65
65
  props.onSetIsOneOff(isOneOffNew);
@@ -83,7 +83,7 @@ exports.getScheduleSettingsValues = (data) => {
83
83
  return [];
84
84
  };
85
85
  exports.ScheduleSettingsSummary = () => {
86
- const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
86
+ const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
87
87
  return (React.createElement(React.Fragment, null, exports.getScheduleSettingsValues(data).map((description, index) => (React.createElement(OnePageAdaptableWizard_1.SummaryText, { key: index },
88
88
  description.label,
89
89
  ": ",
@@ -11,7 +11,7 @@ const ScheduleSettingsIPushPull_1 = require("./ScheduleSettingsIPushPull");
11
11
  const ScheduleSettingsOpenFin_1 = require("./ScheduleSettingsOpenFin");
12
12
  const ScheduleSettingsGlue42_1 = require("./ScheduleSettingsGlue42");
13
13
  exports.ScheduleSettingsWizard = (props) => {
14
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
14
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
15
15
  const allReports = api.exportApi.getAllReports();
16
16
  if ((data === null || data === void 0 ? void 0 : data.ScheduleType) === Enums_1.ScheduleType.Reminder) {
17
17
  return (React.createElement(ScheduleSettingsReminder_1.ScheduleSettingsReminder, { reminderSchedule: data, onChange: props.onChange }));
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
6
6
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
7
7
  const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
8
8
  exports.ShortcutScopeWizardSection = (props) => {
9
- const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
9
+ const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
10
10
  const availableColumns = React.useMemo(() => api.columnApi.getNumericColumns(), []);
11
11
  return (React.createElement(NewScopeComponent_1.NewScopeComponent, { availableDataTypes: ['Number'], scopeColumns: availableColumns, scope: data.Scope, descriptions: {
12
12
  rowScope: 'Matching rows will have the shortcut applied',
@@ -24,7 +24,7 @@ exports.isSettingsValid = (data) => {
24
24
  };
25
25
  exports.ShortcutSettingsSummary = () => {
26
26
  var _a, _b;
27
- const { data: shortcut } = OnePageAdaptableWizard_1.useOnePageWizardContext();
27
+ const { data: shortcut } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
28
28
  return (React.createElement(React.Fragment, null,
29
29
  React.createElement(OnePageAdaptableWizard_2.SummaryText, null,
30
30
  "Shortcut Key ",
@@ -38,7 +38,7 @@ exports.ShortcutSettingsSummary = () => {
38
38
  };
39
39
  exports.ShortcutSettingsWizard = (props) => {
40
40
  var _a;
41
- const { data: shortcut } = OnePageAdaptableWizard_1.useOnePageWizardContext();
41
+ const { data: shortcut } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
42
42
  const handleKeyChange = React.useCallback((ShortcutKey) => {
43
43
  props.onChange(Object.assign(Object.assign({}, shortcut), { ShortcutKey }));
44
44
  }, [shortcut]);
@@ -109,22 +109,22 @@ function getEmptyConfigState() {
109
109
  exports.getEmptyConfigState = getEmptyConfigState;
110
110
  function getDescriptionForDataType(dataType) {
111
111
  switch (dataType) {
112
- case Enums_1.DataType.String:
112
+ case 'String':
113
113
  return 'string';
114
- case Enums_1.DataType.Number:
114
+ case 'Number':
115
115
  return 'number';
116
- case Enums_1.DataType.Date:
116
+ case 'Date':
117
117
  return 'date';
118
118
  }
119
119
  }
120
120
  exports.getDescriptionForDataType = getDescriptionForDataType;
121
121
  function getPlaceholderForDataType(dataType) {
122
122
  switch (dataType) {
123
- case Enums_1.DataType.String:
123
+ case 'String':
124
124
  return 'Enter Value';
125
- case Enums_1.DataType.Number:
125
+ case 'Number':
126
126
  return 'Enter Number';
127
- case Enums_1.DataType.Date:
127
+ case 'Date':
128
128
  return 'Enter Date';
129
129
  }
130
130
  }
@@ -34,9 +34,9 @@ export interface AdaptableObjectAdaptableWizardProps<View> extends AdaptableWiza
34
34
  api: AdaptableApi;
35
35
  }
36
36
  export interface AdaptableOnePageWizardProps<T extends AdaptableObject> {
37
- moduleInfo: ModuleInfo;
37
+ moduleInfo?: ModuleInfo;
38
38
  data: T;
39
- configEntities: T[];
39
+ configEntities?: T[];
40
40
  wizardStartIndex?: number;
41
41
  onCloseWizard: VoidFunction;
42
42
  onFinishWizard: (data: T) => void;
@@ -9,7 +9,7 @@ const OnePageAdaptableWizard_1 = require("./OnePageAdaptableWizard");
9
9
  const rebass_1 = require("rebass");
10
10
  exports.ObjectTagsWizardSection = (props) => {
11
11
  const { onChange } = props;
12
- const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
12
+ const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
13
13
  return (React.createElement(Tabs_1.Tabs, { style: { height: '100%' } },
14
14
  React.createElement(Tabs_1.Tabs.Tab, null, "Tags"),
15
15
  React.createElement(Tabs_1.Tabs.Content, null,
@@ -6,29 +6,28 @@ import { ModuleInfo } from '../../Strategy/Interface/IModule';
6
6
  import { ExpressionEditorNamedQuery } from '../../components/ExpressionEditor/NamedQueryContext';
7
7
  export declare type OnePageAdaptableWizardContextType<T> = {
8
8
  data: T;
9
- sections: (OnePageWizardSection<T> | '-')[];
9
+ sections: (OnePageAdaptableWizardSection<T> | '-')[];
10
10
  moduleInfo: ModuleInfo;
11
11
  api: AdaptableApi;
12
- setCurrentSection: (index: number) => void;
13
12
  namedQuery: ExpressionEditorNamedQuery;
14
13
  };
15
14
  export declare const SummaryTag: React.FunctionComponent<TextProps>;
16
15
  export declare const SummaryText: React.FunctionComponent<TextProps>;
17
16
  export declare const FormDescriptionText: React.FunctionComponent<TextProps>;
18
17
  export declare const OnePageAdaptableWizardContext: React.Context<OnePageAdaptableWizardContextType<any>>;
19
- export declare function useOnePageWizardContext<ENTITY>(): OnePageAdaptableWizardContextType<ENTITY>;
20
- export declare type OnePageWizardSection<ENTITY> = {
18
+ export declare function useOnePageAdaptableWizardContext<ENTITY>(): OnePageAdaptableWizardContextType<ENTITY>;
19
+ export interface OnePageAdaptableWizardSection<ENTITY> {
21
20
  title: string;
22
21
  details?: React.ReactNode;
23
22
  isValid?: (data: ENTITY, api: AdaptableApi, context: OnePageAdaptableWizardContextType<ENTITY>) => true | string;
24
23
  isVisible?: (data: ENTITY, api: AdaptableApi, context: OnePageAdaptableWizardContextType<ENTITY>) => boolean;
25
24
  render: (data: ENTITY, index: number) => React.ReactNode;
26
25
  renderSummary?: (data: ENTITY, api: AdaptableApi) => React.ReactNode;
27
- };
26
+ }
28
27
  export interface OnePageAdaptableWizardProps<ENTITY> {
29
28
  moduleInfo: ModuleInfo;
30
29
  data: ENTITY;
31
- sections: (OnePageWizardSection<ENTITY> | '-')[];
30
+ sections: (OnePageAdaptableWizardSection<ENTITY> | '-')[];
32
31
  currentIndex?: number;
33
32
  defaultCurrentIndex?: number;
34
33
  defaultCurrentSectionName?: string;