@adaptabletools/adaptable 24.0.0-canary.8 → 24.0.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 (235) hide show
  1. package/agGrid.d.ts +2 -3
  2. package/agGrid.js +2 -3
  3. package/aql.d.ts +29 -1
  4. package/aql.js +49 -1
  5. package/devtools.d.ts +55 -1
  6. package/index.css +0 -19
  7. package/index.d.ts +2 -3
  8. package/index.js +2 -3
  9. package/package.json +1 -1
  10. package/src/AdaptableOptions/ActionColumnOptions.d.ts +24 -0
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +97 -69
  12. package/src/AdaptableOptions/AdaptablePlugin.d.ts +113 -1
  13. package/src/AdaptableOptions/AlertOptions.d.ts +0 -2
  14. package/src/AdaptableOptions/ChartingOptions.d.ts +11 -5
  15. package/src/AdaptableOptions/ColumnMenuOptions.d.ts +30 -0
  16. package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
  17. package/src/AdaptableOptions/CommentOptions.d.ts +12 -4
  18. package/src/AdaptableOptions/ContextMenuOptions.d.ts +31 -1
  19. package/src/AdaptableOptions/DashboardOptions.d.ts +0 -3
  20. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +3 -2
  21. package/src/AdaptableOptions/EditOptions.d.ts +18 -2
  22. package/src/AdaptableOptions/ExportOptions.d.ts +23 -0
  23. package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -3
  24. package/src/AdaptableOptions/Fdc3Options.d.ts +77 -3
  25. package/src/AdaptableOptions/FilterOptions.d.ts +13 -8
  26. package/src/AdaptableOptions/LayoutOptions.d.ts +16 -3
  27. package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -1
  28. package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -2
  29. package/src/AdaptableOptions/RowFormOptions.d.ts +9 -0
  30. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +10 -1
  31. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
  32. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +6 -2
  33. package/src/AdaptableState/AdaptableState.d.ts +98 -4
  34. package/src/AdaptableState/AlertState.d.ts +20 -21
  35. package/src/AdaptableState/ApplicationState.d.ts +5 -3
  36. package/src/AdaptableState/BaseState.d.ts +9 -2
  37. package/src/AdaptableState/CalculatedColumnState.d.ts +10 -8
  38. package/src/AdaptableState/ChartingState.d.ts +10 -5
  39. package/src/AdaptableState/CommentState.d.ts +10 -4
  40. package/src/AdaptableState/Common/AdaptableAlert.d.ts +6 -2
  41. package/src/AdaptableState/Common/AdaptableButton.d.ts +3 -1
  42. package/src/AdaptableState/Common/AdaptableColumn.d.ts +38 -1
  43. package/src/AdaptableState/Common/AdaptableFilterState.d.ts +3 -1
  44. package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +3 -1
  45. package/src/AdaptableState/Common/AdaptableForm.d.ts +9 -0
  46. package/src/AdaptableState/Common/AdaptableFormat.d.ts +27 -1
  47. package/src/AdaptableState/Common/AdaptableIcon.d.ts +4 -2
  48. package/src/AdaptableState/Common/AdaptableObject.d.ts +9 -1
  49. package/src/AdaptableState/Common/AdaptableQuery.d.ts +9 -0
  50. package/src/AdaptableState/Common/AdaptableStyle.d.ts +6 -8
  51. package/src/AdaptableState/Common/AggregationColumns.d.ts +15 -6
  52. package/src/AdaptableState/Common/ButtonStyle.d.ts +3 -1
  53. package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +6 -2
  54. package/src/AdaptableState/Common/CellHighlightInfo.d.ts +4 -2
  55. package/src/AdaptableState/Common/CellSummary.d.ts +33 -0
  56. package/src/AdaptableState/Common/ColumnFilter.d.ts +3 -1
  57. package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +4 -2
  58. package/src/AdaptableState/Common/ColumnScope.d.ts +32 -1
  59. package/src/AdaptableState/Common/ColumnSetupInfo.d.ts +17 -0
  60. package/src/AdaptableState/Common/ColumnSort.d.ts +3 -1
  61. package/src/AdaptableState/Common/CompactCalculatedColumnEditorInfo.d.ts +3 -0
  62. package/src/AdaptableState/Common/DataChangedScope.d.ts +3 -1
  63. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +3 -1
  64. package/src/AdaptableState/Common/Entitlement.d.ts +4 -2
  65. package/src/AdaptableState/Common/Enums.d.ts +21 -0
  66. package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -1
  67. package/src/AdaptableState/Common/Fdc3Context.d.ts +9 -0
  68. package/src/AdaptableState/Common/Fdc3Intent.d.ts +6 -0
  69. package/src/AdaptableState/Common/GridFilter.d.ts +3 -1
  70. package/src/AdaptableState/Common/MenuItem.d.ts +9 -0
  71. package/src/AdaptableState/Common/RowHighlightInfo.d.ts +4 -2
  72. package/src/AdaptableState/Common/RowScope.d.ts +3 -1
  73. package/src/AdaptableState/Common/RowSummary.d.ts +14 -4
  74. package/src/AdaptableState/Common/RowsHighlightInfo.d.ts +5 -3
  75. package/src/AdaptableState/Common/Schedule.d.ts +10 -2
  76. package/src/AdaptableState/Common/SpecialColumnSettings.d.ts +3 -1
  77. package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +4 -2
  78. package/src/AdaptableState/Common/TransposeConfig.d.ts +1 -1
  79. package/src/AdaptableState/Common/Types.d.ts +9 -0
  80. package/src/AdaptableState/CustomSortState.d.ts +8 -5
  81. package/src/AdaptableState/DashboardState.d.ts +14 -10
  82. package/src/AdaptableState/ExportState.d.ts +12 -4
  83. package/src/AdaptableState/FlashingCellState.d.ts +8 -5
  84. package/src/AdaptableState/FormatColumnState.d.ts +28 -8
  85. package/src/AdaptableState/FreeTextColumnState.d.ts +14 -8
  86. package/src/AdaptableState/IPushPullState.d.ts +39 -3
  87. package/src/AdaptableState/InitialState.d.ts +9 -9
  88. package/src/AdaptableState/InternalState.d.ts +183 -3
  89. package/src/AdaptableState/LayoutState.d.ts +64 -21
  90. package/src/AdaptableState/NamedQueryState.d.ts +16 -4
  91. package/src/AdaptableState/NoteState.d.ts +7 -3
  92. package/src/AdaptableState/OpenFinState.d.ts +12 -2
  93. package/src/AdaptableState/PlusMinusState.d.ts +8 -4
  94. package/src/AdaptableState/PopupState.d.ts +29 -1
  95. package/src/AdaptableState/QuickSearchState.d.ts +5 -3
  96. package/src/AdaptableState/Selection/GridCell.d.ts +5 -3
  97. package/src/AdaptableState/Selection/GridCellRange.d.ts +8 -7
  98. package/src/AdaptableState/Selection/SelectedCellInfo.d.ts +1 -1
  99. package/src/AdaptableState/ShortcutState.d.ts +7 -3
  100. package/src/AdaptableState/StatusBarState.d.ts +7 -6
  101. package/src/AdaptableState/StyledColumnState.d.ts +46 -14
  102. package/src/AdaptableState/TeamSharingState.d.ts +46 -2
  103. package/src/AdaptableState/ThemeState.d.ts +24 -2
  104. package/src/AdaptableState/ToolPanelState.d.ts +10 -5
  105. package/src/AdaptableState/UserInterfaceState.d.ts +2 -2
  106. package/src/AdaptableState/Uuid.d.ts +6 -0
  107. package/src/Api/ActionColumnApi.d.ts +3 -1
  108. package/src/Api/AdaptableApi.d.ts +54 -50
  109. package/src/Api/AlertApi.d.ts +20 -12
  110. package/src/Api/ApplicationApi.d.ts +6 -2
  111. package/src/Api/BulkUpdateApi.d.ts +2 -1
  112. package/src/Api/CalculatedColumnApi.d.ts +4 -1
  113. package/src/Api/CalendarApi.d.ts +10 -0
  114. package/src/Api/CellSummaryApi.d.ts +9 -3
  115. package/src/Api/ChartingApi.d.ts +22 -7
  116. package/src/Api/ColumnApi.d.ts +71 -4
  117. package/src/Api/ColumnFilterApi.d.ts +13 -3
  118. package/src/Api/ColumnMenuApi.d.ts +13 -2
  119. package/src/Api/ColumnScopeApi.d.ts +27 -1
  120. package/src/Api/CommentApi.d.ts +10 -7
  121. package/src/Api/ContextMenuApi.d.ts +11 -1
  122. package/src/Api/CustomSortApi.d.ts +6 -2
  123. package/src/Api/DashboardApi.d.ts +30 -9
  124. package/src/Api/DataChangeHistoryApi.d.ts +9 -3
  125. package/src/Api/DataImportApi.d.ts +1 -1
  126. package/src/Api/EntitlementApi.d.ts +6 -1
  127. package/src/Api/EventApi.d.ts +67 -19
  128. package/src/Api/Events/AdaptableReady.d.ts +6 -2
  129. package/src/Api/Events/AdaptableStateChanged.d.ts +9 -5
  130. package/src/Api/Events/AdaptableStateReloaded.d.ts +7 -3
  131. package/src/Api/Events/AlertFired.d.ts +8 -2
  132. package/src/Api/Events/BeforeAdaptableStateChange.d.ts +6 -2
  133. package/src/Api/Events/CalculatedColumnChanged.d.ts +7 -3
  134. package/src/Api/Events/CellChanged.d.ts +6 -2
  135. package/src/Api/Events/CellSelectionChanged.d.ts +6 -2
  136. package/src/Api/Events/ChartChanged.d.ts +16 -8
  137. package/src/Api/Events/CommentChanged.d.ts +8 -2
  138. package/src/Api/Events/CustomToolbarConfigured.d.ts +6 -2
  139. package/src/Api/Events/DashboardChanged.d.ts +27 -6
  140. package/src/Api/Events/DataImported.d.ts +8 -4
  141. package/src/Api/Events/DataSetSelected.d.ts +6 -2
  142. package/src/Api/Events/Fdc3MessageInfo.d.ts +14 -4
  143. package/src/Api/Events/FlashingCellDisplayed.d.ts +6 -2
  144. package/src/Api/Events/GridFilterApplied.d.ts +11 -3
  145. package/src/Api/Events/GridSorted.d.ts +6 -2
  146. package/src/Api/Events/LayoutChanged.d.ts +36 -5
  147. package/src/Api/Events/LiveDataChanged.d.ts +21 -5
  148. package/src/Api/Events/NoteChanged.d.ts +5 -1
  149. package/src/Api/Events/ReportScheduleRan.d.ts +7 -3
  150. package/src/Api/Events/RowChanged.d.ts +6 -2
  151. package/src/Api/Events/RowFormSubmitted.d.ts +28 -12
  152. package/src/Api/Events/RowSelectionChanged.d.ts +6 -2
  153. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +6 -2
  154. package/src/Api/Events/TeamSharingEntityChanged.d.ts +6 -2
  155. package/src/Api/Events/ThemeSelected.d.ts +6 -2
  156. package/src/Api/ExportApi.d.ts +59 -32
  157. package/src/Api/ExpressionApi.d.ts +24 -1
  158. package/src/Api/Fdc3Api.d.ts +16 -3
  159. package/src/Api/FlashingCellApi.d.ts +6 -1
  160. package/src/Api/FormatColumnApi.d.ts +18 -11
  161. package/src/Api/FreeTextColumnApi.d.ts +4 -2
  162. package/src/Api/GridApi.d.ts +92 -19
  163. package/src/Api/IPushPullApi.d.ts +19 -2
  164. package/src/Api/Internal/EventInternalApi.d.ts +2 -1
  165. package/src/Api/Internal/EventInternalApi.js +7 -0
  166. package/src/Api/InteropioPluginApi.d.ts +2 -1
  167. package/src/Api/LayoutApi.d.ts +29 -15
  168. package/src/Api/NamedQueryApi.d.ts +10 -6
  169. package/src/Api/NoteApi.d.ts +15 -11
  170. package/src/Api/OpenFinApi.d.ts +8 -2
  171. package/src/Api/OptionsApi.d.ts +43 -1
  172. package/src/Api/PluginsApi.d.ts +6 -1
  173. package/src/Api/PlusMinusApi.d.ts +2 -1
  174. package/src/Api/QuickSearchApi.d.ts +6 -1
  175. package/src/Api/RowFormApi.d.ts +8 -7
  176. package/src/Api/ShortcutApi.d.ts +3 -1
  177. package/src/Api/SmartEditApi.d.ts +4 -1
  178. package/src/Api/StateApi.d.ts +30 -2
  179. package/src/Api/StatusBarApi.d.ts +2 -0
  180. package/src/Api/StyledColumnApi.d.ts +23 -12
  181. package/src/Api/SystemStatusApi.d.ts +18 -6
  182. package/src/Api/TeamSharingApi.d.ts +8 -1
  183. package/src/Api/ThemeApi.d.ts +18 -9
  184. package/src/Api/ToolPanelApi.d.ts +12 -7
  185. package/src/Api/UserInterfaceApi.d.ts +10 -1
  186. package/src/Redux/Store/AdaptableStore.js +1 -1
  187. package/src/agGrid/Adaptable.d.ts +0 -12
  188. package/src/agGrid/Adaptable.js +0 -52
  189. package/src/agGrid/AdaptableFrameworkComponent.d.ts +12 -0
  190. package/src/agGrid/AdaptableLogger.d.ts +74 -1
  191. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -0
  192. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -0
  193. package/src/agGrid/index.d.ts +1 -6
  194. package/src/agGrid/index.js +1 -3
  195. package/src/aql/ExpressionEvaluation.d.ts +27 -0
  196. package/src/aql/types.d.ts +22 -0
  197. package/src/env.js +2 -2
  198. package/src/migration/legacyAdaptableQuery.d.ts +29 -4
  199. package/src/setupDevTools.js +223 -0
  200. package/src/types.d.ts +0 -2
  201. package/tsconfig.esm.tsbuildinfo +1 -1
  202. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +0 -99
  203. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +0 -1
  204. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +0 -15
  205. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +0 -1
  206. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +0 -19
  207. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -337
  208. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +0 -5
  209. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +0 -4
  210. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +0 -30
  211. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -162
  212. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +0 -18
  213. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +0 -12
  214. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +0 -8
  215. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -131
  216. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +0 -8
  217. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -30
  218. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +0 -6
  219. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +0 -80
  220. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +0 -6
  221. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +0 -100
  222. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +0 -11
  223. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +0 -8
  224. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +0 -2
  225. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +0 -2
  226. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +0 -21
  227. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +0 -63
  228. package/src/View/AdaptableWizardView/Utilities/Utils.d.ts +0 -1
  229. package/src/View/AdaptableWizardView/Utilities/Utils.js +0 -21
  230. package/src/View/AdaptableWizardView/Utilities/helper.d.ts +0 -19
  231. package/src/View/AdaptableWizardView/Utilities/helper.js +0 -81
  232. package/src/View/AdaptableWizardView/Wizard.d.ts +0 -57
  233. package/src/View/AdaptableWizardView/Wizard.js +0 -98
  234. package/src/View/AdaptableWizardView/index.d.ts +0 -4
  235. package/src/View/AdaptableWizardView/index.js +0 -4
