@adaptabletools/adaptable 11.0.0-canary.3 → 11.0.0-canary.7

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 (267) hide show
  1. package/agGrid.d.ts +5 -4
  2. package/agGrid.js +9 -7
  3. package/base.css +135 -69
  4. package/bundle.cjs.js +104 -99
  5. package/index.css +136 -69
  6. package/package.json +3 -3
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
  11. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +14 -7
  13. package/src/AdaptableOptions/{QueryLanguageOptions.d.ts → AdaptableQLOptions.d.ts} +34 -9
  14. package/src/AdaptableOptions/{QueryLanguageOptions.js → AdaptableQLOptions.js} +0 -0
  15. package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
  16. package/src/AdaptableOptions/AlertOptions.js +2 -0
  17. package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
  18. package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
  19. package/src/AdaptableOptions/GeneralOptions.d.ts +0 -7
  20. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
  21. package/src/AdaptableOptions/SearchOptions.d.ts +0 -9
  22. package/src/AdaptableOptions/StateOptions.d.ts +9 -8
  23. package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
  24. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -2
  25. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
  26. package/src/Api/AdaptableApi.d.ts +6 -0
  27. package/src/Api/AlertApi.d.ts +2 -3
  28. package/src/Api/CalculatedColumnApi.d.ts +2 -9
  29. package/src/Api/ColumnApi.d.ts +0 -4
  30. package/src/Api/EventApi.d.ts +8 -3
  31. package/src/Api/Events/GridDataChanged.d.ts +4 -2
  32. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
  33. package/src/Api/FreeTextColumnApi.d.ts +0 -12
  34. package/src/Api/GridApi.d.ts +13 -2
  35. package/src/Api/IPushPullApi.d.ts +1 -1
  36. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
  37. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  38. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
  39. package/src/Api/Implementation/AlertApiImpl.js +19 -10
  40. package/src/Api/Implementation/ApiBase.d.ts +5 -2
  41. package/src/Api/Implementation/ApiBase.js +8 -2
  42. package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -4
  43. package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
  44. package/src/Api/Implementation/ColumnApiImpl.js +0 -5
  45. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
  46. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
  47. package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
  48. package/src/Api/Implementation/GridApiImpl.js +27 -4
  49. package/src/Api/Implementation/InternalApiImpl.d.ts +2 -3
  50. package/src/Api/Implementation/InternalApiImpl.js +7 -6
  51. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  52. package/src/Api/Implementation/LayoutApiImpl.js +11 -0
  53. package/src/Api/Implementation/QueryApiImpl.js +4 -1
  54. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -1
  55. package/src/Api/Implementation/QueryLanguageApiImpl.js +20 -8
  56. package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
  57. package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
  58. package/src/Api/InternalApi.d.ts +2 -3
  59. package/src/Api/LayoutApi.d.ts +7 -0
  60. package/src/Api/OpenFinApi.d.ts +5 -0
  61. package/src/Api/PluginsApi.d.ts +29 -0
  62. package/src/Api/QueryApi.d.ts +2 -2
  63. package/src/Api/QueryLanguageApi.d.ts +23 -10
  64. package/src/Api/SettingsPanelApi.d.ts +16 -0
  65. package/src/Api/SettingsPanelApi.js +2 -0
  66. package/src/Api/UserInterfaceApi.d.ts +5 -2
  67. package/src/PredefinedConfig/AlertState.d.ts +8 -6
  68. package/src/PredefinedConfig/CalculatedColumnState.d.ts +8 -4
  69. package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -5
  70. package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -6
  71. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
  72. package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
  73. package/src/PredefinedConfig/Common/Enums.js +0 -2
  74. package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
  75. package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
  76. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
  77. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
  78. package/src/PredefinedConfig/Common/Types.d.ts +3 -1
  79. package/src/PredefinedConfig/Common/Types.js +1 -0
  80. package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
  81. package/src/PredefinedConfig/FlashingCellState.d.ts +3 -1
  82. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  83. package/src/PredefinedConfig/LayoutState.d.ts +0 -2
  84. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
  85. package/src/PredefinedConfig/Selection/GridCellRange.d.ts +3 -1
  86. package/src/PredefinedConfig/SystemState.d.ts +2 -1
  87. package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
  88. package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
  89. package/src/Redux/ActionsReducers/GridRedux.js +3 -1
  90. package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
  91. package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
  92. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
  93. package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
  94. package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
  95. package/src/Redux/Store/AdaptableReduxMerger.js +1 -1
  96. package/src/Redux/Store/AdaptableStore.js +34 -8
  97. package/src/Strategy/AlertModule.js +16 -6
  98. package/src/Strategy/CalculatedColumnModule.js +4 -4
  99. package/src/Strategy/ChartingModule.d.ts +3 -3
  100. package/src/Strategy/ChartingModule.js +2 -2
  101. package/src/Strategy/ConditionalStyleModule.js +4 -0
  102. package/src/Strategy/FlashingCellModule.js +4 -4
  103. package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
  104. package/src/Strategy/FreeTextColumnModule.js +11 -0
  105. package/src/Strategy/LayoutModule.js +1 -6
  106. package/src/Strategy/{SetingsPanelModule.d.ts → SettingsPanelModule.d.ts} +0 -0
  107. package/src/Strategy/{SetingsPanelModule.js → SettingsPanelModule.js} +0 -0
  108. package/src/Strategy/ToolPanelModule.js +5 -3
  109. package/src/Strategy/Utilities/getAlertPreviewViewItems.js +1 -1
  110. package/src/Strategy/Utilities/getExpressionViewItems.d.ts +2 -2
  111. package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
  112. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
  113. package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
  114. package/src/Strategy/Utilities/getRuleViewItems.js +1 -3
  115. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +2 -1
  116. package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -2
  117. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +23 -17
  118. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
  119. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
  120. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +24 -0
  121. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +339 -0
  122. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  123. package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
  124. package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
  125. package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
  126. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +2 -2
  127. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +8 -8
  128. package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +35 -0
  129. package/src/Utilities/ExpressionFunctions/groupingMap.js +105 -0
  130. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -2
  131. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +33 -0
  132. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +154 -0
  133. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
  134. package/src/Utilities/Helpers/AdaptableHelper.js +3 -1
  135. package/src/Utilities/Helpers/CalendarHelper.js +220 -55
  136. package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
  137. package/src/Utilities/ObjectFactory.js +1 -0
  138. package/src/Utilities/Services/AlertService.js +8 -4
  139. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +7 -3
  140. package/src/Utilities/Services/CalculatedColumnExpressionService.js +143 -18
  141. package/src/Utilities/Services/DataService.js +6 -1
  142. package/src/Utilities/Services/Interface/IAdaptableService.d.ts +1 -1
  143. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +6 -3
  144. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +9 -3
  145. package/src/Utilities/Services/LicenseService.js +1 -1
  146. package/src/Utilities/Services/QueryLanguageService.d.ts +11 -4
  147. package/src/Utilities/Services/QueryLanguageService.js +92 -28
  148. package/src/Utilities/Services/ReportService.js +6 -2
  149. package/src/Utilities/Services/TeamSharingService.js +5 -3
  150. package/src/View/AdaptablePopover/index.js +6 -1
  151. package/src/View/AdaptableView.js +1 -1
  152. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
  153. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +10 -5
  154. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
  155. package/src/View/AdaptableWizardView/helper.js +5 -3
  156. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
  157. package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
  158. package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +1 -0
  159. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
  160. package/src/View/Alert/Wizard/AlertWizard.js +2 -2
  161. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -2
  162. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
  163. package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
  164. package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.js +3 -3
  165. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +2 -4
  166. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +43 -12
  167. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -2
  168. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
  169. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
  170. package/src/View/ColorPicker.d.ts +1 -1
  171. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  172. package/src/View/Components/AdaptableInput/index.d.ts +1 -1
  173. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  174. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  175. package/src/View/Components/EntityRulesEditor/index.js +11 -12
  176. package/src/View/Components/FilterForm/FilterForm.js +0 -2
  177. package/src/View/Components/FilterForm/QuickFilterForm.js +6 -5
  178. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  179. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
  180. package/src/View/Components/Panels/PanelWithImage.d.ts +2 -2
  181. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
  182. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -88
  183. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
  184. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
  185. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
  186. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
  187. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
  188. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
  189. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
  190. package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +1 -0
  191. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  192. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
  193. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
  194. package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
  195. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
  196. package/src/View/Components/ScopeComponent.js +4 -1
  197. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +5 -1
  198. package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -1
  199. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
  200. package/src/View/Components/ValueSelector/index.js +1 -1
  201. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
  202. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
  203. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
  204. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +7 -0
  205. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
  206. package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
  207. package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
  208. package/src/View/Dashboard/Dashboard.js +2 -3
  209. package/src/View/Dashboard/DashboardPopup.js +3 -1
  210. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  211. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
  212. package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
  213. package/src/View/Filter/FilterViewPanel.d.ts +1 -4
  214. package/src/View/Filter/FilterViewPanel.js +1 -3
  215. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
  216. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
  217. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
  218. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
  219. package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
  220. package/src/View/Layout/Wizard/LayoutEditor/index.js +6 -2
  221. package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
  222. package/src/View/License/LicenseWatermark.js +1 -1
  223. package/src/View/Query/ExpandedQueryPopup.js +9 -2
  224. package/src/View/Query/QueryViewPanel.js +3 -1
  225. package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
  226. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  227. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
  228. package/src/View/SpecialColumnSettingsWizardStep.js +1 -2
  229. package/src/View/UIHelper.js +4 -1
  230. package/src/View/Wizard/AdaptableWizard.js +12 -3
  231. package/src/View/Wizard/OnePageAdaptableWizard.js +5 -1
  232. package/src/agGrid/Adaptable.d.ts +3 -3
  233. package/src/agGrid/Adaptable.js +117 -77
  234. package/src/agGrid/agGridHelper.js +4 -9
  235. package/src/agGrid/agGridMenuHelper.js +4 -8
  236. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  237. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  238. package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +4 -2
  239. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +4 -4
  240. package/src/components/ApplicationIcon.d.ts +1 -0
  241. package/src/components/ApplicationIcon.js +2 -2
  242. package/src/components/Dashboard/Dashboard.js +4 -1
  243. package/src/components/Datepicker/index.d.ts +1 -1
  244. package/src/components/Dropdown/index.js +8 -1
  245. package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
  246. package/src/components/ExpressionEditor/EditorInput.js +5 -2
  247. package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
  248. package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
  249. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -2
  250. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.d.ts +2 -0
  251. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +45 -0
  252. package/src/components/ExpressionEditor/editorButtonsReactive.js +8 -13
  253. package/src/components/ExpressionEditor/index.d.ts +2 -1
  254. package/src/components/ExpressionEditor/index.js +20 -6
  255. package/src/components/Input/index.d.ts +1 -1
  256. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  257. package/src/components/Logo/index.js +8 -7
  258. package/src/components/PopupWithFooter.d.ts +1 -1
  259. package/src/components/SizedContainer/index.js +7 -1
  260. package/src/components/Textarea/index.d.ts +1 -1
  261. package/src/components/WindowModal/WindowModal.js +4 -1
  262. package/src/metamodel/adaptable.metamodel.d.ts +114 -59
  263. package/src/metamodel/adaptable.metamodel.js +373 -242
  264. package/src/types.d.ts +9 -6
  265. package/themes/dark.css +4 -4
  266. package/version.d.ts +1 -1
  267. package/version.js +1 -1
