@adaptabletools/adaptable 12.0.2 → 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 (45) hide show
  1. package/bundle.cjs.js +91 -91
  2. package/package.json +1 -1
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableOptions/EditOptions.d.ts +6 -9
  6. package/src/AdaptableOptions/ExportOptions.d.ts +15 -0
  7. package/src/AdaptableOptions/Glue42PluginOptions.d.ts +1 -1
  8. package/src/AdaptableOptions/IPushPullPluginOptions.d.ts +1 -3
  9. package/src/Api/FinanceApi.d.ts +8 -8
  10. package/src/Api/Implementation/InternalApiImpl.js +1 -2
  11. package/src/Api/Implementation/LayoutApiImpl.js +1 -1
  12. package/src/Api/StatusBarApi.d.ts +3 -0
  13. package/src/PredefinedConfig/Common/CellSummary.d.ts +3 -0
  14. package/src/PredefinedConfig/Common/ColumnFilter.d.ts +9 -0
  15. package/src/PredefinedConfig/Common/FDC3Context.d.ts +12 -3
  16. package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +1 -2
  17. package/src/PredefinedConfig/Common/FilterActionOnDataChange.js +1 -2
  18. package/src/PredefinedConfig/ExportState.d.ts +6 -0
  19. package/src/PredefinedConfig/FormatColumnState.d.ts +4 -1
  20. package/src/PredefinedConfig/IPushPullState.d.ts +16 -5
  21. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  22. package/src/PredefinedConfig/ScheduleState.d.ts +1 -1
  23. package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
  24. package/src/PredefinedConfig/TeamSharingState.d.ts +6 -0
  25. package/src/Redux/ActionsReducers/GridRedux.d.ts +30 -1
  26. package/src/Redux/ActionsReducers/GridRedux.js +105 -2
  27. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +10 -11
  28. package/src/Redux/ActionsReducers/LayoutRedux.js +10 -10
  29. package/src/Redux/Store/AdaptableStore.js +37 -8
  30. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -0
  31. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -0
  32. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +3 -0
  33. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +3 -0
  34. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +3 -0
  35. package/src/Utilities/Helpers/FormatHelper.js +1 -1
  36. package/src/Utilities/Helpers/Helper.js +1 -1
  37. package/src/Utilities/ObjectFactory.js +1 -1
  38. package/src/View/Filter/FilterSummary.d.ts +1 -1
  39. package/src/View/Layout/LayoutViewPanel.js +2 -1
  40. package/src/agGrid/Adaptable.js +1 -1
  41. package/src/metamodel/adaptable.metamodel.d.ts +144 -1
  42. package/src/metamodel/adaptable.metamodel.js +1 -1
  43. package/src/types.d.ts +1 -1
  44. package/version.d.ts +1 -1
  45. package/version.js +1 -1
@@ -22,6 +22,9 @@ export declare const LAYOUT_SELECT = "LAYOUT_SELECT";
22
22
  * @ReduxAction A Layout has been (auto)saved
23
23
  */
24
24
  export declare const LAYOUT_SAVE = "LAYOUT_SAVE";
25
+ /**
26
+ * @ReduxAction A Column has been removed
27
+ */
25
28
  export declare const LAYOUT_REMOVE_COLUMN = "LAYOUT_REMOVE_COLUMN";
26
29
  /**
27
30
  * @ReduxAction A Column Filter has been added
@@ -50,22 +53,21 @@ export interface LayoutColumnFilterAddAction extends LayoutColumnFilterAction {
50
53
  }
51
54
  export interface LayoutColumnFilterEditAction extends LayoutColumnFilterAction {
52
55
  }
53
- export interface LayoutFilterSetAction extends LayoutColumnFilterAction {
56
+ export interface LayoutColumnFilterSetAction extends LayoutColumnFilterAction {
54
57
  }
55
- export interface LayoutFilterClearAction extends LayoutColumnFilterAction {
58
+ export interface LayoutColumnFilterClearAction extends LayoutColumnFilterAction {
56
59
  }
57
- export interface LayoutFilterClearAllAction extends Redux.Action {
60
+ export interface LayoutColumnFilterClearAllAction extends Redux.Action {
58
61
  }
59
62
  export declare const LayoutColumnFilterAdd: (columnFilter: ColumnFilter) => LayoutColumnFilterAddAction;
60
63
  export declare const LayoutColumnFilterEdit: (columnFilter: ColumnFilter) => LayoutColumnFilterEditAction;
61
- export declare const LayoutColumnFilterSet: (columnFilter: ColumnFilter) => LayoutFilterSetAction;
62
- export declare const LayoutColumnFilterClearAll: () => LayoutFilterClearAllAction;
63
- export declare const LayoutColumnFilterClear: (columnFilter: ColumnFilter) => LayoutFilterClearAction;
64
+ export declare const LayoutColumnFilterSet: (columnFilter: ColumnFilter) => LayoutColumnFilterSetAction;
65
+ export declare const LayoutColumnFilterClearAll: () => LayoutColumnFilterClearAllAction;
66
+ export declare const LayoutColumnFilterClear: (columnFilter: ColumnFilter) => LayoutColumnFilterClearAction;
64
67
  /**
65
68
  * @ReduxAction A new caption / header has been set for a Column in the Layout
66
69
  */