@@ -1,162 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from 'react';
3
- import { useState } from 'react';
4
- import StringExtensions from '../../../Utilities/Extensions/StringExtensions';
5
- import { OnePageWizard } from '../../Wizard/OnePageWizards';
6
- import { ConfigurationWizardColumnsStep } from './ConfigurationWizardColumnsStep';
7
- import GridOptionsForm from './GridOptionsForm';
8
- import EntitlementsForm from './EntitlementsForm';
9
- import { UIElementsForm } from './UIOptions/UiOptionsForm';
10
- import { applyDefaultAdaptableOptions } from '../../../AdaptableOptions/DefaultAdaptableOptions';
11
- export const ConfigurationWizard = (props) => {
12
- const [isPrimaryKeySelected, setIsValid] = React.useState(true);
13
- const [adaptableConfig, setAdaptableConfig] = useState(() => {
14
- const gridOptionDefaults = {
15
- sideBar: {
16
- toolPanels: ['columns', 'filters', 'adaptable'],
17
- },
18
- };
19
- const gridOptions = {
20
- ...gridOptionDefaults,
21
- ...props.adaptableConfig.gridOptions,
22
- };
23
- const adaptableOptions = applyDefaultAdaptableOptions(props.adaptableConfig.adaptableOptions);
24
- return { gridOptions, adaptableOptions };
25
- });
26
- const [selectedColumns, setSelectedColumns] = useState(() => {
27
- return props.adaptableConfig.gridOptions?.columnDefs?.reduce((acc, col) => {
28
- acc[col.field] = true;
29
- return acc;
30
- }, {});
31
- });
32
- const columnsHandle = React.useRef(null);
33
- const handleFinish = () => {
34
- const newAdaptableOptions = { ...adaptableConfig.adaptableOptions };
35
- const newGridOptions = { ...adaptableConfig.gridOptions };
36
- if (columnsHandle.current) {
37
- adaptableConfig.gridOptions.columnDefs = columnsHandle.current.getColumns().map((column) => {
38
- const newColumn = {
39
- ...column,
40
- headerName: column.caption || StringExtensions.Humanize(column.field),
41
- };
42
- delete newColumn.caption;
43
- return newColumn;
44
- });
45
- const columnDefs = adaptableConfig.gridOptions.columnDefs;
46
- let Layouts = newAdaptableOptions.initialState?.Layout?.Layouts || [];
47
- const NewLayout = {
48
- TableColumns: columnDefs.map((col) => col.colId ?? col.field),
49
- Name: 'Default Layout',
50
- };
51
- let currentLayoutName = NewLayout.Name;
52
- let found = false;
53
- if (!Layouts.length) {
54
- Layouts = [NewLayout];
55
- }
56
- else {
57
- Layouts = Layouts.map((layout) => {
58
- if (found) {
59
- return layout;
60
- }
61
- if (layout.TableColumns?.length === 0) {
62
- found = true;
63
- currentLayoutName = layout.Name;
64
- layout = { ...layout };
65
- layout.TableColumns = NewLayout.TableColumns;
66
- }
67
- return layout;
68
- });
69
- if (!found) {
70
- Layouts.push(NewLayout);
71
- }
72
- }
73
- newAdaptableOptions.initialState = {
74
- ...newAdaptableOptions.initialState,
75
- Layout: {
76
- ...newAdaptableOptions.initialState.Layout,
77
- Layouts: Layouts,
78
- CurrentLayout: currentLayoutName,
79
- },
80
- };
81
- newAdaptableOptions.primaryKey = columnsHandle.current.getPrimaryKey();
82
- }
83
- const newAdaptableConfig = {
84
- adaptableOptions: newAdaptableOptions,
85
- gridOptions: newGridOptions,
86
- };
87
- setAdaptableConfig(newAdaptableConfig);
88
- props.onFinish(newAdaptableConfig);
89
- };
90
- const handlePrimaryKeyColumnIsNotSelected = React.useCallback((newIsValid) => {
91
- setIsValid(newIsValid);
92
- }, []);
93
- const handleColumnsChange = React.useCallback((columns) => {
94
- setAdaptableConfig((adaptableConfig) => ({
95
- ...adaptableConfig,
96
- gridOptions: { ...adaptableConfig.gridOptions, columnDefs: columns },
97
- }));
98
- }, []);
99
- const handleColumnSelectionChange = React.useCallback((col, flag) => {
100
- setSelectedColumns((selectedColumns) => {
101
- const newSelectedColumns = selectedColumns ?? {};
102
- newSelectedColumns[col.field] = flag;
103
- return newSelectedColumns;
104
- });
105
- }, []);
106
- const handleAdaptableOptionsChange = React.useCallback((adaptableOptions) => {
107
- setAdaptableConfig((adaptableConfig) => ({
108
- ...adaptableConfig,
109
- adaptableOptions: adaptableOptions,
110
- }));
111
- }, []);
112
- const handleGridOptionsChange = React.useCallback((gridOptions) => {
113
- setAdaptableConfig((adaptableConfig) => ({
114
- ...adaptableConfig,
115
- gridOptions: gridOptions,
116
- }));
117
- }, []);
118
- let sections = [
119
- {
120
- title: 'Columns',
121
- details: 'Configure Columns',
122
- isValid: () => {
123
- if (!isPrimaryKeySelected) {
124
- return 'Primary key column must be included';
125
- }
126
- return true;
127
- },
128
- render: () => (_jsx(ConfigurationWizardColumnsStep, { adaptableConfig: adaptableConfig, setPrimaryKeyIsNotSelected: handlePrimaryKeyColumnIsNotSelected, onChange: setAdaptableConfig, selectedColumns: selectedColumns, onSelectionChange: handleColumnSelectionChange, onColumnChange: handleColumnsChange, columnsHandle: columnsHandle })),
129
- },
130
- {
131
- title: 'AG Grid Options',
132
- details: 'Configure AG Grid Options',
133
- render: () => (_jsx(GridOptionsForm, { gridOptions: adaptableConfig.gridOptions, onChangedGridOptions: handleGridOptionsChange })),
134
- },
135
- {
136
- title: 'UI Elements',
137
- details: 'Configure UI Elements',
138
- render: () => (_jsx(UIElementsForm, { adaptableOptions: adaptableConfig.adaptableOptions, gridOptions: adaptableConfig.gridOptions, onChangedAdaptableOptions: handleAdaptableOptionsChange, onChangedGridOptions: handleGridOptionsChange })),
139
- },
140
- {
141
- title: 'Entitlements',
142
- details: 'Configure Entitlements',
143
- render: () => (_jsx(EntitlementsForm, { adaptableOptions: adaptableConfig.adaptableOptions, onChangedAptableOptions: handleAdaptableOptionsChange })),
144
- },
145
- ].filter(Boolean);
146
- if (props.startSections) {
147
- sections = [
148
- ...props.startSections.map((section) => {
149
- return {
150
- title: section.title,
151
- isValid: section.isValid,
152
- isVisible: section.isVisible,
153
- render: () => {
154
- return section.render(adaptableConfig, setAdaptableConfig, setSelectedColumns);
155
- },
156
- };
157
- }),
158
- ...sections,
159
- ];
160
- }
161
- return (_jsx(OnePageWizard, { data: adaptableConfig, name: "Configure", defaultCurrentSectionName: 'default section name', onHide: () => null, onFinish: handleFinish, sections: sections }));
162
- };
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { NocodeColumn } from './ColumnsList';
3
- import { AdaptableConfig } from './AdaptableConfig';
4
- export interface ConfigurationWizardColumnsStepProps {
5
- adaptableConfig: AdaptableConfig;
6
- onChange: (newConfig: AdaptableConfig) => void;
7
- columnsHandle: React.MutableRefObject<{
8
- getColumns: () => any[];
9
- getPrimaryKey: () => string;
10
- }>;
11
- setPrimaryKeyIsNotSelected: (enabled: boolean) => void;
12
- onColumnChange: (columns: NocodeColumn[]) => void;
13
- onSelectionChange: (column: any, flag: boolean) => void;
14
- selectedColumns: {
15
- [key: string]: boolean;
16
- };
17
- }
18
- export declare const ConfigurationWizardColumnsStep: React.FunctionComponent<ConfigurationWizardColumnsStepProps>;
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import ColumnsList from './ColumnsList';
3
- export const ConfigurationWizardColumnsStep = (props) => {
4
- let theme = 'light';
5
- if (typeof props.adaptableConfig.adaptableOptions.initialState === 'object' &&
6
- props.adaptableConfig.adaptableOptions.initialState.Theme?.CurrentTheme) {
7
- theme = props.adaptableConfig.adaptableOptions.initialState.Theme.CurrentTheme;
8
- }
9
- return (_jsx(ColumnsList, { theme: theme, handle: props.columnsHandle, onValidityChange: (valid) => {
10
- props.setPrimaryKeyIsNotSelected(valid);
11
- }, selectedColumns: props.selectedColumns, onChange: props.onColumnChange, onSelectionChange: props.onSelectionChange, columns: props.adaptableConfig.gridOptions?.columnDefs }));
12
- };
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { AdaptableOptions } from '../../../types';
3
- interface EntitlementsFormOptions {
4
- adaptableOptions: AdaptableOptions;
5
- onChangedAptableOptions: (adaptableOptions: AdaptableOptions) => void;
6
- }
7
- declare const EntitlementsForm: React.FunctionComponent<EntitlementsFormOptions>;
8
- export default EntitlementsForm;
@@ -1,131 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from 'react';
3
- import HelpBlock from '../../../components/HelpBlock';
4
- import { ALL_MODULES } from '../../../AdaptableState/Common/Types';
5
- import Radio from '../../../components/Radio';
6
- import FormLayout, { FormRow } from '../../../components/FormLayout';
7
- import { ACCESS_LEVEL_FULL, ACCESS_LEVEL_HIDDEN, ACCESS_LEVEL_READ_ONLY, } from '../../../Utilities/Constants/GeneralConstants';
8
- import { ADAPTABLE_MODULE_MAP } from '../../../Utilities/Constants/ModuleConstants';
9
- import { DataSource, InfiniteTableGrid, } from '../../../components/InfiniteTable';
10
- import { Box, Flex } from '../../../components/Flex';
11
- const ALL_ENTITLEMENTS_MODULES = ALL_MODULES;
12
- const tableDOMProps = {
13
- style: {
14
- height: '100%',
15
- minWidth: '10rem',
16
- minHeight: 600,
17
- },
18
- };
19
- const columnTypes = {
20
- default: {
21
- defaultFlex: 1,
22
- align: 'center',
23
- defaultSortable: false,
24
- },
25
- };
26
- const headerOptions = {
27
- alwaysReserveSpaceForSortIcon: false,
28
- };
29
- const EntitlementsListForm = (props) => {
30
- let abOptions = props.adaptableOptions;
31
- const entitlements = abOptions?.entitlementOptions?.moduleEntitlements ?? [];
32
- if (typeof entitlements === 'function') {
33
- return (_jsx(HelpBlock, { className: "twa:mt-2", children: "Entitlements cannot be customized, they are handled by a custom function." }));
34
- }
35
- const entitlementsMap = React.useMemo(() => {
36
- return entitlements.reduce((acc, entitlement) => {
37
- acc[entitlement.adaptableModule] = entitlement.accessLevel;
38
- return acc;
39
- }, {});
40
- }, [abOptions?.entitlementOptions]);
41
- const handleOnChange = React.useCallback((module, accessLevel) => {
42
- let newEntitlements = entitlements;
43
- if (entitlementsMap[module]) {
44
- newEntitlements = newEntitlements.map((entitlement) => {
45
- if (entitlement.adaptableModule === module) {
46
- entitlement.accessLevel = accessLevel;
47
- }
48
- return entitlement;
49
- });
50
- }
51
- else {
52
- newEntitlements = [
53
- ...newEntitlements,
54
- { adaptableModule: module, accessLevel: accessLevel },
55
- ];
56
- }
57
- props.onChangedAptableOptions({
58
- ...abOptions,
59
- entitlementOptions: {
60
- ...abOptions.entitlementOptions,
61
- moduleEntitlements: newEntitlements,
62
- },
63
- });
64
- }, [abOptions?.entitlementOptions]);
65
- if (typeof entitlements === 'function') {
66
- return (_jsx(HelpBlock, { className: "twa:mb-2", children: "Entitlements cannot be customized, they are handled by a custom function." }));
67
- }
68
- const columnsMap = {
69
- name: {
70
- header: 'Module Name',
71
- align: 'start',
72
- renderValue: (params) => {
73
- return _jsx(_Fragment, { children: params.data.name });
74
- },
75
- },
76
- full: {
77
- header: 'Full',
78
- render: (params) => {
79
- const module = params.data.name;
80
- const accessLevel = entitlementsMap[module];
81
- return (_jsx(Radio, { onClick: () => handleOnChange(module, ACCESS_LEVEL_FULL), checked: accessLevel === ACCESS_LEVEL_FULL }));
82
- },
83
- },
84
- readonly: {
85
- header: 'Read Only',
86
- render: (params) => {
87
- const module = params.data.name;
88
- const accessLevel = entitlementsMap[module];
89
- return (_jsx(Radio, { onClick: () => handleOnChange(module, ACCESS_LEVEL_READ_ONLY), checked: accessLevel === ACCESS_LEVEL_READ_ONLY }));
90
- },
91
- },
92
- hidden: {
93
- header: 'Hidden',
94
- render: (params) => {
95
- const module = params.data.name;
96
- const accessLevel = entitlementsMap[module];
97
- return (_jsx(Radio, { onClick: () => handleOnChange(module, ACCESS_LEVEL_HIDDEN), checked: accessLevel === ACCESS_LEVEL_HIDDEN }));
98
- },
99
- },
100
- };
101
- const data = ALL_ENTITLEMENTS_MODULES.map((module) => ({ name: ADAPTABLE_MODULE_MAP[module] }));
102
- let theme = 'light';
103
- if (typeof props.adaptableOptions.initialState === 'object' &&
104
- props.adaptableOptions.initialState.Theme?.CurrentTheme) {
105
- theme = props.adaptableOptions.initialState.Theme.CurrentTheme;
106
- }
107
- return (_jsx(Box, { className: `${theme} twa:flex-1 twa:h-full`, children: _jsx(DataSource, { data: data, primaryKey: "name", children: _jsx(InfiniteTableGrid, { columnTypes: columnTypes, headerOptions: headerOptions, domProps: tableDOMProps, columns: columnsMap }) }) }));
108
- };
109
- const DefaultEntitlementForm = (props) => {
110
- const abOptions = props.adaptableOptions;
111
- const entitlementOptions = props.adaptableOptions?.entitlementOptions;
112
- const defaultEntitlement = entitlementOptions?.defaultAccessLevel;
113
- if (typeof defaultEntitlement === 'function') {
114
- return (_jsx(HelpBlock, { className: "twa:mb-2", children: "Default Entitlement is controlled by a custom function" }));
115
- }
116
- const handleDefaultEntitlementChange = React.useCallback((accessLevel) => {
117
- props.onChangedAptableOptions({
118
- ...abOptions,
119
- entitlementOptions: {
120
- ...abOptions.entitlementOptions,
121
- defaultAccessLevel: accessLevel,
122
- },
123
- });
124
- }, [abOptions?.entitlementOptions?.defaultAccessLevel]);
125
- return (_jsx(FormLayout, { className: "twa:mb-2", children: _jsxs(FormRow, { label: "Default Entitlement:", children: [_jsx(Radio, { onClick: () => handleDefaultEntitlementChange(ACCESS_LEVEL_FULL), checked: defaultEntitlement === ACCESS_LEVEL_FULL, className: "twa:mr-3", children: "Visible" }), _jsx(Radio, { onClick: () => handleDefaultEntitlementChange(ACCESS_LEVEL_READ_ONLY), checked: defaultEntitlement === ACCESS_LEVEL_READ_ONLY, className: "twa:mr-3", children: "Read Only" }), _jsx(Radio, { onClick: () => handleDefaultEntitlementChange(ACCESS_LEVEL_HIDDEN), checked: defaultEntitlement === ACCESS_LEVEL_HIDDEN, children: "Hidden" })] }) }));
126
- };
127
- const EntitlementsForm = (props) => {
128
- let abOptions = props.adaptableOptions;
129
- return (_jsxs(Flex, { flexDirection: "column", className: "twa:p-2 twa:h-full", children: [_jsx(DefaultEntitlementForm, { ...props }), _jsx(EntitlementsListForm, { ...props })] }));
130
- };
131
- export default EntitlementsForm;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { GridOptions } from 'ag-grid-enterprise';
3
- interface GridOptionsFormOptions {
4
- gridOptions: GridOptions;
5
- onChangedGridOptions: (gridOptions: GridOptions) => void;
6
- }
7
- declare const GridOptionsForm: (props: GridOptionsFormOptions) => React.JSX.Element;
8
- export default GridOptionsForm;
@@ -1,30 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import FormLayout, { FormRow } from '../../../components/FormLayout';
3
- import { CheckBox } from '../../../components/CheckBox';
4
- import HelpBlock from '../../../components/HelpBlock';
5
- import { Box } from '../../../components/Flex';
6
- const GridOptionsForm = (props) => {
7
- let { gridOptions } = props;
8
- return (_jsxs(Box, { className: "twa:p-2", children: [_jsx(HelpBlock, { children: "Grid Options" }), _jsxs(FormLayout, { className: "twa:m-2", columns: [{ name: 'children' }, { name: 'label', style: { textAlign: 'start' } }], children: [_jsx(FormRow, { label: "Enable Cell Selection", children: _jsx(CheckBox, { checked: !!gridOptions.cellSelection, onChange: (enableCellSelection) => {
9
- gridOptions = { ...gridOptions, cellSelection: enableCellSelection };
10
- props.onChangedGridOptions(gridOptions);
11
- } }) }), _jsx(FormRow, { label: "Show Filter Bar", children: _jsx(CheckBox, { checked: gridOptions.defaultColDef?.floatingFilter, onChange: (floatingFilter) => {
12
- gridOptions = {
13
- ...gridOptions,
14
- defaultColDef: {
15
- floatingFilter,
16
- },
17
- };
18
- props.onChangedGridOptions(gridOptions);
19
- } }) }), _jsx(FormRow, { label: "Suppress Column Virtualisation", children: _jsx(CheckBox, { checked: gridOptions.suppressColumnVirtualisation, onChange: (suppressColumnVirtualisation) => {
20
- gridOptions = {
21
- ...gridOptions,
22
- suppressColumnVirtualisation: suppressColumnVirtualisation,
23
- };
24
- props.onChangedGridOptions(gridOptions);
25
- } }) }), _jsx(FormRow, { label: "Show Column Menu Button", children: _jsx(CheckBox, { checked: gridOptions.suppressMenuHide, onChange: (suppressMenuHide) => {
26
- gridOptions = { ...gridOptions, suppressMenuHide: suppressMenuHide };
27
- props.onChangedGridOptions(gridOptions);
28
- } }) })] })] }));
29
- };
30
- export default GridOptionsForm;
@@ -1,6 +0,0 @@
1
- import { GridOptions } from 'ag-grid-enterprise';
2
- import * as React from 'react';
3
- export declare const UIOptionsSidebarForm: React.FunctionComponent<{
4
- gridOptions: GridOptions;
5
- onChange: (gridOptions: GridOptions) => void;
6
- }>;
@@ -1,80 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CheckBox } from '../../../../components/CheckBox';
3
- import { NewDropdownButton } from '../../../../components/DropdownButton';
4
- import FormLayout, { FormRow } from '../../../../components/FormLayout';
5
- import HelpBlock from '../../../../components/HelpBlock';
6
- import StringExtensions from '../../../../Utilities/Extensions/StringExtensions';
7
- import { Box, Flex } from '../../../../components/Flex';
8
- const ALL_SIDEBAR_OPTIONS = ['columns', 'filters', 'adaptable'];
9
- const prepareSidebarDef = (sideBar) => {
10
- sideBar = sideBar;
11
- if (typeof sideBar === 'boolean') {
12
- sideBar = {
13
- toolPanels: ALL_SIDEBAR_OPTIONS,
14
- };
15
- }
16
- if (typeof sideBar === 'string') {
17
- sideBar = {
18
- toolPanels: [sideBar],
19
- };
20
- }
21
- if (Array.isArray(sideBar)) {
22
- sideBar = {
23
- toolPanels: sideBar,
24
- };
25
- }
26
- return sideBar ?? { toolPanels: [] };
27
- };
28
- const isSidebarChecked = (sideBar, panelName) => {
29
- return (sideBar?.toolPanels ?? []).some((panel) => {
30
- const panelId = typeof panel === 'string' ? panel : panel.id;
31
- return panelId === panelName;
32
- });
33
- };
34
- export const UIOptionsSidebarForm = (props) => {
35
- const { gridOptions, onChange } = props;
36
- const sideBar = prepareSidebarDef(gridOptions.sideBar);
37
- const renderSidebarCheckbox = (sidebarName) => {
38
- return (_jsx(CheckBox, { className: "twa:mr-3", checked: isSidebarChecked(sideBar, sidebarName), onChange: (check) => handleToolpanelsChange(sidebarName, check), children: StringExtensions.Humanize(sidebarName) }, sidebarName));
39
- };
40
- const handleToolpanelsChange = (panelName, check) => {
41
- let newPanels = sideBar?.toolPanels ?? [];
42
- if (check) {
43
- newPanels = [...newPanels, panelName];
44
- }
45
- else {
46
- newPanels = newPanels.filter((panel) => {
47
- const panelId = typeof panel === 'string' ? panel : panel.id;
48
- return panelId !== panelName;
49
- });
50
- }
51
- let hiddenByDefault = sideBar.hiddenByDefault ?? false;
52
- if (newPanels.length === 0) {
53
- hiddenByDefault = true;
54
- }
55
- const newGridOptions = {
56
- ...gridOptions,
57
- sideBar: {
58
- ...sideBar,
59
- toolPanels: newPanels,
60
- hiddenByDefault,
61
- },
62
- };
63
- props.onChange(newGridOptions);
64
- };
65
- let sidebarPosition = sideBar?.position ?? 'right';
66
- const handleSidebarPositionChange = (position) => {
67
- const newGridOptions = {
68
- ...gridOptions,
69
- sideBar: {
70
- ...sideBar,
71
- position,
72
- },
73
- };
74
- props.onChange(newGridOptions);
75
- };
76
- return (_jsxs(Box, { children: [_jsx(HelpBlock, { children: "Tool Panels" }), _jsxs(Box, { className: "twa:m-2", children: [_jsx(Flex, { className: "twa:mb-2", children: ALL_SIDEBAR_OPTIONS.map(renderSidebarCheckbox) }), _jsx(FormLayout, { columns: [{ name: 'label' }, { name: 'children' }], children: _jsx(FormRow, { label: "Position", children: _jsx(NewDropdownButton, { items: [
77
- { label: 'Left', onClick: () => handleSidebarPositionChange('left') },
78
- { label: 'Right', onClick: () => handleSidebarPositionChange('right') },
79
- ], children: sidebarPosition === 'left' ? 'Left' : 'Right' }) }) })] })] }));
80
- };
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { GridOptions } from 'ag-grid-enterprise';
3
- export declare const UIOptionsStatusbarForm: React.FunctionComponent<{
4
- gridOptions: GridOptions;
5
- onChange: (gridOptions: GridOptions) => void;
6
- }>;
@@ -1,100 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from 'react';
3
- import { ModuleManager } from '../../../../components/DragAndDropContext/ModuleManager';
4
- import HelpBlock from '../../../../components/HelpBlock';
5
- import FormLayout, { FormRow } from '../../../../components/FormLayout';
6
- import Input from '../../../../components/Input';
7
- import { ButtonNew } from '../../../Components/Buttons/ButtonNew';
8
- import { NewDropdownButton } from '../../../../components/DropdownButton';
9
- import { NocodeWizardFormBox } from '../Components/FormBox';
10
- import { Box } from '../../../../components/Flex';
11
- export const UIOptionsStatusbarForm = (props) => {
12
- const allPanels = props.gridOptions?.statusBar?.statusPanels ?? [];
13
- const panelIdtoPanel = (panelsIds, align) => panelsIds.map((panelId) => {
14
- const previousItem = allPanels.find((panel) => panel.key === panelId || panel.statusPanel === panelId);
15
- if (previousItem) {
16
- return {
17
- ...previousItem,
18
- align,
19
- };
20
- }
21
- else {
22
- const newPanel = {
23
- statusPanel: panelId,
24
- align,
25
- };
26
- return newPanel;
27
- }
28
- });
29
- const leftPanels = allPanels.filter((panel) => !panel?.align || panel.align === 'left');
30
- const centerPanels = allPanels.filter((panel) => panel.align === 'center');
31
- const rightPanels = allPanels.filter((panel) => panel.align === 'right');
32
- const handleTabChange = (tabs) => {
33
- const leftPanels = panelIdtoPanel(tabs[0].Items, 'left');
34
- const centerPanels = panelIdtoPanel(tabs[1].Items, 'center');
35
- const rightPanels = panelIdtoPanel(tabs[2].Items, 'right');
36
- const newStatusbarPanels = [...leftPanels, ...centerPanels, ...rightPanels];
37
- props.onChange({
38
- ...props.gridOptions,
39
- statusBar: {
40
- ...props.gridOptions.statusBar,
41
- statusPanels: newStatusbarPanels,
42
- },
43
- });
44
- };
45
- const disabled = false;
46
- const panelToTabItemId = (panel) => panel.key ?? panel.statusPanel;
47
- const tabs = [
48
- {
49
- Name: 'Left',
50
- Items: leftPanels.map(panelToTabItemId),
51
- },
52
- {
53
- Name: 'Center',
54
- Items: centerPanels.map(panelToTabItemId),
55
- },
56
- {
57
- Name: 'Right',
58
- Items: rightPanels.map(panelToTabItemId),
59
- },
60
- ];
61
- const allOptions = [
62
- { Id: 'agTotalRowCountComponent', Title: 'Row Count' },
63
- { Id: 'agTotalAndFilteredRowCountComponent', Title: 'Totals and Filtered Row Count' },
64
- { Id: 'agFilteredRowCountComponent', Title: 'Filtered Row Count' },
65
- { Id: 'agSelectedRowCountComponent', Title: 'Selected Row Count' },
66
- { Id: 'agAggregationComponent', Title: 'Aggregation' },
67
- ];
68
- const availableItems = allOptions;
69
- const [adaptablePanelTitle, setAdaptablePanelTitle] = React.useState('');
70
- const [adaptablePanelAlign, setAdaptablePanelAlign] = React.useState('left');
71
- const isAdaptablePanelTitleAvailable = !allPanels.some((panel) => panel.key === adaptablePanelTitle);
72
- const alignOptions = [
73
- { onClick: () => setAdaptablePanelAlign('left'), value: 'left', label: 'Left' },
74
- { onClick: () => setAdaptablePanelAlign('center'), value: 'center', label: 'Center' },
75
- { onClick: () => setAdaptablePanelAlign('right'), value: 'right', label: 'Right' },
76
- ];
77
- const handleNewAdaptablePanel = () => {
78
- const newAdaptablePanel = {
79
- statusPanel: 'AdaptableStatusPanel',
80
- align: adaptablePanelAlign,
81
- key: adaptablePanelTitle,
82
- };
83
- const newStatusbarPanels = [...allPanels, newAdaptablePanel];
84
- setAdaptablePanelTitle('');
85
- setAdaptablePanelAlign('left');
86
- props.onChange({
87
- ...props.gridOptions,
88
- statusBar: {
89
- ...props.gridOptions.statusBar,
90
- statusPanels: newStatusbarPanels,
91
- },
92
- });
93
- };
94
- return (_jsxs(Box, { children: [_jsx(HelpBlock, { children: "Status Bar" }), _jsxs(Box, { className: "twa:p-2", children: [_jsxs(NocodeWizardFormBox, { children: [_jsx(Box, { as: "b", children: "Create Adaptable Statusbar Panel" }), _jsxs(FormLayout, { className: "twa:mt-2", children: [_jsx(FormRow, { label: "Panel Name", children: _jsx(Input, { value: adaptablePanelTitle, placeholder: 'Adaptable Panel Name', onChange: (event) => setAdaptablePanelTitle(event.target.value) }) }), _jsx(FormRow, { label: "Align", children: _jsx(NewDropdownButton, { items: alignOptions, children: alignOptions.find((option) => option.value === adaptablePanelAlign)?.label }) }), _jsxs(FormRow, { label: "", children: [_jsx(ButtonNew, { disabled: !isAdaptablePanelTitleAvailable, onClick: handleNewAdaptablePanel, children: "Add" }), !isAdaptablePanelTitleAvailable && (_jsx(Box, { className: "twa:mt-2 twa:text-destructive", children: "Adaptable panel name must be unique." }))] })] })] }), _jsx(ModuleManager, { permittedActions: {
95
- createTab: false,
96
- dragAndDropTab: false,
97
- deleteTab: false,
98
- editTabName: false,
99
- }, onTabsChange: handleTabChange, disabled: disabled, tabs: tabs, availableItems: availableItems, tabsTitle: 'Status Bar Panels', unusedPanelTitle: "Ag Grid Status Bar Panels", dragItemText: "Drag into a Status Bar Panel below" })] })] }));
100
- };
@@ -1,11 +0,0 @@
1
- import { GridOptions } from 'ag-grid-enterprise';
2
- import * as React from 'react';
3
- import { AdaptableOptions } from '../../../../types';
4
- interface UIElementsOptionsProps {
5
- adaptableOptions: AdaptableOptions;
6
- gridOptions: GridOptions;
7
- onChangedAdaptableOptions: (adaptableOptions: AdaptableOptions) => void;
8
- onChangedGridOptions: (gridOptions: GridOptions) => void;
9
- }
10
- export declare const UIElementsForm: React.FunctionComponent<UIElementsOptionsProps>;
11
- export {};
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Tabs } from '../../../../components/Tabs';
3
- import { UIOptionsSidebarForm } from './UIOptionsSidebarForm';
4
- import { UIOptionsStatusbarForm } from './UIOptionsStatusbarForm';
5
- import { Box } from '../../../../components/Flex';
6
- export const UIElementsForm = (props) => {
7
- return (_jsx(Box, { className: "twa:p-2", children: _jsxs(Tabs, { children: [_jsx(Tabs.Tab, { children: "Tool Panel" }), _jsx(Tabs.Tab, { children: "Status Bar" }), _jsx(Tabs.Content, { children: _jsx(UIOptionsSidebarForm, { gridOptions: props.gridOptions, onChange: props.onChangedGridOptions }) }), _jsx(Tabs.Content, { children: _jsx(UIOptionsStatusbarForm, { gridOptions: props.gridOptions, onChange: props.onChangedGridOptions }) }), ' '] }) }));
8
- };
@@ -1,2 +0,0 @@
1
- import { ConfigurationWizard } from './ConfigurationWizard';
2
- export default ConfigurationWizard;
@@ -1,2 +0,0 @@
1
- import { ConfigurationWizard } from './ConfigurationWizard';
2
- export default ConfigurationWizard;
@@ -1,21 +0,0 @@
1
- declare const useSelection: (columns: {
2
- [key: string]: any;
3
- }[], defaultValue: boolean | {
4
- [key: string]: boolean;
5
- }, fieldName: string | null, changeListeners?: {
6
- onChange?: (column: any, flag: boolean) => void;
7
- onBatchChange?: (flag: boolean) => void;
8
- }) => {
9
- selected: {
10
- [key: string]: boolean;
11
- };
12
- isSelected: (field: string) => boolean;
13
- isAllSelected: () => boolean;
14
- isNoneSelected: () => boolean;
15
- selectColumn: (field: string) => void;
16
- deselectColumn: (field: string) => void;
17
- toggleColumn: (field: string) => void;
18
- deselectAll: () => void;
19
- selectAll: () => void;
20
- };
21
- export default useSelection;