@adaptabletools/adaptable 18.1.14 → 18.1.15-canary.0
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.
- package/package.json +2 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -5
- package/src/AdaptableOptions/AlertOptions.d.ts +2 -1
- package/src/AdaptableOptions/ChartingOptions.d.ts +5 -1
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +5 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +5 -1
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +5 -1
- package/src/AdaptableOptions/LayoutOptions.d.ts +5 -1
- package/src/AdaptableOptions/NotificationsOptions.d.ts +6 -2
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +5 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/ChartingApi.d.ts +2 -2
- package/src/Api/ColumnApi.d.ts +6 -0
- package/src/Api/ConfigApi.d.ts +22 -2
- package/src/Api/Events/LiveDataChanged.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +2 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +3 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +4 -1
- package/src/Api/Implementation/ConfigApiImpl.js +16 -1
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +4 -1
- package/src/Api/Implementation/EntitlementApiImpl.js +31 -6
- package/src/Api/Implementation/ExportApiImpl.js +5 -7
- package/src/Api/Implementation/GridApiImpl.js +1 -1
- package/src/Api/Implementation/TeamSharingApiImpl.js +2 -6
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -6
- package/src/Api/Internal/AdaptableInternalApi.js +5 -11
- package/src/Api/Internal/EntitlementInternalApi.d.ts +4 -0
- package/src/Api/Internal/EntitlementInternalApi.js +11 -0
- package/src/Api/Internal/ExportInternalApi.d.ts +33 -8
- package/src/Api/Internal/ExportInternalApi.js +576 -5
- package/src/Api/Internal/NamedQueryInternalApi.d.ts +0 -1
- package/src/Api/Internal/NamedQueryInternalApi.js +0 -4
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -5
- package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +2 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +6 -6
- package/src/Redux/ActionsReducers/GridRedux.js +8 -8
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +3 -3
- package/src/Redux/ActionsReducers/LayoutRedux.js +9 -9
- package/src/Redux/ActionsReducers/NamedQueryRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +1 -1
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/PluginsRedux.js +2 -2
- package/src/Redux/Store/AdaptableReduxMerger.js +3 -3
- package/src/Redux/Store/AdaptableStore.js +2 -4
- package/src/Strategy/AdaptableModuleBase.js +1 -2
- package/src/Strategy/ColumnFilterModule.js +1 -2
- package/src/Strategy/ExportModule.js +17 -44
- package/src/Strategy/FlashingCellModule.js +2 -10
- package/src/Strategy/ScheduleModule.js +4 -6
- package/src/Strategy/SmartEditModule.js +1 -7
- package/src/Strategy/TeamSharingModule.js +2 -2
- package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +1 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +1 -3
- package/src/Utilities/Constants/FilterConstants.d.ts +10 -0
- package/src/Utilities/Constants/FilterConstants.js +8 -0
- package/src/Utilities/Constants/GeneralConstants.d.ts +41 -4
- package/src/Utilities/Constants/GeneralConstants.js +42 -3
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +0 -5
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +14 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +65 -0
- package/src/Utilities/Extensions/EnumExtensions.d.ts +0 -4
- package/src/Utilities/Extensions/EnumExtensions.js +2 -12
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +4 -10
- package/src/Utilities/Helpers/AdaptableHelper.js +7 -59
- package/src/Utilities/Helpers/FormatHelper.d.ts +9 -0
- package/src/Utilities/Helpers/FormatHelper.js +26 -14
- package/src/Utilities/Helpers/Helper.d.ts +0 -10
- package/src/Utilities/Helpers/Helper.js +0 -70
- package/src/Utilities/Services/ChartingService.d.ts +2 -2
- package/src/Utilities/Services/ChartingService.js +5 -11
- package/src/Utilities/Services/ModuleService.js +35 -31
- package/src/Utilities/Services/RowEditService.js +1 -6
- package/src/Utilities/Services/RowSummaryService.js +2 -2
- package/src/Utilities/Services/ValidationService.js +2 -16
- package/src/View/Alert/AlertEmptyView.js +1 -2
- package/src/View/Charting/ChartingStatusBarPopover.js +1 -2
- package/src/View/Charting/useChartingElements.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +2 -6
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -4
- package/src/View/Components/FilterForm/QuickFilterForm.js +2 -12
- package/src/View/Components/ModuleValueSelector/index.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -5
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -3
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -7
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -12
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +3 -23
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +4 -5
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -3
- package/src/View/Components/ValueSelector/index.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +2 -2
- package/src/View/Dashboard/CustomDashboardButton.js +1 -6
- package/src/View/Dashboard/CustomToolbar.js +2 -9
- package/src/View/Dashboard/Dashboard.js +2 -4
- package/src/View/Dashboard/DashboardPopup.js +1 -3
- package/src/View/Dashboard/DashboardToolbarFactory.js +1 -2
- package/src/View/Dashboard/PinnedToolbarsSelector.js +1 -2
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -3
- package/src/View/Export/ExportViewPanel.js +2 -4
- package/src/View/Export/Wizard/ReportSummaryWizard.js +2 -6
- package/src/View/GridFilter/GridFilterExpressionEditor.js +2 -2
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +2 -6
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +1 -7
- package/src/View/Layout/SaveLayoutButton.js +1 -3
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +2 -2
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
- package/src/agGrid/ActionColumnRenderer.js +8 -22
- package/src/agGrid/AdaptableAgGrid.d.ts +5 -7
- package/src/agGrid/AdaptableAgGrid.js +153 -145
- package/src/agGrid/AgGridAdapter.d.ts +0 -1
- package/src/agGrid/AgGridAdapter.js +8 -11
- package/src/agGrid/AgGridColumnAdapter.d.ts +3 -1
- package/src/agGrid/AgGridColumnAdapter.js +40 -14
- package/src/agGrid/BadgeRenderer.js +4 -22
- package/src/agGrid/FloatingFilterWrapper.js +21 -0
- package/src/agGrid/buildSortedColumnStateForLayout.d.ts +1 -1
- package/src/agGrid/buildSortedColumnStateForLayout.js +2 -2
- package/src/agGrid/defaultAdaptableOptions.js +35 -30
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -15
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +84 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +9 -9
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/Redux/ActionsReducers/QueryRedux.d.ts +0 -10
- package/src/Redux/ActionsReducers/QueryRedux.js +0 -20
- package/src/Utilities/Helpers/FormatContentHelper.d.ts +0 -22
- package/src/Utilities/Helpers/FormatContentHelper.js +0 -34
- package/src/Utilities/Services/EntitlementService.d.ts +0 -14
- package/src/Utilities/Services/EntitlementService.js +0 -63
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +0 -10
- package/src/Utilities/Services/Interface/IEntitlementService.js +0 -1
- package/src/Utilities/Services/Interface/IReportService.d.ts +0 -27
- package/src/Utilities/Services/Interface/IReportService.js +0 -1
- package/src/Utilities/Services/ReportService.d.ts +0 -41
- package/src/Utilities/Services/ReportService.js +0 -603
- package/src/Utilities/isAdaptableObject.d.ts +0 -2
- package/src/Utilities/isAdaptableObject.js +0 -4
- package/src/Utilities/reorder.d.ts +0 -1
- package/src/Utilities/reorder.js +0 -13
- package/src/Utilities/sortWithOrder.d.ts +0 -11
- package/src/Utilities/sortWithOrder.js +0 -50
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
-
import * as QueryRedux from '../../Redux/ActionsReducers/QueryRedux';
|
|
3
2
|
export class NamedQueryInternalApi extends ApiBase {
|
|
4
3
|
/**
|
|
5
4
|
* Returns the name of all the referenced Named Queries as an array of strings
|
|
@@ -33,7 +32,4 @@ export class NamedQueryInternalApi extends ApiBase {
|
|
|
33
32
|
});
|
|
34
33
|
return references;
|
|
35
34
|
}
|
|
36
|
-
cleanupQueryRedux() {
|
|
37
|
-
this.dispatchAction(QueryRedux.QueryCleanup());
|
|
38
|
-
}
|
|
39
35
|
}
|
|
@@ -18,7 +18,6 @@ import { ThemeState } from './ThemeState';
|
|
|
18
18
|
import { ConfigState } from './ConfigState';
|
|
19
19
|
import { ApplicationState } from './ApplicationState';
|
|
20
20
|
import { ToolPanelState } from './ToolPanelState';
|
|
21
|
-
import { QueryState } from './QueryState';
|
|
22
21
|
import { FlashingCellState } from './FlashingCellState';
|
|
23
22
|
import { StatusBarState } from './StatusBarState';
|
|
24
23
|
import { ChartingState } from './ChartingState';
|
|
@@ -58,10 +57,6 @@ export interface AdaptablePersistentState {
|
|
|
58
57
|
ToolPanel: ToolPanelState;
|
|
59
58
|
Charting: ChartingState;
|
|
60
59
|
Note: NoteState;
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated
|
|
63
|
-
*/
|
|
64
|
-
Query: QueryState;
|
|
65
60
|
}
|
|
66
61
|
/**
|
|
67
62
|
* The state which is available in the internal Redux store but never persisted
|
|
@@ -5,9 +5,10 @@ export interface FilterActionOnDataChange {
|
|
|
5
5
|
/**
|
|
6
6
|
* When to re-apply Filters: 'Always', 'Never' or 'Throttle'
|
|
7
7
|
*/
|
|
8
|
-
applyFilter:
|
|
8
|
+
applyFilter: ApplyFilterAction;
|
|
9
9
|
/**
|
|
10
10
|
* Delay in ms (when `applyFilter` is set to 'Throttle')
|
|
11
11
|
*/
|
|
12
12
|
throttleDelay?: number;
|
|
13
13
|
}
|
|
14
|
+
export type ApplyFilterAction = 'Always' | 'Never' | 'Throttle';
|
|
@@ -74,7 +74,7 @@ export interface NumericStyledColumn {
|
|
|
74
74
|
*/
|
|
75
75
|
ColumnComparison?: ColumnComparison;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Used with Ranges; can be Number (any number or Col-Min/Col-Max) or 'Percentage' (values 0-100)
|
|
78
78
|
* @defaultValue Number
|
|
79
79
|
*/
|
|
80
80
|
RangeValueType?: RangeValueType;
|
|
@@ -59,11 +59,11 @@ export declare const GRID_REFRESH_CELLS = "GRID_REFRESH_CELLS";
|
|
|
59
59
|
/**
|
|
60
60
|
* @ReduxAction Module Dropdown menu items have been set
|
|
61
61
|
*/
|
|
62
|
-
export declare const
|
|
62
|
+
export declare const GRID_SET_SETTINGS_PANEL_ITEMS = "GRID_SET_SETTINGS_PANEL_ITEMS";
|
|
63
63
|
/**
|
|
64
64
|
* @ReduxAction Module Button menu items have been set
|
|
65
65
|
*/
|
|
66
|
-
export declare const
|
|
66
|
+
export declare const GRID_SET_MENU_MODULE_ITEMS = "GRID_SET_MENU_MODULE_ITEMS";
|
|
67
67
|
/**
|
|
68
68
|
* @ReduxAction Grid is put in pivot mode
|
|
69
69
|
*/
|
|
@@ -144,10 +144,10 @@ export interface GridRefreshCellsAction extends Redux.Action {
|
|
|
144
144
|
rowNodes: IRowNode[];
|
|
145
145
|
columnIds: string[];
|
|
146
146
|
}
|
|
147
|
-
export interface
|
|
147
|
+
export interface SetSettingsPanelItemsAction extends Redux.Action {
|
|
148
148
|
menuItems: AdaptableMenuItem[];
|
|
149
149
|
}
|
|
150
|
-
export interface
|
|
150
|
+
export interface SetMenuModuleItemsAction extends Redux.Action {
|
|
151
151
|
menuItems: AdaptableMenuItem[];
|
|
152
152
|
}
|
|
153
153
|
export interface SetLiveReportRunningOnAction extends Redux.Action {
|
|
@@ -208,8 +208,8 @@ export declare const SetPivotModeOn: () => SetPivotModeOnAction;
|
|
|
208
208
|
export declare const SetPivotModeOff: () => SetPivotModeOffAction;
|
|
209
209
|
export declare const SetTreeModeOn: () => SetTreeModeOnAction;
|
|
210
210
|
export declare const SetTreeModeOff: () => SetTreeModeOffAction;
|
|
211
|
-
export declare const
|
|
212
|
-
export declare const
|
|
211
|
+
export declare const setSettingsPanelItems: (MenuItems: AdaptableMenuItem[]) => SetSettingsPanelItemsAction;
|
|
212
|
+
export declare const SetMenuModuleItems: (MenuItems: AdaptableMenuItem[]) => SetMenuModuleItemsAction;
|
|
213
213
|
export declare const LayoutUpdateCurrentDraft: (layout: Layout) => LayoutUpdateCurrentDraftAction;
|
|
214
214
|
export declare const LayoutDraftColumnFilterAdd: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterAddAction;
|
|
215
215
|
export declare const LayoutDraftColumnFilterEdit: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterEditAction;
|
|
@@ -52,11 +52,11 @@ export const GRID_REFRESH_CELLS = 'GRID_REFRESH_CELLS';
|
|
|
52
52
|
/**
|
|
53
53
|
* @ReduxAction Module Dropdown menu items have been set
|
|
54
54
|
*/
|
|
55
|
-
export const
|
|
55
|
+
export const GRID_SET_SETTINGS_PANEL_ITEMS = 'GRID_SET_SETTINGS_PANEL_ITEMS';
|
|
56
56
|
/**
|
|
57
57
|
* @ReduxAction Module Button menu items have been set
|
|
58
58
|
*/
|
|
59
|
-
export const
|
|
59
|
+
export const GRID_SET_MENU_MODULE_ITEMS = 'GRID_SET_MENU_MODULE_ITEMS';
|
|
60
60
|
/**
|
|
61
61
|
* @ReduxAction Grid is put in pivot mode
|
|
62
62
|
*/
|
|
@@ -143,12 +143,12 @@ export const SetTreeModeOn = () => ({
|
|
|
143
143
|
export const SetTreeModeOff = () => ({
|
|
144
144
|
type: GRID_SET_TREE_MODE_OFF,
|
|
145
145
|
});
|
|
146
|
-
export const
|
|
147
|
-
type:
|
|
146
|
+
export const setSettingsPanelItems = (MenuItems) => ({
|
|
147
|
+
type: GRID_SET_SETTINGS_PANEL_ITEMS,
|
|
148
148
|
menuItems: MenuItems,
|
|
149
149
|
});
|
|
150
|
-
export const
|
|
151
|
-
type:
|
|
150
|
+
export const SetMenuModuleItems = (MenuItems) => ({
|
|
151
|
+
type: GRID_SET_MENU_MODULE_ITEMS,
|
|
152
152
|
menuItems: MenuItems,
|
|
153
153
|
});
|
|
154
154
|
export const LayoutUpdateCurrentDraft = (layout) => ({
|
|
@@ -245,12 +245,12 @@ export const GridReducer = (state = initialState, action) => {
|
|
|
245
245
|
return Object.assign({}, state, {
|
|
246
246
|
CellSummary: action.cellSummary,
|
|
247
247
|
});
|
|
248
|
-
case
|
|
248
|
+
case GRID_SET_SETTINGS_PANEL_ITEMS: {
|
|
249
249
|
const actionTyped = action;
|
|
250
250
|
const menuItems = actionTyped.menuItems.sort((a, b) => a.label < b.label ? -1 : a.label > b.label ? 1 : 0);
|
|
251
251
|
return Object.assign({}, state, { SettingPanelModuleMenuItems: menuItems });
|
|
252
252
|
}
|
|
253
|
-
case
|
|
253
|
+
case GRID_SET_MENU_MODULE_ITEMS: {
|
|
254
254
|
const actionTyped = action;
|
|
255
255
|
const menuItems = actionTyped.menuItems.sort((a, b) => a.label < b.label ? -1 : a.label > b.label ? 1 : 0);
|
|
256
256
|
return Object.assign({}, state, { ModuleButtonMenuItems: menuItems });
|
|
@@ -5,7 +5,7 @@ import { ColumnFilter } from '../../types';
|
|
|
5
5
|
/**
|
|
6
6
|
* @ReduxAction A new caption / header has been set for a Column in the Layout
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const LAYOUT_COLUMN_SET_CAPTION = "LAYOUT_COLUMN_SET_CAPTION";
|
|
9
9
|
/**
|
|
10
10
|
* @ReduxAction Layout Module is ready
|
|
11
11
|
*/
|
|
@@ -33,11 +33,11 @@ export declare const LAYOUT_SAVE = "LAYOUT_SAVE";
|
|
|
33
33
|
/**
|
|
34
34
|
* @ReduxAction A Column has been added
|
|
35
35
|
*/
|
|
36
|
-
export declare const
|
|
36
|
+
export declare const LAYOUT_COLUMN_ADD = "LAYOUT_COLUMN_ADD";
|
|
37
37
|
/**
|
|
38
38
|
* @ReduxAction A Column has been removed
|
|
39
39
|
*/
|
|
40
|
-
export declare const
|
|
40
|
+
export declare const LAYOUT_COLUMN_REMOVE = "LAYOUT_COLUMN_REMOVE";
|
|
41
41
|
/**
|
|
42
42
|
* @ReduxAction A Column Filter has been added
|
|
43
43
|
*/
|
|
@@ -3,7 +3,7 @@ import AdaptableHelper from '../../Utilities/Helpers/AdaptableHelper';
|
|
|
3
3
|
/**
|
|
4
4
|
* @ReduxAction A new caption / header has been set for a Column in the Layout
|
|
5
5
|
*/
|
|
6
|
-
export const
|
|
6
|
+
export const LAYOUT_COLUMN_SET_CAPTION = 'LAYOUT_COLUMN_SET_CAPTION';
|
|
7
7
|
/**
|
|
8
8
|
* @ReduxAction Layout Module is ready
|
|
9
9
|
*/
|
|
@@ -31,11 +31,11 @@ export const LAYOUT_SAVE = 'LAYOUT_SAVE';
|
|
|
31
31
|
/**
|
|
32
32
|
* @ReduxAction A Column has been added
|
|
33
33
|
*/
|
|
34
|
-
export const
|
|
34
|
+
export const LAYOUT_COLUMN_ADD = 'LAYOUT_COLUMN_ADD';
|
|
35
35
|
/**
|
|
36
36
|
* @ReduxAction A Column has been removed
|
|
37
37
|
*/
|
|
38
|
-
export const
|
|
38
|
+
export const LAYOUT_COLUMN_REMOVE = 'LAYOUT_COLUMN_REMOVE';
|
|
39
39
|
/**
|
|
40
40
|
* @ReduxAction A Column Filter has been added
|
|
41
41
|
*/
|
|
@@ -148,18 +148,18 @@ export const LayoutSave = (layout) => ({
|
|
|
148
148
|
layout,
|
|
149
149
|
});
|
|
150
150
|
export const LayoutSetColumnCaption = (layoutName, columnId, caption) => ({
|
|
151
|
-
type:
|
|
151
|
+
type: LAYOUT_COLUMN_SET_CAPTION,
|
|
152
152
|
layoutName,
|
|
153
153
|
columnId,
|
|
154
154
|
caption,
|
|
155
155
|
});
|
|
156
156
|
export const LayoutAddColumn = (layoutName, columnId) => ({
|
|
157
|
-
type:
|
|
157
|
+
type: LAYOUT_COLUMN_ADD,
|
|
158
158
|
layoutName,
|
|
159
159
|
columnId,
|
|
160
160
|
});
|
|
161
161
|
export const LayoutRemoveColumn = (layoutName, columnId) => ({
|
|
162
|
-
type:
|
|
162
|
+
type: LAYOUT_COLUMN_REMOVE,
|
|
163
163
|
layoutName,
|
|
164
164
|
columnId,
|
|
165
165
|
});
|
|
@@ -211,7 +211,7 @@ export const LayoutReducer = (state = initialState, action) => {
|
|
|
211
211
|
const newLayouts = state.Layouts.filter((abObject) => abObject.Uuid !== actionLayout.Uuid);
|
|
212
212
|
return Object.assign(Object.assign({}, state), { CurrentLayout: state.CurrentLayout === actionLayout.Name ? newLayouts[0].Name : state.CurrentLayout, Layouts: newLayouts });
|
|
213
213
|
}
|
|
214
|
-
case
|
|
214
|
+
case LAYOUT_COLUMN_SET_CAPTION: {
|
|
215
215
|
const setColumnCaptionAction = action;
|
|
216
216
|
const currentLayoutName = setColumnCaptionAction.layoutName;
|
|
217
217
|
let currentLayout = state.Layouts.find((l) => l.Name === currentLayoutName);
|
|
@@ -227,7 +227,7 @@ export const LayoutReducer = (state = initialState, action) => {
|
|
|
227
227
|
}
|
|
228
228
|
return state;
|
|
229
229
|
}
|
|
230
|
-
case
|
|
230
|
+
case LAYOUT_COLUMN_ADD: {
|
|
231
231
|
const addColumnAction = action;
|
|
232
232
|
const layoutname = addColumnAction.layoutName;
|
|
233
233
|
const colToAdd = addColumnAction.columnId;
|
|
@@ -238,7 +238,7 @@ export const LayoutReducer = (state = initialState, action) => {
|
|
|
238
238
|
}
|
|
239
239
|
return state;
|
|
240
240
|
}
|
|
241
|
-
case
|
|
241
|
+
case LAYOUT_COLUMN_REMOVE: {
|
|
242
242
|
const removeColumnAction = action;
|
|
243
243
|
const layoutname = removeColumnAction.layoutName;
|
|
244
244
|
const colToRemove = removeColumnAction.columnId;
|
|
@@ -9,7 +9,7 @@ export declare const NAMED_QUERY_READY = "NAMED_QUERY_READY";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const NAMED_QUERY_ADD = "NAMED_QUERY_ADD";
|
|
11
11
|
/**
|
|
12
|
-
* @ReduxAction Multiple Named
|
|
12
|
+
* @ReduxAction Multiple Named Queries have been added
|
|
13
13
|
*/
|
|
14
14
|
export declare const NAMED_QUERIES_ADD = "NAMED_QUERY_ADD_MULTIPLE";
|
|
15
15
|
/**
|
|
@@ -9,7 +9,7 @@ export const NAMED_QUERY_READY = 'NAMED_QUERY_READY';
|
|
|
9
9
|
*/
|
|
10
10
|
export const NAMED_QUERY_ADD = 'NAMED_QUERY_ADD';
|
|
11
11
|
/**
|
|
12
|
-
* @ReduxAction Multiple Named
|
|
12
|
+
* @ReduxAction Multiple Named Queries have been added
|
|
13
13
|
*/
|
|
14
14
|
export const NAMED_QUERIES_ADD = 'NAMED_QUERY_ADD_MULTIPLE';
|
|
15
15
|
/**
|
|
@@ -88,9 +88,9 @@ export declare const IPUSHPULL_SET_CURRENT_FOLDER = "IPUSHPULL_SET_CURRENT_FOLDE
|
|
|
88
88
|
*/
|
|
89
89
|
export declare const IPUSHPULL_SET_CURRENT_PAGE = "IPUSHPULL_SET_CURRENT_PAGE";
|
|
90
90
|
/**
|
|
91
|
-
* @ReduxAction ipushpull set
|
|
91
|
+
* @ReduxAction ipushpull set available pages (depending on current folder)
|
|
92
92
|
*/
|
|
93
|
-
export declare const
|
|
93
|
+
export declare const IPUSHPULL_SET_AVAILABLE_PAGES = "IPUSHPULL_SET_AVAILABLE_PAGES";
|
|
94
94
|
/**
|
|
95
95
|
* @ReduxAction Live data has been sent to OpenFin
|
|
96
96
|
*/
|
|
@@ -87,9 +87,9 @@ export const IPUSHPULL_SET_CURRENT_FOLDER = 'IPUSHPULL_SET_CURRENT_FOLDER';
|
|
|
87
87
|
*/
|
|
88
88
|
export const IPUSHPULL_SET_CURRENT_PAGE = 'IPUSHPULL_SET_CURRENT_PAGE';
|
|
89
89
|
/**
|
|
90
|
-
* @ReduxAction ipushpull set
|
|
90
|
+
* @ReduxAction ipushpull set available pages (depending on current folder)
|
|
91
91
|
*/
|
|
92
|
-
export const
|
|
92
|
+
export const IPUSHPULL_SET_AVAILABLE_PAGES = 'IPUSHPULL_SET_AVAILABLE_PAGES';
|
|
93
93
|
/**
|
|
94
94
|
* @ReduxAction Live data has been sent to OpenFin
|
|
95
95
|
*/
|
|
@@ -3,8 +3,8 @@ import merge from 'lodash/merge';
|
|
|
3
3
|
import isArray from 'lodash/isArray';
|
|
4
4
|
import extend from 'lodash/extend';
|
|
5
5
|
import isObject from 'lodash/isObject';
|
|
6
|
-
import { isAdaptableObject } from '../../Utilities/isAdaptableObject';
|
|
7
6
|
import { AdaptableLogger } from '../../agGrid/AdaptableLogger';
|
|
7
|
+
import AdaptableHelper from '../../Utilities/Helpers/AdaptableHelper';
|
|
8
8
|
function customizer(objValue, srcValue) {
|
|
9
9
|
if (isArray(objValue)) {
|
|
10
10
|
if (!Array.isArray(srcValue)) {
|
|
@@ -31,7 +31,7 @@ export function AddStateSource(stateObject = {}, source) {
|
|
|
31
31
|
const traverseStateObject = (object) => {
|
|
32
32
|
Object.values(object).forEach((value) => {
|
|
33
33
|
// add a Source only to AdaptableObjects which do NOT already have a source defined
|
|
34
|
-
if (isAdaptableObject(value) && value.Source == null) {
|
|
34
|
+
if (AdaptableHelper.isAdaptableObject(value) && value.Source == null) {
|
|
35
35
|
value.Source = source;
|
|
36
36
|
}
|
|
37
37
|
if (value !== null && typeof value === 'object') {
|
|
@@ -48,7 +48,7 @@ export function ProcessKeepUserDefinedRevision(configState, currentUserState) {
|
|
|
48
48
|
const stateValue = stateObject[key];
|
|
49
49
|
if (Array.isArray(configValue) && Array.isArray(stateValue)) {
|
|
50
50
|
const userDefinedItems = stateValue.filter((item) => {
|
|
51
|
-
return isAdaptableObject(item) && item.Source !== 'Config';
|
|
51
|
+
return AdaptableHelper.isAdaptableObject(item) && item.Source !== 'Config';
|
|
52
52
|
});
|
|
53
53
|
configObject[key] = configValue.concat(userDefinedItems);
|
|
54
54
|
// we probably don't need to call traverseStateObject on the array as well,
|
|
@@ -31,7 +31,6 @@ import * as LayoutRedux from '../ActionsReducers/LayoutRedux';
|
|
|
31
31
|
import * as NamedQueryRedux from '../ActionsReducers/NamedQueryRedux';
|
|
32
32
|
import * as NoteRedux from '../ActionsReducers/NoteRedux';
|
|
33
33
|
import * as PlusMinusRedux from '../ActionsReducers/PlusMinusRedux';
|
|
34
|
-
import * as QueryRedux from '../ActionsReducers/QueryRedux';
|
|
35
34
|
import * as QuickSearchRedux from '../ActionsReducers/QuickSearchRedux';
|
|
36
35
|
import * as ScheduleRedux from '../ActionsReducers/ScheduleRedux';
|
|
37
36
|
import * as ShortcutRedux from '../ActionsReducers/ShortcutRedux';
|
|
@@ -144,7 +143,6 @@ export class AdaptableStore {
|
|
|
144
143
|
Charting: ChartingRedux.ChartingReducer,
|
|
145
144
|
StyledColumn: StyledColumnRedux.StyledColumnReducer,
|
|
146
145
|
Note: NoteRedux.NoteReducer,
|
|
147
|
-
Query: QueryRedux.QueryReducer,
|
|
148
146
|
NamedQuery: NamedQueryRedux.NamedQueryReducer,
|
|
149
147
|
};
|
|
150
148
|
// allow plugins to participate in the root reducer
|
|
@@ -1010,7 +1008,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1010
1008
|
case LayoutRedux.LAYOUT_EDIT:
|
|
1011
1009
|
case LayoutRedux.LAYOUT_SAVE:
|
|
1012
1010
|
case LayoutRedux.LAYOUT_DELETE:
|
|
1013
|
-
case LayoutRedux.
|
|
1011
|
+
case LayoutRedux.LAYOUT_COLUMN_SET_CAPTION:
|
|
1014
1012
|
case LayoutRedux.LAYOUT_SELECT: {
|
|
1015
1013
|
const oldLayoutState = middlewareAPI.getState().Layout;
|
|
1016
1014
|
// this must be called before 'next(action)'
|
|
@@ -1032,7 +1030,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1032
1030
|
}
|
|
1033
1031
|
if (returnAction.type == LayoutRedux.LAYOUT_SELECT ||
|
|
1034
1032
|
returnAction.type == LayoutRedux.LAYOUT_DELETE ||
|
|
1035
|
-
returnAction.type == LayoutRedux.
|
|
1033
|
+
returnAction.type == LayoutRedux.LAYOUT_COLUMN_SET_CAPTION) {
|
|
1036
1034
|
let gridState = middlewareAPI.getState().Grid;
|
|
1037
1035
|
let currentLayout = newLayoutState.Layouts.find((l) => l.Name == newLayoutState.CurrentLayout);
|
|
1038
1036
|
if (gridState.CurrentLayout) {
|
|
@@ -67,8 +67,7 @@ export class AdaptableModuleBase {
|
|
|
67
67
|
// override where necessary in base classes
|
|
68
68
|
}
|
|
69
69
|
setModuleEntitlement() {
|
|
70
|
-
this.AccessLevel = this.api.
|
|
71
|
-
.getEntitlementService()
|
|
70
|
+
this.AccessLevel = this.api.entitlementApi
|
|
72
71
|
.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
|
|
73
72
|
}
|
|
74
73
|
createModuleMenuItem(source) {
|
|
@@ -13,8 +13,7 @@ export class ColumnFilterModule extends AdaptableModuleBase {
|
|
|
13
13
|
this.AccessLevel = 'Hidden';
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
|
-
this.AccessLevel = this.api.
|
|
17
|
-
.getEntitlementService()
|
|
16
|
+
this.AccessLevel = this.api.entitlementApi
|
|
18
17
|
.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
|
|
19
18
|
}
|
|
20
19
|
}
|
|
@@ -145,12 +145,12 @@ export class ExportModule extends AdaptableModuleBase {
|
|
|
145
145
|
}
|
|
146
146
|
else if (preProcessedExport === true) {
|
|
147
147
|
this.api.logInfo(`Export ${report.Name} (${exportDestination}) using data from the grid`);
|
|
148
|
-
reportData = this.api.internalApi.
|
|
148
|
+
reportData = this.api.exportApi.internalApi.getReportData(report);
|
|
149
149
|
}
|
|
150
150
|
else if ((preProcessedExport === null || preProcessedExport === void 0 ? void 0 : preProcessedExport.rows) == undefined ||
|
|
151
151
|
(preProcessedExport === null || preProcessedExport === void 0 ? void 0 : preProcessedExport.columns) == undefined) {
|
|
152
152
|
this.api.logWarn(`Export ${report.Name} (${exportDestination}) : preProcessExport() returned an invalid ReportData object, fallback to data from the grid`);
|
|
153
|
-
reportData = this.api.internalApi.
|
|
153
|
+
reportData = this.api.exportApi.internalApi.getReportData(report);
|
|
154
154
|
}
|
|
155
155
|
else {
|
|
156
156
|
this.api.logInfo(`Export ${report.Name} (${exportDestination}) using data from preProcessExport()`);
|
|
@@ -158,7 +158,7 @@ export class ExportModule extends AdaptableModuleBase {
|
|
|
158
158
|
if (!reportData.columns.length) {
|
|
159
159
|
// an empty column array means that all columns have been exported
|
|
160
160
|
// we have to update the report to reflect this
|
|
161
|
-
reportData.columns = this.api.internalApi.
|
|
161
|
+
reportData.columns = this.api.exportApi.internalApi.getReportDataColumns(report);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
if (this.isCustomDestination(exportDestination)) {
|
|
@@ -184,13 +184,7 @@ export class ExportModule extends AdaptableModuleBase {
|
|
|
184
184
|
}));
|
|
185
185
|
}
|
|
186
186
|
else if (customDestination) {
|
|
187
|
-
const reportContext = {
|
|
188
|
-
report: report,
|
|
189
|
-
reportData,
|
|
190
|
-
adaptableApi: this.api,
|
|
191
|
-
userName: this.api.optionsApi.getUserName(),
|
|
192
|
-
adaptableId: this.api.optionsApi.getAdaptableId(),
|
|
193
|
-
};
|
|
187
|
+
const reportContext = Object.assign({ report: report, reportData }, this.api.internalApi.buildBaseContext());
|
|
194
188
|
customDestination.onExport(reportContext);
|
|
195
189
|
}
|
|
196
190
|
}
|
|
@@ -224,22 +218,11 @@ export class ExportModule extends AdaptableModuleBase {
|
|
|
224
218
|
const preProcessExportFn = this.api.optionsApi.getAdaptableOptions().exportOptions.preProcessExport;
|
|
225
219
|
if (preProcessExportFn) {
|
|
226
220
|
this.api.logInfo(`Export ${report.Name} : preProcessExport()`);
|
|
227
|
-
return preProcessExportFn({
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
getReportColumns: (includePrimaryKey) => {
|
|
233
|
-
return this.api.internalApi
|
|
234
|
-
.getReportService()
|
|
235
|
-
.getReportDataColumns(report, includePrimaryKey);
|
|
236
|
-
},
|
|
237
|
-
getReportRowData: (reportColumns, includePrimaryKey) => {
|
|
238
|
-
return this.api.internalApi
|
|
239
|
-
.getReportService()
|
|
240
|
-
.getReportDataRows(report, reportColumns, includePrimaryKey);
|
|
241
|
-
},
|
|
242
|
-
});
|
|
221
|
+
return preProcessExportFn(Object.assign(Object.assign({ report }, this.api.internalApi.buildBaseContext()), { getReportColumns: (includePrimaryKey) => {
|
|
222
|
+
return this.api.exportApi.internalApi.getReportDataColumns(report, includePrimaryKey);
|
|
223
|
+
}, getReportRowData: (reportColumns, includePrimaryKey) => {
|
|
224
|
+
return this.api.exportApi.internalApi.getReportDataRows(report, reportColumns, includePrimaryKey);
|
|
225
|
+
} }));
|
|
243
226
|
}
|
|
244
227
|
return true;
|
|
245
228
|
}
|
|
@@ -255,7 +238,7 @@ export class ExportModule extends AdaptableModuleBase {
|
|
|
255
238
|
return;
|
|
256
239
|
}
|
|
257
240
|
const jsonContent = JSON.stringify(reportData);
|
|
258
|
-
const jsonFileName = this.api.internalApi.
|
|
241
|
+
const jsonFileName = this.api.exportApi.internalApi.getReportFileName(report.Name, 'JSON') + '.json';
|
|
259
242
|
Helper.createDownloadedFile(jsonContent, jsonFileName, 'application/json');
|
|
260
243
|
}
|
|
261
244
|
openReportInTablePopup(report, reportData) {
|
|
@@ -271,17 +254,13 @@ export class ExportModule extends AdaptableModuleBase {
|
|
|
271
254
|
title = `${title} [${report.Name}]`;
|
|
272
255
|
}
|
|
273
256
|
if (report.Scope) {
|
|
274
|
-
const scopeText = this.api.internalApi
|
|
275
|
-
.getReportService()
|
|
276
|
-
.GetReportColumnScopeShortDescription(report);
|
|
257
|
+
const scopeText = this.api.exportApi.internalApi.getReportColumnScopeShortDescription(report);
|
|
277
258
|
if (scopeText === null || scopeText === void 0 ? void 0 : scopeText.length) {
|
|
278
259
|
title = `${title} ${scopeText.join(',')}`;
|
|
279
260
|
}
|
|
280
261
|
}
|
|
281
262
|
if (report.Query) {
|
|
282
|
-
const queryText = this.api.internalApi
|
|
283
|
-
.getReportService()
|
|
284
|
-
.GetReportExpressionDescription(report, this.api.columnApi.getColumns());
|
|
263
|
+
const queryText = this.api.exportApi.internalApi.getReportExpressionDescription(report, this.api.columnApi.getColumns());
|
|
285
264
|
if (queryText === null || queryText === void 0 ? void 0 : queryText.length) {
|
|
286
265
|
title = `${title} ${queryText}`;
|
|
287
266
|
}
|
|
@@ -301,7 +280,7 @@ export class ExportModule extends AdaptableModuleBase {
|
|
|
301
280
|
this.showEmptyExportWarning();
|
|
302
281
|
return;
|
|
303
282
|
}
|
|
304
|
-
const csvFileName = this.api.internalApi.
|
|
283
|
+
const csvFileName = this.api.exportApi.internalApi.getReportFileName(report.Name, 'CSV') + '.csv';
|
|
305
284
|
Helper.createDownloadedFile(csvContent, csvFileName, 'text/csv;encoding:utf-8');
|
|
306
285
|
}
|
|
307
286
|
convertReportToExcel(report, reportData) {
|
|
@@ -309,7 +288,7 @@ export class ExportModule extends AdaptableModuleBase {
|
|
|
309
288
|
this.showEmptyExportWarning();
|
|
310
289
|
return;
|
|
311
290
|
}
|
|
312
|
-
this.api.exportApi.exportDataToExcel(reportData, this.api.internalApi.
|
|
291
|
+
this.api.exportApi.exportDataToExcel(reportData, this.api.exportApi.internalApi.getReportFileName(report.Name, 'Excel'));
|
|
313
292
|
}
|
|
314
293
|
copyToClipboard(reportData) {
|
|
315
294
|
const csvContent = this.createTabularContent(reportData);
|
|
@@ -320,15 +299,11 @@ export class ExportModule extends AdaptableModuleBase {
|
|
|
320
299
|
Helper.copyToClipboard(csvContent);
|
|
321
300
|
}
|
|
322
301
|
createCSVContent(reportData) {
|
|
323
|
-
const reportDataAsArray = this.api.internalApi
|
|
324
|
-
.getReportService()
|
|
325
|
-
.convertReportDataToArray(reportData);
|
|
302
|
+
const reportDataAsArray = this.api.exportApi.internalApi.convertReportDataToArray(reportData);
|
|
326
303
|
return Helper.convertArrayToCsv(reportDataAsArray, ',');
|
|
327
304
|
}
|
|
328
305
|
createTabularContent(reportData) {
|
|
329
|
-
const reportDataAsArray = this.api.internalApi
|
|
330
|
-
.getReportService()
|
|
331
|
-
.convertReportDataToArray(reportData);
|
|
306
|
+
const reportDataAsArray = this.api.exportApi.internalApi.convertReportDataToArray(reportData);
|
|
332
307
|
return Helper.convertArrayToCsv(reportDataAsArray, '\t');
|
|
333
308
|
}
|
|
334
309
|
getTeamSharingAction() {
|
|
@@ -351,9 +326,7 @@ export class ExportModule extends AdaptableModuleBase {
|
|
|
351
326
|
}));
|
|
352
327
|
}
|
|
353
328
|
toView(report) {
|
|
354
|
-
const isSystemReport = this.api.internalApi
|
|
355
|
-
.getReportService()
|
|
356
|
-
.IsSystemReport(report.Name);
|
|
329
|
+
const isSystemReport = this.api.exportApi.internalApi.isSystemReport(report.Name);
|
|
357
330
|
if (isSystemReport) {
|
|
358
331
|
return {
|
|
359
332
|
items: [
|
|
@@ -199,17 +199,9 @@ export class FlashingCellModule extends AdaptableModuleBase {
|
|
|
199
199
|
}
|
|
200
200
|
isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
|
|
201
201
|
var _a;
|
|
202
|
-
const predicateDefHandlerContext = {
|
|
203
|
-
value: dataChangedEvent.newValue,
|
|
204
|
-
oldValue: dataChangedEvent.oldValue,
|
|
202
|
+
const predicateDefHandlerContext = Object.assign({ value: dataChangedEvent.newValue, oldValue: dataChangedEvent.oldValue,
|
|
205
203
|
// TODO send real display value
|
|
206
|
-
displayValue: null,
|
|
207
|
-
node: dataChangedEvent.rowNode,
|
|
208
|
-
column: dataChangedEvent.column,
|
|
209
|
-
adaptableApi: this.api,
|
|
210
|
-
userName: this.api.optionsApi.getUserName(),
|
|
211
|
-
adaptableId: this.api.optionsApi.getAdaptableId(),
|
|
212
|
-
};
|
|
204
|
+
displayValue: null, node: dataChangedEvent.rowNode, column: dataChangedEvent.column }, this.api.internalApi.buildBaseContext());
|
|
213
205
|
return this.api.predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, predicateDefHandlerContext, defaultNoPredicateReturn);
|
|
214
206
|
}
|
|
215
207
|
getTeamSharingAction() {
|
|
@@ -114,9 +114,8 @@ export class ScheduleModule extends AdaptableModuleBase {
|
|
|
114
114
|
this.scheduleJobs = [];
|
|
115
115
|
}
|
|
116
116
|
getModuleAdaptableObjects(config) {
|
|
117
|
-
const
|
|
118
|
-
const
|
|
119
|
-
const exportAcessLevel = entitlementService.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
|
|
117
|
+
const accessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
|
|
118
|
+
const exportAcessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
|
|
120
119
|
let allSchedules = [];
|
|
121
120
|
if (accessLevel !== 'Hidden') {
|
|
122
121
|
allSchedules.push(...this.api.scheduleApi.getReminderSchedules(config));
|
|
@@ -150,9 +149,8 @@ export class ScheduleModule extends AdaptableModuleBase {
|
|
|
150
149
|
}).map((schedule) => this.toView(schedule));
|
|
151
150
|
}
|
|
152
151
|
getViewProperties() {
|
|
153
|
-
const
|
|
154
|
-
const
|
|
155
|
-
const exportAcessLevel = entitlementService.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
|
|
152
|
+
const accessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
|
|
153
|
+
const exportAcessLevel = this.api.entitlementApi.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
|
|
156
154
|
const abObjectTypes = [];
|
|
157
155
|
const ippApi = this.api.pluginsApi.getipushpullPluginApi();
|
|
158
156
|
const openFinApi = this.api.pluginsApi.getOpenFinPluginApi();
|
|
@@ -120,13 +120,7 @@ export class SmartEditModule extends AdaptableModuleBase {
|
|
|
120
120
|
selectedCellInfo.gridCells.forEach((selectedCell) => {
|
|
121
121
|
let newValue;
|
|
122
122
|
if (typeof smartEditOperation === 'object') {
|
|
123
|
-
const context = {
|
|
124
|
-
smartEditValue: smartEditValue,
|
|
125
|
-
currentCell: selectedCell,
|
|
126
|
-
adaptableApi: this.api,
|
|
127
|
-
userName: this.api.optionsApi.getUserName(),
|
|
128
|
-
adaptableId: this.api.optionsApi.getAdaptableId(),
|
|
129
|
-
};
|
|
123
|
+
const context = Object.assign({ smartEditValue: smartEditValue, currentCell: selectedCell }, this.api.internalApi.buildBaseContext());
|
|
130
124
|
newValue = smartEditOperation.operation(context);
|
|
131
125
|
}
|
|
132
126
|
else {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
2
|
import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
|
|
3
|
-
import { isAdaptableObject } from '../Utilities/isAdaptableObject';
|
|
4
3
|
import { TEAMSHARING_GET, TEAMSHARING_IMPORT_ITEM, TEAMSHARING_LINK_ITEM, TEAMSHARING_PROCESS_IMPORT, TEAMSHARING_REMOVE_ITEM, TEAMSHARING_SET, TEAMSHARING_SHARE, TEAMSHARING_UPDATE_ITEM, TeamSharingUpdateItem, } from '../Redux/ActionsReducers/TeamSharingRedux';
|
|
5
4
|
import * as TeamSharingRedux from '../Redux/ActionsReducers/TeamSharingRedux';
|
|
6
5
|
import isEqual from 'lodash/isEqual';
|
|
@@ -10,6 +9,7 @@ import { TeamSharingApplyButton } from '../View/TeamSharing/TeamSharingApplyButt
|
|
|
10
9
|
import { SharedEntityDependencies } from '../View/TeamSharing/SharedEntityDependencies';
|
|
11
10
|
import ArrayExtensions from '../Utilities/Extensions/ArrayExtensions';
|
|
12
11
|
import flatten from 'lodash/flatten';
|
|
12
|
+
import AdaptableHelper from '../Utilities/Helpers/AdaptableHelper';
|
|
13
13
|
export class TeamSharingModule extends AdaptableModuleBase {
|
|
14
14
|
constructor(api) {
|
|
15
15
|
super(ModuleConstants.TeamSharingModuleId, ModuleConstants.TeamSharingFriendlyName, 'folder-shared', 'TeamSharingPopup', 'Team Sharing allows users to share - at run-time - Adaptable Objects between colleagues.', api);
|
|
@@ -74,7 +74,7 @@ export class TeamSharingModule extends AdaptableModuleBase {
|
|
|
74
74
|
if (!action) {
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
return Object.values(action).find((actionProperty) => isAdaptableObject(actionProperty));
|
|
77
|
+
return Object.values(action).find((actionProperty) => AdaptableHelper.isAdaptableObject(actionProperty));
|
|
78
78
|
}
|
|
79
79
|
isAdaptableObjectPresentInLocalState(sharedEntity) {
|
|
80
80
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const getExportColumnsViewItems = (report, api) => {
|
|
2
2
|
return {
|
|
3
3
|
name: 'Columns',
|
|
4
|
-
values: [...api.internalApi.
|
|
4
|
+
values: [...api.exportApi.internalApi.getReportColumnScopeShortDescription(report)],
|
|
5
5
|
};
|
|
6
6
|
};
|
|
@@ -7,9 +7,7 @@ export const getExportRowsViewItems = (report, api) => {
|
|
|
7
7
|
element = React.createElement(ExpressionPreview, { query: report.Query });
|
|
8
8
|
}
|
|
9
9
|
else {
|
|
10
|
-
element = api.internalApi
|
|
11
|
-
.getReportService()
|
|
12
|
-
.GetReportExpressionDescription(report, api.columnApi.getColumns());
|
|
10
|
+
element = api.exportApi.internalApi.getReportExpressionDescription(report, api.columnApi.getColumns());
|
|
13
11
|
}
|
|
14
12
|
return {
|
|
15
13
|
name: 'Rows',
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApplyFilterAction } from '../../PredefinedConfig/Common/FilterActionOnDataChange';
|
|
2
|
+
import { FilterTrigger } from '../../AdaptableOptions/ColumnFilterOptions';
|
|
3
|
+
export declare const FILTER_ACTION_ALWAYS: ApplyFilterAction;
|
|
4
|
+
export declare const FILTER_ACTION_NEVER: ApplyFilterAction;
|
|
5
|
+
export declare const FILTER_ACTION_THROTTLE: ApplyFilterAction;
|
|
6
|
+
export declare const PREDICATE_EQUALS = "Equals";
|
|
7
|
+
export declare const PREDICATE_CONTAINS = "Contains";
|
|
8
|
+
export declare const PREDICATE_ON = "On";
|
|
9
|
+
export declare const FILTER_TRIGGER_MOUSE_ENTER: FilterTrigger;
|
|
10
|
+
export declare const FILTER_TRIGGER_CLICK: FilterTrigger;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const FILTER_ACTION_ALWAYS = 'Always';
|
|
2
|
+
export const FILTER_ACTION_NEVER = 'Never';
|
|
3
|
+
export const FILTER_ACTION_THROTTLE = 'Throttle';
|
|
4
|
+
export const PREDICATE_EQUALS = 'Equals';
|
|
5
|
+
export const PREDICATE_CONTAINS = 'Contains';
|
|
6
|
+
export const PREDICATE_ON = 'On';
|
|
7
|
+
export const FILTER_TRIGGER_MOUSE_ENTER = 'mouseenter';
|
|
8
|
+
export const FILTER_TRIGGER_CLICK = 'click';
|