@adaptabletools/adaptable 11.1.3 → 11.1.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 (125) hide show
  1. package/bundle.cjs.js +139 -139
  2. package/package.json +3 -3
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -1
  6. package/src/AdaptableOptions/AdaptableOptions.d.ts +49 -49
  7. package/src/AdaptableOptions/DashboardOptions.d.ts +1 -1
  8. package/src/AdaptableOptions/EditOptions.d.ts +4 -0
  9. package/src/AdaptableOptions/FinancePluginOptions.d.ts +139 -9
  10. package/src/AdaptableOptions/OpenFinPluginOptions.d.ts +3 -3
  11. package/src/AdaptableOptions/SmartEdit.d.ts +34 -0
  12. package/src/AdaptableOptions/SmartEdit.js +2 -0
  13. package/src/Api/AdaptableApi.d.ts +4 -1
  14. package/src/Api/EventApi.d.ts +1 -1
  15. package/src/Api/Implementation/ColumnApiImpl.js +5 -2
  16. package/src/Api/Implementation/FilterApiImpl.js +8 -2
  17. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
  18. package/src/Api/Implementation/FormatColumnApiImpl.js +11 -7
  19. package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
  20. package/src/Api/Implementation/GridApiImpl.js +6 -8
  21. package/src/Api/Implementation/InternalApiImpl.d.ts +4 -0
  22. package/src/Api/Implementation/InternalApiImpl.js +9 -0
  23. package/src/Api/Implementation/ScopeApiImpl.d.ts +2 -0
  24. package/src/Api/Implementation/ScopeApiImpl.js +12 -0
  25. package/src/Api/Implementation/SmartEditApiImpl.d.ts +3 -2
  26. package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -0
  27. package/src/Api/Implementation/ThemeApiImpl.js +3 -0
  28. package/src/Api/InternalApi.d.ts +4 -0
  29. package/src/Api/ScopeApi.d.ts +10 -0
  30. package/src/Api/SmartEditApi.d.ts +3 -2
  31. package/src/Api/ThemeApi.d.ts +4 -0
  32. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +8 -0
  33. package/src/PredefinedConfig/Common/FDC3Context.d.ts +144 -3
  34. package/src/PredefinedConfig/Common/Menu.d.ts +4 -0
  35. package/src/PredefinedConfig/ExportState.d.ts +0 -5
  36. package/src/PredefinedConfig/PopupState.d.ts +2 -1
  37. package/src/PredefinedConfig/SystemState.d.ts +2 -5
  38. package/src/Redux/ActionsReducers/PopupRedux.d.ts +22 -3
  39. package/src/Redux/ActionsReducers/PopupRedux.js +42 -8
  40. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -23
  41. package/src/Redux/ActionsReducers/SystemRedux.js +3 -32
  42. package/src/Redux/Store/AdaptableStore.js +11 -1
  43. package/src/Strategy/AlertModule.js +5 -4
  44. package/src/Strategy/CalculatedColumnModule.js +1 -1
  45. package/src/Strategy/ExportModule.js +14 -4
  46. package/src/Strategy/SmartEditModule.d.ts +2 -2
  47. package/src/Strategy/SmartEditModule.js +24 -13
  48. package/src/Strategy/Utilities/getExportColumnsViewItems.js +1 -1
  49. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +1 -1
  50. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +4 -2
  51. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +1 -1
  52. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +0 -3
  53. package/src/Utilities/Helpers/FormatHelper.js +6 -0
  54. package/src/Utilities/Interface/MessagePopups.d.ts +12 -0
  55. package/src/Utilities/Services/AlertService.d.ts +3 -3
  56. package/src/Utilities/Services/AlertService.js +6 -6
  57. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +3 -3
  58. package/src/Utilities/Services/CalculatedColumnExpressionService.js +20 -20
  59. package/src/Utilities/Services/EntitlementService.d.ts +3 -3
  60. package/src/Utilities/Services/EntitlementService.js +12 -8
  61. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
  62. package/src/Utilities/Services/MetamodelService.d.ts +3 -3
  63. package/src/Utilities/Services/MetamodelService.js +4 -4
  64. package/src/Utilities/Services/ModuleService.d.ts +3 -3
  65. package/src/Utilities/Services/ModuleService.js +12 -12
  66. package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
  67. package/src/Utilities/Services/QueryLanguageService.js +20 -19
  68. package/src/Utilities/Services/ReportService.d.ts +4 -4
  69. package/src/Utilities/Services/ReportService.js +50 -44
  70. package/src/Utilities/Services/TeamSharingService.d.ts +3 -3
  71. package/src/Utilities/Services/TeamSharingService.js +19 -16
  72. package/src/Utilities/Services/ValidationService.d.ts +3 -3
  73. package/src/Utilities/Services/ValidationService.js +19 -17
  74. package/src/View/AdaptableView.js +2 -2
  75. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +46 -9
  76. package/src/View/Alert/Wizard/AlertWizard.js +22 -24
  77. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +5 -5
  78. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +3 -3
  79. package/src/View/Components/Popups/FormPopups/FormPopups.d.ts +10 -0
  80. package/src/View/Components/Popups/FormPopups/FormPopups.js +37 -0
  81. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +1 -1
  82. package/src/View/Components/Selectors/ColumnSelector.js +1 -1
  83. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +1 -3
  84. package/src/View/DataSource/DataSourceViewPanel.d.ts +3 -3
  85. package/src/View/DataSource/DataSourceViewPanel.js +15 -13
  86. package/src/View/Export/ExportViewPanel.d.ts +1 -3
  87. package/src/View/Export/ExportViewPanel.js +1 -17
  88. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +5 -1
  89. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +1 -1
  90. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +15 -2
  91. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +2 -1
  92. package/src/View/GridInfo/AdaptableObjectsSummary.js +1 -1
  93. package/src/View/SmartEdit/SmartEditPopup.d.ts +3 -3
  94. package/src/View/SmartEdit/SmartEditPopup.js +15 -3
  95. package/src/View/SmartEdit/SmartEditViewPanel.d.ts +3 -4
  96. package/src/View/SmartEdit/SmartEditViewPanel.js +15 -6
  97. package/src/View/Wizard/OnePageAdaptableWizard.js +1 -1
  98. package/src/agGrid/Adaptable.d.ts +4 -4
  99. package/src/agGrid/Adaptable.js +37 -27
  100. package/src/agGrid/agGridMenuHelper.js +1 -0
  101. package/src/components/StylePreview.js +2 -2
  102. package/src/components/icons/analysis.d.ts +3 -0
  103. package/src/components/icons/analysis.js +8 -0
  104. package/src/components/icons/call.d.ts +3 -0
  105. package/src/components/icons/call.js +7 -0
  106. package/src/components/icons/chat.d.ts +3 -0
  107. package/src/components/icons/chat.js +8 -0
  108. package/src/components/icons/index.js +14 -0
  109. package/src/components/icons/instrument.d.ts +3 -0
  110. package/src/components/icons/instrument.js +8 -0
  111. package/src/components/icons/news.d.ts +3 -0
  112. package/src/components/icons/news.js +8 -0
  113. package/src/components/icons/person.d.ts +3 -0
  114. package/src/components/icons/person.js +7 -0
  115. package/src/components/icons/quote.d.ts +3 -0
  116. package/src/components/icons/quote.js +7 -0
  117. package/src/metamodel/adaptable.metamodel.d.ts +112 -5
  118. package/src/metamodel/adaptable.metamodel.js +219 -22
  119. package/src/types.d.ts +2 -2
  120. package/version.d.ts +1 -1
  121. package/version.js +1 -1
  122. package/src/View/Export/ExportCustomDestinationDialog.d.ts +0 -11
  123. package/src/View/Export/ExportCustomDestinationDialog.js +0 -47
  124. package/src/View/Export/ExportCustomDestinationFormPopups.d.ts +0 -5
  125. package/src/View/Export/ExportCustomDestinationFormPopups.js +0 -15
