@adaptabletools/adaptable 16.0.9 → 16.1.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 (260) hide show
  1. package/agGrid.d.ts +4 -0
  2. package/agGrid.js +4 -0
  3. package/base.css +16 -14
  4. package/base.css.map +1 -1
  5. package/bundle.cjs.js +171 -170
  6. package/index.css +18 -14
  7. package/index.css.map +1 -1
  8. package/package.json +1 -1
  9. package/publishTimestamp.d.ts +1 -1
  10. package/publishTimestamp.js +1 -1
  11. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +12 -1
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -2
  13. package/src/AdaptableOptions/ChartingOptions.d.ts +48 -3
  14. package/src/AdaptableOptions/ColumnOptions.d.ts +17 -0
  15. package/src/AdaptableOptions/DataImportOptions.d.ts +57 -0
  16. package/src/AdaptableOptions/MenuOptions.d.ts +147 -8
  17. package/src/AdaptableOptions/MenuOptions.js +75 -0
  18. package/src/AdaptableOptions/NotesOptions.d.ts +23 -0
  19. package/src/AdaptableOptions/QuickSearchOptions.d.ts +8 -0
  20. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -0
  21. package/src/Api/AdaptableApi.d.ts +8 -3
  22. package/src/Api/ChartingApi.d.ts +30 -0
  23. package/src/Api/ColumnApi.d.ts +5 -0
  24. package/src/Api/ConfigApi.d.ts +4 -3
  25. package/src/Api/DataImportApi.d.ts +9 -0
  26. package/src/Api/Implementation/AdaptableApiImpl.d.ts +4 -2
  27. package/src/Api/Implementation/AdaptableApiImpl.js +4 -2
  28. package/src/Api/Implementation/ApiBase.d.ts +2 -2
  29. package/src/Api/Implementation/ApiBase.js +2 -2
  30. package/src/Api/Implementation/ChartingApiImpl.d.ts +8 -2
  31. package/src/Api/Implementation/ChartingApiImpl.js +64 -0
  32. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  33. package/src/Api/Implementation/ColumnApiImpl.js +4 -0
  34. package/src/Api/Implementation/ConfigApiImpl.d.ts +3 -2
  35. package/src/Api/Implementation/ConfigApiImpl.js +9 -9
  36. package/src/Api/Implementation/DataImportApiImpl.d.ts +10 -0
  37. package/src/Api/Implementation/DataImportApiImpl.js +14 -0
  38. package/src/Api/Implementation/ExpressionApiImpl.js +1 -1
  39. package/src/Api/Implementation/NotesApiImpl.d.ts +20 -0
  40. package/src/Api/Implementation/NotesApiImpl.js +58 -0
  41. package/src/Api/Implementation/OptionsApiImpl.d.ts +3 -2
  42. package/src/Api/Implementation/OptionsApiImpl.js +5 -2
  43. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +7 -1
  44. package/src/Api/Implementation/UserInterfaceApiImpl.js +30 -0
  45. package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
  46. package/src/Api/Internal/AdaptableInternalApi.js +0 -6
  47. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  48. package/src/Api/Internal/CalculatedColumnInternalApi.js +12 -0
  49. package/src/Api/Internal/ChartingInternalApi.d.ts +7 -0
  50. package/src/Api/Internal/ChartingInternalApi.js +45 -0
  51. package/src/Api/Internal/ColumnInternalApi.d.ts +3 -0
  52. package/src/Api/Internal/ColumnInternalApi.js +3 -0
  53. package/src/Api/Internal/DataImportInternalApi.d.ts +4 -0
  54. package/src/Api/Internal/DataImportInternalApi.js +49 -0
  55. package/src/Api/NotesAPi.d.ts +50 -0
  56. package/src/Api/NotesAPi.js +2 -0
  57. package/src/Api/OptionsApi.d.ts +8 -3
  58. package/src/Api/UserInterfaceApi.d.ts +22 -0
  59. package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
  60. package/src/PredefinedConfig/ChartingState.d.ts +22 -0
  61. package/src/PredefinedConfig/ChartingState.js +9 -0
  62. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +12 -0
  63. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  64. package/src/PredefinedConfig/Common/Menu.d.ts +2 -7
  65. package/src/PredefinedConfig/Common/Types.d.ts +4 -4
  66. package/src/PredefinedConfig/Common/Types.js +3 -1
  67. package/src/PredefinedConfig/NotesState.d.ts +59 -0
  68. package/src/PredefinedConfig/NotesState.js +2 -0
  69. package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
  70. package/src/PredefinedConfig/SystemState.d.ts +5 -3
  71. package/src/Redux/ActionsReducers/ChartingRedux.d.ts +28 -3
  72. package/src/Redux/ActionsReducers/ChartingRedux.js +52 -5
  73. package/src/Redux/ActionsReducers/NotesRedux.d.ts +39 -0
  74. package/src/Redux/ActionsReducers/NotesRedux.js +88 -0
  75. package/src/Redux/ActionsReducers/SystemRedux.d.ts +10 -10
  76. package/src/Redux/ActionsReducers/SystemRedux.js +23 -22
  77. package/src/Redux/Store/AdaptableStore.js +19 -11
  78. package/src/Strategy/ChartingModule.d.ts +5 -2
  79. package/src/Strategy/ChartingModule.js +28 -7
  80. package/src/Strategy/ColumnInfoModule.d.ts +11 -0
  81. package/src/Strategy/ColumnInfoModule.js +47 -0
  82. package/src/Strategy/DataImportModule.d.ts +11 -0
  83. package/src/Strategy/DataImportModule.js +36 -0
  84. package/src/Strategy/DataSetModule.js +1 -0
  85. package/src/Strategy/Fdc3Module.js +3 -2
  86. package/src/Strategy/FilterModule.js +5 -0
  87. package/src/Strategy/GridInfoModule.js +13 -82
  88. package/src/Strategy/Interface/IModule.d.ts +2 -0
  89. package/src/Strategy/LayoutModule.js +1 -0
  90. package/src/Strategy/{CommentsModule.d.ts → NotesModule.d.ts} +6 -6
  91. package/src/Strategy/{CommentsModule.js → NotesModule.js} +41 -41
  92. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.d.ts +2 -0
  93. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +20 -18
  94. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  95. package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
  96. package/src/Utilities/Constants/ModuleConstants.d.ts +9 -3
  97. package/src/Utilities/Constants/ModuleConstants.js +11 -5
  98. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +5 -1
  99. package/src/Utilities/Defaults/DefaultSettingsPanel.js +3 -1
  100. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -2
  101. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +36 -10
  102. package/src/Utilities/Extensions/ObjectExtensions.d.ts +1 -0
  103. package/src/Utilities/Extensions/ObjectExtensions.js +5 -1
  104. package/src/Utilities/Helpers/AdaptableHelper.js +2 -0
  105. package/src/Utilities/Interface/MessagePopups.d.ts +2 -2
  106. package/src/Utilities/ObjectFactory.d.ts +2 -1
  107. package/src/Utilities/ObjectFactory.js +10 -2
  108. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +4 -0
  109. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
  110. package/src/Utilities/Services/ModuleService.js +2 -0
  111. package/src/Utilities/Services/QueryLanguageService.d.ts +1 -2
  112. package/src/Utilities/Services/QueryLanguageService.js +1 -6
  113. package/src/Utilities/Services/ValidationService.js +15 -5
  114. package/src/View/AdaptableView.js +2 -2
  115. package/src/View/AdaptableViewFactory.js +7 -3
  116. package/src/View/Alert/Wizard/AlertButtonsEditor.js +20 -4
  117. package/src/View/Alert/Wizard/AlertWizard.js +14 -7
  118. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
  119. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +2 -0
  120. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +25 -46
  121. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +8 -0
  122. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +19 -0
  123. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +2 -0
  124. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +44 -3
  125. package/src/View/CalculatedColumn/utils.d.ts +2 -0
  126. package/src/View/CalculatedColumn/utils.js +14 -0
  127. package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.d.ts +6 -0
  128. package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +47 -0
  129. package/src/View/Charting/ChartingWizard/{PreviewChartSection.d.ts → AgChargingWizard/PreviewChartSection.d.ts} +1 -1
  130. package/src/View/Charting/ChartingWizard/{PreviewChartSection.js → AgChargingWizard/PreviewChartSection.js} +2 -2
  131. package/src/View/Charting/ChartingWizard/{SettingsSection.d.ts → AgChargingWizard/SettingsSection.d.ts} +1 -1
  132. package/src/View/Charting/ChartingWizard/{SettingsSection.js → AgChargingWizard/SettingsSection.js} +4 -4
  133. package/src/View/Charting/ChartingWizard/AgChargingWizard/index.d.ts +1 -0
  134. package/src/View/Charting/ChartingWizard/AgChargingWizard/index.js +4 -0
  135. package/src/View/Charting/ChartingWizard/ChartingWizard.d.ts +4 -3
  136. package/src/View/Charting/ChartingWizard/ChartingWizard.js +12 -39
  137. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.d.ts +6 -0
  138. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +59 -0
  139. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.d.ts +9 -0
  140. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +25 -0
  141. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.d.ts +1 -0
  142. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.js +4 -0
  143. package/src/View/Charting/ChartingWizard/index.d.ts +1 -0
  144. package/src/View/Charting/ChartingWizard/index.js +4 -0
  145. package/src/View/Charting/DeleteChartButton.d.ts +2 -1
  146. package/src/View/Charting/DeleteChartButton.js +4 -2
  147. package/src/View/Charting/EditChartButton.d.ts +2 -1
  148. package/src/View/Charting/ShowChartButton.js +47 -16
  149. package/src/View/Charting/{useChartState.d.ts → useAgChartState.d.ts} +1 -1
  150. package/src/View/Charting/{useChartState.js → useAgChartState.js} +7 -7
  151. package/src/View/Charting/useChartingElements.d.ts +2 -1
  152. package/src/View/Charting/useChartingElements.js +36 -26
  153. package/src/View/Charting/useExternalChartState.d.ts +7 -0
  154. package/src/View/Charting/useExternalChartState.js +56 -0
  155. package/src/View/ColumnInfo/ColumnInfo.d.ts +5 -0
  156. package/src/View/ColumnInfo/ColumnInfo.js +185 -0
  157. package/src/View/ColumnInfo/ColumnInfoPopup.d.ts +3 -0
  158. package/src/View/ColumnInfo/ColumnInfoPopup.js +15 -0
  159. package/src/View/Components/AdaptableIconSelector/index.d.ts +1 -1
  160. package/src/View/Components/ExternalRenderer.d.ts +1 -0
  161. package/src/View/Components/ExternalRenderer.js +2 -1
  162. package/src/View/Components/Panels/PanelWithImage.js +3 -3
  163. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +1 -1
  164. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +4 -1
  165. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +3 -0
  166. package/src/View/Components/Popups/WindowPopups/WindowPopups.d.ts +1 -0
  167. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +12 -2
  168. package/src/View/Components/Selectors/ColumnSelector.js +1 -1
  169. package/src/View/DataImport/DataImportPopup.d.ts +6 -0
  170. package/src/View/DataImport/DataImportPopup.js +32 -0
  171. package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +8 -0
  172. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +176 -0
  173. package/src/View/DataImport/DataImportWizard/index.d.ts +1 -0
  174. package/src/View/DataImport/DataImportWizard/index.js +4 -0
  175. package/src/View/DataImport/DataImportWizard/sections/DataPreview.d.ts +10 -0
  176. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +154 -0
  177. package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +9 -0
  178. package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +24 -0
  179. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.d.ts +8 -0
  180. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +11 -0
  181. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.d.ts +13 -0
  182. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +23 -0
  183. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.d.ts +8 -0
  184. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +13 -0
  185. package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.d.ts +1 -0
  186. package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.js +4 -0
  187. package/src/View/DataImport/DataImportWizard/sections/ValidationSection.d.ts +11 -0
  188. package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +35 -0
  189. package/src/View/DataImport/systemFileHandlers.d.ts +3 -0
  190. package/src/View/DataImport/systemFileHandlers.js +44 -0
  191. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +6 -1
  192. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
  193. package/src/View/GridInfo/{AdaptableObjectsSummary.js → GridInfoPopup/AdaptableObjectsSummary.js} +2 -2
  194. package/src/View/GridInfo/{AdaptableOptionsComponent.d.ts → GridInfoPopup/AdaptableOptionsComponent.d.ts} +1 -1
  195. package/src/View/GridInfo/{AdaptableOptionsComponent.js → GridInfoPopup/AdaptableOptionsComponent.js} +6 -6
  196. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.d.ts +6 -0
  197. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +82 -0
  198. package/src/View/GridInfo/GridInfoPopup/index.d.ts +1 -0
  199. package/src/View/GridInfo/GridInfoPopup/index.js +4 -0
  200. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  201. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
  202. package/src/View/Notes/NotesListing.d.ts +2 -0
  203. package/src/View/{Comments/CommentListing.js → Notes/NotesListing.js} +13 -14
  204. package/src/View/Notes/NotesPopup.d.ts +2 -0
  205. package/src/View/{Comments/CommentPopup.js → Notes/NotesPopup.js} +21 -21
  206. package/src/View/Shortcut/Wizard/ShortcutWizard.js +6 -1
  207. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +14 -0
  208. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
  209. package/src/View/Wizard/OnePageWizards.d.ts +1 -0
  210. package/src/View/Wizard/OnePageWizards.js +2 -2
  211. package/src/agGrid/Adaptable.d.ts +1 -1
  212. package/src/agGrid/Adaptable.js +28 -16
  213. package/src/agGrid/agGridHelper.d.ts +3 -3
  214. package/src/agGrid/agGridHelper.js +58 -30
  215. package/src/agGrid/agGridMenuHelper.d.ts +20 -9
  216. package/src/agGrid/agGridMenuHelper.js +292 -135
  217. package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
  218. package/src/components/ExpressionEditor/EditorInput.js +15 -6
  219. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -10
  220. package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +5 -5
  221. package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.d.ts +2 -0
  222. package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.js +25 -0
  223. package/src/components/ExpressionEditor/index.d.ts +1 -1
  224. package/src/components/ExpressionEditor/index.js +2 -1
  225. package/src/components/FileDroppable/index.d.ts +2 -1
  226. package/src/components/FileDroppable/index.js +8 -7
  227. package/src/components/icons/import.d.ts +3 -0
  228. package/src/components/icons/import.js +7 -0
  229. package/src/components/icons/index.js +4 -0
  230. package/src/components/icons/note.d.ts +3 -0
  231. package/src/components/icons/note.js +7 -0
  232. package/src/metamodel/adaptable.metamodel.d.ts +243 -61
  233. package/src/metamodel/adaptable.metamodel.js +1 -1
  234. package/src/parser/src/index.d.ts +2 -2
  235. package/src/parser/src/index.js +4 -4
  236. package/src/parser/src/tokenizer.d.ts +1 -1
  237. package/src/parser/src/tokenizer.js +14 -6
  238. package/src/parser/src/types.d.ts +2 -2
  239. package/src/types.d.ts +9 -8
  240. package/version.d.ts +1 -1
  241. package/version.js +1 -1
  242. package/src/AdaptableOptions/CommentsOptions.d.ts +0 -23
  243. package/src/Api/CommentsApi.d.ts +0 -50
  244. package/src/Api/Implementation/CommentsApiImpl.d.ts +0 -20
  245. package/src/Api/Implementation/CommentsApiImpl.js +0 -58
  246. package/src/PredefinedConfig/CommentsState.d.ts +0 -59
  247. package/src/Redux/ActionsReducers/CommentsRedux.d.ts +0 -39
  248. package/src/Redux/ActionsReducers/CommentsRedux.js +0 -92
  249. package/src/View/Comments/CommentListing.d.ts +0 -2
  250. package/src/View/Comments/CommentPopup.d.ts +0 -2
  251. package/src/View/GridInfo/ColumnInfoComponent.d.ts +0 -20
  252. package/src/View/GridInfo/ColumnInfoComponent.js +0 -176
  253. package/src/View/GridInfo/GridInfoPopup.d.ts +0 -16
  254. package/src/View/GridInfo/GridInfoPopup.js +0 -117
  255. package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -16
  256. package/src/View/GridInfo/GridOptionsComponent.js +0 -36
  257. /package/src/AdaptableOptions/{CommentsOptions.js → DataImportOptions.js} +0 -0
  258. /package/src/{Api/CommentsApi.js → AdaptableOptions/NotesOptions.js} +0 -0
  259. /package/src/{PredefinedConfig/CommentsState.js → Api/DataImportApi.js} +0 -0
  260. /package/src/View/GridInfo/{AdaptableObjectsSummary.d.ts → GridInfoPopup/AdaptableObjectsSummary.d.ts} +0 -0
