@adaptabletools/adaptable 12.0.1-canary.0 → 12.0.3

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 (143) hide show
  1. package/base.css +5 -18
  2. package/bundle.cjs.js +107 -107
  3. package/index.css +6 -22
  4. package/package.json +1 -1
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -2
  8. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -1
  9. package/src/AdaptableOptions/EditOptions.d.ts +6 -9
  10. package/src/AdaptableOptions/ExportOptions.d.ts +15 -0
  11. package/src/AdaptableOptions/Glue42PluginOptions.d.ts +1 -1
  12. package/src/AdaptableOptions/IPushPullPluginOptions.d.ts +1 -3
  13. package/src/AdaptableOptions/StateOptions.d.ts +9 -23
  14. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +34 -1
  15. package/src/Api/ChartingApi.d.ts +19 -2
  16. package/src/Api/FilterApi.d.ts +7 -2
  17. package/src/Api/FinanceApi.d.ts +8 -8
  18. package/src/Api/FormatColumnApi.d.ts +6 -6
  19. package/src/Api/GridApi.d.ts +1 -1
  20. package/src/Api/Implementation/ChartingApiImpl.d.ts +6 -0
  21. package/src/Api/Implementation/ChartingApiImpl.js +17 -0
  22. package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -0
  23. package/src/Api/Implementation/ConfigApiImpl.js +11 -0
  24. package/src/Api/Implementation/FilterApiImpl.d.ts +1 -0
  25. package/src/Api/Implementation/FilterApiImpl.js +5 -0
  26. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -3
  27. package/src/Api/Implementation/FormatColumnApiImpl.js +13 -11
  28. package/src/Api/Implementation/GridApiImpl.d.ts +1 -1
  29. package/src/Api/Implementation/GridApiImpl.js +2 -2
  30. package/src/Api/Implementation/InternalApiImpl.js +1 -2
  31. package/src/Api/Implementation/LayoutApiImpl.js +1 -1
  32. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +1 -0
  33. package/src/Api/Implementation/TeamSharingApiImpl.js +5 -0
  34. package/src/Api/StatusBarApi.d.ts +3 -0
  35. package/src/Api/TeamSharingApi.d.ts +4 -0
  36. package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
  37. package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -5
  38. package/src/PredefinedConfig/ChartingState.d.ts +20 -0
  39. package/src/PredefinedConfig/ChartingState.js +2 -0
  40. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +4 -1
  41. package/src/PredefinedConfig/Common/CellSummary.d.ts +3 -0
  42. package/src/PredefinedConfig/Common/ColumnFilter.d.ts +9 -0
  43. package/src/PredefinedConfig/Common/FDC3Context.d.ts +12 -3
  44. package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +1 -2
  45. package/src/PredefinedConfig/Common/FilterActionOnDataChange.js +1 -2
  46. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  47. package/src/PredefinedConfig/ExportState.d.ts +6 -0
  48. package/src/PredefinedConfig/FormatColumnState.d.ts +4 -1
  49. package/src/PredefinedConfig/IPushPullState.d.ts +16 -5
  50. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  51. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -0
  52. package/src/PredefinedConfig/ScheduleState.d.ts +1 -1
  53. package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
  54. package/src/PredefinedConfig/TeamSharingState.d.ts +6 -0
  55. package/src/Redux/ActionsReducers/ChartingRedux.d.ts +23 -0
  56. package/src/Redux/ActionsReducers/ChartingRedux.js +38 -0
  57. package/src/Redux/ActionsReducers/GridRedux.d.ts +30 -1
  58. package/src/Redux/ActionsReducers/GridRedux.js +105 -2
  59. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +10 -11
  60. package/src/Redux/ActionsReducers/LayoutRedux.js +13 -10
  61. package/src/Redux/Store/AdaptableStore.js +39 -8
  62. package/src/Strategy/AdaptableModuleBase.d.ts +4 -0
  63. package/src/Strategy/AdaptableModuleBase.js +6 -0
  64. package/src/Strategy/AlertModule.js +3 -3
  65. package/src/Strategy/ChartingModule.js +1 -1
  66. package/src/Strategy/DashboardModule.js +1 -0
  67. package/src/Strategy/ExportModule.js +1 -0
  68. package/src/Strategy/FlashingCellModule.js +3 -3
  69. package/src/Strategy/FormatColumnModule.js +3 -3
  70. package/src/Strategy/GridInfoModule.js +2 -0
  71. package/src/Strategy/Interface/IModule.d.ts +11 -1
  72. package/src/Strategy/LayoutModule.js +2 -0
  73. package/src/Strategy/TeamSharingModule.d.ts +11 -1
  74. package/src/Strategy/TeamSharingModule.js +104 -0
  75. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -0
  76. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -0
  77. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +3 -0
  78. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +3 -0
  79. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +3 -0
  80. package/src/Utilities/Helpers/FormatHelper.d.ts +1 -1
  81. package/src/Utilities/Helpers/FormatHelper.js +7 -3
  82. package/src/Utilities/Helpers/Helper.js +1 -1
  83. package/src/Utilities/ObjectFactory.d.ts +5 -1
  84. package/src/Utilities/ObjectFactory.js +12 -2
  85. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
  86. package/src/Utilities/Services/ReportService.d.ts +1 -1
  87. package/src/Utilities/Services/ReportService.js +5 -5
  88. package/src/Utilities/Services/TeamSharingService.js +0 -2
  89. package/src/View/AdaptableViewFactory.js +0 -2
  90. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +2 -9
  91. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +13 -1
  92. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +17 -14
  93. package/src/View/Components/Buttons/ButtonDelete.js +3 -3
  94. package/src/View/Components/FilterForm/QuickFilterForm.js +22 -1
  95. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +4 -0
  96. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +1 -1
  97. package/src/View/Filter/FilterSummary.d.ts +1 -1
  98. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +13 -9
  99. package/src/View/Layout/LayoutEditorStandalonePopup.js +3 -1
  100. package/src/View/Layout/LayoutPopup.d.ts +1 -1
  101. package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
  102. package/src/View/Layout/LayoutViewPanel.js +2 -1
  103. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +2 -27
  104. package/src/View/TeamSharing/SharedEntityDependencies.d.ts +8 -0
  105. package/src/View/TeamSharing/SharedEntityDependencies.js +27 -0
  106. package/src/View/TeamSharing/SharedEntityObjectView.d.ts +9 -0
  107. package/src/View/TeamSharing/SharedEntityObjectView.js +84 -0
  108. package/src/View/TeamSharing/TeamSharingApplyButton.d.ts +6 -0
  109. package/src/View/TeamSharing/TeamSharingApplyButton.js +15 -0
  110. package/src/agGrid/Adaptable.d.ts +4 -2
  111. package/src/agGrid/Adaptable.js +37 -22
  112. package/src/components/icons/index.js +0 -4
  113. package/src/metamodel/adaptable.metamodel.d.ts +224 -2
  114. package/src/metamodel/adaptable.metamodel.js +1 -1
  115. package/src/types.d.ts +4 -2
  116. package/version.d.ts +1 -1
  117. package/version.js +1 -1
  118. package/src/View/Alert/AlertSharedEntity.d.ts +0 -5
  119. package/src/View/Alert/AlertSharedEntity.js +0 -19
  120. package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.d.ts +0 -5
  121. package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.js +0 -20
  122. package/src/View/ConditionalStyle/ConditionalStyleSharedEntity.d.ts +0 -5
  123. package/src/View/ConditionalStyle/ConditionalStyleSharedEntity.js +0 -23
  124. package/src/View/CustomSort/CustomSortSharedEntity.d.ts +0 -6
  125. package/src/View/CustomSort/CustomSortSharedEntity.js +0 -24
  126. package/src/View/Export/ExportSharedEntity.d.ts +0 -5
  127. package/src/View/Export/ExportSharedEntity.js +0 -16
  128. package/src/View/Filter/FilterSharedEntity.d.ts +0 -5
  129. package/src/View/Filter/FilterSharedEntity.js +0 -15
  130. package/src/View/FormatColumn/FormatColumnSharedEntity.d.ts +0 -5
  131. package/src/View/FormatColumn/FormatColumnSharedEntity.js +0 -18
  132. package/src/View/FreeTextColumn/FreeTextColumnSharedEntity.d.ts +0 -5
  133. package/src/View/FreeTextColumn/FreeTextColumnSharedEntity.js +0 -24
  134. package/src/View/Layout/LayoutSharedEntity.d.ts +0 -5
  135. package/src/View/Layout/LayoutSharedEntity.js +0 -15
  136. package/src/View/PlusMinus/PlusMinusSharedEntity.d.ts +0 -5
  137. package/src/View/PlusMinus/PlusMinusSharedEntity.js +0 -21
  138. package/src/View/Query/NamedQuerySharedEntity.d.ts +0 -5
  139. package/src/View/Query/NamedQuerySharedEntity.js +0 -19
  140. package/src/View/Shortcut/ShortcutSharedEntity.d.ts +0 -5
  141. package/src/View/Shortcut/ShortcutSharedEntity.js +0 -19
  142. package/src/View/TeamSharing/TeamSharingPopup.d.ts +0 -23
  143. package/src/View/TeamSharing/TeamSharingPopup.js +0 -163
