@adaptabletools/adaptable 11.0.0-canary.2 → 11.0.0-canary.6

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 (244) hide show
  1. package/agGrid.d.ts +1 -1
  2. package/agGrid.js +3 -3
  3. package/base.css +138 -68
  4. package/bundle.cjs.js +131 -127
  5. package/index.css +140 -68
  6. package/package.json +33 -33
  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/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +11 -2
  12. package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
  13. package/src/AdaptableOptions/AlertOptions.js +2 -0
  14. package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
  15. package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
  17. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
  18. package/src/AdaptableOptions/QueryLanguageOptions.d.ts +3 -7
  19. package/src/AdaptableOptions/StateOptions.d.ts +2 -1
  20. package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
  21. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -3
  22. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
  23. package/src/Api/AdaptableApi.d.ts +6 -0
  24. package/src/Api/AlertApi.d.ts +2 -3
  25. package/src/Api/ColumnApi.d.ts +0 -4
  26. package/src/Api/EventApi.d.ts +8 -3
  27. package/src/Api/Events/GridDataChanged.d.ts +4 -2
  28. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
  29. package/src/Api/FreeTextColumnApi.d.ts +0 -12
  30. package/src/Api/GridApi.d.ts +5 -4
  31. package/src/Api/IPushPullApi.d.ts +1 -1
  32. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
  33. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  34. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
  35. package/src/Api/Implementation/AlertApiImpl.js +19 -10
  36. package/src/Api/Implementation/ApiBase.d.ts +2 -0
  37. package/src/Api/Implementation/ApiBase.js +3 -0
  38. package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
  39. package/src/Api/Implementation/ColumnApiImpl.js +0 -5
  40. package/src/Api/Implementation/DashboardApiImpl.js +1 -1
  41. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
  42. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
  43. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
  44. package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
  45. package/src/Api/Implementation/GridApiImpl.js +4 -0
  46. package/src/Api/Implementation/InternalApiImpl.js +2 -2
  47. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  48. package/src/Api/Implementation/LayoutApiImpl.js +12 -1
  49. package/src/Api/Implementation/QueryApiImpl.js +4 -1
  50. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +1 -1
  51. package/src/Api/Implementation/QueryLanguageApiImpl.js +6 -7
  52. package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
  53. package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
  54. package/src/Api/LayoutApi.d.ts +7 -0
  55. package/src/Api/OpenFinApi.d.ts +5 -0
  56. package/src/Api/PluginsApi.d.ts +29 -0
  57. package/src/Api/QueryLanguageApi.d.ts +10 -10
  58. package/src/Api/SettingsPanelApi.d.ts +17 -0
  59. package/src/Api/SettingsPanelApi.js +2 -0
  60. package/src/Api/UserInterfaceApi.d.ts +5 -2
  61. package/src/PredefinedConfig/AlertState.d.ts +4 -6
  62. package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
  63. package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -4
  64. package/src/PredefinedConfig/Common/AdaptableQuery.js +3 -3
  65. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
  66. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
  67. package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
  68. package/src/PredefinedConfig/Common/Enums.js +0 -2
  69. package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
  70. package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
  71. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
  72. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  73. package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
  74. package/src/PredefinedConfig/FlashingCellState.d.ts +5 -2
  75. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  76. package/src/PredefinedConfig/LayoutState.d.ts +0 -2
  77. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
  78. package/src/PredefinedConfig/SystemState.d.ts +2 -1
  79. package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
  80. package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
  81. package/src/Redux/ActionsReducers/GridRedux.js +3 -1
  82. package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
  83. package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
  84. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
  85. package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
  86. package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
  87. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
  88. package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
  89. package/src/Redux/Store/AdaptableStore.js +18 -6
  90. package/src/Strategy/AlertModule.js +14 -4
  91. package/src/Strategy/ConditionalStyleModule.js +4 -0
  92. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  93. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  94. package/src/Strategy/FlashingCellModule.js +34 -18
  95. package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
  96. package/src/Strategy/FreeTextColumnModule.js +10 -0
  97. package/src/Strategy/LayoutModule.js +1 -6
  98. package/src/Strategy/TeamSharingModule.js +1 -1
  99. package/src/Strategy/ToolPanelModule.js +5 -3
  100. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
  101. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
  102. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
  103. package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
  104. package/src/Strategy/Utilities/getRuleViewItems.js +0 -1
  105. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -6
  106. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
  107. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
  108. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +7 -0
  109. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +42 -0
  110. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  111. package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
  112. package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
  113. package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
  114. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
  115. package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +36 -0
  116. package/src/Utilities/ExpressionFunctions/groupingMap.js +104 -0
  117. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
  118. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
  119. package/src/Utilities/Extensions/StringExtensions.js +1 -1
  120. package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
  121. package/src/Utilities/Helpers/CalendarHelper.js +220 -55
  122. package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
  123. package/src/Utilities/ObjectFactory.js +5 -2
  124. package/src/Utilities/Services/AlertService.js +3 -3
  125. package/src/Utilities/Services/DataService.js +6 -1
  126. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +2 -2
  127. package/src/Utilities/Services/LicenseService.js +1 -1
  128. package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
  129. package/src/Utilities/Services/QueryLanguageService.js +21 -16
  130. package/src/Utilities/Services/ReportService.js +7 -3
  131. package/src/Utilities/Services/TeamSharingService.js +5 -3
  132. package/src/View/AdaptablePopover/index.js +6 -1
  133. package/src/View/AdaptableView.js +1 -1
  134. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
  135. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -2
  136. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
  137. package/src/View/AdaptableWizardView/helper.js +5 -3
  138. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
  139. package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
  140. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
  141. package/src/View/Alert/Wizard/AlertWizard.js +2 -2
  142. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
  143. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -5
  144. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
  145. package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
  146. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +17 -6
  147. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
  148. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  149. package/src/View/Components/EntityRulesEditor/index.js +9 -9
  150. package/src/View/Components/FilterForm/FilterForm.js +0 -2
  151. package/src/View/Components/FilterForm/QuickFilterForm.js +8 -7
  152. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  153. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  154. package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
  155. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
  156. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -87
  157. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
  158. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
  159. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
  160. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
  161. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
  162. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
  163. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
  164. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
  165. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
  166. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
  167. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
  168. package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
  169. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
  170. package/src/View/Components/ScopeComponent.js +4 -1
  171. package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
  172. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
  173. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -2
  174. package/src/View/Components/ToolPanel/ToolPanelPopup.js +7 -5
  175. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
  176. package/src/View/Components/ValueSelector/index.d.ts +2 -1
  177. package/src/View/Components/ValueSelector/index.js +5 -5
  178. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
  179. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
  180. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
  181. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +17 -5
  182. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
  183. package/src/View/CustomSort/Wizard/CustomSortWizard.js +17 -5
  184. package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
  185. package/src/View/Dashboard/Dashboard.js +5 -5
  186. package/src/View/Dashboard/DashboardPopup.js +8 -6
  187. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  188. package/src/View/Export/Wizard/NewReportWizard.js +13 -3
  189. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
  190. package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
  191. package/src/View/Filter/FilterViewPanel.d.ts +1 -4
  192. package/src/View/Filter/FilterViewPanel.js +1 -3
  193. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
  194. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
  195. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -5
  196. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -2
  197. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  198. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +11 -6
  199. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
  200. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +12 -5
  201. package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
  202. package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -1
  203. package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
  204. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
  205. package/src/View/Query/ExpandedQueryPopup.js +9 -2
  206. package/src/View/Query/QueryViewPanel.js +15 -10
  207. package/src/View/Query/Wizard/NamedQueryWizard.js +6 -4
  208. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  209. package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
  210. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
  211. package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
  212. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  213. package/src/View/UIHelper.js +4 -1
  214. package/src/View/Wizard/AdaptableWizard.js +13 -4
  215. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
  216. package/src/View/Wizard/OnePageAdaptableWizard.js +6 -2
  217. package/src/agGrid/Adaptable.d.ts +2 -5
  218. package/src/agGrid/Adaptable.js +127 -75
  219. package/src/agGrid/agGridHelper.js +3 -8
  220. package/src/agGrid/agGridMenuHelper.js +5 -9
  221. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  222. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  223. package/src/components/ApplicationIcon.d.ts +1 -0
  224. package/src/components/ApplicationIcon.js +2 -2
  225. package/src/components/Dashboard/Dashboard.js +4 -1
  226. package/src/components/Dashboard/DashboardManager.d.ts +5 -3
  227. package/src/components/Dashboard/DashboardManager.js +33 -27
  228. package/src/components/Dropdown/index.js +8 -1
  229. package/src/components/DropdownButton/renderItem.js +1 -1
  230. package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
  231. package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
  232. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
  233. package/src/components/ExpressionEditor/index.d.ts +1 -1
  234. package/src/components/ExpressionEditor/index.js +12 -5
  235. package/src/components/FormLayout/index.js +1 -1
  236. package/src/components/OverlayTrigger/Overlay.js +1 -1
  237. package/src/components/SizedContainer/index.js +7 -1
  238. package/src/components/WindowModal/WindowModal.js +4 -1
  239. package/src/metamodel/adaptable.metamodel.d.ts +75 -24
  240. package/src/metamodel/adaptable.metamodel.js +223 -115
  241. package/src/types.d.ts +6 -3
  242. package/themes/dark.css +4 -4
  243. package/version.d.ts +1 -1
  244. package/version.js +1 -1
