@adaptabletools/adaptable 11.0.0-canary.1 → 11.0.0-canary.5

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 (210) hide show
  1. package/base.css +138 -68
  2. package/bundle.cjs.js +97 -93
  3. package/index.css +140 -68
  4. package/package.json +33 -33
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
  8. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
  9. package/src/AdaptableOptions/AdaptableOptions.d.ts +10 -1
  10. package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
  11. package/src/AdaptableOptions/AlertOptions.js +2 -0
  12. package/src/AdaptableOptions/ContainerOptions.d.ts +1 -1
  13. package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
  15. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
  16. package/src/AdaptableOptions/QueryLanguageOptions.d.ts +0 -4
  17. package/src/AdaptableOptions/StateOptions.d.ts +2 -1
  18. package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
  19. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -3
  20. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
  21. package/src/Api/AdaptableApi.d.ts +1 -0
  22. package/src/Api/AlertApi.d.ts +2 -3
  23. package/src/Api/EventApi.d.ts +8 -3
  24. package/src/Api/Events/GridDataChanged.d.ts +4 -2
  25. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
  26. package/src/Api/FreeTextColumnApi.d.ts +0 -12
  27. package/src/Api/GridApi.d.ts +5 -4
  28. package/src/Api/IPushPullApi.d.ts +1 -1
  29. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
  30. package/src/Api/Implementation/AlertApiImpl.js +15 -9
  31. package/src/Api/Implementation/ApiBase.d.ts +2 -0
  32. package/src/Api/Implementation/ApiBase.js +3 -0
  33. package/src/Api/Implementation/DashboardApiImpl.js +1 -1
  34. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
  35. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
  36. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
  37. package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
  38. package/src/Api/Implementation/GridApiImpl.js +4 -0
  39. package/src/Api/Implementation/InternalApiImpl.js +2 -2
  40. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  41. package/src/Api/Implementation/LayoutApiImpl.js +12 -1
  42. package/src/Api/Implementation/QueryApiImpl.js +4 -1
  43. package/src/Api/Implementation/QueryLanguageApiImpl.js +4 -5
  44. package/src/Api/LayoutApi.d.ts +7 -0
  45. package/src/Api/OpenFinApi.d.ts +5 -0
  46. package/src/Api/PluginsApi.d.ts +29 -0
  47. package/src/Api/UserInterfaceApi.d.ts +5 -2
  48. package/src/PredefinedConfig/AlertState.d.ts +2 -4
  49. package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
  50. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
  51. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
  52. package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
  53. package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
  54. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
  55. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  56. package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
  57. package/src/PredefinedConfig/FlashingCellState.d.ts +5 -2
  58. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  59. package/src/PredefinedConfig/LayoutState.d.ts +0 -2
  60. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
  61. package/src/PredefinedConfig/SystemState.d.ts +2 -1
  62. package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
  63. package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
  64. package/src/Redux/ActionsReducers/GridRedux.js +3 -1
  65. package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
  66. package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
  67. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
  68. package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
  69. package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
  70. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
  71. package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
  72. package/src/Redux/Store/AdaptableStore.js +18 -6
  73. package/src/Strategy/AlertModule.js +5 -4
  74. package/src/Strategy/ConditionalStyleModule.js +4 -0
  75. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  76. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  77. package/src/Strategy/FlashingCellModule.js +34 -18
  78. package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
  79. package/src/Strategy/FreeTextColumnModule.js +10 -0
  80. package/src/Strategy/LayoutModule.js +1 -6
  81. package/src/Strategy/TeamSharingModule.js +1 -1
  82. package/src/Strategy/ToolPanelModule.js +5 -3
  83. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
  84. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
  85. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
  86. package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
  87. package/src/Strategy/Utilities/getRuleViewItems.js +0 -1
  88. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +6 -4
  89. package/src/Utilities/ExpressionFunctions/aggregationExpressionFunctions.js +1 -1
  90. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  91. package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
  92. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
  93. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
  94. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
  95. package/src/Utilities/Extensions/StringExtensions.js +1 -1
  96. package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
  97. package/src/Utilities/Helpers/CalendarHelper.js +220 -55
  98. package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
  99. package/src/Utilities/ObjectFactory.js +5 -2
  100. package/src/Utilities/Services/DataService.js +6 -1
  101. package/src/Utilities/Services/LicenseService.js +1 -1
  102. package/src/Utilities/Services/QueryLanguageService.js +16 -11
  103. package/src/Utilities/Services/ReportService.js +7 -3
  104. package/src/Utilities/Services/TeamSharingService.js +5 -3
  105. package/src/View/AdaptablePopover/index.js +6 -1
  106. package/src/View/AdaptableView.js +1 -1
  107. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
  108. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -2
  109. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
  110. package/src/View/AdaptableWizardView/helper.js +3 -1
  111. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
  112. package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
  113. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
  114. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
  115. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -3
  116. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +15 -4
  117. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
  118. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  119. package/src/View/Components/FilterForm/FilterForm.js +0 -2
  120. package/src/View/Components/FilterForm/QuickFilterForm.js +8 -7
  121. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  122. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  123. package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
  124. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
  125. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -87
  126. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
  127. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
  128. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
  129. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
  130. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
  131. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
  132. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
  133. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
  134. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
  135. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
  136. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
  137. package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
  138. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
  139. package/src/View/Components/ScopeComponent.js +4 -1
  140. package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
  141. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
  142. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -2
  143. package/src/View/Components/ToolPanel/ToolPanelPopup.js +7 -5
  144. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
  145. package/src/View/Components/ValueSelector/index.d.ts +2 -1
  146. package/src/View/Components/ValueSelector/index.js +5 -5
  147. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
  148. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
  149. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +17 -5
  150. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
  151. package/src/View/CustomSort/Wizard/CustomSortWizard.js +16 -4
  152. package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
  153. package/src/View/Dashboard/Dashboard.js +5 -5
  154. package/src/View/Dashboard/DashboardPopup.js +8 -6
  155. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  156. package/src/View/Export/Wizard/NewReportWizard.js +13 -3
  157. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
  158. package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
  159. package/src/View/Filter/FilterViewPanel.d.ts +1 -4
  160. package/src/View/Filter/FilterViewPanel.js +1 -3
  161. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
  162. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
  163. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -5
  164. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
  165. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  166. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +10 -5
  167. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
  168. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +12 -5
  169. package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
  170. package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -1
  171. package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
  172. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
  173. package/src/View/Query/ExpandedQueryPopup.js +9 -2
  174. package/src/View/Query/QueryViewPanel.js +15 -10
  175. package/src/View/Query/Wizard/NamedQueryWizard.js +3 -1
  176. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  177. package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
  178. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
  179. package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
  180. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  181. package/src/View/UIHelper.js +4 -1
  182. package/src/View/Wizard/AdaptableWizard.js +13 -4
  183. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
  184. package/src/View/Wizard/OnePageAdaptableWizard.js +6 -2
  185. package/src/agGrid/Adaptable.d.ts +2 -5
  186. package/src/agGrid/Adaptable.js +126 -73
  187. package/src/agGrid/agGridHelper.js +2 -3
  188. package/src/agGrid/agGridMenuHelper.js +5 -9
  189. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  190. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  191. package/src/components/ApplicationIcon.d.ts +1 -0
  192. package/src/components/ApplicationIcon.js +2 -2
  193. package/src/components/Dashboard/Dashboard.js +4 -1
  194. package/src/components/Dashboard/DashboardManager.d.ts +5 -3
  195. package/src/components/Dashboard/DashboardManager.js +33 -27
  196. package/src/components/Dropdown/index.js +8 -1
  197. package/src/components/DropdownButton/renderItem.js +1 -1
  198. package/src/components/ExpressionEditor/EditorInputReactive.js +3 -1
  199. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
  200. package/src/components/ExpressionEditor/index.js +9 -2
  201. package/src/components/FormLayout/index.js +1 -1
  202. package/src/components/OverlayTrigger/Overlay.js +1 -1
  203. package/src/components/SizedContainer/index.js +7 -1
  204. package/src/components/WindowModal/WindowModal.js +4 -1
  205. package/src/metamodel/adaptable.metamodel.d.ts +64 -24
  206. package/src/metamodel/adaptable.metamodel.js +187 -99
  207. package/src/types.d.ts +4 -2
  208. package/themes/dark.css +4 -4
  209. package/version.d.ts +1 -1
  210. package/version.js +1 -1
@@ -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 = () => {
@@ -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;