@@ -200,8 +200,8 @@ class GridApiImpl extends ApiBase_1.ApiBase {
200
200
  getDisplayValueFromRowNode(rowNode, columnId) {
201
201
  return this.adaptable.getDisplayValueFromRowNode(rowNode, columnId);
202
202
  }
203
- getFormattedValueFromRawValue(columnId, rawValue) {
204
- return this.adaptable.getDisplayValueFromRawValue(columnId, rawValue);
203
+ getFormattedValueFromRawValue(rowNode, columnId, rawValue) {
204
+ return this.adaptable.getDisplayValueFromRawValue(rowNode, columnId, rawValue);
205
205
  }
206
206
  getNormalisedValueFromRowNode(rowNode, columnId) {
207
207
  const gridCell = this.getGridCellFromRowNode(rowNode, columnId);
@@ -6,7 +6,6 @@ const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Pop
6
6
  const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
7
7
  const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
8
8
  const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/GridRedux"));
9
- const LayoutRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/LayoutRedux"));
10
9
  const AlertRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/AlertRedux"));
11
10
  const DeadRedux = tslib_1.__importStar(require("../../Redux/DeadRedux"));
12
11
  const ApiBase_1 = require("./ApiBase");
@@ -239,7 +238,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
239
238
  this.dispatchAction(SystemRedux.SetLastAppliedShortcut(gridCell));
240
239
  }
241
240
  updateCurrentDraftLayout(layout) {
242
- this.dispatchAction(LayoutRedux.LayoutUpdateCurrentDraft(layout));
241
+ this.dispatchAction(GridRedux.LayoutUpdateCurrentDraft(layout));
243
242
  }
244
243
  getPrimaryKey() {
245
244
  return this.adaptable.adaptableOptions.primaryKey;
@@ -329,7 +329,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
329
329
  const layout = this.getLayoutByName(layoutName);
330
330
  if (layout) {
331
331
  if (layout.Columns.includes(columnId)) {
332
- this.dispatchAction(LayoutRedux.LayouRemoveColumn(layoutName, columnId));
332
+ this.dispatchAction(LayoutRedux.LayoutRemoveColumn(layoutName, columnId));
333
333
  this.getAdaptableApi().columnApi.hideColumn(columnId);
334
334
  }
335
335
  }
@@ -15,5 +15,6 @@ export declare class TeamSharingApiImpl extends ApiBase implements TeamSharingAp
15
15
  importSharedEntry(sharedEntity: SharedEntity): void;
16
16
  private getTeamSharingState;
17
17
  getLoadedSharedEntities(): SharedEntity[];
18
+ getSharedEntryDependencies(sharedEntity: SharedEntity): SharedEntity[];
18
19
  triggerLoadingTeamSharingEntries(): void;
19
20
  }
@@ -78,6 +78,11 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
78
78
  getLoadedSharedEntities() {
79
79
  return this.getTeamSharingState().SharedEntities;
80
80
  }
81
+ getSharedEntryDependencies(sharedEntity) {
82
+ var _a;
83
+ const allEntities = this.getLoadedSharedEntities();
84
+ return ((_a = sharedEntity === null || sharedEntity === void 0 ? void 0 : sharedEntity.EntityDependencyIds) !== null && _a !== void 0 ? _a : []).map((id) => allEntities.find((entity) => entity.Uuid === id));
85
+ }
81
86
  triggerLoadingTeamSharingEntries() {
82
87
  this.adaptable.api.internalApi.dispatchReduxAction(TeamSharingRedux.TeamSharingGet());
83
88
  }
@@ -1,5 +1,8 @@
1
1
  import { GridOptions } from '@ag-grid-community/all-modules';
2
2
  import { AdaptableStatusBar } from '../PredefinedConfig/StatusBarState';
3
+ /**
4
+ * Methods for managaing the Adaptable Status Bar
5
+ */
3
6
  export interface StatusBarApi {
4
7
  /**
5
8
  * Retrieves the current AG Grid Status Bar Panels
@@ -69,4 +69,8 @@ export interface TeamSharingApi {
69
69
  * By default shared entries are loaded when the Team Sharing popup is visible.
70
70
  */
71
71
  triggerLoadingTeamSharingEntries(): void;
72
+ /**
73
+ * Retrieves shared entry dependencies.
74
+ */
75
+ getSharedEntryDependencies(sharedEntry: SharedEntity): SharedEntity[];
72
76
  }
@@ -22,6 +22,7 @@ import { ToolPanelState } from './ToolPanelState';
22
22
  import { QueryState } from './QueryState';
23
23
  import { FlashingCellState } from './FlashingCellState';
24
24
  import { StatusBarState } from './StatusBarState';
25
+ import { ChartingState } from './ChartingState';
25
26
  /**
26
27
  * The main state object of Adaptable
27
28
  */
@@ -52,6 +53,7 @@ export interface AdaptablePersistentState {
52
53
  TeamSharing: TeamSharingState;
53
54
  Theme: ThemeState;
54
55
  ToolPanel: ToolPanelState;
56
+ Charting: ChartingState;
55
57
  }
56
58
  /**
57
59
  * The state which is available in the internal Redux store but never persisted
@@ -46,11 +46,6 @@ export interface CalculatedColumnSettings extends SpecialColumnSettings {
46
46
  * @defaultValue false
47
47
  */
48
48
  ShowToolTip?: boolean;
49
- /**
50
- * If true, the Calculated Column Expression will NOT be evaluated and the value is loaded from the row data property with the same name as the ColumnId
51
- * @defaultValue false
52
- */
53
- ExternallyEvaluatedExpression?: boolean;
54
49
  }
55
50
  /**
56
51
  * Calculated Column Query which may be a Scalar or an AggregatedScalar Expression
@@ -0,0 +1,20 @@
1
+ import { ChartModel } from '@ag-grid-community/all-modules';
2
+ import { ConfigState } from './ConfigState';
3
+ /**
4
+ * Wraps an AG Grid Chart Model
5
+ */
6
+ export interface ChartDefinition {
7
+ /**
8
+ * AG Grid Chart Model
9
+ */
10
+ model: ChartModel;
11
+ }
12
+ /**
13
+ * Predefined Configuration for Quick Search Module
14
+ */
15
+ export interface ChartingState extends ConfigState {
16
+ /**
17
+ * Charting Definitions - wrap AG Grid Chart Models
18
+ */
19
+ ChartDefinitions?: ChartDefinition[];
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -48,4 +48,7 @@ export interface AdaptableBaseIcon {
48
48
  */
49
49
  style?: React.CSSProperties;
50
50
  }
51
- export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-box' | 'check-box-outline' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'column-info' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
51
+ /**
52
+ * All AdapTable internal icon names
53
+ */
54
+ export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
@@ -14,6 +14,9 @@ export interface CellSummmary {
14
14
  Count: number | undefined;
15
15
  [key: string]: any;
16
16
  }
17
+ /**
18
+ * Defines a Custom Cell Summary operation provided by a user
19
+ */
17
20
  export interface CellSummaryOperation {
18
21
  /**
19
22
  * Name of the Operation - will be displayed in the Cell Summary components
@@ -13,8 +13,17 @@ export interface ColumnFilter extends AdaptableObject {
13
13
  */
14
14
  Predicate: ColumnFilterPredicate;
15
15
  }
16
+ /**
17
+ * A Predicate used in Column Filtering
18
+ */
16
19
  export interface ColumnFilterPredicate extends AdaptablePredicate {
17
20
  PredicateId: TypeHint<string, SystemFilterPredicateId>;
18
21
  }
22
+ /**
23
+ * Array containing all System Filter Predicates
24
+ */
19
25
  export declare type SystemFilterPredicateIds = SystemFilterPredicateId[];
26
+ /**
27
+ * List of all the Filter Predicates shipped by AdapTable
28
+ */
20
29
  export declare type SystemFilterPredicateId = 'Values' | 'ExcludeValues' | 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'InRange' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False' | 'BooleanToggle';
@@ -7,11 +7,14 @@ import { FDC3Intent } from '../../types';
7
7
  * it has a field describing what type it is, and data indicating its identity. Use this as a base
8
8
  * to derive your own with any custom properties or metadata.
9
9
  */
10
+ /**
11
+ * General-purpose context type, as defined by FDC3
12
+ */
10
13
  export interface FDC3Context {
11
14
  /**
12
- * Type of context that uniquely identifies it, e.g. "instrument"; used to refer to the accepted context(s) when declaring intents
15
+ * Type of FDC3Context that uniquely identifies it, e.g. "instrument"; used to refer to the accepted context(s) when declaring intents
13
16
  */
14
- type: ContextType;
17
+ type: FDC3ContextType;
15
18
  /**
16
19
  * Name of the context data (optional) - a text string that describes the data being sent
17
20
  */
@@ -228,7 +231,13 @@ export interface AdaptableFDC3EventInfo extends BaseEventInfo {
228
231
  */
229
232
  context: FDC3Context;
230
233
  }
231
- export declare type ContextType = 'fdc3.instrument' | 'fdc3.instrumentList' | 'fdc3.position' | 'fdc3.portfolio' | 'fdc3.contact' | 'fdc3.contactList' | 'fdc3.organization' | 'fdc3.country';
234
+ /**
235
+ * Defines which FDC3 context is being used
236
+ */
237
+ export declare type FDC3ContextType = 'fdc3.instrument' | 'fdc3.instrumentList' | 'fdc3.position' | 'fdc3.portfolio' | 'fdc3.contact' | 'fdc3.contactList' | 'fdc3.organization' | 'fdc3.country';
238
+ /**
239
+ * Context used when providing Custom FDC3 content
240
+ */
232
241
  export interface CustomFDC3Context extends FDC3Context {
233
242
  type: any;
234
243
  }
@@ -1,6 +1,5 @@
1
1
  /**
2
- * Determines whether Adaptable should re-apply filtering after cell and ticking data edits. *
3
- * If the 'applyFilter' value is 'Throttle' then the 'throttleDelay' property should be additionally set.
2
+ * Whether Adaptable re-applies filtering after data edits; if `applyFilter` value is 'Throttle', `throttleDelay` should be set
4
3
  */
5
4
  export interface FilterActionOnDataChange {
6
5
  /**
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  /**
3
- * Determines whether Adaptable should re-apply filtering after cell and ticking data edits. *
4
- * If the 'applyFilter' value is 'Throttle' then the 'throttleDelay' property should be additionally set.
3
+ * Whether Adaptable re-applies filtering after data edits; if `applyFilter` value is 'Throttle', `throttleDelay` should be set
5
4
  */
6
5
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -34,5 +34,5 @@ export declare type TypeHint<Base, Literals> = (Base & {
34
34
  __subType?: true;
35
35
  }) | Literals;
36
36
  export declare type AdaptableQLModules = AdaptableQLModule[];
37
- export declare type AdaptableQLModule = 'Filter' | 'Query';
37
+ export declare type AdaptableQLModule = 'CalculatedColumn' | 'Filter' | 'Query';
38
38
  export declare type AdaptableColumnType = 'abColDefBoolean' | 'abColDefDate' | 'abColDefNumber' | 'abColDefString' | 'abColDefObject' | 'abColDefCustom' | 'abSpecialColumn';
@@ -75,5 +75,11 @@ export interface ReportData {
75
75
  */
76
76
  rows: Record<string, any>[];
77
77
  }
78
+ /**
79
+ * Names of Reports provided by AdapTable
80
+ */
78
81
  export declare type SystemReportName = 'Visual Data' | 'All Data' | 'Current Data' | 'Selected Cells' | 'Selected Rows';
82
+ /**
83
+ * Array containing all System Report names
84
+ */
79
85
  export declare type SystemReportNames = SystemReportName[];
@@ -142,8 +142,11 @@ export interface ColumnComparison {
142
142
  */
143
143
  Color: string;
144
144
  }
145
+ /**
146
+ * Array of CellTextOption available in Format Columns
147
+ */
145
148
  export declare type CellTextOptions = CellTextOption[];
146
149
  /**
147
- * List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button
150
+ * Text optionally to show in a Format Column special style: 'CellValue' or 'PercentageValue'
148
151
  */
149
152
  export declare type CellTextOption = 'CellValue' | 'PercentageValue';
@@ -35,20 +35,31 @@ export interface IPushPullDomain {
35
35
  }
36
36
  /**
37
37
  * An ipushpull report
38
- *
39
- * Contains the name of the Report (which will exist in the Export State), and the ipushpull `Folder` and `Page` to which it will be sent.
40
38
  */
41
39
  export interface IPushPullReport extends AdaptableObject {
40
+ /**
41
+ * Name of the Report
42
+ */
42
43
  ReportName: string;
44
+ /**
45
+ * ipushpull Folder which contains the Page
46
+ */
43
47
  Folder: string;
48
+ /**
49
+ * ipushpull Page which will contain the data
50
+ */
44
51
  Page: string;
45
52
  }
46
53
  /**
47
- * Defines an ipushpull Schedule. Used in the Schedule Module (where the State will be stored).
48
- *
49
- * Properties include the report being exported to Excel (via ipushpull) and whether it is Snapshot or Live Data
54
+ * Defines an ipushpull Schedule
50
55
  */
51
56
  export interface IPushPullSchedule extends BaseSchedule {
57
+ /**
58
+ * The report being exported to Excel (via ipushpull)
59
+ */
52
60
  IPushPullReport: IPushPullReport;
61
+ /**
62
+ * How data is sent: 'Snapshot' or 'Live Data'
63
+ */
53
64
  Transmission: 'Snapshot' | 'Live Data';
54
65
  }
@@ -16,7 +16,7 @@ export interface LayoutState extends ConfigState {
16
16
  Layouts?: Layout[];
17
17
  }
18
18
  /**
19
- * Layout object - contains everything required including Columns, Sorts, Widths, Aggregations, Grouping and Pivoting details
19
+ * Defines a Layout; contains everything required i.e. Columns, Sorts, Widths, Aggregations, Grouping & Pivoting
20
20
  */
21
21
  export interface Layout extends AdaptableObject {
22
22
  /**
@@ -17,6 +17,7 @@ import { ThemeState } from './ThemeState';
17
17
  import { ToolPanelState } from './ToolPanelState';
18
18
  import { QueryState } from './QueryState';
19
19
  import { StatusBarState } from './StatusBarState';
20
+ import { ChartingState } from './ChartingState';
20
21
  /**
21
22
  * This is the main Predefined Config interface which developers will populate at design-time
22
23
  */
@@ -97,4 +98,8 @@ export interface PredefinedConfig {
97
98
  * Sets the order and visibility of the Tool Panel controls in the AdapTable ToolPanel (on right of grid)
98
99
  */
99
100
  ToolPanel?: ToolPanelState;
101
+ /**
102
+ * Predefine charting models
103
+ */
104
+ Charting?: ChartingState;
100
105
  }
@@ -26,7 +26,7 @@ export interface ScheduleState extends ConfigState {
26
26
  */
27
27
  Glue42Schedules?: Glue42Schedule[];
28
28
  /**
29
- * Schedules connected to OpenFin data exports - available if OpenFin plugin is running
29
+ * Schedules connected to OpenFin exports - available if OpenFin plugin is running
30
30
  */
31
31
  OpenFinSchedules?: OpenFinSchedule[];
32
32
  }
@@ -27,7 +27,7 @@ export interface Shortcut extends SuspendableObject {
27
27
  */
28
28
  ShortcutKey: string;
29
29
  /**
30
- * Value which acts as 2nd operand for ShortcutOperation (the first operand being the cell value)
30
+ * Value acting as 2nd operand for ShortcutOperation (1st operand is the cell value)
31
31
  */
32
32
  ShortcutValue: number;
33
33
  /**
@@ -67,11 +67,17 @@ export interface SharedEntity extends AdaptableObject {
67
67
  */
68
68
  Type: SharedEntityType;
69
69
  }
70
+ /**
71
+ * Defines Objects which have been imported into Team Sharing
72
+ */
70
73
  export interface TeamSharingImportInfo<T extends AdaptableObject> {
71
74
  ModuleEntities: T[];
72
75
  AddAction: (entity: T) => any;
73
76
  EditAction: (entity: T) => any;
74
77
  }
78
+ /**
79
+ * Describes an Object which is being Team Shared
80
+ */
75
81
  export interface SharedEntityConfig {
76
82
  description: string;
77
83
  type: SharedEntityType;
@@ -0,0 +1,23 @@
1
+ import { ChartModel } from '@ag-grid-community/all-modules';
2
+ import * as Redux from 'redux';
3
+ import { AdaptableState } from '../../../types';
4
+ import { ChartingState } from '../../PredefinedConfig/ChartingState';
5
+ /**
6
+ * @ReduxAction Set AG Grid Charting Models
7
+ */
8
+ export declare const SET_CHARTING_CHARTS = "SET_CHARTING_CHARTS";
9
+ /**
10
+ * @ReduxAction Charting Module is ready
11
+ */
12
+ export declare const CHARTING_READY = "CHARTING_READY";
13
+ export interface ChartingSetChartModelsAction extends Redux.Action {
14
+ charts: ChartModel[];
15
+ }
16
+ export interface ChartingReadyAction extends Redux.Action {
17
+ chartingState: ChartingState;
18
+ }
19
+ export declare const ChartingSetChartModels: (charts: ChartModel[]) => ChartingSetChartModelsAction;
20
+ export declare const ChartingReady: (chartingState: ChartingState) => ChartingReadyAction;
21
+ export declare const initialState: ChartingState;
22
+ export declare const ChartingGetChartModels: (state: AdaptableState) => ChartingState['ChartDefinitions'];
23
+ export declare const ChartingReducer: Redux.Reducer<ChartingState>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChartingReducer = exports.ChartingGetChartModels = exports.initialState = exports.ChartingReady = exports.ChartingSetChartModels = exports.CHARTING_READY = exports.SET_CHARTING_CHARTS = void 0;
4
+ const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
5
+ /**
6
+ * @ReduxAction Set AG Grid Charting Models
7
+ */
8
+ exports.SET_CHARTING_CHARTS = 'SET_CHARTING_CHARTS';
9
+ /**
10
+ * @ReduxAction Charting Module is ready
11
+ */
12
+ exports.CHARTING_READY = 'CHARTING_READY';
13
+ const ChartingSetChartModels = (charts) => ({
14
+ charts,
15
+ type: exports.SET_CHARTING_CHARTS,
16
+ });
17
+ exports.ChartingSetChartModels = ChartingSetChartModels;
18
+ const ChartingReady = (chartingState) => ({
19
+ type: exports.CHARTING_READY,
20
+ chartingState,
21
+ });
22
+ exports.ChartingReady = ChartingReady;
23
+ exports.initialState = {
24
+ ChartDefinitions: GeneralConstants_1.EMPTY_ARRAY,
25
+ };
26
+ const ChartingGetChartModels = (state) => state.Charting.ChartDefinitions;
27
+ exports.ChartingGetChartModels = ChartingGetChartModels;
28
+ const ChartingReducer = (state = exports.initialState, action) => {
29
+ switch (action.type) {
30
+ case exports.SET_CHARTING_CHARTS:
31
+ const newCharts = action.charts.map((chartModel) => ({
32
+ model: chartModel,
33
+ }));
34
+ return Object.assign(Object.assign({}, state), { ChartDefinitions: newCharts });
35
+ }
36
+ return state;
37
+ };
38
+ exports.ChartingReducer = ChartingReducer;
@@ -6,7 +6,7 @@ import { SelectedRowInfo } from '../../PredefinedConfig/Selection/SelectedRowInf
6
6
  import { AdaptableMenuItem } from '../../PredefinedConfig/Common/Menu';
7
7
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
8
8
  import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
9
- import { CellSummmary } from '../../types';
9
+ import { Layout, CellSummmary, ColumnFilter } from '../../types';
10
10
  import { RowNode } from '@ag-grid-community/all-modules';
11
11
  /**
12
12
  * @ReduxAction Columns have been set in the Grid
@@ -80,6 +80,12 @@ export declare const GRID_SET_TREE_MODE_ON = "GRID_SET_TREE_MODE_ON";
80
80
  * @ReduxAction Grid is taken out of tree mode
81
81
  */
82
82
  export declare const GRID_SET_TREE_MODE_OFF = "GRID_SET_TREE_MODE_OFF";
83
+ export declare const LAYOUT_UPDATE_CURRENT_DRAFT = "LAYOUT_UPDATE_CURRENT_DRAFT";
84
+ export declare const LAYOUT_DRAFT_COLUMN_FILTER_ADD = "LAYOUT_DRAFT_COLUMN_FILTER_ADD";
85
+ export declare const LAYOUT_DRAFT_COLUMN_FILTER_EDIT = "LAYOUT_DRAFT_COLUMN_FILTER_EDIT";
86
+ export declare const LAYOUT_DRAFT_COLUMN_FILTER_SET = "LAYOUT_DRAFT_COLUMN_FILTER_SET";
87
+ export declare const LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL = "LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL";
88
+ export declare const LAYOUT_DRAFT_COLUMN_FILTER_CLEAR = "LAYOUT_DRAFT_COLUMN_FILTER_CLEAR";
83
89
  export interface GridDataChangedAction extends Redux.Action {
84
90
  cellDataChangedInfo: CellDataChangedInfo;
85
91
  }
@@ -151,6 +157,23 @@ export interface SetTreeModeOnAction extends Redux.Action {
151
157
  }
152
158
  export interface SetTreeModeOffAction extends Redux.Action {
153
159
  }
160
+ export interface LayoutUpdateCurrentDraftAction extends Redux.Action {
161
+ layout: Layout;
162
+ }
163
+ export interface LayoutDraftColumnFilterAddAction extends Redux.Action {
164
+ columnFilter: ColumnFilter;
165
+ }
166
+ export interface LayoutDraftColumnFilterEditAction extends Redux.Action {
167
+ columnFilter: ColumnFilter;
168
+ }
169
+ export interface LayoutDraftColumnFilterSetAction extends Redux.Action {
170
+ columnFilter: ColumnFilter;
171
+ }
172
+ export interface LayoutDraftColumnFilterClearAction extends Redux.Action {
173
+ columnFilter: ColumnFilter;
174
+ }
175
+ export interface LayoutDraftColumnFilterClearAllAction extends Redux.Action {
176
+ }
154
177
  export declare const GridSetColumns: (Columns: AdaptableColumn[]) => GridSetColumnsAction;
155
178
  export declare const GridAddColumn: (Column: AdaptableColumn) => GridAddColumnAction;
156
179
  export declare const GridAddColumns: (Columns: AdaptableColumn[]) => GridAddColumnsAction;
@@ -169,4 +192,10 @@ export declare const SetTreeModeOn: () => SetTreeModeOnAction;
169
192
  export declare const SetTreeModeOff: () => SetTreeModeOffAction;
170
193
  export declare const SetSettingPanelModuleMenuItems: (MenuItems: AdaptableMenuItem[]) => SetSettingPanelModuleMenuItemsAction;
171
194
  export declare const SetModuleButtonMenuItems: (MenuItems: AdaptableMenuItem[]) => SetModuleButtonMenuItemsAction;
195
+ export declare const LayoutUpdateCurrentDraft: (layout: Layout) => LayoutUpdateCurrentDraftAction;
196
+ export declare const LayoutDraftColumnFilterAdd: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterAddAction;
197
+ export declare const LayoutDraftColumnFilterEdit: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterEditAction;
198
+ export declare const LayoutDraftColumnFilterSet: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterSetAction;
199
+ export declare const LayoutDraftColumnFilterClear: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterClearAction;
200
+ export declare const LayoutDraftColumnFilterClearAll: () => LayoutDraftColumnFilterClearAllAction;
172
201
  export declare const GridReducer: Redux.Reducer<GridState>;