@@ -13,17 +13,18 @@ exports.TopBar = (props) => {
13
13
  const adaptable = AdaptableContext_1.useAdaptable();
14
14
  const applicationIcon = (_a = adaptable.api.internalApi.getAdaptableOptions().userInterfaceOptions) === null || _a === void 0 ? void 0 : _a.applicationIcon;
15
15
  let icon = React.createElement(React.Fragment, null);
16
+ const iconClassName = `${baseClassName}__Icon`;
16
17
  if (props.icon === 'ConfigurationIcon') {
17
- icon = React.createElement(icons_1.Icon, { className: `${baseClassName}__Icon`, name: "settings" });
18
+ icon = React.createElement(icons_1.Icon, { className: iconClassName, name: "settings" });
18
19
  }
19
20
  else if (props.icon === 'ApplicationIcon' && applicationIcon) {
20
- icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { icon: applicationIcon });
21
+ icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { className: iconClassName, icon: applicationIcon });
21
22
  }
22
23
  else if (typeof props.icon === 'object' && props.icon.src) {
23
- icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { icon: props.icon });
24
+ icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { className: iconClassName, icon: props.icon });
24
25
  }
25
26
  return (React.createElement(rebass_1.Flex, { flex: 0, className: baseClassName },
26
27
  icon,
27
- React.createElement(rebass_1.Text, null, props.children)));
28
+ React.createElement(rebass_1.Text, { className: `${baseClassName}__Title` }, props.children)));
28
29
  };