67
70
  export declare const LAYOUT_SET_COLUMN_CAPTION = "LAYOUT_SET_COLUMN_CAPTION";
68
- export declare const LAYOUT_UPDATE_CURRENT_DRAFT = "LAYOUT_UPDATE_CURRENT_DRAFT";
69
71
  /**
70
72
  * @ReduxAction Layout Module is ready
71
73
  */
@@ -90,8 +92,6 @@ export interface LayoutRemoveColumnAction extends Redux.Action {
90
92
  layoutName: string;
91
93
  columnId: string;
92
94
  }
93
- export interface LayoutUpdateCurrentDraftAction extends LayoutAction {
94
- }
95
95
  export interface LayoutSelectAction extends Redux.Action {
96
96
  layoutName: string;
97
97
  }
@@ -106,9 +106,8 @@ export declare const LayoutAdd: (layout: Layout) => LayoutAddAction;
106
106
  export declare const LayoutDelete: (layout: Layout) => LayoutDeleteAction;
107
107
  export declare const LayoutSave: (layout: Layout) => LayoutSaveAction;
108
108
  export declare const LayoutSetColumnCaption: (layoutName: string, columnId: string, caption: string) => LayoutSetColumnCaptionAction;
109
- export declare const LayouRemoveColumn: (layoutName: string, columnId: string) => LayoutRemoveColumnAction;
109
+ export declare const LayoutRemoveColumn: (layoutName: string, columnId: string) => LayoutRemoveColumnAction;
110
110
  export declare const LayoutSelect: (layoutName: string) => LayoutSelectAction;
111
- export declare const LayoutUpdateCurrentDraft: (layout: Layout) => LayoutUpdateCurrentDraftAction;
112
111
  export declare const LayoutReady: (layoutState: LayoutState) => LayoutReadyAction;
113
112
  export declare const getColumnFilterSelector: (state: AdaptableState) => ColumnFilter[];
114
113
  export declare const LayoutReducer: Redux.Reducer<LayoutState>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LayoutReducer = exports.getColumnFilterSelector = exports.LayoutReady = exports.LayoutUpdateCurrentDraft = exports.LayoutSelect = exports.LayouRemoveColumn = exports.LayoutSetColumnCaption = exports.LayoutSave = exports.LayoutDelete = exports.LayoutAdd = exports.LAYOUT_READY = exports.LAYOUT_UPDATE_CURRENT_DRAFT = exports.LAYOUT_SET_COLUMN_CAPTION = exports.LayoutColumnFilterClear = exports.LayoutColumnFilterClearAll = exports.LayoutColumnFilterSet = exports.LayoutColumnFilterEdit = exports.LayoutColumnFilterAdd = exports.LAYOUT_COLUMN_FILTER_CLEAR = exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_COLUMN_FILTER_SET = exports.LAYOUT_COLUMN_FILTER_EDIT = exports.LAYOUT_COLUMN_FILTER_ADD = exports.LAYOUT_REMOVE_COLUMN = exports.LAYOUT_SAVE = exports.LAYOUT_SELECT = exports.LAYOUT_DELETE = exports.LAYOUT_EDIT = exports.LAYOUT_ADD = void 0;
