@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
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.editorButtonsQuantileAggregatedScalar = void 0;
4
+ exports.editorButtonsQuantileAggregatedScalar = [
5
+ {
6
+ functionName: 'QUANT',
7
+ data: 'QUANT()',
8
+ text: 'Quantile',
9
+ },
10
+ {
11
+ functionName: 'QUARTILE',
12
+ data: 'QUARTILE()',
13
+ text: 'Quartile',
14
+ },
15
+ {
16
+ functionName: 'PERCENTILE',
17
+ data: 'PERCENTILE()',
18
+ text: 'Percentile',
19
+ },
20
+ {
21
+ functionName: 'GROUP_BY',
22
+ data: 'GROUP_BY()',
23
+ text: 'GroupBy',
24
+ },
25
+ ];
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { AdaptableApi, AdaptableColumn, AdaptableModule } from '../../types';
3
3
  import { NamedQuery } from '../../PredefinedConfig/QueryState';
4
- declare type ExpressionEditorType = 'boolean' | 'scalar' | 'observable' | 'aggregatedBoolean' | 'aggregatedScalar' | 'cumulativeAggregatedScalar';
4
+ export declare type ExpressionEditorType = 'boolean' | 'scalar' | 'observable' | 'aggregatedBoolean' | 'aggregatedScalar' | 'cumulativeAggregatedScalar' | 'quantileAggregatedScalar';
5
5
  interface ExpressionEditorProps {
6
6
  value: string;
7
7
  onChange: (value: string) => void;
@@ -41,7 +41,7 @@ function ExpressionEditor(props) {
41
41
  setExpressionText(value);
42
42
  props.onChange(value);
43
43
  }, testData: data, api: props.api })) : (
44
- // 'boolean','scalar' or 'aggregatedScalar'/'cumulativeAggregatedScalar'
44
+ // 'boolean','scalar','aggregatedScalar'/'cumulativeAggregatedScalar'/'quantileAggregatedScalar'
45
45
  React.createElement(EditorInput_1.default, { type: type, module: module, value: props.value, onChange: (value) => {
46
46
  setExpressionText(value);
47
47
  props.onChange(value);
@@ -234,4 +234,5 @@ const queryDocumentationLinks = {
234
234
  aggregatedBoolean: DocumentationLinkConstants_1.AggregatedBooleanQueryDocsLink,
235
235
  aggregatedScalar: DocumentationLinkConstants_1.AggregatedScalarQueryDocsLink,
236
236
  cumulativeAggregatedScalar: DocumentationLinkConstants_1.CumulativeAggregatedScalarQueryDocsLink,
237
+ quantileAggregatedScalar: DocumentationLinkConstants_1.QuantileAggregatedScalarQueryDocsLink,
237
238
  };
@@ -12,8 +12,9 @@ interface FileDroppableProps extends FlexProps {
12
12
  toJSON?: (str: string) => Promise<any> | any;
13
13
  readFile?: (file: File, toJSON?: (str: string) => Promise<any> | any) => Promise<any>;
14
14
  onDropSuccess?: (json: any, file: File) => void;
15
+ file?: File;
15
16
  }
16
- export declare const readJSONFile: (file: File, toJSON?: (str: string) => Promise<any> | any) => Promise<unknown>;
17
+ export declare const readJSONFile: (file: File, toJSON?: (str: string) => Promise<any> | any) => Promise<Record<string, unknown>[]>;
17
18
  declare const FileDroppable: {
18
19
  (props: FileDroppableProps): JSX.Element;
19
20
  defaultProps: {};
@@ -15,7 +15,7 @@ const initialState = {
15
15
  dragOver: false,
16
16
  message: null,
17
17
  };
18
- const stop = (e) => {
18
+ const preventEventPropagation = (e) => {
19
19
  e.preventDefault();
20
20
  e.stopPropagation();
21
21
  };
@@ -40,7 +40,8 @@ const readJSONFile = async (file, toJSON) => {
40
40
  };
41
41
  exports.readJSONFile = readJSONFile;
42
42
  const FileDroppable = (props) => {
43
- const { onDropSuccess, message, fileAccept = '.json', helpText = 'AdapTable No Code Version', defaultText = 'Click here to select a JSON file to load or drag it here', dragOverText = 'Drop file here to start Adaptable Wizard', icon = React.createElement(icons_1.Icon, { name: "paperclip", size: 48 }) } = props, domProps = tslib_1.__rest(props, ["onDropSuccess", "message", "fileAccept", "helpText", "defaultText", "dragOverText", "icon"]);
43
+ var _a;
44
+ const { onDropSuccess, message, fileAccept = '.json', helpText = 'AdapTable No Code Version', defaultText = 'Click here to select a JSON file to load or drag it here', dragOverText = 'Drop file here to start Adaptable Wizard', icon = React.createElement(icons_1.Icon, { name: "paperclip", size: 48 }), value } = props, domProps = tslib_1.__rest(props, ["onDropSuccess", "message", "fileAccept", "helpText", "defaultText", "dragOverText", "icon", "value"]);
44
45
  const [state, dispatch] = (0, react_1.useReducer)(reducer_1.default, initialState);
45
46
  const onDragEnter = (e) => {
46
47
  dispatch({
@@ -48,7 +49,7 @@ const FileDroppable = (props) => {
48
49
  });
49
50
  };
50
51
  const onDragLeave = (event) => {
51
- stop(event);
52
+ preventEventPropagation(event);
52
53
  if (domRef.current != event.target &&
53
54
  (0, contains_1.default)(domRef.current, event.target)) {
54
55
  return;
@@ -59,7 +60,7 @@ const FileDroppable = (props) => {
59
60
  };
60
61
  const onDrop = async (e) => {
61
62
  let files;
62
- stop(e);
63
+ preventEventPropagation(e);
63
64
  let nativeEvent = e.nativeEvent;
64
65
  if (nativeEvent && nativeEvent.dataTransfer) {
65
66
  files = nativeEvent.dataTransfer.files;
@@ -98,10 +99,10 @@ const FileDroppable = (props) => {
98
99
  }
99
100
  };
100
101
  const domRef = (0, react_1.useRef)();
101
- let form = (React.createElement("form", { onSubmit: stop },
102
+ let form = (React.createElement("form", { onSubmit: preventEventPropagation },
102
103
  React.createElement(SimpleButton_1.default, { style: { cursor: 'pointer' }, variant: "outlined" },
103
104
  React.createElement("div", null, state.dragOver ? dragOverText : defaultText),
104
- React.createElement("input", { type: "file", onChange: onDrop, accept: fileAccept, style: {
105
+ React.createElement("input", { type: "file", onChange: onDrop, accept: fileAccept, value: (_a = props === null || props === void 0 ? void 0 : props.file) === null || _a === void 0 ? void 0 : _a.name, style: {
105
106
  opacity: 0,
106
107
  position: 'absolute',
107
108
  cursor: 'pointer',
@@ -114,7 +115,7 @@ const FileDroppable = (props) => {
114
115
  zIndex: 1,
115
116
  } }))));
116
117
  const msg = message || state.message;
117
- return (React.createElement(rebass_1.Flex, Object.assign({}, domProps, { flexDirection: "column", className: (0, join_1.default)(props.className, 'ab-FileDroppable', state.dragOver ? 'ab-FileDroppable--drag-over' : ''), alignItems: "center", justifyContent: "center", onDragEnter: onDragEnter, onDragLeave: onDragLeave, onDrop: onDrop, onDragOver: stop, ref: domRef }),
118
+ return (React.createElement(rebass_1.Flex, Object.assign({}, domProps, { flexDirection: "column", className: (0, join_1.default)(props.className, 'ab-FileDroppable', state.dragOver ? 'ab-FileDroppable--drag-over' : ''), alignItems: "center", justifyContent: "center", onDragEnter: onDragEnter, onDragLeave: onDragLeave, onDrop: onDrop, onDragOver: preventEventPropagation, ref: domRef }),
118
119
  props.children,
119
120
  helpText || icon ? (React.createElement(rebass_1.Flex, { flexDirection: "column" },
120
121
  helpText ? (React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "center", margin: 2 },
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props, { viewBox: "0 -960 960 960" }),
7
+ React.createElement("path", { d: "M440-200h80v-167l64 64 56-57-160-160-160 160 57 56 63-63v167ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z" })));
@@ -46,6 +46,7 @@ const chart_1 = tslib_1.__importDefault(require("./chart"));
46
46
  const application_1 = tslib_1.__importDefault(require("./application"));
47
47
  const bulk_update_1 = tslib_1.__importDefault(require("./bulk-update"));
48
48
  const import_export_1 = tslib_1.__importDefault(require("./import-export"));
49
+ const import_1 = tslib_1.__importDefault(require("./import"));
49
50
  const calculated_column_1 = tslib_1.__importDefault(require("./calculated-column"));
50
51
  const cell_summary_1 = tslib_1.__importDefault(require("./cell-summary"));
51
52
  const column_chooser_1 = tslib_1.__importDefault(require("./column-chooser"));
@@ -153,6 +154,7 @@ const interactions_1 = tslib_1.__importDefault(require("./interactions"));
153
154
  const money_1 = tslib_1.__importDefault(require("./money"));
154
155
  const order_1 = tslib_1.__importDefault(require("./order"));
155
156
  const contact_1 = tslib_1.__importDefault(require("./contact"));
157
+ const note_1 = tslib_1.__importDefault(require("./note"));
156
158
  const Icon_1 = require("../Icon");
157
159
  const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
158
160
  exports.allIcons = {
@@ -235,6 +237,7 @@ exports.allIcons = {
235
237
  'sort-desc': sort_desc_1.default,
236
238
  logout: logout_1.default,
237
239
  'import-export': import_export_1.default,
240
+ import: import_1.default,
238
241
  paperclip: attach_file_1.default,
239
242
  info: info_1.default,
240
243
  'cloud-upload': cloud_upload_1.default,
@@ -306,6 +309,7 @@ exports.allIcons = {
306
309
  money: money_1.default,
307
310
  order: order_1.default,
308
311
  contact: contact_1.default,
312
+ note: note_1.default,
309
313
  };
310
314
  Object.keys(exports.allIcons).forEach((name) => {
311
315
  const ReactCmp = exports.allIcons[name];
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props, { viewBox: "0 -960 960 960" }),
7
+ React.createElement("path", { d: "M440-240h80v-120h120v-80H520v-120h-80v120H320v80h120v120ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z" })));
@@ -308,7 +308,7 @@ export declare const ADAPTABLE_METAMODEL: {
308
308
  kind: string;
309
309
  desc: string;
310
310
  };
311
- AdaptableColumnPredicate: {
311
+ AdaptableColumnGroup: {
312
312
  name: string;
313
313
  kind: string;
314
314
  desc: string;
@@ -316,15 +316,9 @@ export declare const ADAPTABLE_METAMODEL: {
316
316
  name: string;
317
317
  kind: string;
318
318
  desc: string;
319
- isOpt: boolean;
320
319
  }[];
321
320
  };
322
- AdaptableColumnType: {
323
- name: string;
324
- kind: string;
325
- desc: string;
326
- };
327
- AdaptableComment: {
321
+ AdaptableColumnPredicate: {
328
322
  name: string;
329
323
  kind: string;
330
324
  desc: string;
@@ -332,9 +326,10 @@ export declare const ADAPTABLE_METAMODEL: {
332
326
  name: string;
333
327
  kind: string;
334
328
  desc: string;
329
+ isOpt: boolean;
335
330
  }[];
336
331
  };
337
- AdaptableComments: {
332
+ AdaptableColumnType: {
338
333
  name: string;
339
334
  kind: string;
340
335
  desc: string;
@@ -533,6 +528,21 @@ export declare const ADAPTABLE_METAMODEL: {
533
528
  kind: string;
534
529
  desc: string;
535
530
  };
531
+ AdaptableNote: {
532
+ name: string;
533
+ kind: string;
534
+ desc: string;
535
+ props: {
536
+ name: string;
537
+ kind: string;
538
+ desc: string;
539
+ }[];
540
+ };
541
+ AdaptableNotes: {
542
+ name: string;
543
+ kind: string;
544
+ desc: string;
545
+ };
536
546
  AdaptableObject: {
537
547
  name: string;
538
548
  kind: string;
@@ -901,6 +911,11 @@ export declare const ADAPTABLE_METAMODEL: {
901
911
  kind: string;
902
912
  desc: string;
903
913
  };
914
+ AdaptableSystemMenuItem: {
915
+ name: string;
916
+ kind: string;
917
+ desc: string;
918
+ };
904
919
  AdaptableTheme: {
905
920
  name: string;
906
921
  kind: string;
@@ -961,6 +976,11 @@ export declare const ADAPTABLE_METAMODEL: {
961
976
  ref?: undefined;
962
977
  })[];
963
978
  };
979
+ AgGridMenuItem: {
980
+ name: string;
981
+ kind: string;
982
+ desc: string;
983
+ };
964
984
  AlertButton: {
965
985
  name: string;
966
986
  kind: string;
@@ -1542,6 +1562,7 @@ export declare const ADAPTABLE_METAMODEL: {
1542
1562
  desc: string;
1543
1563
  isOpt: boolean;
1544
1564
  defVal: string;
1565
+ ref?: undefined;
1545
1566
  noCode?: undefined;
1546
1567
  } | {
1547
1568
  name: string;
@@ -1549,6 +1570,15 @@ export declare const ADAPTABLE_METAMODEL: {
1549
1570
  desc: string;
1550
1571
  isOpt: boolean;
1551
1572
  defVal?: undefined;
1573
+ ref?: undefined;
1574
+ noCode?: undefined;
1575
+ } | {
1576
+ name: string;
1577
+ kind: string;
1578
+ desc: string;
1579
+ isOpt: boolean;
1580
+ ref: string;
1581
+ defVal?: undefined;
1552
1582
  noCode?: undefined;
1553
1583
  } | {
1554
1584
  name: string;
@@ -1557,6 +1587,7 @@ export declare const ADAPTABLE_METAMODEL: {
1557
1587
  isOpt: boolean;
1558
1588
  noCode: string;
1559
1589
  defVal: string;
1590
+ ref?: undefined;
1560
1591
  })[];
1561
1592
  };
1562
1593
  ChartingState: {
@@ -1663,17 +1694,17 @@ export declare const ADAPTABLE_METAMODEL: {
1663
1694
  kind: string;
1664
1695
  desc: string;
1665
1696
  isOpt: boolean;
1697
+ gridInfo: string;
1698
+ noCode: string;
1666
1699
  defVal: string;
1667
- gridInfo?: undefined;
1668
- noCode?: undefined;
1669
1700
  } | {
1670
1701
  name: string;
1671
1702
  kind: string;
1672
1703
  desc: string;
1673
1704
  isOpt: boolean;
1674
- gridInfo: string;
1675
- noCode: string;
1676
1705
  defVal: string;
1706
+ gridInfo?: undefined;
1707
+ noCode?: undefined;
1677
1708
  })[];
1678
1709
  };
1679
1710
  ColumnSort: {
@@ -1702,44 +1733,6 @@ export declare const ADAPTABLE_METAMODEL: {
1702
1733
  ref: string;
1703
1734
  })[];
1704
1735
  };
1705
- CommentGridCell: {
1706
- name: string;
1707
- kind: string;
1708
- desc: string;
1709
- };
1710
- CommentOptions: {
1711
- name: string;
1712
- kind: string;
1713
- desc: string;
1714
- props: {
1715
- name: string;
1716
- kind: string;
1717
- desc: string;
1718
- isOpt: boolean;
1719
- }[];
1720
- };
1721
- CommentsState: {
1722
- name: string;
1723
- kind: string;
1724
- desc: string;
1725
- props: {
1726
- name: string;
1727
- kind: string;
1728
- desc: string;
1729
- isOpt: boolean;
1730
- ref: string;
1731
- }[];
1732
- };
1733
- CommmentableCellContext: {
1734
- name: string;
1735
- kind: string;
1736
- desc: string;
1737
- props: {
1738
- name: string;
1739
- kind: string;
1740
- desc: string;
1741
- }[];
1742
- };
1743
1736
  CompatibleContext: {
1744
1737
  name: string;
1745
1738
  kind: string;
@@ -1801,6 +1794,36 @@ export declare const ADAPTABLE_METAMODEL: {
1801
1794
  isOpt?: undefined;
1802
1795
  })[];
1803
1796
  };
1797
+ CustomColumnMenuContext: {
1798
+ name: string;
1799
+ kind: string;
1800
+ desc: string;
1801
+ props: {
1802
+ name: string;
1803
+ kind: string;
1804
+ desc: string;
1805
+ }[];
1806
+ };
1807
+ CustomColumnMenuItem: {
1808
+ name: string;
1809
+ kind: string;
1810
+ desc: string;
1811
+ };
1812
+ CustomContextMenuContext: {
1813
+ name: string;
1814
+ kind: string;
1815
+ desc: string;
1816
+ props: {
1817
+ name: string;
1818
+ kind: string;
1819
+ desc: string;
1820
+ }[];
1821
+ };
1822
+ CustomContextMenuItem: {
1823
+ name: string;
1824
+ kind: string;
1825
+ desc: string;
1826
+ };
1804
1827
  CustomDestination: {
1805
1828
  name: string;
1806
1829
  kind: string;
@@ -2082,6 +2105,11 @@ export declare const ADAPTABLE_METAMODEL: {
2082
2105
  ref: string;
2083
2106
  }[];
2084
2107
  };
2108
+ CustomWindowConfig: {
2109
+ name: string;
2110
+ kind: string;
2111
+ desc: string;
2112
+ };
2085
2113
  DashboardButtonContext: {
2086
2114
  name: string;
2087
2115
  kind: string;
@@ -2233,6 +2261,53 @@ export declare const ADAPTABLE_METAMODEL: {
2233
2261
  kind: string;
2234
2262
  desc: string;
2235
2263
  };
2264
+ DataImportApplyImportContext: {
2265
+ name: string;
2266
+ kind: string;
2267
+ desc: string;
2268
+ props: {
2269
+ name: string;
2270
+ kind: string;
2271
+ desc: string;
2272
+ }[];
2273
+ };
2274
+ DataImportFileHandler: {
2275
+ name: string;
2276
+ kind: string;
2277
+ desc: string;
2278
+ props: ({
2279
+ name: string;
2280
+ kind: string;
2281
+ desc: string;
2282
+ isOpt: boolean;
2283
+ } | {
2284
+ name: string;
2285
+ kind: string;
2286
+ desc: string;
2287
+ isOpt?: undefined;
2288
+ })[];
2289
+ };
2290
+ DataImportOptions: {
2291
+ name: string;
2292
+ kind: string;
2293
+ desc: string;
2294
+ props: {
2295
+ name: string;
2296
+ kind: string;
2297
+ desc: string;
2298
+ isOpt: boolean;
2299
+ }[];
2300
+ };
2301
+ DataImportValidateContext: {
2302
+ name: string;
2303
+ kind: string;
2304
+ desc: string;
2305
+ props: {
2306
+ name: string;
2307
+ kind: string;
2308
+ desc: string;
2309
+ }[];
2310
+ };
2236
2311
  DataSet: {
2237
2312
  name: string;
2238
2313
  kind: string;
@@ -2528,12 +2603,12 @@ export declare const ADAPTABLE_METAMODEL: {
2528
2603
  name: string;
2529
2604
  kind: string;
2530
2605
  desc: string;
2531
- isOpt?: undefined;
2606
+ isOpt: boolean;
2532
2607
  } | {
2533
2608
  name: string;
2534
2609
  kind: string;
2535
2610
  desc: string;
2536
- isOpt: boolean;
2611
+ isOpt?: undefined;
2537
2612
  })[];
2538
2613
  };
2539
2614
  ExpressionFunction: {
@@ -2621,6 +2696,35 @@ export declare const ADAPTABLE_METAMODEL: {
2621
2696
  noCode?: undefined;
2622
2697
  })[];
2623
2698
  };
2699
+ ExternalChartingContext: {
2700
+ name: string;
2701
+ kind: string;
2702
+ desc: string;
2703
+ props: ({
2704
+ name: string;
2705
+ kind: string;
2706
+ desc: string;
2707
+ isOpt?: undefined;
2708
+ ref?: undefined;
2709
+ } | {
2710
+ name: string;
2711
+ kind: string;
2712
+ desc: string;
2713
+ isOpt: boolean;
2714
+ ref: string;
2715
+ })[];
2716
+ };
2717
+ ExternalChartingOptions: {
2718
+ name: string;
2719
+ kind: string;
2720
+ desc: string;
2721
+ props: {
2722
+ name: string;
2723
+ kind: string;
2724
+ desc: string;
2725
+ isOpt: boolean;
2726
+ }[];
2727
+ };
2624
2728
  ExternalReport: {
2625
2729
  name: string;
2626
2730
  kind: string;
@@ -3639,6 +3743,44 @@ export declare const ADAPTABLE_METAMODEL: {
3639
3743
  desc: string;
3640
3744
  }[];
3641
3745
  };
3746
+ NotableCellContext: {
3747
+ name: string;
3748
+ kind: string;
3749
+ desc: string;
3750
+ props: {
3751
+ name: string;
3752
+ kind: string;
3753
+ desc: string;
3754
+ }[];
3755
+ };
3756
+ NoteGridCell: {
3757
+ name: string;
3758
+ kind: string;
3759
+ desc: string;
3760
+ };
3761
+ NotesOptions: {
3762
+ name: string;
3763
+ kind: string;
3764
+ desc: string;
3765
+ props: {
3766
+ name: string;
3767
+ kind: string;
3768
+ desc: string;
3769
+ isOpt: boolean;
3770
+ }[];
3771
+ };
3772
+ NoteState: {
3773
+ name: string;
3774
+ kind: string;
3775
+ desc: string;
3776
+ props: {
3777
+ name: string;
3778
+ kind: string;
3779
+ desc: string;
3780
+ isOpt: boolean;
3781
+ ref: string;
3782
+ }[];
3783
+ };
3642
3784
  NotificationsOptions: {
3643
3785
  name: string;
3644
3786
  kind: string;
@@ -4799,6 +4941,54 @@ export declare const ADAPTABLE_METAMODEL: {
4799
4941
  desc: string;
4800
4942
  }[];
4801
4943
  };
4944
+ UserColumnMenuItem: {
4945
+ name: string;
4946
+ kind: string;
4947
+ desc: string;
4948
+ props: ({
4949
+ name: string;
4950
+ kind: string;
4951
+ desc: string;
4952
+ isOpt: boolean;
4953
+ ref?: undefined;
4954
+ } | {
4955
+ name: string;
4956
+ kind: string;
4957
+ desc: string;
4958
+ isOpt: boolean;
4959
+ ref: string;
4960
+ } | {
4961
+ name: string;
4962
+ kind: string;
4963
+ desc: string;
4964
+ isOpt?: undefined;
4965
+ ref?: undefined;
4966
+ })[];
4967
+ };
4968
+ UserContextMenuItem: {
4969
+ name: string;
4970
+ kind: string;
4971
+ desc: string;
4972
+ props: ({
4973
+ name: string;
4974
+ kind: string;
4975
+ desc: string;
4976
+ isOpt: boolean;
4977
+ ref?: undefined;
4978
+ } | {
4979
+ name: string;
4980
+ kind: string;
4981
+ desc: string;
4982
+ isOpt: boolean;
4983
+ ref: string;
4984
+ } | {
4985
+ name: string;
4986
+ kind: string;
4987
+ desc: string;
4988
+ isOpt?: undefined;
4989
+ ref?: undefined;
4990
+ })[];
4991
+ };
4802
4992
  UserInterfaceOptions: {
4803
4993
  name: string;
4804
4994
  kind: string;
@@ -4877,19 +5067,11 @@ export declare const ADAPTABLE_METAMODEL: {
4877
5067
  kind: string;
4878
5068
  desc: string;
4879
5069
  isOpt: boolean;
4880
- ref?: undefined;
4881
- } | {
4882
- name: string;
4883
- kind: string;
4884
- desc: string;
4885
- isOpt: boolean;
4886
- ref: string;
4887
5070
  } | {
4888
5071
  name: string;
4889
5072
  kind: string;
4890
5073
  desc: string;
4891
5074
  isOpt?: undefined;
4892
- ref?: undefined;
4893
5075
  })[];
4894
5076
  };
4895
5077
  ValidationResult: {