29
30
  exports.default = exports.TopBar;
@@ -0,0 +1,2 @@
1
+ import { AdaptableMenuItem } from '../../../../../types';
2
+ export declare const useMenuItems: () => (AdaptableMenuItem | '-')[];
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useMenuItems = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const react_redux_1 = require("react-redux");
7
+ const DefaultSettingsPanel_1 = require("../../../../Utilities/Defaults/DefaultSettingsPanel");
8
+ const AdaptableContext_1 = require("../../../AdaptableContext");
9
+ const PopupRedux = tslib_1.__importStar(require("../../../../Redux/ActionsReducers/PopupRedux"));
10
+ exports.useMenuItems = () => {
11
+ const adaptable = AdaptableContext_1.useAdaptable();
12
+ const settingsPanelOptions = adaptable.adaptableOptions.settingsPanelOptions;
13
+ const allMenuItems = react_redux_1.useSelector((state) => { var _a; return (_a = state === null || state === void 0 ? void 0 : state.Grid) === null || _a === void 0 ? void 0 : _a.ModuleDropdownMenuItems; });
14
+ return React.useMemo(() => {
15
+ var _a;
16
+ let navigationItems = (_a = settingsPanelOptions === null || settingsPanelOptions === void 0 ? void 0 : settingsPanelOptions.navigation) === null || _a === void 0 ? void 0 : _a.items;
17
+ if (!navigationItems) {
18
+ navigationItems = [...DefaultSettingsPanel_1.DEFAULT_NAVIGATION_ITEMS];
19
+ if (settingsPanelOptions.customSettingsPanels) {
20
+ navigationItems.push(...settingsPanelOptions.customSettingsPanels.map((panel) => panel.name));
21
+ }
22
+ }
23
+ const visibleItems = allMenuItems.filter((item) => item.module !== 'General' && !DefaultSettingsPanel_1.ACTION_POPUPS.includes(item.module) && item.isVisible);
24
+ return navigationItems
25
+ .map((moduleName) => {
26
+ var _a, _b;
27
+ if (moduleName === '-') {
28
+ return moduleName;
29
+ }
30
+ const customSettingsPanel = (_b = (_a = settingsPanelOptions === null || settingsPanelOptions === void 0 ? void 0 : settingsPanelOptions.customSettingsPanels) === null || _a === void 0 ? void 0 : _a.find) === null || _b === void 0 ? void 0 : _b.call(_a, (panel) => panel.name === moduleName);
31
+ let customPanelMenuItem = null;
32
+ if (customSettingsPanel) {
33
+ customPanelMenuItem = {
34
+ label: customSettingsPanel.name,
35
+ module: 'CustomSettingsPanelModule',
36
+ isVisible: true,
37
+ reduxAction: PopupRedux.PopupShowScreen('CustomSettingsPanelModule', customSettingsPanel.name),
38
+ };
39
+ }
40
+ return customPanelMenuItem || visibleItems.find((item) => item.module === moduleName);
41
+ })
42
+ .filter(Boolean);
43
+ }, [allMenuItems]);
44
+ };
@@ -6,5 +6,6 @@ export interface AdaptablePopupAlertProps {
6
6
  api: AdaptableApi;
7
7
  adaptableAlert: AdaptableAlert;
8
8
  headless?: boolean;
9
+ focusFirstButton?: boolean;
9
10
  }
10
11
  export declare const AdaptablePopupAlert: (props: AdaptablePopupAlertProps) => JSX.Element;
@@ -69,7 +69,7 @@ exports.AdaptablePopupAlert = (props) => {
69
69
  })
70
70
  : msg),