3
+ exports.LayoutReducer = exports.getColumnFilterSelector = exports.LayoutReady = exports.LayoutSelect = exports.LayoutRemoveColumn = exports.LayoutSetColumnCaption = exports.LayoutSave = exports.LayoutDelete = exports.LayoutAdd = exports.LAYOUT_READY = exports.LAYOUT_SET_COLUMN_CAPTION = exports.LayoutColumnFilterClear = exports.LayoutColumnFilterClearAll = exports.LayoutColumnFilterSet = exports.LayoutColumnFilterEdit = exports.LayoutColumnFilterAdd = exports.LAYOUT_COLUMN_FILTER_CLEAR = exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_COLUMN_FILTER_SET = exports.LAYOUT_COLUMN_FILTER_EDIT = exports.LAYOUT_COLUMN_FILTER_ADD = exports.LAYOUT_REMOVE_COLUMN = exports.LAYOUT_SAVE = exports.LAYOUT_SELECT = exports.LAYOUT_DELETE = exports.LAYOUT_EDIT = exports.LAYOUT_ADD = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
6
6
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
@@ -24,6 +24,9 @@ exports.LAYOUT_SELECT = 'LAYOUT_SELECT';
24
24
  * @ReduxAction A Layout has been (auto)saved
25
25
  */
26
26
  exports.LAYOUT_SAVE = 'LAYOUT_SAVE';
27
+ /**
28
+ * @ReduxAction A Column has been removed
29
+ */
27
30
  exports.LAYOUT_REMOVE_COLUMN = 'LAYOUT_REMOVE_COLUMN';
28
31
  /**
29
32
  * @ReduxAction A Column Filter has been added
@@ -74,7 +77,6 @@ exports.LayoutColumnFilterClear = LayoutColumnFilterClear;
74
77
  * @ReduxAction A new caption / header has been set for a Column in the Layout
75
78
  */
76
79
  exports.LAYOUT_SET_COLUMN_CAPTION = 'LAYOUT_SET_COLUMN_CAPTION';
77
- exports.LAYOUT_UPDATE_CURRENT_DRAFT = 'LAYOUT_UPDATE_CURRENT_DRAFT';
78
80
  /**
79
81
  * @ReduxAction Layout Module is ready
80
82
  */
@@ -101,22 +103,17 @@ const LayoutSetColumnCaption = (layoutName, columnId, caption) => ({
101
103
  caption,
102
104
  });
103
105
  exports.LayoutSetColumnCaption = LayoutSetColumnCaption;