@@ -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
  };
@@ -13,8 +13,14 @@ const react_redux_1 = require("react-redux");
13
13
  const PlusMinusRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/PlusMinusRedux"));
14
14
  exports.PlusMinusWizard = (props) => {
15
15
  const [plusMinus, setPlusMinus] = React.useState(() => {
16
- var _a, _b, _c, _d;
17
- return Object.assign(Object.assign({}, (props.data ? props.data : ObjectFactory_1.default.CreateEmptyPlusMinusNudge())), { Scope: (_b = (_a = props === null || props === void 0 ? void 0 : props.data) === null || _a === void 0 ? void 0 : _a.Scope) !== null && _b !== void 0 ? _b : { All: true }, NudgeValue: (_d = (_c = props === null || props === void 0 ? void 0 : props.data) === null || _c === void 0 ? void 0 : _c.NudgeValue) !== null && _d !== void 0 ? _d : 20 });
16
+ var _a, _b, _c, _d, _e;
17
+ const newPlusMinus = Object.assign(Object.assign({}, (props.data ? props.data : ObjectFactory_1.default.CreateEmptyPlusMinusNudge())), { Scope: (_b = (_a = props === null || props === void 0 ? void 0 : props.data) === null || _a === void 0 ? void 0 : _a.Scope) !== null && _b !== void 0 ? _b : { All: true }, NudgeValue: (_d = (_c = props === null || props === void 0 ? void 0 : props.data) === null || _c === void 0 ? void 0 : _c.NudgeValue) !== null && _d !== void 0 ? _d : 20 });
18
+ if ((_e = props === null || props === void 0 ? void 0 : props.popupParams) === null || _e === void 0 ? void 0 : _e.column) {
19
+ newPlusMinus.Scope = {
20
+ ColumnIds: [props.popupParams.column.columnId],
21
+ };
22
+ }
23
+ return newPlusMinus;
18
24
  });
19
25
  const [hasCondition, setHasCondition] = React.useState(() => {
20
26
  var _a;
@@ -33,13 +33,20 @@ class ExpandedQueryPopupComponent extends React.Component {
33
33
  namedQuery: this.state.namedQuery,
34
34
  setNamedQuery: (namedQuery) => this.setState({ namedQuery }),
35
35
  } },
36
- React.createElement(PanelWithButton_1.PanelWithButton, { headerText: "Current Query", bodyProps: { padding: 0, style: { display: 'flex', flexDirection: 'column' } }, glyphicon: this.props.moduleInfo.Glyph },
36
+ React.createElement(PanelWithButton_1.PanelWithButton, { headerText: "Current Query", bodyProps: {
37
+ padding: 0,
38
+ style: { display: 'flex', flexDirection: 'column' },
39
+ }, glyphicon: this.props.moduleInfo.Glyph },
37
40
  React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'boolean', module: ModuleConstants_1.QueryModuleId, value: this.state.expression, onChange: (expression) => this.setState({ expression }), initialData: initialData, columns: this.props.api.columnApi.getQueryableColumns(), namedQueries: this.props.api.queryApi.getAllNamedQuery(), api: this.props.api }),
38
41
  React.createElement(rebass_1.Flex, { flexDirection: "row", padding: 1, backgroundColor: "primary", alignItems: "center" },
39
42
  React.createElement(SimpleButton_1.default, { margin: 1, variant: "text", "data-name": "action-close", onClick: () => {
40
43
  this.props.onClosePopup();
41
44
  } }, "CLOSE"),
42
- React.createElement(rebass_1.Text, { fontSize: 2, mr: 3, style: { flex: 1, color: 'var(--ab-color-error)', textAlign: 'end' } }, namedQueryValidationError),
45
+ React.createElement(rebass_1.Text, { fontSize: 2, mr: 3, style: {
46
+ flex: 1,
47
+ color: 'var(--ab-color-error)',
48
+ textAlign: 'end',
49
+ } }, namedQueryValidationError),
43
50
  React.createElement(SimpleButton_1.default, { variant: "raised", tone: "accent", "data-name": "action-run", margin: 1, onClick: () => {
44
51
  if (this.state.namedQuery) {
45
52
  this.props.onAddNamedQuery(this.state.namedQuery);
@@ -74,32 +74,37 @@ class QueryViewPanelComponent extends React.Component {
74
74
  let availableColumns = this.props.api.columnApi.getColumns().map((col) => {
75
75
  return {
76
76
  label: col.friendlyName,
77
- onClick: () => this.setState({ expression: this.state.expression + `[${col.columnId}]` }),
77
+ onClick: () => this.setState({
78
+ expression: this.state.expression + `[${col.columnId}]`,
79
+ }),
78
80
  };
79
81
  });
80
82
  const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
83
+ const handleEnter = (e) => {
84
+ if (e.key === 'Enter') {
85
+ this.runQuery();
86
+ }
87
+ };
81
88
  const renderTextInput = () => {
82
89
  return this.props.viewType === 'Toolbar' ? (React.createElement(FieldWrap_1.default, { marginRight: 1, width: 600 },
83
90
  React.createElement(ButtonExpand_1.ButtonExpand, { variant: "text", tone: "neutral", onClick: () => this.props.onExpand(this.state.expression), tooltip: "Expand", marginLeft: 1 }),
84
- React.createElement(Input_1.default, { type: "text", placeholder: "Query", spellCheck: false, value: this.state.expression, onChange: (x) => this.setState({ expression: x.target.value }), style: { fontFamily: 'monospace', fontSize: 12 }, onKeyDown: (e) => {
85
- if (e.key === 'Enter') {
86
- this.runQuery();
87
- }
88
- } }),
91
+ React.createElement(Input_1.default, { type: "text", placeholder: "Query", spellCheck: false, value: this.state.expression, onChange: (x) => this.setState({ expression: x.target.value }), style: { fontFamily: 'monospace', fontSize: 12 } }),
89
92
  isExpressionValid ? (React.createElement(ButtonPlay_1.ButtonPlay, { onClick: () => this.runQuery(), tooltip: '', accessLevel: 'Full', variant: "text", tone: "neutral", disabled: this.state.expression == '' || this.state.expression == this.props.CurrentQuery, marginRight: 1 })) : (React.createElement(ButtonInvalid_1.ButtonInvalid, { variant: "text", tone: "neutral", tooltip: "Invalid Query", marginRight: 1 })),
90
93
  ' ',
91
- this.props.CurrentQuery !== '' && (React.createElement(ButtonClear_1.ButtonClear, { onClick: () => this.props.onRunQuery(''), tooltip: "Clear Query", accessLevel: 'Full' })))) : (React.createElement(Input_1.default, { type: "text", placeholder: "Query", spellCheck: false, value: this.state.expression, onChange: (x) => this.setState({ expression: x.target.value }), style: { width: '100%' } }));
94
+ this.props.CurrentQuery !== '' && (React.createElement(ButtonClear_1.ButtonClear, { onClick: () => this.clearQuery(), tooltip: "Clear Query", accessLevel: 'Full' })))) : (React.createElement(Input_1.default, { type: "text", placeholder: "Query", spellCheck: false, value: this.state.expression, onChange: (x) => this.setState({ expression: x.target.value }), style: { width: '100%' } }));
92
95
  };
93
96
  const queryModuleAccessLevel = this.props.api.internalApi
94
97
  .getEntitlementService()
95
98
  .getEntitlementAccessLevelForModule(ModuleConstants_1.QueryModuleId);
99
+ const saveButton = (React.createElement(ButtonSave_1.ButtonSave, { onClick: () => this.saveQuery(), tooltip: "Save as New Query", accessLevel: queryModuleAccessLevel, disabled: !isExpressionValid || isExpressionNamedQuery || this.state.expression == '', variant: "text", tone: "neutral", marginRight: 1 }));
96
100
  const renderButtons = () => {
97
101
  return this.props.viewType === 'Toolbar' ? (React.createElement(React.Fragment, null,
98
- React.createElement(ButtonSave_1.ButtonSave, { onClick: () => this.saveQuery(), tooltip: "Save as New Query", accessLevel: queryModuleAccessLevel, disabled: !isExpressionValid || isExpressionNamedQuery || this.state.expression == '', variant: "text", tone: "neutral", marginRight: 1 }),
102
+ saveButton,
99
103
  React.createElement(DropdownButton_1.default, { variant: "text", items: availableColumns, marginRight: 1, tooltip: "Pick Columns" },
100
104
  React.createElement(icons_1.Icon, { name: 'list' })),
101
105
  React.createElement(DropdownButton_1.default, { disabled: ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(availableSearches), variant: "text", items: availableSearches, marginRight: 1, tooltip: "Load Query", icon: "folder-open" }),
102
106
  ' ')) : (React.createElement(React.Fragment, null,
107
+ saveButton,
103
108
  React.createElement(ButtonExpand_1.ButtonExpand, { variant: "text", tone: "neutral", onClick: () => this.props.onExpand(this.state.expression), tooltip: "Expand", marginLeft: 1 }),
104
109
  React.createElement(ButtonClear_1.ButtonClear, { onClick: () => this.clearQuery(), tooltip: "Clear Query", accessLevel: 'Full', disabled: this.state.expression == '' }),
105
110
  React.createElement(ButtonPlay_1.ButtonPlay, { onClick: () => this.runQuery(), tooltip: "Run Query", accessLevel: 'Full', variant: "text", tone: "neutral", disabled: !isExpressionValid ||
@@ -107,12 +112,12 @@ class QueryViewPanelComponent extends React.Component {
107
112
  this.state.expression == this.props.CurrentQuery, marginRight: 1 }),
108
113
  React.createElement(DropdownButton_1.default, { variant: "text", disabled: ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(availableSearches), items: availableSearches, marginRight: 1, tooltip: "Load Query", icon: "folder-open" })));
109
114
  };
110
- return (React.createElement(rebass_1.Flex, { flexDirection: "row", className: `ab-${elementType}__Query__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
115
+ return (React.createElement(rebass_1.Flex, { onKeyDown: handleEnter, flexDirection: "row", className: `ab-${elementType}__Query__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
111
116
  React.createElement(rebass_1.Flex, null, renderTextInput()),
112
117
  React.createElement(rebass_1.Flex, null, renderButtons())));
113
118
  }
114
119
  clearQuery() {
115
- this.setState({ expression: '' });
120
+ this.props.onRunQuery('');
116
121
  }
117
122
  saveQuery() {
118
123
  this.props.onShowNamedQueries(this.state.expression, this.props.moduleInfo.Popup);
@@ -14,9 +14,11 @@ const react_redux_1 = require("react-redux");
14
14
  const QueryRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/QueryRedux"));
15
15
  function NamedQueryWizard(props) {
16
16
  const [namedQuery, setNamedQuery] = react_1.useState(() => {
17
+ var _a, _b;
18
+ const value = (_b = (_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '';
17
19
  return props.data
18
20
  ? Helper_1.cloneObject(props.data)
19
- : ObjectFactory_1.default.CreateEmptyNamedQuery();
21
+ : ObjectFactory_1.default.CreateEmptyNamedQuery(value);
20
22
  });
21
23
  const dispatch = react_redux_1.useDispatch();
22
24
  const handleFinish = () => {
@@ -31,14 +33,14 @@ function NamedQueryWizard(props) {
31
33
  return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, onFinish: handleFinish, sections: [
32
34
  {
33
35
  title: 'Expression',
34
- details: 'Specify the query expression',
36
+ details: "Specify the Query's Expression",
35
37
  renderSummary: NamedQueryExpressionWizardSection_1.renderNamedQueryExpressionSummary,
36
38
  isValid: NamedQueryExpressionWizardSection_1.isValidNamedQueryExpression,
37
39
  render: () => React.createElement(NamedQueryExpressionWizardSection_1.NamedQueryExpressionWizardSection, { onChange: setNamedQuery }),
38
40
  },
39
41
  {
40
42
  title: 'Query Name',
41
- details: 'Specify a unique name for the query',
43
+ details: 'Specify a unique name for the Query',
42
44
  renderSummary: NamedQuerySettingsWizardSection_1.renderNamedQuerySettingsSummary,
43
45
  isValid: NamedQuerySettingsWizardSection_1.isValidNamedQuerySettings,
44
46
  render: () => {
@@ -48,7 +50,7 @@ function NamedQueryWizard(props) {
48
50
  '-',
49
51
  {
50
52
  title: 'Summary',
51
- details: 'Review your query',
53
+ details: 'Review your Query',
52
54
  render: () => {
53
55
  return (React.createElement(rebass_1.Box, { padding: 2 },
54
56
  React.createElement(OnePageAdaptableWizard_1.OnePageWizardSummary, null)));
@@ -18,8 +18,7 @@ const useQuickSearchDebounced_1 = require("./useQuickSearchDebounced");
18
18
  const QuickSearchPopupComponent = (props) => {
19
19
  const [searchText, search] = useQuickSearchDebounced_1.useQuickSearchDebounced(props);
20
20
  const [state, setState] = react_1.useState({
21
- RunQueryAfterQuickSearch: props.api.internalApi.getAdaptableOptions().searchOptions
22
- .filterResultsAfterQuickSearch,
21
+ RunQueryAfterQuickSearch: props.api.internalApi.getAdaptableOptions().searchOptions.filterResultsAfterQuickSearch,
23
22
  EditedStyle: props.QuickSearchStyle,
24
23
  });
25
24
  const onUpdateStyle = (style) => {
@@ -28,7 +27,8 @@ const QuickSearchPopupComponent = (props) => {
28
27
  };
29
28
  const onQuickSearchBehaviourChange = (checked) => {
30
29
  setState(Object.assign(Object.assign({}, state), { RunQueryAfterQuickSearch: checked }));
31
- props.api.internalApi.getAdaptableOptions().searchOptions.filterResultsAfterQuickSearch = checked;
30
+ props.api.internalApi.getAdaptableOptions().searchOptions.filterResultsAfterQuickSearch =
31
+ checked;
32
32
  };
33
33
  return (React.createElement(PopupPanel_1.PopupPanel, { headerText: props.moduleInfo.FriendlyName, glyphicon: props.moduleInfo.Glyph, infoLink: props.moduleInfo.HelpPage, infoLinkDisabled: !props.api.internalApi.isDocumentationLinksDisplayed() },
34
34
  React.createElement(Panel_1.default, { header: props.moduleInfo.FriendlyName + ' Text', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginLeft: 2, marginRight: 2 },
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useQuickSearchDebounced = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = require("react");
6
- const debounce_1 = tslib_1.__importDefault(require("lodash-es/debounce"));
6
+ const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
7
7
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
8
8
  exports.useQuickSearchDebounced = (props) => {
9
9
  var _a;
@@ -64,11 +64,21 @@ exports.getScheduleSettingsValues = (data) => {
64
64
  }
65
65
  if (data.ScheduleType === Enums_1.ScheduleType.Glue42) {
66
66
  const report = data;
67
- return [{ label: 'Report', value: (report === null || report === void 0 ? void 0 : report.Glue42Report.ReportName) || 'Not Specified' }];
67
+ return [
68
+ {
69
+ label: 'Report',
70
+ value: (report === null || report === void 0 ? void 0 : report.Glue42Report.ReportName) || 'Not Specified',
71
+ },
72
+ ];
68
73
  }
69
74
  if (data.ScheduleType === Enums_1.ScheduleType.OpenFin) {
70
75
  const report = data;
71
- return [{ label: 'Report', value: (report === null || report === void 0 ? void 0 : report.OpenFinReport.ReportName) || 'Not Specified' }];
76
+ return [
77
+ {
78
+ label: 'Report',
79
+ value: (report === null || report === void 0 ? void 0 : report.OpenFinReport.ReportName) || 'Not Specified',
80
+ },
81
+ ];
72
82
  }
73
83
  return [];
74
84
  };
@@ -13,39 +13,39 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/Obje
13
13
  const react_redux_1 = require("react-redux");
14
14
  const ScheduleRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ScheduleRedux"));
15
15
  exports.ScheduleWizard = (props) => {
16
- var _a;
17
- const scheduleType = props.data
18
- ? props.data.ScheduleType
19
- : (_a = props === null || props === void 0 ? void 0 : props.abObjectType) === null || _a === void 0 ? void 0 : _a.name;
16
+ var _a, _b;
17
+ const data = (_a = props.data) !== null && _a !== void 0 ? _a : props.popupParams.value;
18
+ const isNew = props.popupParams.action ? props.popupParams.action === 'New' : !props.data;
19
+ const scheduleType = data ? data.ScheduleType : (_b = props === null || props === void 0 ? void 0 : props.abObjectType) === null || _b === void 0 ? void 0 : _b.name;
20
20
  const [schedule, setSchedule] = React.useState(() => {
21
- if (props.data) {
22
- return props.data;
21
+ if (data) {
22
+ return data;
23
23
  }
24
- let data = null;
24
+ let scheduleState = null;
25
25
  switch (scheduleType) {
26
26
  case Enums_1.ScheduleType.Reminder:
27
- data = ObjectFactory_1.default.CreateEmptyReminderSchedule();
27
+ scheduleState = ObjectFactory_1.default.CreateEmptyReminderSchedule();
28
28
  break;
29
29
  case Enums_1.ScheduleType.Report:
30
- data = ObjectFactory_1.default.CreateEmptyReportSchedule();
30
+ scheduleState = ObjectFactory_1.default.CreateEmptyReportSchedule();
31
31
  break;
32
32
  case Enums_1.ScheduleType.ipushpull:
33
- data = ObjectFactory_1.default.CreateEmptyIPushPullSchedule();
33
+ scheduleState = ObjectFactory_1.default.CreateEmptyIPushPullSchedule();
34
34
  break;
35
35
  case Enums_1.ScheduleType.Glue42:
36
- data = ObjectFactory_1.default.CreateEmptyGlue42Schedule();
36
+ scheduleState = ObjectFactory_1.default.CreateEmptyGlue42Schedule();
37
37
  break;
38
38
  case Enums_1.ScheduleType.OpenFin:
39
- data = ObjectFactory_1.default.CreateEmptyOpenFinSchedule();
39
+ scheduleState = ObjectFactory_1.default.CreateEmptyOpenFinSchedule();
40
40
  break;
41
41
  }
42
- return data;
42
+ return scheduleState;
43
43
  });
44
44
  const [isOneOff, setIsOneOff] = React.useState(false);
45
45
  const dispatch = react_redux_1.useDispatch();
46
46
  const handleFinish = () => {
47
47
  let action = null;
48
- if (props.data) {
48
+ if (!isNew) {
49
49
  switch (scheduleType) {
50
50
  case Enums_1.ScheduleType.Reminder:
51
51
  action = ScheduleRedux.ReminderScheduleEdit(schedule);
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SpecialColumnSettingsWizardStep = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const chunk_1 = tslib_1.__importDefault(require("lodash-es/chunk"));
5
+ const chunk_1 = tslib_1.__importDefault(require("lodash/chunk"));
6
6
  const React = tslib_1.__importStar(require("react"));
7
7
  const rebass_1 = require("rebass");
8
8
  const CheckBox_1 = require("../components/CheckBox");
@@ -133,7 +133,10 @@ function getModalContainer(adaptableOptions, document) {
133
133
  let modalContainer;
134
134
  if (adaptableOptions.containerOptions.modalContainer) {
135
135
  // this has been set, so we use the property
136
- modalContainer = document.getElementById(adaptableOptions.containerOptions.modalContainer);
136
+ modalContainer =
137
+ typeof adaptableOptions.containerOptions.modalContainer === 'string'
138
+ ? document.getElementById(adaptableOptions.containerOptions.modalContainer)
139
+ : adaptableOptions.containerOptions.modalContainer;
137
140
  if (modalContainer) {
138
141
  const modalContainerClassName = ' modal-container';
139
142
  if (!modalContainer.className.includes(modalContainerClassName)) {
@@ -9,7 +9,7 @@ const rebass_1 = require("rebass");
9
9
  const Dialog_1 = tslib_1.__importDefault(require("../../components/Dialog"));
10
10
  const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
11
11
  const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
12
- const kebabCase_1 = tslib_1.__importDefault(require("lodash-es/kebabCase"));
12
+ const kebabCase_1 = tslib_1.__importDefault(require("lodash/kebabCase"));
13
13
  exports.AdaptableWizardContext = React.createContext({
14
14
  data: null,
15
15
  updateGoBackState: () => { },
@@ -91,7 +91,10 @@ class AdaptableWizard extends React.Component {
91
91
  let bodyElement = wizardStepInfo.Element;
92
92
  let newElement = this.cloneWizardStep(bodyElement);
93
93
  this.stepName = wizardStepInfo.StepName;
94
- this.setState({ ActiveState: newElement, IndexState: wizardStepInfo.Index });
94
+ this.setState({
95
+ ActiveState: newElement,
96
+ IndexState: wizardStepInfo.Index,
97
+ });
95
98
  }
96
99
  ForceUpdateGoBackState() {
97
100
  this.forceUpdate();
@@ -114,7 +117,10 @@ class AdaptableWizard extends React.Component {
114
117
  let bodyElement = activeWizardInfo.Element;
115
118
  let newElement = this.cloneWizardStep(bodyElement);
116
119
  this.stepName = activeWizardInfo.StepName;
117
- this.setState({ ActiveState: newElement, IndexState: this.state.IndexState - decrement });
120
+ this.setState({
121
+ ActiveState: newElement,
122
+ IndexState: this.state.IndexState - decrement,
123
+ });
118
124
  }
119
125
  }
120
126
  }
@@ -126,7 +132,10 @@ class AdaptableWizard extends React.Component {
126
132
  let bodyElement = activeWizardInfo.Element;
127
133
  let newElement = this.cloneWizardStep(bodyElement);
128
134
  this.stepName = activeWizardInfo.StepName;
129
- this.setState({ ActiveState: newElement, IndexState: this.state.IndexState + increment });
135
+ this.setState({
136
+ ActiveState: newElement,
137
+ IndexState: this.state.IndexState + increment,
138
+ });
130
139
  }
131
140
  }
132
141
  handleClickFinish() {
@@ -2,6 +2,7 @@
2
2
  import { AdaptableObject } from '../../../PredefinedConfig/Common/AdaptableObject';
3
3
  import { AdaptableApi } from '../../../Api/AdaptableApi';
4
4
  import { ModuleInfo } from '../../../Strategy/Interface/IModule';
5
+ import { ModuleParams } from '../../Components/SharedProps/ModuleViewPopupProps';
5
6
  export interface AdaptableWizardStep {
6
7
  canNext(): boolean;
7
8
  canBack(): boolean;
@@ -44,4 +45,5 @@ export interface AdaptableOnePageWizardProps<T extends AdaptableObject> {
44
45
  name: string;
45
46
  label?: string;
46
47
  };
48
+ popupParams?: ModuleParams;
47
49
  }
@@ -9,7 +9,7 @@ const rebass_1 = require("rebass");
9
9
  const QueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QueryRedux"));
10
10
  const Dialog_1 = tslib_1.__importDefault(require("../../components/Dialog"));
11
11
  const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
12
- const kebabCase_1 = tslib_1.__importDefault(require("lodash-es/kebabCase"));
12
+ const kebabCase_1 = tslib_1.__importDefault(require("lodash/kebabCase"));
13
13
  const useProperty_1 = tslib_1.__importDefault(require("../../components/utils/useProperty"));
14
14
  const AdaptableContext_1 = require("../AdaptableContext");
15
15
  const isMacLike_1 = require("../../Utilities/isMacLike");
@@ -191,7 +191,11 @@ exports.OnePageAdaptableWizard = (props) => {
191
191
  React.createElement(rebass_1.Flex, { flexDirection: "row", padding: 2, alignItems: "center", className: "ab-WizardDialog__footer ab-OnePageWizard__footer" },
192
192
  React.createElement(SimpleButton_1.default, { tone: "neutral", variant: "text", "data-name": "close", onClick: () => { var _a; return (_a = props.onHide) === null || _a === void 0 ? void 0 : _a.call(props); }, tooltip: (_a = props.closeTooltip) !== null && _a !== void 0 ? _a : 'Close wizard', accessLevel: 'Full' }, (_b = props.closeText) !== null && _b !== void 0 ? _b : 'CLOSE'),
193
193
  React.createElement(KeyHint_1.KeyHint, { ml: 2 }, "Esc"),
194
- React.createElement(rebass_1.Text, { fontSize: 2, mr: 3, className: "ab-OnePageWizard__error", style: { flex: 1, color: 'var(--ab-color-error)', textAlign: 'end' } }, firstErrorMessage),
194
+ React.createElement(rebass_1.Text, { fontSize: 2, mr: 3, className: "ab-OnePageWizard__error", style: {
195
+ flex: 1,
196
+ color: 'var(--ab-color-error)',
197
+ textAlign: 'end',
198
+ } }, firstErrorMessage),
195
199
  React.createElement(SimpleButton_1.default, { tone: "accent", "data-name": "finish", variant: "raised", disabled: canFinish !== true, onClick: () => handleClickFinish(), icon: 'check', accessLevel: 'Full' }, "Finish")))))));
196
200
  };
197
201
  exports.OnePageWizardSummary = () => {
@@ -129,8 +129,6 @@ export declare class Adaptable implements IAdaptable {
129
129
  private getAlertCellClass;
130
130
  private getAlertRowClass;
131
131
  private getAlertRowStyle;
132
- private getFlashingCellRowStyle;
133
- private getFlashingCellStyleFor;
134
132
  private getFlashingCellStyle;
135
133
  private getCellHighlightStyle;
136
134
  private getRowHighlightStyle;
@@ -167,9 +165,8 @@ export declare class Adaptable implements IAdaptable {
167
165
  private isInternallyRenderedColumn;
168
166
  getDisplayValue(id: any, columnId: string): string | undefined;
169
167
  getGridCellFromRowNode(rowNode: RowNode, columnId: string): GridCell | undefined;
170
- getDisplayValueFromRowNode(row: RowNode, columnId: string): string | undefined;
171
- getFormattedValueFromRawValue(rawValue: any, columnId: string): string | undefined;
172
- getDisplayValueFromRawValue(columnId: string, rawValue: any, skipCellRenderers?: boolean): string | undefined;
168
+ getDisplayValueFromRowNode(rowNode: RowNode, columnId: string): string | undefined;
169
+ getDisplayValueFromRawValue(columnId: string, rawValue: any): string | undefined;
173
170
  private getFormattedValue;
174
171
  private getNormalisedValueFromRowValue;
175
172
  getRawValueFromRowNode(rowNode: RowNode, columnId: string): any;