@@ -1,176 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ColumnInfoComponent = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const rebass_1 = require("rebass");
7
- const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
8
- const CustomSortSummary_1 = require("../CustomSort/CustomSortSummary");
9
- const FilterSummary_1 = require("../Filter/FilterSummary");
10
- const PlusMinusSummary_1 = require("../PlusMinus/PlusMinusSummary");
11
- const FormatColumnSummary_1 = require("../FormatColumn/FormatColumnSummary");
12
- const CalculatedColumnSummary_1 = require("../CalculatedColumn/CalculatedColumnSummary");
13
- const Enums_1 = require("../../PredefinedConfig/Common/Enums");
14
- const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
15
- const ColumnSelector_1 = require("../Components/Selectors/ColumnSelector");
16
- const GeneralConstants = tslib_1.__importStar(require("../../Utilities/Constants/GeneralConstants"));
17
- const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
18
- const FreeTextColumnSummary_1 = require("../FreeTextColumn/FreeTextColumnSummary");
19
- const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
20
- const InfiniteTable_1 = require("../../components/InfiniteTable");
21
- class ColumnInfoComponent extends React.Component {
22
- constructor(props) {
23
- super(props);
24
- this.state = { SelectedColumn: props.column };
25
- }
26
- render() {
27
- let colItems = [
28
- { Content: 'Module', Size: 3 },
29
- { Content: 'Summary', Size: 7 },
30
- { Content: '', Size: 2 },
31
- ];
32
- let selectedColumnId = this.state.SelectedColumn
33
- ? this.state.SelectedColumn.columnId
34
- : null;
35
- const keyValuePairs = [
36
- {
37
- Key: 'Column Id',
38
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.columnId : null,
39
- },
40
- {
41
- Key: 'Header',
42
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.friendlyName : null,
43
- },
44
- {
45
- Key: 'Aggregatable',
46
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.aggregatable : null,
47
- },
48
- {
49
- Key: 'DataType',
50
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.dataType : null,
51
- },
52
- {
53
- Key: 'Groupable',
54
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.groupable : null,
55
- },
56
- {
57
- Key: 'Filterable',
58
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.filterable : null,
59
- },
60
- {
61
- Key: 'Hideable',
62
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.hideable : null,
63
- },
64
- {
65
- Key: 'Editable',
66
- Value: this.state.SelectedColumn ? !this.state.SelectedColumn.IsReadOnly : null,
67
- },
68
- {
69
- Key: 'Moveable',
70
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.moveable : null,
71
- },
72
- {
73
- Key: 'Pivotable',
74
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.pivotable : null,
75
- },
76
- {
77
- Key: 'Queryable',
78
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.queryable : null,
79
- },
80
- {
81
- Key: 'Sortable',
82
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.sortable : null,
83
- },
84
- {
85
- Key: 'Visible',
86
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.visible : null,
87
- },
88
- {
89
- Key: 'Grouped',
90
- Value: this.state.SelectedColumn ? this.state.SelectedColumn.isGrouped : null,
91
- },
92
- ]
93
- .map((keyValuePair) => {
94
- return {
95
- Key: keyValuePair.Key,
96
- Value: keyValuePair.Value === true ? 'Yes' : keyValuePair.Value,
97
- };
98
- })
99
- .filter((x) => x.Value);
100
- const columnsMap = {
101
- Key: { field: 'Key', header: 'Property', defaultFlex: 1 },
102
- Value: { field: 'Value', header: 'Value', defaultFlex: 3 },
103
- };
104
- let moduleService = this.props.api.internalApi.getModuleService();
105
- let summaries = [];
106
- if (this.state.SelectedColumn) {
107
- if (this.isModuleAvailable(ModuleConstants.CustomSortModuleId)) {
108
- summaries.push(React.createElement("div", { key: ModuleConstants.CustomSortModuleId, className: this.isModuleReadOnly(ModuleConstants.CustomSortModuleId)
109
- ? GeneralConstants.READ_ONLY_STYLE
110
- : '' },
111
- React.createElement(CustomSortSummary_1.CustomSortSummary, { key: ModuleConstants.CustomSortModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.CustomSortModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.CustomSortModuleId) })));
112
- }
113
- if (this.isModuleAvailable(ModuleConstants.FilterModuleId)) {
114
- summaries.push(React.createElement("div", { key: ModuleConstants.FilterModuleId, className: this.isModuleReadOnly(ModuleConstants.FilterModuleId)
115
- ? GeneralConstants.READ_ONLY_STYLE
116
- : '' },
117
- React.createElement(FilterSummary_1.FilterSummary, { key: ModuleConstants.FilterModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.FilterModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.FilterModuleId) })));
118
- }
119
- if (this.isModuleAvailable(ModuleConstants.FormatColumnModuleId)) {
120
- summaries.push(React.createElement("div", { key: ModuleConstants.FormatColumnModuleId, className: this.isModuleReadOnly(ModuleConstants.FormatColumnModuleId)
121
- ? GeneralConstants.READ_ONLY_STYLE
122
- : '' },
123
- React.createElement(FormatColumnSummary_1.FormatColumnSummary, { key: ModuleConstants.FormatColumnModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.FormatColumnModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.FormatColumnModuleId) })));
124
- }
125
- if (this.isModuleAvailable(ModuleConstants.FreeTextColumnModuleId)) {
126
- summaries.push(React.createElement("div", { key: ModuleConstants.FreeTextColumnModuleId, className: this.isModuleReadOnly(ModuleConstants.FreeTextColumnModuleId)
127
- ? GeneralConstants.READ_ONLY_STYLE
128
- : '' },
129
- 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) })));
130
- }
131
- if (this.isModuleAvailable(ModuleConstants.PlusMinusModuleId) &&
132
- this.state.SelectedColumn.dataType == 'Number') {
133
- summaries.push(React.createElement("div", { key: ModuleConstants.PlusMinusModuleId, className: this.isModuleReadOnly(ModuleConstants.PlusMinusModuleId)
134
- ? GeneralConstants.READ_ONLY_STYLE
135
- : '' },
136
- React.createElement(PlusMinusSummary_1.PlusMinusSummary, { key: ModuleConstants.PlusMinusModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.PlusMinusModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.PlusMinusModuleId) })));
137
- }
138
- if (this.isModuleAvailable(ModuleConstants.CalculatedColumnModuleId) &&
139
- ArrayExtensions_1.ArrayExtensions.ContainsItem(this.props.api.calculatedColumnApi.getCalculatedColumns().map((cc) => cc.ColumnId), this.state.SelectedColumn.columnId)) {
140
- summaries.push(React.createElement("div", { key: ModuleConstants.CalculatedColumnModuleId, className: this.isModuleReadOnly(ModuleConstants.CalculatedColumnModuleId)
141
- ? GeneralConstants.READ_ONLY_STYLE
142
- : '' },
143
- React.createElement(CalculatedColumnSummary_1.CalculatedColumnSummary, { key: ModuleConstants.CalculatedColumnModuleId,
144
- // @ts-ignore //TODO fix this
145
- summarisedColumn: this.state.SelectedColumn, accessLevel: this.getAccessLevel(ModuleConstants.CalculatedColumnModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.CalculatedColumnModuleId) })));
146
- }
147
- }
148
- return (React.createElement(Panel_1.default, { flex: 1, header: "Column Info", margin: 2, "data-name": "column-component" },
149
- React.createElement(rebass_1.Flex, { height: "100%", flexDirection: "column" },
150
- React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", marginBottom: 2 },
151
- React.createElement(rebass_1.Box, { flex: 1, marginLeft: 2 },
152
- React.createElement(ColumnSelector_1.ColumnSelector, { SelectedColumnIds: [selectedColumnId], ColumnList: this.props.api.columnApi.getColumns(), onColumnChange: (columns) => this.onColumnSelectedChanged(columns), SelectionMode: Enums_1.SelectionMode.Single }))),
153
- React.createElement(rebass_1.Flex, { flex: 1, style: { overflow: 'auto', width: '100%' } }, this.state.SelectedColumn && (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { style: { width: '100%' }, colItems: colItems, items: summaries }))),
154
- React.createElement(rebass_1.Box, { flex: 1, mt: 2 }, this.state.SelectedColumn && (React.createElement(InfiniteTable_1.DataSource, { data: keyValuePairs, primaryKey: "Key" },
155
- React.createElement(InfiniteTable_1.InfiniteTable, { domProps: {
156
- style: {
157
- height: '100%',
158
- },
159
- }, columns: columnsMap })))))));
160
- }
161
- onColumnSelectedChanged(columns) {
162
- this.setState({ SelectedColumn: columns.length > 0 ? columns[0] : null });
163
- }
164
- isModuleAvailable(module) {
165
- return this.props.api.internalApi.getModuleService().getModuleById(module).isModuleAvailable();
166
- }
167
- isModuleReadOnly(module) {
168
- return this.getAccessLevel(module) == 'ReadOnly';
169
- }
170
- getAccessLevel(module) {
171
- return this.props.api.internalApi
172
- .getEntitlementService()
173
- .getEntitlementAccessLevelForModule(module);
174
- }
175
- }
176
- exports.ColumnInfoComponent = ColumnInfoComponent;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
3
- import { AdaptableColumn } from '../../types';
4
- import { GridInfoSection } from '../../AdaptableOptions/UserInterfaceOptions';
5
- interface GridInfoPopupProps extends ModuleViewPopupProps<any> {
6
- }
7
- export interface AdaptableGridInfoState {
8
- ActiveTab: GridInfoSection;
9
- CurrentColumn: AdaptableColumn | undefined;
10
- IsBaseOptionsMinimised: boolean;
11
- IsContainerOptionsMinimised: boolean;
12
- IsSearchOptionsMinimised: boolean;
13
- IsLayoutOptionsMinimised: boolean;
14
- }
15
- export declare const GridInfoPopup: (props: GridInfoPopupProps) => JSX.Element;
16
- export {};
@@ -1,117 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GridInfoPopup = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
7
- const rebass_1 = require("rebass");
8
- const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
9
- const Radio_1 = tslib_1.__importDefault(require("../../components/Radio"));
10
- const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
11
- const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
12
- const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
13
- const AdaptablePopover_1 = require("../AdaptablePopover");
14
- const version_1 = tslib_1.__importDefault(require("../../../version"));
15
- const ColumnInfoComponent_1 = require("./ColumnInfoComponent");
16
- const AdaptableOptionsComponent_1 = require("./AdaptableOptionsComponent");
17
- const AdaptableObjectsSummary_1 = require("./AdaptableObjectsSummary");
18
- const GridInfoPopup = (props) => {
19
- var _a, _b, _c;
20
- const entitlementService = props.api.internalApi.getEntitlementService();
21
- const showGridSummary = entitlementService.isGridInfoSectionVisible('GridSummary');
22
- const showAdaptableOptions = entitlementService.isGridInfoSectionVisible('AdaptableOptions');
23
- const showColumnInfo = entitlementService.isGridInfoSectionVisible('ColumnInfo');
24
- /**
25
- * Because it is not associated with a module yet, setting this flag to true.
26
- * Needed for the logic whether to show radio buttons (buttons.length >= 2)
27
- */
28
- const showAdaptableObjects = entitlementService.isGridInfoSectionVisible('AdaptableObjects');
29
- const [state, setState] = React.useState({
30
- ActiveTab: ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.column)
31
- ? 'ColumnInfo'
32
- : showGridSummary
33
- ? 'GridSummary'
34
- : showAdaptableOptions
35
- ? 'AdaptableOptions'
36
- : 'ColumnInfo',
37
- CurrentColumn: (_c = (_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.column) !== null && _c !== void 0 ? _c : undefined,
38
- IsBaseOptionsMinimised: true,
39
- IsContainerOptionsMinimised: true,
40
- IsSearchOptionsMinimised: true,
41
- IsLayoutOptionsMinimised: true,
42
- });
43
- const updateState = (partialState) => {
44
- setState((state) => {
45
- return Object.assign(Object.assign({}, state), partialState);
46
- });
47
- };
48
- const CreateGridSummaries = (colItems) => {
49
- var _a;
50
- const returnRows = [];
51
- const calcColumns = props.api.calculatedColumnApi
52
- .getCalculatedColumns()
53
- .map((c) => c.ColumnId);
54
- const actionColumns = props.api.actionColumnApi
55
- .getActionColumns()
56
- .map((ac) => ac.columnId);
57
- const freeTextColumns = props.api.freeTextColumnApi
58
- .getFreeTextColumns()
59
- .map((c) => c.ColumnId);
60
- const columnFilterDescription = props.api.filterApi.internalApi.columnFiltersToString(props.api.filterApi.getColumnFilters());
61
- const sorts = ArrayExtensions_1.default.IsNotNullOrEmpty(props.api.gridApi.getColumnSorts())
62
- ? props.api.gridApi.getColumnSorts().map((gs) => {
63
- return props.api.columnApi.getFriendlyNameForColumnId(gs.ColumnId) + ': ' + gs.SortOrder;
64
- })
65
- : null;
66
- const selectedRowInfo = props.api.gridApi.getSelectedRowInfo();
67
- if ((_a = props.api.optionsApi.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.showAdapTableVersion) {
68
- returnRows.push(createReadOnlyColItem(colItems, 'AdapTable Version', version_1.default));
69
- }
70
- returnRows.push(createReadOnlyColItem(colItems, 'Sorted Columns', ArrayExtensions_1.default.IsNotNullOrEmpty(sorts) ? sorts.join('; ') : 'None'));
71
- returnRows.push(createReadOnlyColItem(colItems, 'Column Filters', columnFilterDescription));
72
- returnRows.push(createReadOnlyColItem(colItems, 'All Rows', props.api.gridApi.getRowCount()));
73
- returnRows.push(createReadOnlyColItem(colItems, 'Visible Rows', props.api.gridApi.getVisibleRowCount()));
74
- returnRows.push(createReadOnlyColItem(colItems, 'Selected Rows', selectedRowInfo === null || selectedRowInfo === void 0 ? void 0 : selectedRowInfo.gridRows.length));
75
- returnRows.push(createReadOnlyColItem(colItems, 'Visible Selected Rows', selectedRowInfo === null || selectedRowInfo === void 0 ? void 0 : selectedRowInfo.gridRows.filter((gr) => { var _a; return ((_a = gr.rowNode) === null || _a === void 0 ? void 0 : _a.displayed) == true; }).length));
76
- returnRows.push(createReadOnlyColItem(colItems, 'All Columns', props.api.gridApi.getColumnCount()));
77
- returnRows.push(createReadOnlyColItem(colItems, 'Visible Columns', props.api.gridApi.getVisibleColumnCount()));
78
- returnRows.push(createReadOnlyColItem(colItems, 'Calculated Columns', ArrayExtensions_1.default.IsNotNullOrEmpty(calcColumns) ? calcColumns : 'None'));
79
- returnRows.push(createReadOnlyColItem(colItems, 'Free Text Columns', ArrayExtensions_1.default.IsNotNullOrEmpty(freeTextColumns) ? freeTextColumns : 'None'));
80
- returnRows.push(createReadOnlyColItem(colItems, 'Action Columns', ArrayExtensions_1.default.IsNotNullOrEmpty(actionColumns) ? actionColumns : 'None'));
81
- return returnRows;
82
- };
83
- const createReadOnlyColItem = (colItems, item1, item2, item3) => {
84
- let rowColItems = Helper_1.default.cloneObject(colItems);
85
- rowColItems[0].Content = item1;
86
- rowColItems[1].Content = item2;
87
- if (item3) {
88
- let infoButton = React.createElement(AdaptablePopover_1.AdaptablePopover, { headerText: null, bodyText: [item3] });
89
- rowColItems[2].Content = infoButton;
90
- }
91
- return rowColItems;
92
- };
93
- const onShowGridSummaryChanged = (name) => {
94
- updateState({ ActiveTab: name });
95
- };
96
- let propValueColItems = [
97
- { Content: 'Property', Size: 5 },
98
- { Content: 'Value', Size: 7 },
99
- ];
100
- let gridSummaries = CreateGridSummaries(propValueColItems).map((x, index) => {
101
- return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { key: index, colItems: x });
102
- });
103
- const showRadioButtons = [showGridSummary, showAdaptableOptions, showColumnInfo, showAdaptableObjects].filter((item) => item).length > 1;
104
- const baseClassName = 'ab-GridInfo';
105
- return (React.createElement(PopupPanel_1.PopupPanel, { className: baseClassName, headerText: 'Grid Info', glyphicon: 'info' },
106
- React.createElement(rebass_1.Flex, { flexDirection: "column", flex: 1, height: "100%" },
107
- React.createElement(rebass_1.Flex, { className: `${baseClassName}__header`, marginBottom: 2, padding: 3 }, showRadioButtons && (React.createElement(React.Fragment, null,
108
- showGridSummary && (React.createElement(Radio_1.default, { className: `${baseClassName}__option-radio`, "data-name": "radioButton-GridSummary", marginRight: 3, value: "GridSummary", checked: state.ActiveTab == 'GridSummary', onChange: (_, e) => onShowGridSummaryChanged('GridSummary') }, "Summary")),
109
- showAdaptableOptions && (React.createElement(Radio_1.default, { "data-name": "radioButton-AdaptableOptions", marginRight: 3, value: "AdaptableOptions", checked: state.ActiveTab == 'AdaptableOptions', onChange: (_, e) => onShowGridSummaryChanged('AdaptableOptions') }, "Options")),
110
- showColumnInfo && (React.createElement(Radio_1.default, { "data-name": "radioButton-Column", marginRight: 3, value: "Column", checked: state.ActiveTab == 'ColumnInfo', onChange: (_, e) => onShowGridSummaryChanged('ColumnInfo') }, "Columns")),
111
- showAdaptableObjects && (React.createElement(Radio_1.default, { "data-name": "radioButton-Column", value: "Column", checked: state.ActiveTab == 'AdaptableObjects', onChange: (_, e) => onShowGridSummaryChanged('AdaptableObjects') }, "Objects"))))),
112
- state.ActiveTab == 'GridSummary' && (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { margin: 2, colItems: propValueColItems, items: gridSummaries })),
113
- state.ActiveTab == 'AdaptableOptions' && React.createElement(AdaptableOptionsComponent_1.AdaptableOptionsComponent, { api: props.api }),
114
- state.ActiveTab == 'ColumnInfo' && (React.createElement(ColumnInfoComponent_1.ColumnInfoComponent, { api: props.api, teamSharingActivated: props.teamSharingActivated, column: state.CurrentColumn })),
115
- state.ActiveTab === 'AdaptableObjects' && React.createElement(AdaptableObjectsSummary_1.AdaptableObjectsSummary, null))));
116
- };
117
- exports.GridInfoPopup = GridInfoPopup;
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { AdaptableApi } from '../../Api/AdaptableApi';
3
- interface GridOptionsProps extends React.ClassAttributes<GridOptionsComponent> {
4
- api: AdaptableApi;
5
- }
6
- export interface GridOptionsState {
7
- showTotalFooter: boolean;
8
- showGroupFooter: boolean;
9
- }
10
- export declare class GridOptionsComponent extends React.Component<GridOptionsProps, GridOptionsState> {
11
- constructor(props: GridOptionsProps);
12
- render(): JSX.Element;
13
- private onTotalFooterChanged;
14
- private onGroupFooterChanged;
15
- }
16
- export {};
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GridOptionsComponent = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const rebass_1 = require("rebass");
7
- const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
8
- const CheckBox_1 = require("../../components/CheckBox");
9
- class GridOptionsComponent extends React.Component {
10
- constructor(props) {
11
- super(props);
12
- const gridOptions = props.api.gridApi.getAgGridInstance();
13
- this.state = {
14
- showTotalFooter: gridOptions.groupIncludeTotalFooter,
15
- showGroupFooter: gridOptions.groupIncludeFooter,
16
- };
17
- }
18
- render() {
19
- return (React.createElement(Panel_1.default, { className: "ab-GridOptions", header: "Grid Options", margin: 2, "data-name": "grid-options-component" },
20
- React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", marginBottom: 2 },
21
- React.createElement(CheckBox_1.CheckBox, { onChange: (checked) => this.onTotalFooterChanged(checked), checked: this.state.showTotalFooter }, "Show Total Footer")),
22
- React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", marginBottom: 2 },
23
- React.createElement(CheckBox_1.CheckBox, { onChange: (checked) => this.onGroupFooterChanged(checked), checked: this.state.showGroupFooter }, "Show Group Footer"))));
24
- }
25
- onTotalFooterChanged(checked) {
26
- // this.setState({ showTotalFooter: checked } as GridOptionsState, () =>
27
- // checked ? this.props.api.gridApi.showTotalFooter() : this.props.api.gridApi.hideTotalFooter()
28
- // );
29
- }
30
- onGroupFooterChanged(checked) {
31
- // this.setState({ showGroupFooter: checked } as GridOptionsState, () =>
32
- // checked ? this.props.api.gridApi.showGroupFooter() : this.props.api.gridApi.hideGroupFooter()
33
- // );
34
- }
35
- }
36
- exports.GridOptionsComponent = GridOptionsComponent;