104
- const LayouRemoveColumn = (layoutName, columnId) => ({
106
+ const LayoutRemoveColumn = (layoutName, columnId) => ({
105
107
  type: exports.LAYOUT_REMOVE_COLUMN,
106
108
  layoutName,
107
109
  columnId,
108
110
  });
109
- exports.LayouRemoveColumn = LayouRemoveColumn;
111
+ exports.LayoutRemoveColumn = LayoutRemoveColumn;
110
112
  const LayoutSelect = (layoutName) => ({
111
113
  type: exports.LAYOUT_SELECT,
112
114
  layoutName,
113
115
  });
114
116
  exports.LayoutSelect = LayoutSelect;
115
- const LayoutUpdateCurrentDraft = (layout) => ({
116
- type: exports.LAYOUT_UPDATE_CURRENT_DRAFT,
117
- layout,
118
- });
119
- exports.LayoutUpdateCurrentDraft = LayoutUpdateCurrentDraft;
120
117
  const LayoutReady = (layoutState) => ({
121
118
  type: exports.LAYOUT_READY,
122
119
  layoutState,
@@ -124,7 +121,10 @@ const LayoutReady = (layoutState) => ({
124
121
  exports.LayoutReady = LayoutReady;
125
122
  const getColumnFilterSelector = (state) => {
126
123
  var _a, _b, _c, _d;
127
- const currentLayout = (_c = (_b = (_a = state.Layout) === null || _a === void 0 ? void 0 : _a.Layouts) === null || _b === void 0 ? void 0 : _b.find) === null || _c === void 0 ? void 0 : _c.call(_b, (layout) => layout.Name === state.Layout.CurrentLayout);
124
+ // in case of non-saving Layouts, we load the current Layout(possibly draft) from GridState
125
+ const currentLayout = state.Grid.CurrentLayout
126
+ ? state.Grid.CurrentLayout
127
+ : (_c = (_b = (_a = state.Layout) === null || _a === void 0 ? void 0 : _a.Layouts) === null || _b === void 0 ? void 0 : _b.find) === null || _c === void 0 ? void 0 : _c.call(_b, (layout) => layout.Name === state.Layout.CurrentLayout);
128
128
  return (_d = currentLayout === null || currentLayout === void 0 ? void 0 : currentLayout.ColumnFilters) !== null && _d !== void 0 ? _d : [];
129
129
  };
130
130
  exports.getColumnFilterSelector = getColumnFilterSelector;
@@ -281,7 +281,7 @@ exports.AdaptableStore = AdaptableStore;
281
281
  const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
282
282
  return function (next) {
283
283
  return function (action) {
284
- var _a, _b, _c, _d, _e, _f, _g, _h;
284
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
285
285
  switch (action.type) {
286
286
  /*******************
287
287
  * NAMED QUERY ACTIONS
@@ -714,9 +714,38 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
714
714
  case LayoutRedux.LAYOUT_COLUMN_FILTER_ADD:
715
715
  case LayoutRedux.LAYOUT_COLUMN_FILTER_EDIT:
716
716
  case LayoutRedux.LAYOUT_COLUMN_FILTER_SET:
717
- case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL:
718
- case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR: {
719
- let returnAction = next(action);
717
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR:
718
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL: {
719
+ let returnAction;
720
+ if ((_g = adaptable.adaptableOptions.layoutOptions) === null || _g === void 0 ? void 0 : _g.autoSaveLayouts) {
721
+ returnAction = next(action);
722
+ }
723
+ else {
724
+ if (!middlewareAPI.getState().Grid.CurrentLayout) {
725
+ const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
726
+ middlewareAPI.dispatch(GridRedux.LayoutUpdateCurrentDraft(currentLayout));
727
+ }
728
+ // we have a layout draft, we have to update that state
729
+ let draftLayoutAction;
730
+ switch (action.type) {
731
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_ADD:
732
+ draftLayoutAction = GridRedux.LayoutDraftColumnFilterAdd(action.columnFilter);
733
+ break;
734
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_EDIT:
735
+ draftLayoutAction = GridRedux.LayoutDraftColumnFilterEdit(action.columnFilter);
736
+ break;
737
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_SET:
738
+ draftLayoutAction = GridRedux.LayoutDraftColumnFilterSet(action.columnFilter);
739
+ break;
740
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR:
741
+ draftLayoutAction = GridRedux.LayoutDraftColumnFilterClear(action.columnFilter);
742
+ break;
743
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL:
744
+ draftLayoutAction = GridRedux.LayoutDraftColumnFilterClearAll();
745
+ break;
746
+ }
747
+ returnAction = next(draftLayoutAction);
748
+ }
720
749
  setTimeout(() => adaptable.applyGridFiltering(), 5);
721
750
  adaptable.api.gridApi.fireSearchChangedEvent('Filter');
722
751
  return returnAction;
@@ -840,18 +869,18 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
840
869
  // tell grid the layout has been selected
841
870
  adaptable.setLayout(currentLayout);
842
871
  }
843
- if (!((_g = adaptable.adaptableOptions.layoutOptions) === null || _g === void 0 ? void 0 : _g.autoSaveLayouts)) {
844
- middlewareAPI.dispatch(LayoutRedux.LayoutUpdateCurrentDraft(currentLayout));
872
+ if (!((_h = adaptable.adaptableOptions.layoutOptions) === null || _h === void 0 ? void 0 : _h.autoSaveLayouts)) {
873
+ middlewareAPI.dispatch(GridRedux.LayoutUpdateCurrentDraft(currentLayout));
845
874
  }
846
875
  }
847
876
  if (returnAction.type == LayoutRedux.LAYOUT_ADD ||
848
877
  returnAction.type == LayoutRedux.LAYOUT_SAVE) {
849
878
  const actionTyped = action;
850
879
  // if autosave is false
851
- if (!((_h = adaptable.adaptableOptions.layoutOptions) === null || _h === void 0 ? void 0 : _h.autoSaveLayouts)) {
880
+ if (!((_j = adaptable.adaptableOptions.layoutOptions) === null || _j === void 0 ? void 0 : _j.autoSaveLayouts)) {
852
881
  // and the current layout is saved, make sure we also update the draft
853
882
  if (actionTyped.layout.Name === newLayoutState.CurrentLayout) {
854
- middlewareAPI.dispatch(LayoutRedux.LayoutUpdateCurrentDraft(actionTyped.layout));
883
+ middlewareAPI.dispatch(GridRedux.LayoutUpdateCurrentDraft(actionTyped.layout));
855
884
  }
856
885
  }
857
886
  }
@@ -1,4 +1,7 @@
1
1
  import { ExpressionFunction } from '../../parser/src/types';
2
+ /**
3
+ * List of all the Aggregation Functions available in AdaptableQL
4
+ */
2
5
  export declare type AggregationFunctionName = 'WHERE' | 'COL' | AggregationFunction | ComparisonFunction;
3
6
  declare type AggregationFunction = 'SUM';
4
7
  declare type ComparisonFunction = 'EQ' | 'NEQ' | 'LT' | 'GT' | 'LTE' | 'GTE';
@@ -2,6 +2,9 @@ import { ExpressionFunction } from '../../parser/src/types';
2
2
  import { BaseParameter } from './expressionFunctionUtils';
3
3
  import { RowNode } from '@ag-grid-community/all-modules';
4
4
  import { AggregateParams } from './scalarAggregationHelper';
5
+ /**
6
+ * List of all the AggregatedScalar Functions available in AdaptableQL
7
+ */
5
8
  export declare type AggregatedScalarFunctionName = AggregationFunction | OperandFunction;
6
9
  declare type AggregationFunction = 'SUM' | 'PERCENTAGE' | 'AVG' | 'MIN' | 'MAX' | 'CUMUL';
7
10
  declare type OperandFunction = 'COL' | 'OVER' | 'GROUP_BY';
@@ -1,3 +1,6 @@
1
1
  import { ExpressionFunction } from '../../parser/src/types';
2
+ /**
3
+ * List of all the Boolean Functions available in AdaptableQL
4
+ */
2
5
  export declare type BooleanFunctionName = 'EQ' | 'NEQ' | 'GT' | 'LT' | 'GTE' | 'LTE' | 'AND' | 'OR' | 'NOT' | 'BETWEEN' | 'IN' | 'IS_BLANK' | 'CONTAINS' | 'STARTS_WITH' | 'ENDS_WITH' | 'ANY_CONTAINS' | 'QUERY';
3
6
  export declare const booleanExpressionFunctions: Record<BooleanFunctionName, ExpressionFunction>;
@@ -1,4 +1,7 @@
1
1
  import { ExpressionFunction } from '../../parser/src/types';
2
+ /**
3
+ * List of all the Observable Functions available in AdaptableQL
4
+ */
2
5
  export declare type ObservableFunctionName = 'WHERE' | 'COL' | 'TIMEFRAME' | ObservableFunction | ChangeFunction;
3
6
  declare type ObservableFunction = 'ROW_CHANGE' | 'GRID_CHANGE';
4
7
  declare type ChangeFunction = 'MAX' | 'MIN' | 'NONE' | 'COUNT';
@@ -1,3 +1,6 @@
1
1
  import { ExpressionFunction } from '../../parser/src/types';
2
+ /**
3
+ * List of all the Scalar Functions available in AdaptableQL
4
+ */
2
5
  export declare type ScalarFunctionName = 'ADD' | 'SUB' | 'MUL' | 'DIV' | 'MOD' | 'POW' | 'MIN' | 'MAX' | 'AVG' | 'DATE' | 'NOW' | 'TODAY' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR' | 'ADD_DAYS' | 'ADD_WEEKS' | 'ADD_MONTHS' | 'ADD_YEARS' | 'DIFF_DAYS' | 'DIFF_WEEKS' | 'DIFF_MONTHS' | 'DIFF_YEARS' | 'SUB_STRING' | 'REPLACE' | 'COALESCE' | 'LEN' | 'UPPER' | 'LOWER' | 'CONCAT' | 'IF' | 'COL';
3
6
  export declare const scalarExpressionFunctions: Record<ScalarFunctionName, ExpressionFunction>;
@@ -71,7 +71,7 @@ function NumberFormatter(input, options = {}) {
71
71
  }
72
72
  exports.NumberFormatter = NumberFormatter;
73
73
  function DateFormatter(input, options) {
74
- if (input == null || input == undefined) {
74
+ if (input == null || input == undefined || input == 'Invalid Date') {
75
75
  return undefined;
76
76
  }
77
77
  try {
@@ -128,7 +128,7 @@ function ReturnItemCount(items, itemName) {
128
128
  }
129
129
  exports.ReturnItemCount = ReturnItemCount;
130
130
  function IsInputNullOrEmpty(itemToCheck) {
131
- if (itemToCheck == 'Invalid Date') {
131
+ if (itemToCheck == 'Invalid Date ') {
132
132
  return true;
133
133
  }
134
134
  if (typeof itemToCheck === 'string') {
@@ -304,7 +304,7 @@ function CreateEmptyFreeTextColumn(isFilterable) {
304
304
  }
305
305
  exports.CreateEmptyFreeTextColumn = CreateEmptyFreeTextColumn;
306
306
  function CreateEmptyLayout(layout, adaptableColumns) {
307
- return Object.assign(Object.assign({}, layout), { Uuid: Uuid_1.createUuid(), Columns: layout.Columns || [], ColumnSorts: layout.ColumnSorts || [],
307
+ return Object.assign(Object.assign({}, layout), { Uuid: Uuid_1.createUuid(), Columns: layout.Columns || [], ColumnSorts: layout.ColumnSorts || [], ColumnFilters: layout.ColumnFilters || [],
308
308
  // ColumnFlexMap: layout.ColumnFlexMap || {},
309
309
  ColumnWidthMap: layout.ColumnWidthMap || {}, RowGroupedColumns: layout.RowGroupedColumns ||
310
310
  (adaptableColumns ? adaptableColumns.filter((c) => c.isGrouped).map((c) => c.columnId) : []) });
@@ -5,7 +5,7 @@ import * as LayoutRedux from '../../Redux/ActionsReducers/LayoutRedux';
5
5
  import { ColumnFilter } from '../../types';
6
6
  export interface FilterSummaryProps extends Omit<ModuleSummaryProps<FilterSummaryComponent>, 'onClosePopup' | 'modalContainer'> {
7
7
  ColumnFilters: ColumnFilter[];
8
- onClearFilter: (columnFilter: ColumnFilter) => LayoutRedux.LayoutFilterClearAction;
8
+ onClearFilter: (columnFilter: ColumnFilter) => LayoutRedux.LayoutColumnFilterClearAction;
9
9
  }
10
10
  export declare class FilterSummaryComponent extends React.Component<FilterSummaryProps, EditableConfigEntityState> {
11
11
  constructor(props: FilterSummaryProps);
@@ -15,6 +15,7 @@ const ButtonNew_1 = require("../Components/Buttons/ButtonNew");
15
15
  const ButtonDelete_1 = require("../Components/Buttons/ButtonDelete");
16
16
  const react_redux_1 = require("react-redux");
17
17
  const ButtonClone_1 = require("../Components/Buttons/ButtonClone");
18
+ const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/GridRedux"));
18
19
  exports.COMPONENT_LAYOUT_POPUP_NAME = 'LayoutEditorStandalonePopup';
19
20
  class LayoutViewPanelComponent extends React.Component {
20
21
  render() {
@@ -63,7 +64,7 @@ function mapDispatchToProps(dispatch) {
63
64
  onSelectLayout: (layoutName) => dispatch(LayoutRedux.LayoutSelect(layoutName)),
64
65
  onSaveLayout: (layout) => {
65
66
  dispatch(LayoutRedux.LayoutSave(layout));
66
- dispatch(LayoutRedux.LayoutUpdateCurrentDraft(null));
67
+ dispatch(GridRedux.LayoutUpdateCurrentDraft(null));
67
68
  },
68
69
  };
69
70
  }
@@ -2760,7 +2760,7 @@ class Adaptable {
2760
2760
  all_modules_1.Events.EVENT_ROW_GROUP_OPENED,
2761
2761
  all_modules_1.Events.EVENT_COLUMN_VALUE_CHANGED,
2762
2762
  ];
2763
- // ADD filter event
2763
+ // no need to add filter event, it is handled by AdaptableStore side-effects
2764
2764
  this.gridOptions.api.addGlobalListener((this.listenerGlobalColumnEventsThatTriggerAutoLayoutSave = (type) => {
2765
2765
  if (columnEventsThatTriggersAutoLayoutSave.indexOf(type) > -1) {
2766
2766
  this.debouncedSaveGridLayout();
@@ -851,6 +851,16 @@ export declare const ADAPTABLE_METAMODEL: {
851
851
  defaultValue: string;
852
852
  })[];
853
853
  };
854
+ AggregatedScalarFunctionName: {
855
+ name: string;
856
+ kind: string;
857
+ description: string;
858
+ };
859
+ AggregationFunctionName: {
860
+ name: string;
861
+ kind: string;
862
+ description: string;
863
+ };
854
864
  AlertApi: {
855
865
  name: string;
856
866
  kind: string;
@@ -1112,6 +1122,11 @@ export declare const ADAPTABLE_METAMODEL: {
1112
1122
  reference: string;
1113
1123
  }[];
1114
1124
  };
1125
+ BooleanFunctionName: {
1126
+ name: string;
1127
+ kind: string;
1128
+ description: string;
1129
+ };
1115
1130
  BulkUpdateApi: {
1116
1131
  name: string;
1117
1132
  kind: string;
@@ -1320,6 +1335,17 @@ export declare const ADAPTABLE_METAMODEL: {
1320
1335
  uiLabel: string;
1321
1336
  }[];
1322
1337
  };
1338
+ CellSummaryOperation: {
1339
+ name: string;
1340
+ kind: string;
1341
+ description: string;
1342
+ properties: {
1343
+ name: string;
1344
+ kind: string;
1345
+ description: string;
1346
+ uiLabel: string;
1347
+ }[];
1348
+ };
1323
1349
  CellSummaryOperationContext: {
1324
1350
  name: string;
1325
1351
  kind: string;
@@ -1348,6 +1374,11 @@ export declare const ADAPTABLE_METAMODEL: {
1348
1374
  kind: string;
1349
1375
  description: string;
1350
1376
  };
1377
+ CellTextOptions: {
1378
+ name: string;
1379
+ kind: string;
1380
+ description: string;
1381
+ };
1351
1382
  CellValuesList: {
1352
1383
  name: string;
1353
1384
  kind: string;
@@ -1446,6 +1477,11 @@ export declare const ADAPTABLE_METAMODEL: {
1446
1477
  reference: string;
1447
1478
  })[];
1448
1479
  };
1480
+ ColumnFilterPredicate: {
1481
+ name: string;
1482
+ kind: string;
1483
+ description: string;
1484
+ };
1449
1485
  ColumnFriendlyNameContext: {
1450
1486
  name: string;
1451
1487
  kind: string;
@@ -1865,6 +1901,11 @@ export declare const ADAPTABLE_METAMODEL: {
1865
1901
  uiLabel: string;
1866
1902
  }[];
1867
1903
  };
1904
+ CustomFDC3Context: {
1905
+ name: string;
1906
+ kind: string;
1907
+ description: string;
1908
+ };
1868
1909
  CustomFDC3Intent: {
1869
1910
  name: string;
1870
1911
  kind: string;
@@ -2380,8 +2421,8 @@ export declare const ADAPTABLE_METAMODEL: {
2380
2421
  description: string;
2381
2422
  uiLabel: string;
2382
2423
  isOptional: boolean;
2383
- defaultValue: string;
2384
2424
  gridInfo?: undefined;
2425
+ defaultValue?: undefined;
2385
2426
  })[];
2386
2427
  };
2387
2428
  EntitlementOptions: {
@@ -2620,6 +2661,11 @@ export declare const ADAPTABLE_METAMODEL: {
2620
2661
  isOptional?: undefined;
2621
2662
  })[];
2622
2663
  };
2664
+ FDC3ContextType: {
2665
+ name: string;
2666
+ kind: string;
2667
+ description: string;
2668
+ };
2623
2669
  FDC3Intent: {
2624
2670
  name: string;
2625
2671
  kind: string;
@@ -3310,11 +3356,30 @@ export declare const ADAPTABLE_METAMODEL: {
3310
3356
  name: string;
3311
3357
  kind: string;
3312
3358
  description: string;
3359
+ properties: {
3360
+ name: string;
3361
+ kind: string;
3362
+ description: string;
3363
+ uiLabel: string;
3364
+ }[];
3313
3365
  };
3314
3366
  IPushPullSchedule: {
3315
3367
  name: string;
3316
3368
  kind: string;
3317
3369
  description: string;
3370
+ properties: ({
3371
+ name: string;
3372
+ kind: string;
3373
+ description: string;
3374
+ uiLabel: string;
3375
+ reference: string;
3376
+ } | {
3377
+ name: string;
3378
+ kind: string;
3379
+ description: string;
3380
+ uiLabel: string;
3381
+ reference?: undefined;
3382
+ })[];
3318
3383
  };
3319
3384
  IPushPullState: {
3320
3385
  name: string;
@@ -3578,6 +3643,11 @@ export declare const ADAPTABLE_METAMODEL: {
3578
3643
  isOptional: boolean;
3579
3644
  }[];
3580
3645
  };
3646
+ ObservableFunctionName: {
3647
+ name: string;
3648
+ kind: string;
3649
+ description: string;
3650
+ };
3581
3651
  OpenFinApi: {
3582
3652
  name: string;
3583
3653
  kind: string;
@@ -4005,6 +4075,18 @@ export declare const ADAPTABLE_METAMODEL: {
4005
4075
  reference: string;
4006
4076
  })[];
4007
4077
  };
4078
+ ReportContext: {
4079
+ name: string;
4080
+ kind: string;
4081
+ description: string;
4082
+ properties: {
4083
+ name: string;
4084
+ kind: string;
4085
+ description: string;
4086
+ uiLabel: string;
4087
+ reference: string;
4088
+ }[];
4089
+ };
4008
4090
  ReportData: {
4009
4091
  name: string;
4010
4092
  kind: string;
@@ -4048,6 +4130,11 @@ export declare const ADAPTABLE_METAMODEL: {
4048
4130
  isOptional: boolean;
4049
4131
  }[];
4050
4132
  };
4133
+ ScalarFunctionName: {
4134
+ name: string;
4135
+ kind: string;
4136
+ description: string;
4137
+ };
4051
4138
  Schedule: {
4052
4139
  name: string;
4053
4140
  kind: string;
@@ -4212,6 +4299,11 @@ export declare const ADAPTABLE_METAMODEL: {
4212
4299
  reference: string;
4213
4300
  })[];
4214
4301
  };
4302
+ SharedEntityConfig: {
4303
+ name: string;
4304
+ kind: string;
4305
+ description: string;
4306
+ };
4215
4307
  Shortcut: {
4216
4308
  name: string;
4217
4309
  kind: string;
@@ -4267,6 +4359,11 @@ export declare const ADAPTABLE_METAMODEL: {
4267
4359
  kind: string;
4268
4360
  description: string;
4269
4361
  };
4362
+ SmartEditOperation: {
4363
+ name: string;
4364
+ kind: string;
4365
+ description: string;
4366
+ };
4270
4367
  SmartEditOperationContext: {
4271
4368
  name: string;
4272
4369
  kind: string;
@@ -4343,6 +4440,17 @@ export declare const ADAPTABLE_METAMODEL: {
4343
4440
  defaultValue?: undefined;
4344
4441
  })[];
4345
4442
  };
4443
+ StatusBarApi: {
4444
+ name: string;
4445
+ kind: string;
4446
+ description: string;
4447
+ properties: {
4448
+ name: string;
4449
+ kind: string;
4450
+ description: string;
4451
+ uiLabel: string;
4452
+ }[];
4453
+ };
4346
4454
  StatusBarState: {
4347
4455
  name: string;
4348
4456
  kind: string;
@@ -4380,6 +4488,36 @@ export declare const ADAPTABLE_METAMODEL: {
4380
4488
  isOptional: boolean;
4381
4489
  }[];
4382
4490
  };
4491
+ SystemExportDestination: {
4492
+ name: string;
4493
+ kind: string;
4494
+ description: string;
4495
+ };
4496
+ SystemExportDestinations: {
4497
+ name: string;
4498
+ kind: string;
4499
+ description: string;
4500
+ };
4501
+ SystemFilterPredicateId: {
4502
+ name: string;
4503
+ kind: string;
4504
+ description: string;
4505
+ };
4506
+ SystemFilterPredicateIds: {
4507
+ name: string;
4508
+ kind: string;
4509
+ description: string;
4510
+ };
4511
+ SystemReportName: {
4512
+ name: string;
4513
+ kind: string;
4514
+ description: string;
4515
+ };
4516
+ SystemReportNames: {
4517
+ name: string;
4518
+ kind: string;
4519
+ description: string;
4520
+ };
4383
4521
  SystemStatusApi: {
4384
4522
  name: string;
4385
4523
  kind: string;
@@ -4453,6 +4591,11 @@ export declare const ADAPTABLE_METAMODEL: {
4453
4591
  reference: string;
4454
4592
  }[];
4455
4593
  };
4594
+ TeamSharingImportInfo: {
4595
+ name: string;
4596
+ kind: string;
4597
+ description: string;
4598
+ };
4456
4599
  TeamSharingOptions: {
4457
4600
  name: string;
4458
4601
  kind: string;