@@ -4,7 +4,6 @@ exports.ExportViewPanelControl = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
6
6
  const ExportRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ExportRedux"));
7
- const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
8
7
  const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
9
8
  const React = tslib_1.__importStar(require("react"));
10
9
  const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
@@ -74,22 +73,8 @@ class ExportViewPanelComponent extends React.Component {
74
73
  if (currentReport != null) {
75
74
  deleteMessage = deleteMessage + currentReport.Name + "'?";
76
75
  }
77
- const getCurrentCustomDestination = () => {
78
- return this.isCustomDestination(currentDestination) ? currentDestination : undefined;
79
- };
80
76
  const onApplyExport = () => {
81
- const currentCustomDestination = getCurrentCustomDestination();
82
- if (currentCustomDestination === null || currentCustomDestination === void 0 ? void 0 : currentCustomDestination.form) {
83
- this.props.showCustomDestinationForm({
84
- ExportDestination: currentCustomDestination,
85
- ReportName: this.props.CurrentReport,
86
- });
87
- }
88
- else {
89
- this.props.onApplyExport(currentReport, this.isCustomDestination(currentDestination)
90
- ? currentDestination.name
91
- : currentDestination);
92
- }
77
+ this.props.onApplyExport(currentReport, this.isCustomDestination(currentDestination) ? currentDestination.name : currentDestination);
93
78
  };
94
79
  const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
95
80
  return (React.createElement(rebass_1.Flex, { style: { gap: 5 }, flexDirection: "row", className: `ab-${elementType}__Export__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
@@ -153,7 +138,6 @@ function mapDispatchToProps(dispatch) {
153
138
  source: 'Toolbar',
154
139
  value: reportSchedule,
155
140
  })),
156
- showCustomDestinationForm: (data) => dispatch(SystemRedux.SystemExportCustomDestinationPopupShow(data)),
157
141
  };
158
142
  }
159
143
  exports.ExportViewPanelControl = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(ExportViewPanelComponent);
@@ -307,7 +307,11 @@ const renderStringFormat = (data, _onChange, setFormatOption) => {
307
307
  React.createElement(Radio_1.default, { marginLeft: 2, checked: data.DisplayFormat.Options.Case == 'Upper', onChange: (checked) => setFormatOption('Case', 'Upper') }, "Upper"),
308
308
  React.createElement(Radio_1.default, { marginLeft: 2, checked: data.DisplayFormat.Options.Case == 'Sentence', onChange: (checked) => setFormatOption('Case', 'Sentence') }, "Sentence"),
309
309
  React.createElement(Radio_1.default, { marginLeft: 2, checked: data.DisplayFormat.Options.Case == undefined, onChange: (checked) => setFormatOption('Case', undefined) }, "None"),
310
- React.createElement(CheckBox_1.CheckBox, { marginLeft: 5, checked: data.DisplayFormat.Options.Trim, onChange: (checked) => setFormatOption('Trim', checked) }, "Trim")))))),
310
+ React.createElement(CheckBox_1.CheckBox, { marginLeft: 5, checked: data.DisplayFormat.Options.Trim, onChange: (checked) => setFormatOption('Trim', checked) }, "Trim")),
311
+ React.createElement(FormLayout_1.FormRow, { label: "Prefix" },
312
+ React.createElement(Input_1.default, { value: data.DisplayFormat.Options.Prefix, onChange: (e) => setFormatOption('Prefix', e.currentTarget.value) })),
313
+ React.createElement(FormLayout_1.FormRow, { label: "Suffix" },
314
+ React.createElement(Input_1.default, { value: data.DisplayFormat.Options.Suffix, onChange: (e) => setFormatOption('Suffix', e.currentTarget.value) })))))),
311
315
  React.createElement(Tabs_1.Tabs, { marginTop: 2, keyboardNavigation: false },
312
316
  React.createElement(Tabs_1.Tabs.Tab, null, "Example"),
313
317
  React.createElement(Tabs_1.Tabs.Content, null,
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { FormatColumn } from '../../../PredefinedConfig/FormatColumnState';
3
3
  import { AdaptableApi } from '../../../Api/AdaptableApi';
4
- export declare const isFormatColumnStyleValid: (data: FormatColumn, api: AdaptableApi) => true | "No format applied";
4
+ export declare const isFormatColumnStyleValid: (data: FormatColumn, api: AdaptableApi) => true | "No format applied" | "Invalid Cell Range" | "Invalid Column Comparison Range";
5
5
  declare type FormatColumnStyleWizardSectionProps = {
6
6
  onChange: (data: FormatColumn) => void;
7
7
  };
@@ -17,6 +17,7 @@ const ColorPicker_1 = require("../../ColorPicker");
17
17
  const UIHelper_1 = tslib_1.__importStar(require("../../UIHelper"));
18
18
  const StyleVisualItem_1 = require("../../Components/StyleVisualItem");
19
19
  exports.isFormatColumnStyleValid = (data, api) => {
20
+ var _a, _b, _c, _d, _e;
20
21
  if (!data.ColumnStyle &&
21
22
  data.Style &&
22
23
  UIHelper_1.default.IsEmptyStyle(data.Style) &&
@@ -26,6 +27,17 @@ exports.isFormatColumnStyleValid = (data, api) => {
26
27
  !api.scopeApi.isSingleBooleanColumnScope(data.Scope)) {
27
28
  return 'No format applied';
28
29
  }
30
+ if ((_c = (_b = (_a = data.ColumnStyle) === null || _a === void 0 ? void 0 : _a.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges) === null || _c === void 0 ? void 0 : _c.length) {
31
+ if (data.ColumnStyle.PercentBarStyle.CellRanges.some((cellRange) => cellRange.Min == undefined || cellRange.Max == undefined)) {
32
+ return 'Invalid Cell Range';
33
+ }
34
+ }
35
+ if ((_e = (_d = data.ColumnStyle) === null || _d === void 0 ? void 0 : _d.PercentBarStyle) === null || _e === void 0 ? void 0 : _e.ColumnComparison) {
36
+ if (data.ColumnStyle.PercentBarStyle.ColumnComparison.MinValue == undefined ||
37
+ data.ColumnStyle.PercentBarStyle.ColumnComparison.MaxValue == undefined) {
38
+ return 'Invalid Column Comparison Range';
39
+ }
40
+ }
29
41
  return true;
30
42
  };
31
43
  const toStyle = (style) => {
@@ -95,7 +107,8 @@ function FormatColumnStyleWizardSection(props) {
95
107
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
96
108
  const { data, api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
97
109
  const singleNumericColumn = api.scopeApi.isSingleNumericColumnScope(data.Scope);
98
- const singleBooleanColumn = api.scopeApi.isSingleBooleanColumnScope(data.Scope);
110
+ const onlyBooleanColumnsInScope = api.scopeApi.areAllBooleanColumnsInScope(data.Scope) ||
111
+ api.scopeApi.scopeHasOnlyBooleanDataType(data.Scope);
99
112
  const onPercentBarCellTextCellValueChanged = (checked) => {
100
113
  var _a;
101
114
  let percentBarStyle = (_a = data.ColumnStyle) === null || _a === void 0 ? void 0 : _a.PercentBarStyle;
@@ -259,7 +272,7 @@ function FormatColumnStyleWizardSection(props) {
259
272
  }
260
273
  };
261
274
  return (React.createElement(React.Fragment, null,
262
- singleBooleanColumn && (React.createElement(Tabs_1.Tabs, null,
275
+ onlyBooleanColumnsInScope && (React.createElement(Tabs_1.Tabs, null,
263
276
  React.createElement(Tabs_1.Tabs.Tab, null, "CheckBox Column"),
264
277
  React.createElement(Tabs_1.Tabs.Content, null,
265
278
  React.createElement(HelpBlock_1.default, { fontSize: 2 }, "Shows each cell in the Column as a Checkbox"),
@@ -62,7 +62,8 @@ const adjustDisplayFormat = (formatColumn, api) => {
62
62
  const adjustFormatColumn = (formatColumn, api) => {
63
63
  formatColumn = adjustDisplayFormat(formatColumn, api);
64
64
  if (!api.scopeApi.isSingleNumericColumnScope(formatColumn.Scope) &&
65
- !api.scopeApi.isSingleBooleanColumnScope(formatColumn.Scope)) {
65
+ !(api.scopeApi.areAllBooleanColumnsInScope(formatColumn.Scope) ||
66
+ api.scopeApi.scopeHasOnlyBooleanDataType(formatColumn.Scope))) {
66
67
  // when people change the scope and select more than one (numeric) column
67
68
  // we have to discard any column style we might have
68
69
  delete formatColumn.ColumnStyle;
@@ -19,7 +19,7 @@ exports.AdaptableObjectsSummary = () => {
19
19
  if (!(items === null || items === void 0 ? void 0 : items.length)) {
20
20
  return null;
21
21
  }
22
- return (React.createElement("div", null,
22
+ return (React.createElement("div", { key: module.moduleInfo.ModuleName },
23
23
  React.createElement("b", null, module.moduleInfo.FriendlyName),
24
24
  (items === null || items === void 0 ? void 0 : items.length) && React.createElement(AdaptableObjectList_1.AdaptableObjectList, { items: items, module: module })));
25
25
  })));
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import * as SmartEditRedux from '../../Redux/ActionsReducers/SmartEditRedux';
3
3
  import * as SystemRedux from '../../Redux/ActionsReducers/SystemRedux';
4
- import { MathOperation } from '../../PredefinedConfig/Common/Enums';
5
4
  import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
6
5
  import { PreviewInfo } from '../../Utilities/Interface/Preview';
6
+ import { SmartEditOperation } from '../../AdaptableOptions/SmartEdit';
7
7
  interface SmartEditPopupProps extends ModuleViewPopupProps<SmartEditPopupComponent> {
8
8
  SmartEditValue: number;
9
- MathOperation: 'Add' | 'Subtract' | 'Multiply' | 'Divide';
9
+ SmartEditOperation: SmartEditOperation;
10
10
  PreviewInfo: PreviewInfo;
11
11
  onSmartEditValueChange: (value: number) => SystemRedux.SmartEditChangeValueAction;
12
- onSmartEditOperationChange: (MathOperation: MathOperation) => SystemRedux.SmartEditChangeOperationAction;
12
+ onSmartEditOperationChange: (SmartEditOperation: SmartEditOperation) => SystemRedux.SmartEditChangeOperationAction;
13
13
  onSmartEditCheckSelectedCells: () => SystemRedux.SmartEditCheckCellSelectionAction;
14
14
  onRunSmartEdit: () => SmartEditRedux.SmartEditRunAction;
15
15
  }
@@ -27,6 +27,7 @@ class SmartEditPopupComponent extends React.Component {
27
27
  this.props.onSmartEditCheckSelectedCells();
28
28
  }
29
29
  render() {
30
+ var _a, _b, _c;
30
31
  let col;
31
32
  if (this.props.PreviewInfo) {
32
33
  col = this.props.PreviewInfo.column;
@@ -34,7 +35,7 @@ class SmartEditPopupComponent extends React.Component {
34
35
  let globalValidationMessage = PreviewHelper_1.PreviewHelper.GetValidationMessage(this.props.PreviewInfo, `${this.props.SmartEditValue}`);
35
36
  let showPanel = this.props.PreviewInfo && StringExtensions_1.StringExtensions.IsNotNullOrEmpty(`${this.props.SmartEditValue}`);
36
37
  let previewPanel = showPanel ? (React.createElement(PreviewResultsPanel_1.PreviewResultsPanel, { style: { flex: '1 1 100%', overflow: 'initial', height: '100%' }, previewInfo: this.props.PreviewInfo, api: this.props.api, selectedColumn: col, showPanel: showPanel, showHeader: true })) : null;
37
- let operationMenuItems = EnumExtensions_1.EnumExtensions.getNames(Enums_1.MathOperation).map((mathOperation, index) => {
38
+ const operationMenuItems = EnumExtensions_1.EnumExtensions.getNames(Enums_1.MathOperation).map((mathOperation, index) => {
38
39
  return {
39
40
  label: mathOperation,
40
41
  onClick: () => {
@@ -42,6 +43,15 @@ class SmartEditPopupComponent extends React.Component {
42
43
  },
43
44
  };
44
45
  });
46
+ const customOperations = (_c = (_b = (_a = this.props.api.internalApi.getAdaptableOptions()) === null || _a === void 0 ? void 0 : _a.editOptions) === null || _b === void 0 ? void 0 : _b.smartEdit) === null || _c === void 0 ? void 0 : _c.customOperations;
47
+ if (customOperations === null || customOperations === void 0 ? void 0 : customOperations.length) {
48
+ operationMenuItems.push(...customOperations.map((operation) => {
49
+ return {
50
+ onClick: () => this.props.onSmartEditOperationChange(operation),
51
+ label: operation.Name,
52
+ };
53
+ }));
54
+ }
45
55
  return (React.createElement(PanelWithImage_1.PanelWithImage, { flex: 1, style: { height: '100%' }, variant: "primary", bodyProps: {
46
56
  style: { display: 'flex', flexFlow: 'column' },
47
57
  }, bodyScroll: true, glyphicon: this.props.moduleInfo.Glyph, header: this.props.moduleInfo.FriendlyName, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), onKeyDown: (e) => {
@@ -50,7 +60,9 @@ class SmartEditPopupComponent extends React.Component {
50
60
  }
51
61
  } },
52
62
  React.createElement(rebass_1.Flex, { flexDirection: "row", padding: 2, "data-name": "smart-edit-operation" },
53
- React.createElement(DropdownButton_1.default, { items: operationMenuItems, columns: ['label'], onMouseDown: preventDefault }, Enums_1.MathOperation[this.props.MathOperation]),
63
+ React.createElement(DropdownButton_1.default, { items: operationMenuItems, columns: ['label'], onMouseDown: preventDefault }, typeof this.props.SmartEditOperation === 'object'
64
+ ? this.props.SmartEditOperation.Name
65
+ : this.props.SmartEditOperation),
54
66
  React.createElement(Input_1.default, { value: this.props.SmartEditValue.toString(), marginLeft: 2, marginRight: 2, type: "number", placeholder: "Enter a Number", onChange: (e) => this.onSmartEditValueChange(e) }),
55
67
  React.createElement(SimpleButton_1.default, { tone: this.getButtonStyle(), variant: "raised", disabled: StringExtensions_1.StringExtensions.IsNullOrEmpty(`${this.props.SmartEditValue}`) ||
56
68
  (this.props.PreviewInfo &&
@@ -87,7 +99,7 @@ class SmartEditPopupComponent extends React.Component {
87
99
  function mapStateToProps(state, ownProps) {
88
100
  return {
89
101
  SmartEditValue: state.System.SmartEditValue,
90
- MathOperation: state.System.SmartEditOperation,
102
+ SmartEditOperation: state.System.SmartEditOperation,
91
103
  PreviewInfo: state.System.SmartEditPreviewInfo,
92
104
  };
93
105
  }
@@ -2,16 +2,16 @@ import { ViewPanelProps } from '../Components/SharedProps/ViewPanelProps';
2
2
  import * as SystemRedux from '../../Redux/ActionsReducers/SystemRedux';
3
3
  import * as SmartEditRedux from '../../Redux/ActionsReducers/SmartEditRedux';
4
4
  import { PreviewInfo } from '../../Utilities/Interface/Preview';
5
- import { MathOperation } from '../../PredefinedConfig/Common/Enums';
6
5
  import * as React from 'react';
6
+ import { SmartEditOperation } from '../../AdaptableOptions/SmartEdit';
7
7
  export interface SmartEditViewPanelComponentProps extends ViewPanelProps {
8
8
  SmartEditValue: number | undefined;
9
- MathOperation: 'Add' | 'Subtract' | 'Multiply' | 'Divide' | undefined;
9
+ SmartEditOperation: SmartEditOperation | undefined;
10
10
  IsValidSelection: boolean;
11
11
  PreviewInfo: PreviewInfo;
12
12
  InPivotMode: Boolean;
13
13
  onSmartEditValueChange: (value: number) => SystemRedux.SmartEditChangeValueAction;
14
- onSmartEditOperationChange: (MathOperation: MathOperation) => SystemRedux.SmartEditChangeOperationAction;
14
+ onSmartEditOperationChange: (MathOperation: SmartEditOperation) => SystemRedux.SmartEditChangeOperationAction;
15
15
  onSmartEditCheckSelectedCells: () => SystemRedux.SmartEditCheckCellSelectionAction;
16
16
  onRunSmartEdit: () => SmartEditRedux.SmartEditRunAction;
17
17
  }
@@ -28,7 +28,6 @@ declare class SmartEditViewPanelComponent extends React.Component<SmartEditViewP
28
28
  private onSmartEditValueChange;
29
29
  private getStatusColour;
30
30
  private onApplyClick;
31
- private onchangeMathOperation;
32
31
  onApplySmartEdit(): any;
33
32
  }
34
33
  export declare let SmartEditViewPanelControl: import("react-redux").ConnectedComponent<typeof SmartEditViewPanelComponent, any>;
@@ -39,17 +39,27 @@ class SmartEditViewPanelComponent extends React.Component {
39
39
  (_a = this.cleanupEvent) === null || _a === void 0 ? void 0 : _a.call(this);
40
40
  }
41
41
  render() {
42
+ var _a, _b, _c;
42
43
  let statusColour = this.getStatusColour();
43
44
  let selectedColumn = StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.state.SelectedColumnId)
44
45
  ? this.props.api.columnApi.getColumnFromId(this.state.SelectedColumnId)
45
46
  : null;
46
47
  let previewPanel = (React.createElement(PreviewResultsPanel_1.PreviewResultsPanel, { previewInfo: this.props.PreviewInfo, api: this.props.api, selectedColumn: selectedColumn, showPanel: true, showHeader: false }));
47
- let operationMenuItems = EnumExtensions_1.EnumExtensions.getNames(Enums_1.MathOperation).map((mathOperation, index) => {
48
+ const operationMenuItems = EnumExtensions_1.EnumExtensions.getNames(Enums_1.MathOperation).map((mathOperation, index) => {
48
49
  return {
49
50
  onClick: () => this.props.onSmartEditOperationChange(mathOperation),
50
51
  label: mathOperation,
51
52
  };
52
53
  });
54
+ const customOperations = (_c = (_b = (_a = this.props.api.internalApi.getAdaptableOptions()) === null || _a === void 0 ? void 0 : _a.editOptions) === null || _b === void 0 ? void 0 : _b.smartEdit) === null || _c === void 0 ? void 0 : _c.customOperations;
55
+ if (customOperations === null || customOperations === void 0 ? void 0 : customOperations.length) {
56
+ operationMenuItems.push(...customOperations.map((operation) => {
57
+ return {
58
+ onClick: () => this.props.onSmartEditOperationChange(operation),
59
+ label: operation.Name,
60
+ };
61
+ }));
62
+ }
53
63
  const applyButtonStyle = {
54
64
  color: statusColour,
55
65
  fill: 'currentColor',
@@ -60,7 +70,9 @@ class SmartEditViewPanelComponent extends React.Component {
60
70
  const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
61
71
  return (React.createElement(rebass_1.Flex, { flexDirection: "row", className: `ab-${elementType}__SmartEdit__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
62
72
  React.createElement(rebass_1.Flex, null,
63
- React.createElement(DropdownButton_1.default, { className: `ab-${elementType}__SmartEdit__select`, marginRight: 2, items: operationMenuItems, style: { fontSize: 'small' }, columns: ['label'], disabled: shouldDisable, variant: "outlined" }, this.props.MathOperation),
73
+ React.createElement(DropdownButton_1.default, { className: `ab-${elementType}__SmartEdit__select`, marginRight: 2, items: operationMenuItems, style: { fontSize: 'small' }, columns: ['label'], disabled: shouldDisable, variant: "outlined" }, typeof this.props.SmartEditOperation === 'object'
74
+ ? this.props.SmartEditOperation.Name
75
+ : this.props.SmartEditOperation),
64
76
  React.createElement(Input_1.default, { style: {
65
77
  width: '5rem',
66
78
  }, className: `ab-${elementType}__SmartEdit__select-value`, value: this.props.SmartEditValue.toString(), type: "number", placeholder: "Enter a Number", step: "any", onChange: (e) => this.onSmartEditValueChange(e), disabled: shouldDisable, marginRight: 2 })),
@@ -94,9 +106,6 @@ class SmartEditViewPanelComponent extends React.Component {
94
106
  onApplyClick() {
95
107
  this.onApplySmartEdit();
96
108
  }
97
- onchangeMathOperation(mathOperation) {
98
- this.props.onSmartEditOperationChange(mathOperation);
99
- }
100
109
  onApplySmartEdit() {
101
110
  this.props.onRunSmartEdit();
102
111
  }
@@ -104,7 +113,7 @@ class SmartEditViewPanelComponent extends React.Component {
104
113
  function mapStateToProps(state, ownProps) {
105
114
  return {
106
115
  SmartEditValue: state.System.SmartEditValue,
107
- MathOperation: state.System.SmartEditOperation,
116
+ SmartEditOperation: state.System.SmartEditOperation,
108
117
  IsValidSelection: state.System.IsValidSmartEditSelection,
109
118
  PreviewInfo: state.System.SmartEditPreviewInfo,
110
119
  InPivotMode: state.Grid.IsGridInPivotMode,
@@ -162,7 +162,7 @@ exports.OnePageAdaptableWizard = (props) => {
162
162
  navIndexMap.set(navIndex, index);
163
163
  const active = index === currentSection;
164
164
  const disabled = false; //!active && !currentSectionValid;
165
- return (React.createElement(rebass_1.Flex, { className: "ab-OnePageWizard__section-title", flexDirection: "row", style: {
165
+ return (React.createElement(rebass_1.Flex, { className: "ab-OnePageWizard__section-title", "data-name": section.title, flexDirection: "row", style: {
166
166
  cursor: disabled ? 'auto' : 'pointer',
167
167
  zIndex: 10,
168
168
  transition: 'color 0.2s',
@@ -166,8 +166,8 @@ export declare class Adaptable implements IAdaptable {
166
166
  [key: string]: boolean;
167
167
  }): GridCell[];
168
168
  private addDistinctColumnValue;
169
- private isInternallyRenderedColumn;
170
- getDisplayValue(id: any, columnId: string): string | undefined;
169
+ private isCustomRenderedColumn;
170
+ getDisplayValue(primaryKey: any, columnId: string): string | undefined;
171
171
  getGridCellFromRowNode(rowNode: RowNode, columnId: string): GridCell | undefined;
172
172
  getDisplayValueFromRowNode(rowNode: RowNode, columnId: string): string | undefined;
173
173
  getDisplayValueFromRawValue(columnId: string, rawValue: any): string | undefined;
@@ -314,7 +314,7 @@ export declare class Adaptable implements IAdaptable {
314
314
  getGridData(): any[];
315
315
  getFilteredData(): any[];
316
316
  loadDataSource(dataSource: any[]): void;
317
- updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[] | null | undefined>;
317
+ updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
318
318
  addRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
319
319
  deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
320
320
  getFirstGroupedColumn(): AdaptableColumn | undefined;
@@ -330,7 +330,7 @@ export declare class Adaptable implements IAdaptable {
330
330
  showQuickFilter(): void;
331
331
  hideQuickFilter(): void;
332
332
  getAgGridColumnType(columnId: string): string | string[];
333
- getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): ((valueA: any, valueB: any, nodeA?: RowNode, nodeB?: RowNode, isInverted?: boolean) => number) | undefined;
333
+ getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): (valueA: any, valueB: any, nodeA?: RowNode, nodeB?: RowNode, isInverted?: boolean) => number | undefined;
334
334
  getAgGridLightThemeName(): string;
335
335
  getAgGridCurrentThemeName(): string;
336
336
  applyAdaptableTheme(theme: AdaptableTheme | string): void;
@@ -57,6 +57,7 @@ const MetamodelService_1 = require("../Utilities/Services/MetamodelService");
57
57
  const DocumentationLinkConstants_1 = require("../Utilities/Constants/DocumentationLinkConstants");
58
58
  const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
59
59
  const CheckboxRenderer_1 = require("./CheckboxRenderer");
60
+ const DateHelper_1 = require("../Utilities/Helpers/DateHelper");
60
61
  const tinycolor = require('tinycolor2');
61
62
  all_modules_1.ModuleRegistry.registerModules(all_modules_1.AllCommunityModules);
62
63
  const GROUP_PATH_SEPARATOR = '/';
@@ -343,15 +344,15 @@ class Adaptable {
343
344
  this.initStore();
344
345
  // create the services
345
346
  this.LicenseService = this.initLicenseService();
346
- this.ValidationService = new ValidationService_1.ValidationService(this);
347
- this.ReportService = new ReportService_1.ReportService(this);
348
- this.ModuleService = new ModuleService_1.ModuleService(this);
349
- this.CalculatedColumnExpressionService = new CalculatedColumnExpressionService_1.CalculatedColumnExpressionService(this);
350
- this.EntitlementService = new EntitlementService_1.EntitlementService(this);
351
- this.QueryLanguageService = new QueryLanguageService_1.QueryLanguageService(this);
352
- this.AlertService = new AlertService_1.AlertService(this);
353
- this.TeamSharingService = new TeamSharingService_1.TeamSharingService(this);
354
- this.MetamodelService = new MetamodelService_1.MetamodelService(this);
347
+ this.ValidationService = new ValidationService_1.ValidationService(this.api);
348
+ this.ReportService = new ReportService_1.ReportService(this.api);
349
+ this.ModuleService = new ModuleService_1.ModuleService(this.api);
350
+ this.CalculatedColumnExpressionService = new CalculatedColumnExpressionService_1.CalculatedColumnExpressionService(this.api);
351
+ this.EntitlementService = new EntitlementService_1.EntitlementService(this.api);
352
+ this.QueryLanguageService = new QueryLanguageService_1.QueryLanguageService(this.api);
353
+ this.AlertService = new AlertService_1.AlertService(this.api);
354
+ this.TeamSharingService = new TeamSharingService_1.TeamSharingService(this.api);
355
+ this.MetamodelService = new MetamodelService_1.MetamodelService(this.api);
355
356
  this.forPlugins((plugin) => plugin.afterInitServices(this));
356
357
  // Set up Modules - we set up all the Modules suitable for AG Grid
357
358
  // But users can make some hidden or readonly in their entitlements
@@ -1691,27 +1692,27 @@ class Adaptable {
1691
1692
  return undefined;
1692
1693
  }
1693
1694
  }
1694
- isInternallyRenderedColumn(column) {
1695
+ isCustomRenderedColumn(column) {
1695
1696
  if (!column || column.isGrouped) {
1696
- return true;
1697
+ return false;
1697
1698
  }
1698
- // we need to return false if the column has a cell rendeerer i think...
1699
+ // we need to return false if the column has a cell renderer i think...
1699
1700
  const colDef = this.gridOptions.api.getColumnDef(column.columnId);
1700
1701
  if (colDef && colDef.cellRenderer != null) {
1701
- return false;
1702
+ return true;
1702
1703
  }
1703
1704
  if (this.api.columnApi.isFormatNumericStyleColumn(column)) {
1704
- return false;
1705
+ return true;
1705
1706
  }
1706
1707
  if (this.api.columnApi.isBooleanColumn(column)) {
1707
- return false;
1708
+ return true;
1708
1709
  }
1709
- return true;
1710
+ return false;
1710
1711
  }
1711
- getDisplayValue(id, columnId) {
1712
+ getDisplayValue(primaryKey, columnId) {
1712
1713
  let returnValue;
1713
1714
  if (this.useRowNodeLookUp) {
1714
- const rowNode = this.gridOptions.api.getRowNode(id);
1715
+ const rowNode = this.getRowNodeForPrimaryKey(primaryKey);
1715
1716
  return this.getDisplayValueFromRowNode(rowNode, columnId);
1716
1717
  }
1717
1718
  else {
@@ -1719,7 +1720,7 @@ class Adaptable {
1719
1720
  this.gridOptions.api.getModel().forEachNode((rowNode) => {
1720
1721
  if (!foundRow) {
1721
1722
  const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(rowNode);
1722
- if (id == primaryKeyValue) {
1723
+ if (primaryKey == primaryKeyValue) {
1723
1724
  returnValue = this.getDisplayValueFromRowNode(rowNode, columnId);
1724
1725
  }
1725
1726
  foundRow = true;
@@ -1802,10 +1803,17 @@ class Adaptable {
1802
1803
  return formatterFn(params);
1803
1804
  }
1804
1805
  getNormalisedValueFromRowValue(rawValue, displayValue, column) {
1806
+ // not sure if the current implementation is correct:
1807
+ // the returned "normalised value" is actually the displayed value in almost all cases?!
1808
+ // ex. how to read the following: if 'rawValue' is NOT a number, return normalised version of rawValue, but if rawValue IS a number, return displayedValue of it (which will almost certainly will NOT be a number)
1809
+ // if (dataType === 'Number') {
1810
+ // return typeof rawValue !== 'number' ? Number(rawValue) : returnValue;
1811
+ // }
1812
+ // anyway, it seems to work so far (as of v11.1.3), so I'm leaving it for now :)
1805
1813
  if (!column) {
1806
1814
  return rawValue;
1807
1815
  }
1808
- const returnValue = this.isInternallyRenderedColumn(column) ? displayValue : rawValue;
1816
+ const returnValue = this.isCustomRenderedColumn(column) ? rawValue : displayValue;
1809
1817
  if (returnValue === undefined || returnValue === null) {
1810
1818
  return rawValue;
1811
1819
  }
@@ -1819,13 +1827,15 @@ class Adaptable {
1819
1827
  if (dataType === 'Boolean') {
1820
1828
  return typeof rawValue !== 'boolean' ? Boolean(rawValue) : returnValue;
1821
1829
  }
1822
- // Do not normalize dates to Date type
1823
- // - breaks when rendering in filter-form
1824
- // - breaks quick-search; the Date is transformed to string;
1825
- // -- an incorrect comparison is made (new Date().toString).incudes('query)
1830
+ if (dataType === 'Date') {
1831
+ return rawValue instanceof Date ? rawValue : DateHelper_1.parseDateValue(rawValue);
1832
+ }
1826
1833
  return returnValue;
1827
1834
  }
1828
1835
  getRawValueFromRowNode(rowNode, columnId) {
1836
+ if (rowNode == null) {
1837
+ return undefined;
1838
+ }
1829
1839
  return this.gridOptions.api.getValue(columnId, rowNode);
1830
1840
  }
1831
1841
  getDataRowFromRowNode(rowNode) {
@@ -3347,9 +3357,9 @@ class Adaptable {
3347
3357
  }
3348
3358
  getFormatColumnComparisonChanges(dataChangedScope, cellDataChangedInfos) {
3349
3359
  this.api.formatColumnApi.getAllFormatColumn().forEach((fc) => {
3350
- let columnComparision = this.api.formatColumnApi.getColumnComparisonForFormatColumn(fc);
3351
- if (columnComparision) {
3352
- let affectedColumnIds = this.api.formatColumnApi.getColumnIdsFromColumnComparison(columnComparision);
3360
+ let columnComparison = this.api.formatColumnApi.getColumnComparisonForFormatColumn(fc);
3361
+ if (columnComparison) {
3362
+ let affectedColumnIds = this.api.formatColumnApi.getColumnIdsFromColumnComparison(columnComparison);
3353
3363
  if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(affectedColumnIds)) {
3354
3364
  cellDataChangedInfos.forEach((cellDataChangedInfo) => {
3355
3365
  if (affectedColumnIds.includes(cellDataChangedInfo.column.columnId)) {
@@ -249,6 +249,7 @@ class agGridMenuHelper {
249
249
  rowNode: params.node,
250
250
  isGroupedNode: params.node ? params.node.group : false,
251
251
  isSingleSelectedColumn: isSingleSelectedColumn,
252
+ isSingleSelectedCell: isSelectedCell && (selectedCellInfo === null || selectedCellInfo === void 0 ? void 0 : selectedCellInfo.gridCells.length) == 1,
252
253
  primaryKeyValue: clickedCell ? clickedCell.primaryKeyValue : undefined,
253
254
  adaptableApi: this.adaptable.api,
254
255
  selectedCellInfo: selectedCellInfo,
@@ -6,6 +6,6 @@ const React = tslib_1.__importStar(require("react"));
6
6
  const rebass_1 = require("rebass");
7
7
  const StyleHelper_1 = require("../Utilities/Helpers/StyleHelper");
8
8
  exports.StylePreview = (props) => {
9
- var _a;
10
- return (React.createElement(rebass_1.Box, Object.assign({}, props, { padding: 2, mt: 2, style: Object.assign(Object.assign({}, StyleHelper_1.toStyle(props.styleObject)), props.style) }), (_a = props.children) !== null && _a !== void 0 ? _a : 'Preview result'));
9
+ var _a, _b, _c;
10
+ return (React.createElement(rebass_1.Box, Object.assign({}, props, { padding: (_a = props.padding) !== null && _a !== void 0 ? _a : 2, mt: (_b = props.mt) !== null && _b !== void 0 ? _b : 2, style: Object.assign(Object.assign({}, StyleHelper_1.toStyle(props.styleObject)), props.style) }), (_c = props.children) !== null && _c !== void 0 ? _c : 'Preview result'));
11
11
  };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
7
+ React.createElement("path", { d: "M6.5 10h-2v7h2v-7zm6 0h-2v7h2v-7zm8.5 9H2v2h19v-2zm-2.5-9h-2v7h2v-7zm-7-6.74L16.71 6H6.29l5.21-2.74m0-2.26L2 6v2h19V6l-9.5-5z" }),
8
+ ' '));
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
7
+ React.createElement("path", { d: "M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z" })));
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
7
+ React.createElement("path", { d: "M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z" }),
8
+ ' '));
@@ -13,14 +13,17 @@ const triangle_down_1 = tslib_1.__importDefault(require("./triangle-down"));
13
13
  const check_1 = tslib_1.__importDefault(require("./check"));
14
14
  const attach_file_1 = tslib_1.__importDefault(require("./attach-file"));
15
15
  const plus_1 = tslib_1.__importDefault(require("./plus"));
16
+ const person_1 = tslib_1.__importDefault(require("./person"));
16
17
  const clear_1 = tslib_1.__importDefault(require("./clear"));
17
18
  const clone_1 = tslib_1.__importDefault(require("./clone"));
19
+ const chat_1 = tslib_1.__importDefault(require("./chat"));
18
20
  const query_1 = tslib_1.__importDefault(require("./query"));
19
21
  const info_1 = tslib_1.__importDefault(require("./info"));
20
22
  const alert_1 = tslib_1.__importDefault(require("./alert"));
21
23
  const list_1 = tslib_1.__importDefault(require("./list"));
22
24
  const smart_edit_1 = tslib_1.__importDefault(require("./smart-edit"));
23
25
  const home_1 = tslib_1.__importDefault(require("./home"));
26
+ const call_1 = tslib_1.__importDefault(require("./call"));
24
27
  const justify_1 = tslib_1.__importDefault(require("./justify"));
25
28
  const error_1 = tslib_1.__importDefault(require("./error"));
26
29
  const export_1 = tslib_1.__importDefault(require("./export"));
@@ -129,16 +132,26 @@ const regex_1 = tslib_1.__importDefault(require("./regex"));
129
132
  const track_changes_1 = tslib_1.__importDefault(require("./track-changes"));
130
133
  const menu_1 = tslib_1.__importDefault(require("./menu"));
131
134
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
135
+ const quote_1 = tslib_1.__importDefault(require("./quote"));
136
+ const news_1 = tslib_1.__importDefault(require("./news"));
137
+ const instrument_1 = tslib_1.__importDefault(require("./instrument"));
138
+ const analysis_1 = tslib_1.__importDefault(require("./analysis"));
132
139
  const allIcons = {
133
140
  // toolbars
134
141
  application: application_1.default,
135
142
  alert: alert_1.default,
143
+ analysis: analysis_1.default,
136
144
  'bulk-update': bulk_update_1.default,
137
145
  chart: chart_1.default,
138
146
  'cell-summary': cell_summary_1.default,
139
147
  'column-chooser': column_chooser_1.default,
140
148
  'column-add': column_add_1.default,
141
149
  'column-filter': column_filter_1.default,
150
+ person: person_1.default,
151
+ quote: quote_1.default,
152
+ call: call_1.default,
153
+ instrument: instrument_1.default,
154
+ news: news_1.default,
142
155
  'data-source': data_source_1.default,
143
156
  export: export_1.default,
144
157
  campaign: campaign_1.default,
@@ -153,6 +166,7 @@ const allIcons = {
153
166
  calendar: calendar_1.default,
154
167
  'cell-validation': cell_validation_1.default,
155
168
  'conditional-style': conditional_style_1.default,
169
+ chat: chat_1.default,
156
170
  'column-info': column_info_1.default,
157
171
  'custom-sort': custom_sort_1.default,
158
172
  dashboard: dashboard_1.default,
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
7
+ React.createElement("path", { d: "M15.82,7.22l-1,0.4c-0.21-0.16-0.43-0.29-0.67-0.39L14,6.17C13.98,6.07,13.9,6,13.8,6h-1.6c-0.1,0-0.18,0.07-0.19,0.17 l-0.15,1.06c-0.24,0.1-0.47,0.23-0.67,0.39l-1-0.4c-0.09-0.03-0.2,0-0.24,0.09l-0.8,1.38c-0.05,0.09-0.03,0.2,0.05,0.26l0.85,0.66 C10.02,9.73,10,9.87,10,10c0,0.13,0.01,0.26,0.03,0.39l-0.84,0.66c-0.08,0.06-0.1,0.17-0.05,0.25l0.8,1.39 c0.05,0.09,0.15,0.12,0.25,0.09l0.99-0.4c0.21,0.16,0.43,0.29,0.68,0.39L12,13.83c0.02,0.1,0.1,0.17,0.2,0.17h1.6 c0.1,0,0.18-0.07,0.2-0.17l0.15-1.06c0.24-0.1,0.47-0.23,0.67-0.39l0.99,0.4c0.09,0.04,0.2,0,0.24-0.09l0.8-1.39 c0.05-0.09,0.03-0.19-0.05-0.25l-0.83-0.66C15.99,10.26,16,10.13,16,10c0-0.14-0.01-0.27-0.03-0.39l0.85-0.66 c0.08-0.06,0.1-0.17,0.05-0.26l-0.8-1.38C16.02,7.22,15.91,7.19,15.82,7.22z M13,11.43c-0.79,0-1.43-0.64-1.43-1.43 S12.21,8.57,13,8.57s1.43,0.64,1.43,1.43S13.79,11.43,13,11.43z" }),
8
+ React.createElement("path", { d: "M19.94,9.06c-0.43-3.27-3.23-5.86-6.53-6.05C13.27,3,13.14,3,13,3C9.47,3,6.57,5.61,6.08,9l-1.93,3.48 C3.74,13.14,4.22,14,5,14h1v2c0,1.1,0.9,2,2,2h1v3h7v-4.68C18.62,15.07,20.35,12.24,19.94,9.06z M14.89,14.63L14,15.05V19h-3v-3H8 v-4H6.7l1.33-2.33C8.21,7.06,10.35,5,13,5c2.76,0,5,2.24,5,5C18,12.09,16.71,13.88,14.89,14.63z" })));
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
7
+ React.createElement("path", { d: "M16,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V8L16,3z M19,19H5V5h10v4h4V19z M7,17h10v-2H7V17z M12,7H7 v2h5V7z M7,13h10v-2H7V13z" }),
8
+ ' '));
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;