71
71
  React.createElement(rebass_1.Box, { margin: 2 },
72
- React.createElement(AdaptableFormComponent_1.AdaptableFormComponent, { data: formData, formDef: adaptableForm, displayTitle: true, onChange: setFormData, api: props.api, context: context, onButtonClick: (button) => {
72
+ React.createElement(AdaptableFormComponent_1.AdaptableFormComponent, { focusFirstButton: props.focusFirstButton, data: formData, formDef: adaptableForm, displayTitle: true, onChange: setFormData, api: props.api, context: context, onButtonClick: (button) => {
73
73
  props.onClose();
74
74
  // we want to give the current popup time to close
75
75
  // and we reopen with a delay in case this button action causes another popup
@@ -14,7 +14,9 @@ class AdaptablePopupConfirmation extends React.Component {
14
14
  constructor(props) {
15
15
  super(props);
16
16
  this.changeContent = (e) => {
17
- this.setState({ PromptText: e.target.value });
17
+ this.setState({
18
+ PromptText: e.target.value,
19
+ });
18
20
  };
19
21
  this.state = { PromptText: '' };
20
22
  }
@@ -1,18 +1,11 @@
1
1
  import * as React from 'react';
2
- export interface AdaptablePopupPromptProps extends React.ClassAttributes<AdaptablePopupPrompt> {
3
- showPopup: boolean;
2
+ import { Action } from 'redux';
3
+ export interface AdaptablePopupPromptProps {
4
4
  header: string;
5
5
  message: string;
6
6
  onClose: () => void;
7
7
  onConfirm: Function;
8
+ onConfirmActionCreator?: (inputText: string) => Action;
9
+ defaultValue?: string;
8
10
  }
9
- export interface AdaptablePopupPromptState {
10
- promptText: string;
11
- }
12
- export declare class AdaptablePopupPrompt extends React.Component<AdaptablePopupPromptProps, AdaptablePopupPromptState> {
13
- constructor(props: AdaptablePopupPromptProps);
14
- render(): JSX.Element;
15
- onCloseForm(): void;
16
- onConfirmmForm(): void;
17
- changeContent: (e: any) => void;
18
- }
11
+ export declare const AdaptablePopupPrompt: React.FunctionComponent<AdaptablePopupPromptProps>;
@@ -8,40 +8,41 @@ const Dialog_1 = tslib_1.__importDefault(require("../../../components/Dialog"));
8
8
  const rebass_1 = require("rebass");
9
9
  const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
10
10
  const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
11
- class AdaptablePopupPrompt extends React.Component {
12
- constructor(props) {
13
- super(props);
14
- this.changeContent = (e) => {
15
- this.setState({ promptText: e.target.value });
16
- };
17
- this.state = { promptText: '' };
18
- }
19
- render() {
20
- return (this.props.showPopup && (React.createElement(Dialog_1.default, { modal: true, "data-name": `prompt-popup`, isOpen: this.props.showPopup, onDismiss: this.props.onClose, showCloseButton: false, style: { minHeight: 'auto', maxWidth: '50%' } },
21
- React.createElement(rebass_1.Flex, { flexDirection: "column" },
22
- React.createElement(rebass_1.Box, { marginTop: 3, mx: 2 }, this.props.header),
23
- StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.props.message) && (React.createElement(rebass_1.Box, { marginTop: 3, mx: 2 },
24
- ' ',
25
- React.createElement("div", { style: { display: 'flex', alignItems: 'center' } }, this.props.message.split('\n').map(function (item, index) {
26
- return (React.createElement("span", { key: index },
27
- item,
28
- React.createElement("br", null)));
29
- })))),
30
- React.createElement(Input_1.default, { autoFocus: true, marginTop: 3, mx: 3, value: this.state.promptText, type: "string", placeholder: "Enter text", onChange: (e) => this.changeContent(e) }),
31
- React.createElement(rebass_1.Box, { marginTop: 3 },
32
- React.createElement(rebass_1.Flex, { padding: 2 },
33
- React.createElement(SimpleButton_1.default, { tone: "accent", "data-name": "ok", variant: "raised", disabled: StringExtensions_1.StringExtensions.IsNullOrEmpty(this.state.promptText), onClick: () => this.onConfirmmForm() }, "OK"),
34
- React.createElement("div", { style: { flex: 1 } }),
35
- React.createElement(SimpleButton_1.default, { tone: "neutral", variant: "raised", onClick: () => this.onCloseForm(), "data-name": "cancel" }, "Cancel")))))));
36
- }
37
- onCloseForm() {
38
- this.setState({ promptText: '' });
39
- this.props.onClose();
40
- }
41
- onConfirmmForm() {
42
- let promptText = this.state.promptText;
43
- this.setState({ promptText: '' });
44
- this.props.onConfirm(promptText);
45
- }
46
- }
47
- exports.AdaptablePopupPrompt = AdaptablePopupPrompt;
11
+ const react_redux_1 = require("react-redux");
12
+ exports.AdaptablePopupPrompt = (props) => {
13
+ var _a;
14
+ const dispatch = react_redux_1.useDispatch();
15
+ const [promptText, setPromptText] = React.useState((_a = props.defaultValue) !== null && _a !== void 0 ? _a : '');
16
+ const onCloseForm = () => {
17
+ setPromptText('');
18
+ props.onClose();
19
+ };
20
+ const onConfirmForm = () => {
21
+ props.onConfirm(promptText);
22
+ const confirmationAction = typeof props.onConfirmActionCreator === 'function' &&
23
+ props.onConfirmActionCreator(promptText);
24
+ if (confirmationAction) {
25
+ dispatch(confirmationAction);
26
+ }
27
+ setPromptText('');
28
+ };
29
+ const changeContent = (e) => {
30
+ setPromptText(e.target.value);
31
+ };
32
+ return (React.createElement(Dialog_1.default, { modal: true, "data-name": `prompt-popup`, isOpen: true, onDismiss: props.onClose, showCloseButton: false, style: { minHeight: 'auto', maxWidth: '50%' } },
33
+ React.createElement(rebass_1.Flex, { flexDirection: "column" },
34
+ React.createElement(rebass_1.Box, { marginTop: 3, mx: 2 }, props.header),
35
+ StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.message) && (React.createElement(rebass_1.Box, { marginTop: 3, mx: 2 },
36
+ ' ',
37
+ React.createElement("div", { style: { display: 'flex', alignItems: 'center' } }, props.message.split('\n').map(function (item, index) {
38
+ return (React.createElement("span", { key: index },
39
+ item,
40
+ React.createElement("br", null)));
41
+ })))),
42
+ React.createElement(Input_1.default, { autoFocus: true, marginTop: 3, mx: 3, value: promptText, type: "string", placeholder: "Enter text", onChange: (e) => changeContent(e) }),
43
+ React.createElement(rebass_1.Box, { marginTop: 3 },
44
+ React.createElement(rebass_1.Flex, { padding: 2 },
45
+ React.createElement(SimpleButton_1.default, { tone: "accent", "data-name": "ok", variant: "raised", disabled: StringExtensions_1.StringExtensions.IsNullOrEmpty(promptText), onClick: () => onConfirmForm() }, "OK"),
46
+ React.createElement("div", { style: { flex: 1 } }),
47
+ React.createElement(SimpleButton_1.default, { tone: "neutral", variant: "raised", onClick: () => onCloseForm(), "data-name": "cancel" }, "Cancel"))))));
48
+ };
@@ -14,7 +14,10 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlo
14
14
  const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
15
15
  exports.AdaptablePopupTeamSharing = (props) => {
16
16
  const { showPopup, onClose, onConfirm, header } = props;
17
- const [config, setConfig] = react_1.useState({ description: '', type: 'Snapshot' });
17
+ const [config, setConfig] = react_1.useState({
18
+ description: '',
19
+ type: 'Snapshot',
20
+ });
18
21
  return (React.createElement(React.Fragment, null,
19
22
  React.createElement(Dialog_1.default, { modal: true, "data-name": "teamsharing-popup", isOpen: showPopup, onDismiss: onClose, autoFocus: false, showCloseButton: false, style: { minHeight: 'auto', maxWidth: '50%' } },
20
23
  React.createElement(rebass_1.Flex, { flexDirection: "column" },
@@ -99,7 +99,10 @@ class ScopeComponent extends React.Component {
99
99
  };
100
100
  newScopeChoice = 'All';
101
101
  }
102
- this.setState({ ScopeChoice: newScopeChoice, componentScope: newScope }, () => this.forceUpdate());
102
+ this.setState({
103
+ ScopeChoice: newScopeChoice,
104
+ componentScope: newScope,
105
+ }, () => this.forceUpdate());
103
106
  this.props.updateScope(newScope);
104
107
  }
105
108
  onColumnsSelectedChanged(columnFriendlyNames) {
@@ -19,7 +19,11 @@ exports.CustomToolPanelContent = (props) => {
19
19
  react_1.useLayoutEffect(() => {
20
20
  const node = contentsDivDomRef.current;
21
21
  if (hasCustomRenderFn(customToolPanel)) {
22
- const html = customToolPanel.render({ visible: true, node, adaptableApi: api });
22
+ const html = customToolPanel.render({
23
+ visible: true,
24
+ node,
25
+ adaptableApi: api,
26
+ });
23
27
  setContentsHTML(html);
24
28
  }
25
29
  else if (hasCustomFrameworkComponent(customToolPanel)) {
@@ -86,7 +86,9 @@ class ToolPanelPopupComponent extends React.Component {
86
86
  onShowGridPropertiesChanged(event) {
87
87
  let e = event.target;
88
88
  let ToolPanelConfigView = e.value;
89
- this.setState({ ToolPanelConfigView: ToolPanelConfigView });
89
+ this.setState({
90
+ ToolPanelConfigView: ToolPanelConfigView,
91
+ });
90
92
  }
91
93
  onToolPanelToolPanelsChanged(selectedValues) {
92
94
  const currentSelectedToolPanelDefinitions = this.props.ToolPanelState.ToolPanels;
@@ -40,7 +40,7 @@ exports.ToolPanelWrapper = (props) => {
40
40
  ];
41
41
  }
42
42
  };
43
- const [toolPanelName, toolPanelHeader, toolPanelContent, moduleInfo,] = getToolPanelConfiguration();
43
+ const [toolPanelName, toolPanelHeader, toolPanelContent, moduleInfo] = getToolPanelConfiguration();
44
44
  const isMinimised = visibilityMode === 'collapsed';
45
45
  const isConfigurable =
46
46
  // only module toolPanels are configurable
@@ -148,7 +148,7 @@ function ValueSelector(props) {
148
148
  borderRadius: 'var(--ab__border-radius)',
149
149
  overflow: 'hidden',
150
150
  }, fontSize: 2, backgroundColor: "defaultbackground" },
151
- React.createElement(CheckBox_1.CheckBox, { disabled: !value.length, checked: selectedOnly, onChange: setSelectedOnly }, showSelectedOnlyLabel !== null && showSelectedOnlyLabel !== void 0 ? showSelectedOnlyLabel : 'Show selected only'))),
151
+ React.createElement(CheckBox_1.CheckBox, { disabled: !value.length, checked: selectedOnly, onChange: setSelectedOnly }, showSelectedOnlyLabel !== null && showSelectedOnlyLabel !== void 0 ? showSelectedOnlyLabel : 'Show Selected Only'))),
152
152
  React.createElement(react_beautiful_dnd_1.Droppable, { droppableId: "droppable" }, (droppableProvided) => {
153
153
  return (React.createElement("div", Object.assign({ ref: droppableProvided.innerRef }, droppableProvided.droppableProps),
154
154
  options
@@ -34,9 +34,9 @@ function ConditionalStyleRuleWizardSection(props) {
34
34
  React.createElement("i", null, "Scope"),
35
35
  " is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression")),
36
36
  useAggregationQuery: (React.createElement(React.Fragment, null,
37
- "Use an AggregationQuery if ",
37
+ "Use an AggregatedBooleanQuery if ",
38
38
  React.createElement("i", null, "Scope"),
39
- " is 'Whole Row' - so any data change may be evaluated in a complex AggregationExpression")),
39
+ " is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")),
40
40
  } })));
41
41
  }
42
42
  exports.ConditionalStyleRuleWizardSection = ConditionalStyleRuleWizardSection;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { ConditionalStyle } from '../../../../types';
3
+ export declare const renderConditionalStyleSettingsSummary: (data: ConditionalStyle) => JSX.Element;
4
+ interface ConditionalStyleSettingsWizardSettingsProps {
5
+ onChange: (data: ConditionalStyle) => void;
6
+ }
7
+ export declare const ConditionalStyleSettingsWizardSettings: React.FunctionComponent<ConditionalStyleSettingsWizardSettingsProps>;
8
+ export {};
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConditionalStyleSettingsWizardSettings = exports.renderConditionalStyleSettingsSummary = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const rebass_1 = require("rebass");
7
+ const CheckBox_1 = require("../../../components/CheckBox");
8
+ const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
9
+ const Tabs_1 = require("../../../components/Tabs");
10
+ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
11
+ exports.renderConditionalStyleSettingsSummary = (data) => (React.createElement(rebass_1.Box, { padding: 2 },
12
+ React.createElement(rebass_1.Text, null, "Include grouped rows"),
13
+ React.createElement(rebass_1.Text, { mt: 3 }, data.IncludeGroupedRows ? 'Yes' : 'No')));
14
+ exports.ConditionalStyleSettingsWizardSettings = (props) => {
15
+ const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
16
+ const onIncludeGroupedRowsChanged = (checked) => {
17
+ props.onChange(Object.assign(Object.assign({}, data), { IncludeGroupedRows: checked }));
18
+ };
19
+ return (React.createElement(Tabs_1.Tabs, null,
20
+ React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
21
+ React.createElement(Tabs_1.Tabs.Content, null,
22
+ React.createElement(rebass_1.Flex, { flexDirection: "row" },
23
+ React.createElement(FormLayout_1.default, null,
24
+ React.createElement(FormLayout_1.FormRow, { label: "Include Grouped Rows:" },
25
+ React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
26
+ React.createElement(CheckBox_1.CheckBox, { checked: data.IncludeGroupedRows, onChange: onIncludeGroupedRowsChanged, mr: 2 }))))))));
27
+ };
@@ -17,6 +17,7 @@ const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
17
17
  const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
18
18
  const react_redux_1 = require("react-redux");
19
19
  const ConditionalStyleRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ConditionalStyleRedux"));
20
+ const ConditionalStyleSettingsWizardSettings_1 = require("./ConditionalStyleSettingsWizardSettings");
20
21
  exports.ConditionalStyleWizard = (props) => {
21
22
  var _a;
22
23
  const data = (_a = props.data) !== null && _a !== void 0 ? _a : props.popupParams.value;
@@ -84,6 +85,12 @@ exports.ConditionalStyleWizard = (props) => {
84
85
  },
85
86
  renderSummary: ConditionalStyleRuleWizardSection_1.renderConditionalStyleRuleSummary,
86
87
  },
88
+ {
89
+ title: 'Settings',
90
+ renderSummary: ConditionalStyleSettingsWizardSettings_1.renderConditionalStyleSettingsSummary,
91
+ render: () => (React.createElement(rebass_1.Box, { padding: 2 },
92
+ React.createElement(ConditionalStyleSettingsWizardSettings_1.ConditionalStyleSettingsWizardSettings, { onChange: setConditionalStyle }))),
93
+ },
87
94
  '-',
88
95
  {
89
96
  details: 'Review the Conditional Style',
@@ -55,7 +55,9 @@ exports.CustomSortValuesWizardSection = (props) => {
55
55
  return sortedValuesMap.has(option);
56
56
  }, [sortedValuesMap]);
57
57
  const options = react_1.useMemo(() => {
58
- return sortWithOrder_1.sortWithOrderArray(distinctValues, data.SortedValues, { sortUnorderedItems: false });
58
+ return sortWithOrder_1.sortWithOrderArray(distinctValues, data.SortedValues, {
59
+ sortUnorderedItems: false,
60
+ });
59
61
  }, [allowReorder, distinctValues, data.SortedValues]);
60
62
  const baseClassName = 'ab-CustomSortWizard__SortOrder';
61
63
  const className = join_1.default(baseClassName, isDistinctValuesLoading && `${baseClassName}--loading`);
@@ -53,7 +53,7 @@ exports.CustomSortWizard = (props) => {
53
53
  },
54
54
  {
55
55
  title: 'Sort Order',
56
- details: 'Select values to specify Custom Sort order - use the "Drag to reorder" checkbox to modify order',
56
+ details: 'Select values to specify Custom Sort order - use "Drag to reorder" checkbox to modify order',
57
57
  isValid: CustomSortValuesWizardSection_1.isValidCustomSortOrder,
58
58
  renderSummary: CustomSortValuesWizardSection_1.renderCustomSortValuesSummary,
59
59
  render: () => (React.createElement(rebass_1.Box, { padding: 2, style: { height: '100%' } },
@@ -17,7 +17,11 @@ exports.CustomToolbarWrapper = (props) => {
17
17
  const node = contentsDivRef.current;
18
18
  const adaptableApi = api;
19
19
  if (props.customToolbar.render) {
20
- const html = props.customToolbar.render({ visible: true, node, adaptableApi });
20
+ const html = props.customToolbar.render({
21
+ visible: true,
22
+ node,
23
+ adaptableApi,
24
+ });
21
25
  setContentsHTML(html);
22
26
  }
23
27
  else if (props.customToolbar.frameworkComponent) {
@@ -69,8 +69,7 @@ const DashboardComponent = (props) => {
69
69
  const renderModuleButtons = () => {
70
70
  let shortcutsArray = props.DashboardState.ModuleButtons;
71
71
  let shortcuts = null;
72
- const alwaysShowInDashboard = props.api.internalApi.getAdaptableOptions().settingsPanelOptions
73
- .alwaysShowInDashboard;
72
+ const alwaysShowInDashboard = props.api.internalApi.getAdaptableOptions().settingsPanelOptions.alwaysShowInDashboard;
74
73
  const shouldAddSettingsPanel = alwaysShowInDashboard &&
75
74
  !props.api.internalApi.getEntitlementService().isModuleHiddenEntitlement('SettingsPanel');
76
75
  if (shouldAddSettingsPanel && !shortcutsArray.includes('SettingsPanel')) {
@@ -151,7 +150,7 @@ const DashboardComponent = (props) => {
151
150
  props.onSetFloatingPosition(FloatingPositionCallback);
152
151
  }
153
152
  }, left: React.createElement(React.Fragment, null,
154
- React.createElement(ApplicationIcon_1.ApplicationIcon, { icon: props.api.internalApi.getAdaptableOptions().userInterfaceOptions.applicationIcon }),
153
+ React.createElement(ApplicationIcon_1.ApplicationIcon, { className: "ab-Dashboard__application-icon", icon: props.api.internalApi.getAdaptableOptions().userInterfaceOptions.applicationIcon }),
155
154
  dashboardOptions.buttonsLocation === 'left' && renderModuleButtons()), right: React.createElement(React.Fragment, null,
156
155
  renderDashboardButtons(),
157
156
  dashboardOptions.buttonsLocation === 'right' && renderModuleButtons(),
@@ -90,7 +90,9 @@ class DashboardPopupComponent extends React.Component {
90
90
  onDashboardConfigViewChanged(event) {
91
91
  let e = event.target;
92
92
  let dashboardConfigView = e.value;
93
- this.setState({ DashboardConfigView: dashboardConfigView });
93
+ this.setState({
94
+ DashboardConfigView: dashboardConfigView,
95
+ });
94
96
  }
95
97
  }
96
98
  function mapStateToProps(state, ownProps) {
@@ -189,7 +189,8 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
189
189
  const layoutColumns = options.predefinedConfig.Layout.Layouts[0].Columns;
190
190
  if (layoutColumns.includes('undoActionColumn')) {
191
191
  // remove action column from layout
192
- options.predefinedConfig.Layout.Layouts[0].Columns = layoutColumns.filter((columnId) => columnId !== 'undoActionColumn');
192
+ options.predefinedConfig.Layout.Layouts[0].Columns =
193
+ layoutColumns.filter((columnId) => columnId !== 'undoActionColumn');
193
194
  }
194
195
  }
195
196
  return options;
@@ -44,7 +44,9 @@ class ReportColumnTypeWizard extends React.Component {
44
44
  }, () => this.props.updateGoBackState());
45
45
  }
46
46
  else {
47
- this.setState({ ReportColumnScope: Enums_1.ReportColumnScope.ScopeColumns }, () => this.props.updateGoBackState());
47
+ this.setState({
48
+ ReportColumnScope: Enums_1.ReportColumnScope.ScopeColumns,
49
+ }, () => this.props.updateGoBackState());
48
50
  }
49
51
  }
50
52
  canNext() {
@@ -44,7 +44,9 @@ class ReportRowTypeWizard extends React.Component {
44
44
  }, () => this.props.updateGoBackState());
45
45
  }
46
46
  else {
47
- this.setState({ ReportRowScope: Enums_1.ReportRowScope.ExpressionRows }, () => this.props.updateGoBackState());
47
+ this.setState({
48
+ ReportRowScope: Enums_1.ReportRowScope.ExpressionRows,
49
+ }, () => this.props.updateGoBackState());
48
50
  }
49
51
  }
50
52
  canNext() {
@@ -1,13 +1,10 @@
1
1
  import { ViewPanelProps } from '../Components/SharedProps/ViewPanelProps';
2
- import { UIPrompt } from '../../Utilities/Interface/MessagePopups';
3
- import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
4
2
  import * as FilterRedux from '../../Redux/ActionsReducers/FilterRedux';
5
3
  import { ColumnFilter } from '../../PredefinedConfig/FilterState';
6
4
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
7
5
  import { Entitlement } from '../../PredefinedConfig/Common/Entitlement';
8
6
  import * as React from 'react';
9
7
  export interface FilterViewPanelComponentProps extends ViewPanelProps {
10
- onShowPrompt: (prompt: UIPrompt) => PopupRedux.PopupShowPromptAction;
11
8
  onHideQuickFilterBar: () => FilterRedux.QuickFilterBarHideAction;
12
9
  onShowQuickFilterBar: () => FilterRedux.QuickFilterBarShowAction;
13
10
  ColumnFilters: ColumnFilter[];
@@ -21,5 +18,5 @@ declare class FilterViewPanelComponent extends React.Component<FilterViewPanelCo
21
18
  private onClearFilters;
22
19
  private onClearColumnFilter;
23
20
  }
24
- export declare const FilterViewPanelControl: import("react-redux").ConnectedComponent<typeof FilterViewPanelComponent, any>;
21
+ export declare const FilterViewPanelControl: import("react-redux").ConnectedComponent<typeof FilterViewPanelComponent, Pick<React.ClassAttributes<FilterViewPanelComponent> & FilterViewPanelComponentProps, "ref" | "key">>;
25
22
  export {};
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FilterViewPanelControl = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
6
5
  const FilterRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FilterRedux"));
7
6
  const React = tslib_1.__importStar(require("react"));
8
7
  const ActiveFiltersPanel_1 = require("./ActiveFiltersPanel");
@@ -37,7 +36,7 @@ class FilterViewPanelComponent extends React.Component {
37
36
  this.props.api.filterApi.clearColumnFilterByColumn(columnFilter.ColumnId);
38
37
  }
39
38
  }
40
- function mapStateToProps(state, ownProps) {
39
+ function mapStateToProps(state) {
41
40
  return {
42
41
  ColumnFilters: state.Filter.ColumnFilters,
43
42
  IsQuickFilterVisible: state.Filter.IsQuickFilterVisible,
@@ -45,7 +44,6 @@ function mapStateToProps(state, ownProps) {
45
44
  }
46
45
  function mapDispatchToProps(dispatch) {
47
46
  return {
48
- onShowPrompt: (prompt) => dispatch(PopupRedux.PopupShowPrompt(prompt)),
49
47
  onHideQuickFilterBar: () => dispatch(FilterRedux.QuickFilterBarHide()),
50
48
  onShowQuickFilterBar: () => dispatch(FilterRedux.QuickFilterBarShow()),
51
49
  };
@@ -41,8 +41,8 @@ exports.FlashingAlertRulesWizardSection = (props) => {
41
41
  React.createElement("i", null, "Scope"),
42
42
  " is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression")),
43
43
  useAggregationQuery: (React.createElement(React.Fragment, null,
44
- "Use an AggregationQuery if ",
44
+ "Use an AggregatedBooleanQuery if ",
45
45
  React.createElement("i", null, "Scope"),
46
- " is 'Whole Row' - so any data change may be evaluated in a complex AggregationExpression")),
46
+ " is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")),
47
47
  } }));
48
48
  };
@@ -65,7 +65,7 @@ exports.FlashingCellWizard = (props) => {
65
65
  title: 'Scope',
66
66
  },
67
67
  {
68
- details: 'Build the rules for when Cells should Flash',
68
+ details: 'Build the Rules for when Cells should Flash',
69
69
  isValid: isValidFlashingCellRules_1.isValidFlashingCellRules,
70
70
  render: () => React.createElement(FlashingCellRulesWizardSection_1.FlashingAlertRulesWizardSection, { onChange: setFlashingCell }),
71
71
  renderSummary: FlashingCellRulesWizardSection_1.renderFlashingAlertRulesSummary,
@@ -113,7 +113,7 @@ function FormatColumnWizard(props) {
113
113
  },
114
114
  {
115
115
  title: 'Style',
116
- details: 'Format Column style',
116
+ details: 'Format Column Style',
117
117
  isValid: FormatColumnStyleWizardSection_1.isFormatColumnStyleValid,
118
118
  renderSummary: FormatColumnStyleWizardSection_1.renderFormatColumnStyleSummary,
119
119
  render: () => {
@@ -49,8 +49,7 @@ class FreeTextColumnSummaryComponent extends React.Component {
49
49
  this.state.editedAdaptableObject && (React.createElement(FreeTextColumnWizard_1.FreeTextColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.FreeTextColumns, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
50
50
  }
51
51
  onNew() {
52
- const specialColumnsAreFilterable = this.props.api.internalApi.getAdaptableOptions()
53
- .filterOptions.enableFilterOnSpecialColumns;
52
+ const specialColumnsAreFilterable = this.props.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns;
54
53
  let configEntity = ObjectFactory_1.ObjectFactory.CreateEmptyFreeTextColumn(specialColumnsAreFilterable);
55
54
  configEntity.ColumnId = this.props.summarisedColumn.columnId;
56
55
  this.setState({
@@ -92,7 +92,10 @@ const OptionContainerComponent = (props) => {
92
92
  const panelButton = viewMode === 'expanded' ? (React.createElement(ButtonMinimise_1.ButtonMinimise, { onClick: () => requestViewModeChange(), tooltip: `Hide ${label}` })) : (React.createElement(ButtonMaximise_1.ButtonMaximise, { onClick: () => requestViewModeChange(), tooltip: `Show ${label}` }));
93
93
  return (React.createElement(PanelWithButton_1.PanelWithButton, { className: `options-container-${name}`, variant: "default", headerText: label, headerProps: {
94
94
  fontSize: 3,
95
- style: { fontWeight: viewMode === 'expanded' ? 800 : 400, cursor: 'pointer' },
95
+ style: {
96
+ fontWeight: viewMode === 'expanded' ? 800 : 400,
97
+ cursor: 'pointer',
98
+ },
96
99
  'data-name': `options-container-header-${name}`,
97
100
  onClick: () => requestViewModeChange(),
98
101
  }, button: panelButton, style: { marginBottom: 3 } }, viewMode === 'expanded' && children));
@@ -21,7 +21,11 @@ const PivotList_1 = require("./PivotList");
21
21
  const ButtonInfo_1 = require("../../../Components/Buttons/ButtonInfo");
22
22
  const Input_1 = tslib_1.__importDefault(require("../../../../components/Input"));
23
23
  const StringExtensions_1 = tslib_1.__importDefault(require("../../../../Utilities/Extensions/StringExtensions"));
24
- const verticalPanelStyle = { minHeight: 150, flex: '1 0 auto', overflow: 'auto' };
24
+ const verticalPanelStyle = {
25
+ minHeight: 150,
26
+ flex: '1 0 auto',
27
+ overflow: 'auto',
28
+ };
25
29
  const ListPanel = (props) => (React.createElement(Panel_1.default, Object.assign({ variant: "modern", bodyProps: { padding: 0 }, style: Object.assign(Object.assign({}, verticalPanelStyle), props.style) }, props)));
26
30
  const ColumnLabels = (props) => {
27
31
  const { children, showBoth, showTitle, flexDirection = 'row', labels: labelsProp } = props, columnProperties = tslib_1.__rest(props, ["children", "showBoth", "showTitle", "flexDirection", "labels"]);
@@ -33,7 +37,7 @@ const ColumnLabels = (props) => {
33
37
  'Pivotable',
34
38
  'Sortable',
35
39
  ];
36
- const labels = labelNames.map((name) => (columnProperties[name] ? name.charAt(0) : ''));
40
+ const labels = labelNames.map((name) => columnProperties[name.toLocaleLowerCase()] ? name.charAt(0) : '');
37
41
  const flexProps = {
38
42
  [flexDirection === 'row' ? 'alignItems' : 'justifyContent']: 'center',
39
43
  };
@@ -44,7 +44,13 @@ class LayoutEditorWizard extends React.Component {
44
44
  this.onLayoutChange = (layout) => {
45
45
  layout = Object.assign(Object.assign({}, layout), { Name: this.state.layoutName });
46
46
  this.updateLayout(layout);
47
- this.setState({ layout, errorMessage: this.getErrorMessage({ layout, layoutName: this.state.layoutName }) }, () => {
47
+ this.setState({
48
+ layout,
49
+ errorMessage: this.getErrorMessage({
50
+ layout,
51
+ layoutName: this.state.layoutName,
52
+ }),
53
+ }, () => {
48
54
  this.props.updateGoBackState();
49
55
  });
50
56
  };