@adaptabletools/adaptable 11.1.8 → 11.1.11
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/base.css +16 -0
- package/bundle.cjs.js +106 -106
- package/index.css +20 -0
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +1 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +9 -2
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +57 -16
- package/src/AdaptableOptions/GeneralOptions.d.ts +7 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +7 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/CellSummaryApi.d.ts +8 -0
- package/src/Api/ColumnApi.d.ts +6 -1
- package/src/Api/ConfigApi.d.ts +9 -3
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.js +32 -15
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +2 -0
- package/src/Api/Implementation/CellSummaryApiImpl.js +34 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ColumnApiImpl.js +7 -3
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ConfigApiImpl.js +8 -29
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -1
- package/src/Api/Implementation/InternalApiImpl.js +29 -7
- package/src/Api/Implementation/LayoutApiImpl.d.ts +5 -4
- package/src/Api/Implementation/LayoutApiImpl.js +13 -7
- package/src/Api/Implementation/QueryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/QueryApiImpl.js +12 -0
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +8 -0
- package/src/Api/Implementation/StatusBarApiImpl.js +17 -0
- package/src/Api/InternalApi.d.ts +2 -1
- package/src/Api/LayoutApi.d.ts +16 -9
- package/src/Api/QueryApi.d.ts +6 -0
- package/src/Api/StatusBarApi.d.ts +10 -0
- package/src/Api/StatusBarApi.js +2 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +20 -8
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +61 -29
- package/src/PredefinedConfig/Common/Types.d.ts +6 -3
- package/src/PredefinedConfig/Common/Types.js +32 -1
- package/src/PredefinedConfig/FlashingCellState.d.ts +1 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/GridState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -0
- package/src/PredefinedConfig/StatusBarState.d.ts +27 -0
- package/src/PredefinedConfig/StatusBarState.js +7 -0
- package/src/PredefinedConfig/ToolPanelState.d.ts +1 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/GridRedux.js +4 -4
- package/src/Redux/ActionsReducers/StatusBarRedux.d.ts +22 -0
- package/src/Redux/ActionsReducers/StatusBarRedux.js +31 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +8 -3
- package/src/Redux/ActionsReducers/SystemRedux.js +22 -5
- package/src/Redux/Store/AdaptableReduxMerger.js +2 -2
- package/src/Redux/Store/AdaptableStore.js +24 -10
- package/src/Strategy/AlertModule.d.ts +3 -0
- package/src/Strategy/AlertModule.js +6 -0
- package/src/Strategy/CellSummaryModule.d.ts +6 -0
- package/src/Strategy/CellSummaryModule.js +14 -0
- package/src/Strategy/DataChangeHistoryModule.d.ts +7 -0
- package/src/Strategy/DataChangeHistoryModule.js +11 -0
- package/src/Strategy/ExportModule.d.ts +1 -0
- package/src/Strategy/ExportModule.js +1 -0
- package/src/Strategy/FilterModule.d.ts +6 -0
- package/src/Strategy/FilterModule.js +21 -0
- package/src/Strategy/Interface/IModule.d.ts +21 -10
- package/src/Strategy/LayoutModule.d.ts +7 -0
- package/src/Strategy/LayoutModule.js +14 -1
- package/src/Strategy/QueryModule.d.ts +8 -0
- package/src/Strategy/QueryModule.js +18 -0
- package/src/Strategy/QuickSearchModule.d.ts +6 -0
- package/src/Strategy/QuickSearchModule.js +10 -0
- package/src/Strategy/StatusBarModule.d.ts +8 -0
- package/src/Strategy/StatusBarModule.js +39 -0
- package/src/Strategy/SystemStatusModule.d.ts +6 -0
- package/src/Strategy/SystemStatusModule.js +10 -0
- package/src/Strategy/ThemeModule.d.ts +7 -0
- package/src/Strategy/ThemeModule.js +12 -0
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +1 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +2 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -0
- package/src/Utilities/Constants/ModuleConstants.js +2 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/Services/ModuleService.js +6 -6
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +5 -2
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/Alert/AlertStatusSubPanel.d.ts +2 -0
- package/src/View/Alert/AlertStatusSubPanel.js +56 -0
- package/src/View/Alert/AlertViewPanel.js +6 -7
- package/src/View/Alert/AlertsPanel.d.ts +1 -1
- package/src/View/Alert/AlertsPanel.js +2 -1
- package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +5 -0
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +15 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +18 -7
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +1 -8
- package/src/View/Alert/Wizard/AlertWizard.js +3 -2
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +15 -0
- package/src/View/CellSummary/CellSummaryStatusPanel.d.ts +2 -0
- package/src/View/CellSummary/CellSummaryStatusPanel.js +36 -0
- package/src/View/CellSummary/CellSummaryViewPanel.js +2 -20
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +6 -6
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +5 -4
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +1 -1
- package/src/View/Components/RangesComponent.js +6 -2
- package/src/View/Components/StyleComponent.js +18 -6
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -3
- package/src/View/Dashboard/DashboardPopup.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +5 -13
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.d.ts +2 -0
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +9 -0
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.d.ts +4 -16
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +32 -40
- package/src/View/Filter/ActiveFiltersPanel.d.ts +0 -2
- package/src/View/Filter/FilterStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +18 -0
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +4 -1
- package/src/View/Layout/EditCurrentLayoutButton.d.ts +2 -0
- package/src/View/Layout/EditCurrentLayoutButton.js +14 -0
- package/src/View/Layout/LayoutPopup.d.ts +1 -1
- package/src/View/Layout/LayoutPopup.js +3 -3
- package/src/View/Layout/LayoutRadioSelector.d.ts +1 -0
- package/src/View/Layout/LayoutRadioSelector.js +2 -2
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +29 -0
- package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +2 -1
- package/src/View/Query/EditCurrentQueryButton.d.ts +2 -0
- package/src/View/Query/EditCurrentQueryButton.js +15 -0
- package/src/View/Query/QueryViewPanel.d.ts +0 -1
- package/src/View/Query/QueryViewPanel.js +2 -11
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/QuickSearch/QuickSearchStatusBarContent.d.ts +2 -0
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +16 -0
- package/src/View/StateManagement/StateManagementPopup.js +9 -7
- package/src/View/StateManagement/StateManagementViewPanel.js +1 -2
- package/src/View/StateManagement/components/ExportDropdown.d.ts +1 -1
- package/src/View/StateManagement/components/ExportDropdown.js +3 -7
- package/src/View/StateManagement/handleExportState.d.ts +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.d.ts +3 -0
- package/src/View/StatusBar/AdaptableStatusBar.js +44 -0
- package/src/View/StatusBar/StatusBarPanel.d.ts +42 -0
- package/src/View/StatusBar/StatusBarPanel.js +45 -0
- package/src/View/StatusBar/StatusBarPopup.d.ts +3 -0
- package/src/View/StatusBar/StatusBarPopup.js +43 -0
- package/src/View/SystemStatus/SystemStatusStatusBarContent.d.ts +2 -0
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +15 -0
- package/src/View/SystemStatus/SystemStatusViewPanel.js +3 -7
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.d.ts +5 -0
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +16 -0
- package/src/View/Theme/ThemeStatusPanelPopover.d.ts +2 -0
- package/src/View/Theme/ThemeStatusPanelPopover.js +36 -0
- package/src/agGrid/Adaptable.d.ts +2 -0
- package/src/agGrid/Adaptable.js +30 -3
- package/src/agGrid/agGridHelper.js +2 -0
- package/src/agGrid/agGridMenuHelper.js +2 -2
- package/src/agGrid/createAgStatusPanelComponent.d.ts +21 -0
- package/src/agGrid/createAgStatusPanelComponent.js +31 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
- package/src/components/Dashboard/DashboardManager.js +9 -162
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/DragAndDropContext/DragAndDropContext.d.ts +7 -0
- package/src/components/DragAndDropContext/DragAndDropContext.js +14 -0
- package/src/components/DragAndDropContext/ModuleManager.d.ts +17 -0
- package/src/components/DragAndDropContext/ModuleManager.js +81 -0
- package/src/components/DragAndDropContext/TabList.d.ts +29 -0
- package/src/components/DragAndDropContext/TabList.js +72 -0
- package/src/components/DragAndDropContext/UnusedPanel.d.ts +6 -0
- package/src/components/DragAndDropContext/UnusedPanel.js +46 -0
- package/src/components/DragAndDropContext/types.d.ts +8 -0
- package/src/components/DragAndDropContext/types.js +2 -0
- package/src/components/FormLayout/index.d.ts +1 -0
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/SimpleButton/index.js +3 -0
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/icons/DefaultIcon.d.ts +2 -1
- package/src/components/icons/DefaultIcon.js +2 -2
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/statusbar.d.ts +3 -0
- package/src/components/icons/statusbar.js +8 -0
- package/src/metamodel/adaptable.metamodel.d.ts +236 -0
- package/src/metamodel/adaptable.metamodel.js +467 -48
- package/src/types.d.ts +5 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/index.css
CHANGED
|
@@ -2297,6 +2297,12 @@ template {
|
|
|
2297
2297
|
:root {
|
|
2298
2298
|
--ab-cmp-dashboard-module-selector-background: var(--ab-color-defaultbackground); }
|
|
2299
2299
|
|
|
2300
|
+
:root {
|
|
2301
|
+
--ab-cmp-adaptable-statusbar-sub-panel__padding: var(--ab-space-1) var(--ab-space-2);
|
|
2302
|
+
--ab-cmp-adaptable-statusbar-sub-panel-icon__background-color-hover: var(--ab-color-primary);
|
|
2303
|
+
--ab-cmp-adaptable-statusbar__color: var(--ab-color-text-on-primary);
|
|
2304
|
+
--ab-cmp-adaptable-statusbar__font-weight: 400; }
|
|
2305
|
+
|
|
2300
2306
|
.ab-Radio-input:focus + svg rect {
|
|
2301
2307
|
stroke: var(--ab-color-accent);
|
|
2302
2308
|
stroke-width: 2; }
|
|
@@ -3685,6 +3691,20 @@ html.ab--theme-dark .ab-ListBoxFilterForm--aggrid-style {
|
|
|
3685
3691
|
.ab-Adaptable-Object-List__Item__label:hover .ab-Adaptable-Object-List__Item__edit-property {
|
|
3686
3692
|
visibility: visible; }
|
|
3687
3693
|
|
|
3694
|
+
.ab-StatusBar__SubPanel {
|
|
3695
|
+
padding: var(--ab-cmp-adaptable-statusbar-sub-panel__padding);
|
|
3696
|
+
border: 0;
|
|
3697
|
+
background: none;
|
|
3698
|
+
font-weight: 400; }
|
|
3699
|
+
|
|
3700
|
+
.ab-StatusBar__SubPanel,
|
|
3701
|
+
.ab-StatusBar__SubPanel .ab-SimpleButton {
|
|
3702
|
+
color: var(--ab-cmp-adaptable-statusbar__color); }
|
|
3703
|
+
|
|
3704
|
+
button.ab-StatusBar__SubPanel:hover {
|
|
3705
|
+
background-color: var(--ab-cmp-adaptable-statusbar-sub-panel-icon__background-color-hover);
|
|
3706
|
+
cursor: pointer; }
|
|
3707
|
+
|
|
3688
3708
|
.ab-alert--error {
|
|
3689
3709
|
background: var(--ab-color-error); }
|
|
3690
3710
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.11",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1651261848326;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Column, RowNode } from '@ag-grid-community/all-modules';
|
|
1
|
+
import { Column, GridOptions, RowNode } from '@ag-grid-community/all-modules';
|
|
2
2
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
3
3
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
4
4
|
import { ColumnSort } from '../PredefinedConfig/Common/ColumnSort';
|
|
@@ -160,6 +160,7 @@ export interface IAdaptable {
|
|
|
160
160
|
getRowNodesForPrimaryKeys(primaryKeyValues: any[]): RowNode[];
|
|
161
161
|
getRowNodeForPrimaryKey(primaryKeyValue: any): RowNode;
|
|
162
162
|
getRowNodeByIndex(index: number): RowNode;
|
|
163
|
+
getAgGridStatusPanels(): GridOptions['statusBar']['statusPanels'];
|
|
163
164
|
forPlugins(callback: (plugin: AdaptablePlugin) => any): void;
|
|
164
165
|
lookupPlugins(propertyName: string, ...args: any): any;
|
|
165
166
|
getPluginProperty(pluginId: string, propertyName: string, ...args: any): any;
|
|
@@ -178,7 +178,7 @@ export interface AdaptableOptions {
|
|
|
178
178
|
*/
|
|
179
179
|
settingsPanelOptions?: SettingsPanelOptions;
|
|
180
180
|
/**
|
|
181
|
-
* Options related to state hydration / dehydration - allows users to intercept state persistence and state loading and change default
|
|
181
|
+
* Options related to state hydration / dehydration - allows users to intercept state persistence and state loading and change default behaviour of saving to local storage
|
|
182
182
|
*/
|
|
183
183
|
stateOptions?: StateOptions;
|
|
184
184
|
/**
|
|
@@ -15,12 +15,19 @@ export interface AlertOptions {
|
|
|
15
15
|
*/
|
|
16
16
|
maxAlertsInStore?: number;
|
|
17
17
|
/**
|
|
18
|
-
* How long (in ms) a
|
|
18
|
+
* How long (in ms) a Cell will be highlighted when an Alert fires
|
|
19
19
|
*
|
|
20
|
-
* @defaultValue
|
|
20
|
+
* @defaultValue 2000
|
|
21
21
|
* @gridInfoItem
|
|
22
22
|
*/
|
|
23
23
|
cellHighlightDuration?: number;
|
|
24
|
+
/**
|
|
25
|
+
* How long (in ms) a Row will be highlighted when an Alert Fires
|
|
26
|
+
*
|
|
27
|
+
* @defaultValue 4000
|
|
28
|
+
* @gridInfoItem
|
|
29
|
+
*/
|
|
30
|
+
rowHighlightDuration?: number;
|
|
24
31
|
/**
|
|
25
32
|
* onClick Handlers for Alert Buttons (defined in Alert State)
|
|
26
33
|
*/
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GridCell } from '../../types';
|
|
1
|
+
import { ContextMenuContext } from '../../types';
|
|
3
2
|
/**
|
|
4
3
|
* Options required for when using the Finance plugin
|
|
5
4
|
*/
|
|
6
5
|
export interface FinancePluginOptions {
|
|
7
6
|
/**
|
|
8
|
-
* Columns to be defined as FDC3
|
|
7
|
+
* Columns to be defined as FDC3-related
|
|
9
8
|
*/
|
|
10
9
|
fdc3Columns?: {
|
|
11
10
|
/**
|
|
@@ -47,6 +46,9 @@ export interface WeightedAverageColumn {
|
|
|
47
46
|
*/
|
|
48
47
|
weightedColumnId: string;
|
|
49
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* An FDC3 Column - will raise FDC3 intents and broadcast FDC3 messages
|
|
51
|
+
*/
|
|
50
52
|
export interface FDC3Column {
|
|
51
53
|
/**
|
|
52
54
|
* Id of Column defined as FDC3
|
|
@@ -63,7 +65,7 @@ export interface FDC3Column {
|
|
|
63
65
|
/**
|
|
64
66
|
* Label to display in Broadcast Context Menu Item
|
|
65
67
|
*/
|
|
66
|
-
broadcastContextMenuLabel?: string | ((
|
|
68
|
+
broadcastContextMenuLabel?: string | ((broadcastFDC3MessageContext: ContextMenuContext) => string);
|
|
67
69
|
/**
|
|
68
70
|
* FDC3 intents which the Column can raise
|
|
69
71
|
*/
|
|
@@ -71,7 +73,7 @@ export interface FDC3Column {
|
|
|
71
73
|
/**
|
|
72
74
|
* Label to display in Intent Context Menu Item
|
|
73
75
|
*/
|
|
74
|
-
intentContextMenuLabel?: string | ((
|
|
76
|
+
intentContextMenuLabel?: string | ((raiseFDC3IntentContext: RaiseFDC3IntentContext) => string);
|
|
75
77
|
}
|
|
76
78
|
/**
|
|
77
79
|
* A Column which will be defined as an FDC3 Instrument
|
|
@@ -110,11 +112,17 @@ export interface InstrumentColumn extends FDC3Column {
|
|
|
110
112
|
*/
|
|
111
113
|
figiColumnId?: string;
|
|
112
114
|
/**
|
|
113
|
-
* FDC3 Intents
|
|
115
|
+
* FDC3 Intents invoked by Column; can be: `ViewChart` `ViewQuote` `ViewNews` `ViewAnalysis` `ViewInstrument`
|
|
114
116
|
*/
|
|
115
117
|
intents?: InstrumentIntents;
|
|
116
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* All available Instrument Intents
|
|
121
|
+
*/
|
|
117
122
|
export declare type InstrumentIntents = InstrumentIntent[];
|
|
123
|
+
/**
|
|
124
|
+
* FDC3 Intents available to an Instrument Column
|
|
125
|
+
*/
|
|
118
126
|
export declare type InstrumentIntent = 'ViewChart' | 'ViewQuote' | 'ViewNews' | 'ViewAnalysis' | 'ViewInstrument';
|
|
119
127
|
/**
|
|
120
128
|
* A (Numeric) Column which will be defined as an FDC3 Position
|
|
@@ -125,11 +133,17 @@ export interface PositionColumn extends FDC3Column {
|
|
|
125
133
|
*/
|
|
126
134
|
instrumentColumnId: string;
|
|
127
135
|
/**
|
|
128
|
-
* FDC3 Intents
|
|
136
|
+
* FDC3 Intents invoked by Column; can be: `ViewChart` `ViewNews` `ViewAnalysis`
|
|
129
137
|
*/
|
|
130
138
|
intents?: PositionIntents;
|
|
131
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* All available Position Intents
|
|
142
|
+
*/
|
|
132
143
|
export declare type PositionIntents = PositionIntent[];
|
|
144
|
+
/**
|
|
145
|
+
* FDC3 Intents available to a Position Column
|
|
146
|
+
*/
|
|
133
147
|
export declare type PositionIntent = 'ViewChart' | 'ViewNews' | 'ViewAnalysis';
|
|
134
148
|
/**
|
|
135
149
|
* A (String) Column which will be defined as an FDC3 Contact
|
|
@@ -143,13 +157,19 @@ export interface ContactColumn extends FDC3Column {
|
|
|
143
157
|
/**
|
|
144
158
|
* Column which holds an FDS_ID value a Contact
|
|
145
159
|
*/
|
|
146
|
-
|
|
160
|
+
fds_idColumnId?: string;
|
|
147
161
|
/**
|
|
148
|
-
* FDC3 Intents
|
|
162
|
+
* FDC3 Intents invoked by Column; can be: `StartCall` `StartChat` `ViewContact`
|
|
149
163
|
*/
|
|
150
164
|
intents?: ContactIntents;
|
|
151
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* All available Contact Intents
|
|
168
|
+
*/
|
|
152
169
|
export declare type ContactIntents = ContactIntent[];
|
|
170
|
+
/**
|
|
171
|
+
* FDC3 Intents available to a Contact Column
|
|
172
|
+
*/
|
|
153
173
|
export declare type ContactIntent = 'StartCall' | 'StartChat' | 'ViewContact';
|
|
154
174
|
/**
|
|
155
175
|
* A (String) Column which will be defined as an FDC3 Organization
|
|
@@ -162,17 +182,20 @@ export interface OrganizationColumn extends FDC3Column {
|
|
|
162
182
|
/**
|
|
163
183
|
* Column which contains a PermId
|
|
164
184
|
*/
|
|
165
|
-
|
|
185
|
+
permidColumnId?: string;
|
|
166
186
|
/**
|
|
167
187
|
* Column which contains an FDS_ID
|
|
168
188
|
*/
|
|
169
|
-
|
|
189
|
+
fds_idColumnId?: string;
|
|
170
190
|
/**
|
|
171
|
-
* FDC3 Intents
|
|
191
|
+
* FDC3 Intents invoked by Column; can be: `ViewNews` `ViewAnalysis`
|
|
172
192
|
*/
|
|
173
193
|
intents?: OrganizationIntents;
|
|
174
194
|
}
|
|
175
195
|
export declare type OrganizationIntents = OrganizationIntent[];
|
|
196
|
+
/**
|
|
197
|
+
* FDC3 Intents available to an Organization Column
|
|
198
|
+
*/
|
|
176
199
|
export declare type OrganizationIntent = 'ViewNews' | 'ViewAnalysis';
|
|
177
200
|
/**
|
|
178
201
|
* A (String) Column which will be defined as an FDC3 Country
|
|
@@ -181,16 +204,34 @@ export interface CountryColumn extends FDC3Column {
|
|
|
181
204
|
/**
|
|
182
205
|
* Column which contains the ISOALPHA2 Standard
|
|
183
206
|
*/
|
|
184
|
-
|
|
207
|
+
isoalpha2ColumnId?: string;
|
|
185
208
|
/**
|
|
186
209
|
* Column which contains the ISOALPHA3 Standard
|
|
187
210
|
*/
|
|
188
|
-
|
|
211
|
+
isoalpha3ColumnId?: string;
|
|
189
212
|
/**
|
|
190
|
-
* FDC3 Intents
|
|
213
|
+
* FDC3 Intents invoked by Column; can be: `ViewChart`
|
|
191
214
|
*/
|
|
192
215
|
intents?: CountryIntents;
|
|
193
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* All available Country Intents
|
|
219
|
+
*/
|
|
194
220
|
export declare type CountryIntents = CountryIntent[];
|
|
221
|
+
/**
|
|
222
|
+
* FDC3 Intents available to a Country Column
|
|
223
|
+
*/
|
|
195
224
|
export declare type CountryIntent = 'ViewChart';
|
|
196
|
-
|
|
225
|
+
/**
|
|
226
|
+
* Full list of FDC3 Intents available - each FDC3 Column can use a subset
|
|
227
|
+
*/
|
|
228
|
+
export declare type FDC3Intent = 'StartCall' | 'StartChat' | 'ViewAnalysis' | 'ViewChart' | 'ViewContact' | 'ViewInstrument' | 'ViewNews' | 'ViewQuote';
|
|
229
|
+
/**
|
|
230
|
+
* Context passed into Raise FDC3 Intent functions (e.g. get label)
|
|
231
|
+
*/
|
|
232
|
+
export interface RaiseFDC3IntentContext extends ContextMenuContext {
|
|
233
|
+
/**
|
|
234
|
+
* FDC3 Intent that was raised
|
|
235
|
+
*/
|
|
236
|
+
intent: FDC3Intent;
|
|
237
|
+
}
|
|
@@ -62,6 +62,13 @@ export interface GeneralOptions {
|
|
|
62
62
|
* @gridInfoItem
|
|
63
63
|
*/
|
|
64
64
|
currentCalendar?: string;
|
|
65
|
+
/**
|
|
66
|
+
* English variant to use in UI labels
|
|
67
|
+
*
|
|
68
|
+
* @defaultValue 'GB'
|
|
69
|
+
* @gridInfoItem
|
|
70
|
+
*/
|
|
71
|
+
englishVariant?: 'GB' | 'US';
|
|
65
72
|
/**
|
|
66
73
|
* Custom Cell Summary Operations to add to shipped set
|
|
67
74
|
*/
|
|
@@ -88,6 +88,13 @@ export interface UserInterfaceOptions {
|
|
|
88
88
|
* @defaultValue ['GridSummary', 'AdaptableOptions', 'ColumnInfo']
|
|
89
89
|
*/
|
|
90
90
|
gridInfoSections?: GridInfoSections;
|
|
91
|
+
/**
|
|
92
|
+
* Displays the AdapTable version in Grid Info section of Settings Panel
|
|
93
|
+
*
|
|
94
|
+
* @defaultValue true
|
|
95
|
+
* @gridInfoItem
|
|
96
|
+
*/
|
|
97
|
+
showAdapTableVersion?: boolean;
|
|
91
98
|
}
|
|
92
99
|
export interface BasePermittedValues {
|
|
93
100
|
/**
|
|
@@ -36,6 +36,7 @@ import { DataChangeHistoryApi } from './DataChangeHistoryApi';
|
|
|
36
36
|
import { FlashingCellApi } from './FlashingCellApi';
|
|
37
37
|
import { ChartingApi } from './ChartingApi';
|
|
38
38
|
import { SettingsPanelApi } from './SettingsPanelApi';
|
|
39
|
+
import { StatusBarApi } from './StatusBarApi';
|
|
39
40
|
/**
|
|
40
41
|
*
|
|
41
42
|
* The `AdaptableApi` provides developers with run-time access to AdapTable.
|
|
@@ -191,6 +192,10 @@ export interface AdaptableApi {
|
|
|
191
192
|
* Provides run-time access to Charting Module and state
|
|
192
193
|
*/
|
|
193
194
|
chartingApi: ChartingApi;
|
|
195
|
+
/**
|
|
196
|
+
* Provides run-time access to the AdapTable Status Bar
|
|
197
|
+
*/
|
|
198
|
+
statusBarApi: StatusBarApi;
|
|
194
199
|
/**
|
|
195
200
|
* Api methods used *internally* within AdapTable.
|
|
196
201
|
* @internal
|
|
@@ -19,4 +19,12 @@ export interface CellSummaryApi {
|
|
|
19
19
|
* Opens Settings Panel with Cell Summary section selected and visible
|
|
20
20
|
*/
|
|
21
21
|
showCellSummaryPopup(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves the value of the current selected operation
|
|
24
|
+
*/
|
|
25
|
+
getCurrentCellSummaryOperationValue(): number;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves the value of the current selected operation
|
|
28
|
+
*/
|
|
29
|
+
getCellSummaryOperationValue(operation: CellSummaryOperation | string): any;
|
|
22
30
|
}
|
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -112,7 +112,12 @@ export interface ColumnApi {
|
|
|
112
112
|
* Is Column row-grouped
|
|
113
113
|
* @param columnId Column to check
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
isAutoRowGroupColumn(columnId: string): boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Is Column pivoted
|
|
118
|
+
* @param columnId Column to check
|
|
119
|
+
*/
|
|
120
|
+
isAutoPivotColumn(columnId: string): boolean;
|
|
116
121
|
/**
|
|
117
122
|
* Is Column a Calculated Column
|
|
118
123
|
* @param columnId Column to check
|
package/src/Api/ConfigApi.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { AlertState } from '../PredefinedConfig/AlertState';
|
|
|
13
13
|
import { ConfigState } from '../PredefinedConfig/ConfigState';
|
|
14
14
|
import { PlusMinusState } from '../PredefinedConfig/PlusMinusState';
|
|
15
15
|
import { ApplicationState } from '../PredefinedConfig/ApplicationState';
|
|
16
|
-
import { AdaptableState } from '../PredefinedConfig/AdaptableState';
|
|
16
|
+
import { AdaptablePersistentState, AdaptableState } from '../PredefinedConfig/AdaptableState';
|
|
17
17
|
import { FreeTextColumnState } from '../PredefinedConfig/FreeTextColumnState';
|
|
18
18
|
import { FilterState } from '../PredefinedConfig/FilterState';
|
|
19
19
|
import { ToolPanelState } from '../PredefinedConfig/ToolPanelState';
|
|
@@ -41,7 +41,7 @@ export interface ConfigApi {
|
|
|
41
41
|
*/
|
|
42
42
|
getPredefinedConfig(): PredefinedConfig | any;
|
|
43
43
|
/**
|
|
44
|
-
* Reloads either existing or supplied Predefined Config;
|
|
44
|
+
* Reloads either existing or supplied Predefined Config; clears persistent state by calling `StateOptions.clearState()` function for remote storage removal
|
|
45
45
|
* @param newPredefinedConfig optional Config to load
|
|
46
46
|
*/
|
|
47
47
|
reloadPredefinedConfig(newPredefinedConfig?: PredefinedConfig): void;
|
|
@@ -61,13 +61,19 @@ export interface ConfigApi {
|
|
|
61
61
|
[s: string]: ConfigState;
|
|
62
62
|
}): void;
|
|
63
63
|
/**
|
|
64
|
-
* Retrieves ALL state which is currently stored by Adaptable (both
|
|
64
|
+
* Retrieves ALL state which is currently stored by Adaptable (both persistent and transient/internal)
|
|
65
65
|
*/
|
|
66
66
|
getAllState(): AdaptableState;
|
|
67
67
|
/**
|
|
68
68
|
* Retrieves the PERSISTED state in Adaptable
|
|
69
|
+
*
|
|
70
|
+
* @deprecated use {@link getPersistedState} instead
|
|
69
71
|
*/
|
|
70
72
|
getAllUserState(): ConfigState[];
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves the PERSISTED state in Adaptable
|
|
75
|
+
*/
|
|
76
|
+
getPersistedState(): AdaptablePersistentState;
|
|
71
77
|
/**
|
|
72
78
|
* Gets search-related sections of Adaptable State
|
|
73
79
|
*/
|
|
@@ -37,6 +37,7 @@ import { PredicateApi } from '../PredicateApi';
|
|
|
37
37
|
import { DataChangeHistoryApi } from '../DataChangeHistoryApi';
|
|
38
38
|
import { FlashingCellApi } from '../FlashingCellApi';
|
|
39
39
|
import { ChartingApi } from '../ChartingApi';
|
|
40
|
+
import { StatusBarApi } from '../StatusBarApi';
|
|
40
41
|
export declare class AdaptableApiImpl implements AdaptableApi {
|
|
41
42
|
protected adaptable: IAdaptable;
|
|
42
43
|
applicationApi: ApplicationApi;
|
|
@@ -77,6 +78,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
77
78
|
scopeApi: ScopeApi;
|
|
78
79
|
dataChangeHistoryApi: DataChangeHistoryApi;
|
|
79
80
|
chartingApi: ChartingApi;
|
|
81
|
+
statusBarApi: StatusBarApi;
|
|
80
82
|
constructor(adaptable: IAdaptable);
|
|
81
83
|
destroy(config?: {
|
|
82
84
|
unmount: boolean;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdaptableApiImpl = void 0;
|
|
4
4
|
const AlertApiImpl_1 = require("./AlertApiImpl");
|
|
5
|
+
const StatusBarApiImpl_1 = require("./StatusBarApiImpl");
|
|
5
6
|
const PredicateApiImpl_1 = require("./PredicateApiImpl");
|
|
6
7
|
const PluginsApiImpl_1 = require("./PluginsApiImpl");
|
|
7
8
|
const BulkUpdateApiImpl_1 = require("./BulkUpdateApiImpl");
|
|
@@ -80,6 +81,7 @@ class AdaptableApiImpl {
|
|
|
80
81
|
this.scopeApi = new ScopeApiImpl_1.ScopeApiImpl(adaptable);
|
|
81
82
|
this.dataChangeHistoryApi = new DataChangeHistoryApiImpl_1.DataChangeHistoryApiImpl(adaptable);
|
|
82
83
|
this.chartingApi = new ChartingApiImpl_1.ChartingApiImpl(adaptable);
|
|
84
|
+
this.statusBarApi = new StatusBarApiImpl_1.StatusBarApiImpl(adaptable);
|
|
83
85
|
this.internalApi = new InternalApiImpl_1.InternalApiImpl(adaptable);
|
|
84
86
|
}
|
|
85
87
|
destroy(config) {
|
|
@@ -105,18 +105,27 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
105
105
|
timeout: this.getAlertOptions().cellHighlightDuration,
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
+
if (actionName === 'highlight-row' && cellDataChangedInfo) {
|
|
109
|
+
const rowsHighlightInfo = {
|
|
110
|
+
primaryKeyValues: [cellDataChangedInfo.primaryKeyValue],
|
|
111
|
+
highlightStyle: {
|
|
112
|
+
BackColor: getBackgroundColor(alertDefinition),
|
|
113
|
+
},
|
|
114
|
+
timeout: this.getAlertOptions().rowHighlightDuration,
|
|
115
|
+
};
|
|
116
|
+
this.adaptable.api.gridApi.highlightRows(rowsHighlightInfo);
|
|
117
|
+
}
|
|
108
118
|
if (actionName === 'highlight-row' &&
|
|
109
119
|
gridDataChangedInfo &&
|
|
110
120
|
// no sense to highlight a deleted(non-existing) row
|
|
111
121
|
(gridDataChangedInfo === null || gridDataChangedInfo === void 0 ? void 0 : gridDataChangedInfo.rowTrigger) !== 'Delete') {
|
|
112
|
-
const backgroundColor = getBackgroundColor(alertDefinition);
|
|
113
122
|
const primaryKeyValues = this.adaptable.api.gridApi.getPrimaryKeyValuesForRowNodes(gridDataChangedInfo.rowNodes);
|
|
114
123
|
const rowsHighlightInfo = {
|
|
115
124
|
primaryKeyValues,
|
|
116
125
|
highlightStyle: {
|
|
117
|
-
BackColor:
|
|
126
|
+
BackColor: getBackgroundColor(alertDefinition),
|
|
118
127
|
},
|
|
119
|
-
timeout: this.getAlertOptions().
|
|
128
|
+
timeout: this.getAlertOptions().rowHighlightDuration,
|
|
120
129
|
};
|
|
121
130
|
this.adaptable.api.gridApi.highlightRows(rowsHighlightInfo);
|
|
122
131
|
}
|
|
@@ -200,30 +209,38 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
200
209
|
this.adaptable.jumpToRow(firstRowNode);
|
|
201
210
|
}
|
|
202
211
|
}
|
|
203
|
-
// 6
|
|
204
|
-
//
|
|
205
|
-
if (
|
|
206
|
-
|
|
207
|
-
|
|
212
|
+
// 6: For CellChanged Alerts either Highlight the cell or row
|
|
213
|
+
// for former - we just refresh the cells to trigger a re-evaluation of the Adaptable.setupColumn[Style/Class]
|
|
214
|
+
if (AdaptableAlert_1.isAdaptableCellChangedAlert(alertToShow) &&
|
|
215
|
+
alertToShow.cellDataChangedInfo &&
|
|
216
|
+
(alertProperties.HighlightCell || alertProperties.HighlightRow)) {
|
|
208
217
|
let alertNode = alertToShow.cellDataChangedInfo.rowNode;
|
|
209
218
|
if (!alertNode) {
|
|
210
219
|
alertNode = this.adaptable.getRowNodeForPrimaryKey(alertToShow.cellDataChangedInfo.primaryKeyValue);
|
|
211
220
|
}
|
|
212
221
|
if (alertNode) {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
222
|
+
if (alertProperties.HighlightRow) {
|
|
223
|
+
this.adaptable.api.gridApi.refreshRowNodes([alertNode]);
|
|
224
|
+
setTimeout(() => {
|
|
225
|
+
this.dispatchAction(SystemRedux.SystemAlertRemoveRowHighlight(alertToShow));
|
|
226
|
+
}, this.adaptable.adaptableOptions.alertOptions.rowHighlightDuration);
|
|
227
|
+
}
|
|
228
|
+
if (alertProperties.HighlightCell) {
|
|
229
|
+
this.adaptable.api.gridApi.refreshCells([alertNode], [alertToShow.cellDataChangedInfo.column.columnId]);
|
|
230
|
+
setTimeout(() => {
|
|
231
|
+
this.dispatchAction(SystemRedux.SystemAlertRemoveCellHighlight(alertToShow));
|
|
232
|
+
}, this.adaptable.adaptableOptions.alertOptions.cellHighlightDuration);
|
|
233
|
+
}
|
|
217
234
|
}
|
|
218
235
|
}
|
|
219
|
-
// 7. Highlight the row - we just refresh the rows to trigger a re-evaluation of the Adaptable.setupColumn[Style/Class]
|
|
236
|
+
// 7. For RowChange Alerts only Highlight the row - we just refresh the rows to trigger a re-evaluation of the Adaptable.setupColumn[Style/Class]
|
|
220
237
|
else if (alertProperties.HighlightRow &&
|
|
221
238
|
AdaptableAlert_1.isAdaptableRowChangedAlert(alertToShow) &&
|
|
222
239
|
((_b = alertToShow.gridDataChangedInfo) === null || _b === void 0 ? void 0 : _b.rowTrigger) === 'Add') {
|
|
223
240
|
this.adaptable.api.gridApi.refreshRowNodes(alertToShow.gridDataChangedInfo.rowNodes);
|
|
224
241
|
setTimeout(() => {
|
|
225
|
-
this.dispatchAction(SystemRedux.
|
|
226
|
-
}, this.adaptable.adaptableOptions.alertOptions.
|
|
242
|
+
this.dispatchAction(SystemRedux.SystemAlertRemoveRowHighlight(alertToShow));
|
|
243
|
+
}, this.adaptable.adaptableOptions.alertOptions.rowHighlightDuration);
|
|
227
244
|
}
|
|
228
245
|
}
|
|
229
246
|
}
|
|
@@ -7,4 +7,6 @@ export declare class CellSummaryApiImpl extends ApiBase implements CellSummaryAp
|
|
|
7
7
|
getCellSummaryOperationDefinitions(): CellSummaryOperation[];
|
|
8
8
|
showCellSummaryPopup(): void;
|
|
9
9
|
setCurrentCellSummaryOperation(operation: SummaryOperation | string): void;
|
|
10
|
+
getCellSummaryOperationValue(operation: SummaryOperation | string): any;
|
|
11
|
+
getCurrentCellSummaryOperationValue(): any;
|
|
10
12
|
}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
8
|
+
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
8
9
|
class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
9
10
|
getCurrentCellSummaryOperation() {
|
|
10
11
|
return this.getAdaptableState().System.CellSummaryOperation;
|
|
@@ -18,5 +19,38 @@ class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
|
18
19
|
setCurrentCellSummaryOperation(operation) {
|
|
19
20
|
this.dispatchAction(SystemRedux.SystemCellSummaryChangeOperation(operation));
|
|
20
21
|
}
|
|
22
|
+
getCellSummaryOperationValue(operation) {
|
|
23
|
+
const cellSummary = this.getAdaptableState().Grid.CellSummary;
|
|
24
|
+
if (!cellSummary) {
|
|
25
|
+
return 'N/A';
|
|
26
|
+
}
|
|
27
|
+
switch (operation) {
|
|
28
|
+
case Enums_1.SummaryOperation.Sum:
|
|
29
|
+
return cellSummary.Sum;
|
|
30
|
+
case Enums_1.SummaryOperation.Average:
|
|
31
|
+
return cellSummary.Average;
|
|
32
|
+
case Enums_1.SummaryOperation.Median:
|
|
33
|
+
return cellSummary.Median;
|
|
34
|
+
case Enums_1.SummaryOperation.Mode:
|
|
35
|
+
return cellSummary.Mode;
|
|
36
|
+
case Enums_1.SummaryOperation.Max:
|
|
37
|
+
return cellSummary.Max;
|
|
38
|
+
case Enums_1.SummaryOperation.Min:
|
|
39
|
+
return cellSummary.Min;
|
|
40
|
+
case Enums_1.SummaryOperation.Distinct:
|
|
41
|
+
return cellSummary.Distinct;
|
|
42
|
+
case Enums_1.SummaryOperation.Count:
|
|
43
|
+
return cellSummary.Count;
|
|
44
|
+
default:
|
|
45
|
+
return cellSummary[operation];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
getCurrentCellSummaryOperationValue() {
|
|
49
|
+
const cellSummaryOperation = this.getCurrentCellSummaryOperation();
|
|
50
|
+
const summaryOperation = typeof cellSummaryOperation === 'string'
|
|
51
|
+
? cellSummaryOperation
|
|
52
|
+
: cellSummaryOperation.operationName;
|
|
53
|
+
return this.getCellSummaryOperationValue(summaryOperation);
|
|
54
|
+
}
|
|
21
55
|
}
|
|
22
56
|
exports.CellSummaryApiImpl = CellSummaryApiImpl;
|
|
@@ -18,7 +18,8 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
18
18
|
hideColumn(columnId: string): void;
|
|
19
19
|
showColumn(columnId: string): void;
|
|
20
20
|
getAgGridColumnType(columnId: string): string | string[];
|
|
21
|
-
|
|
21
|
+
isAutoRowGroupColumn(columnId: string): boolean;
|
|
22
|
+
isAutoPivotColumn(columnId: string): boolean;
|
|
22
23
|
isCalculatedColumn(columnId: string): boolean;
|
|
23
24
|
isFreeTextColumn(columnId: string): boolean;
|
|
24
25
|
isActionColumn(columnId: string): boolean;
|
|
@@ -53,12 +53,16 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
53
53
|
getAgGridColumnType(columnId) {
|
|
54
54
|
return this.adaptable.getAgGridColumnType(columnId);
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
isAutoRowGroupColumn(columnId) {
|
|
57
57
|
// put this here as there might be other indicators we are not aware of
|
|
58
58
|
// perhaps with non auto groups ?
|
|
59
59
|
//https://www.ag-grid.com/javascript-grid-grouping/
|
|
60
60
|
return columnId === null || columnId === void 0 ? void 0 : columnId.startsWith(GeneralConstants_1.AG_GRID_GROUPED_COLUMN);
|
|
61
61
|
}
|
|
62
|
+
isAutoPivotColumn(columnId) {
|
|
63
|
+
// put this here as there might be other indicators we are not aware of?
|
|
64
|
+
return columnId === null || columnId === void 0 ? void 0 : columnId.startsWith(GeneralConstants.AG_GRID_PIVOT_COLUMN);
|
|
65
|
+
}
|
|
62
66
|
isCalculatedColumn(columnId) {
|
|
63
67
|
return (this.adaptable.api.calculatedColumnApi
|
|
64
68
|
.getAllCalculatedColumn()
|
|
@@ -116,7 +120,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
116
120
|
}
|
|
117
121
|
let result = columnId + GeneralConstants.MISSING_COLUMN;
|
|
118
122
|
const currentLayout = this.adaptable.api.layoutApi.getCurrentLayout();
|
|
119
|
-
if (this.
|
|
123
|
+
if (this.isAutoRowGroupColumn(columnId) && (currentLayout === null || currentLayout === void 0 ? void 0 : currentLayout.RowGroupedColumns)) {
|
|
120
124
|
result = `[Grouped column: ${currentLayout.RowGroupedColumns.join(', ')}]`;
|
|
121
125
|
}
|
|
122
126
|
this.LogMissingColumnWarning(columnId);
|
|
@@ -265,7 +269,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
265
269
|
LogMissingColumnWarning(columnId) {
|
|
266
270
|
if (this.adaptable.adaptableOptions.generalOptions.showMissingColumnsWarning &&
|
|
267
271
|
this.adaptable.adaptableOptions.generalOptions.showMissingColumnsWarning === true) {
|
|
268
|
-
if (!this.
|
|
272
|
+
if (!this.isAutoRowGroupColumn(columnId) &&
|
|
269
273
|
!this.isCalculatedColumn(columnId) &&
|
|
270
274
|
!this.isFreeTextColumn(columnId) &&
|
|
271
275
|
!this.isActionColumn(columnId)) {
|
|
@@ -12,7 +12,7 @@ import { ConditionalStyleState } from '../../PredefinedConfig/ConditionalStyleSt
|
|
|
12
12
|
import { CalculatedColumnState } from '../../PredefinedConfig/CalculatedColumnState';
|
|
13
13
|
import { AlertState } from '../../PredefinedConfig/AlertState';
|
|
14
14
|
import { ConfigState } from '../../PredefinedConfig/ConfigState';
|
|
15
|
-
import { AdaptableState } from '../../PredefinedConfig/AdaptableState';
|
|
15
|
+
import { AdaptablePersistentState, AdaptableState } from '../../PredefinedConfig/AdaptableState';
|
|
16
16
|
import { ApiBase } from './ApiBase';
|
|
17
17
|
import { ApplicationState } from '../../PredefinedConfig/ApplicationState';
|
|
18
18
|
import { FreeTextColumnState } from '../../PredefinedConfig/FreeTextColumnState';
|
|
@@ -31,7 +31,7 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
31
31
|
getPredefinedConfig(): PredefinedConfig | any;
|
|
32
32
|
reloadPredefinedConfig(newPredefinedConfig?: PredefinedConfig): void;
|
|
33
33
|
getAllState(): AdaptableState;
|
|
34
|
-
|
|
34
|
+
getPersistedState(): AdaptablePersistentState;
|
|
35
35
|
getAllUserState(): ConfigState[];
|
|
36
36
|
loadUserState(state: {
|
|
37
37
|
[s: string]: ConfigState;
|