@adaptabletools/adaptable-cjs 18.1.14 → 19.0.0-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/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +61 -0
- 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 +15 -0
- package/src/Api/Internal/ExportInternalApi.d.ts +33 -8
- package/src/Api/Internal/ExportInternalApi.js +577 -5
- package/src/Api/Internal/NamedQueryInternalApi.d.ts +0 -1
- package/src/Api/Internal/NamedQueryInternalApi.js +0 -5
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -5
- package/src/PredefinedConfig/Common/ExtendedLayoutInfo.d.ts +12 -0
- 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 +11 -11
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +3 -3
- package/src/Redux/ActionsReducers/LayoutRedux.js +10 -10
- 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 +3 -3
- 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 +11 -0
- package/src/Utilities/Constants/GeneralConstants.d.ts +41 -4
- package/src/Utilities/Constants/GeneralConstants.js +44 -5
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -6
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +14 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +68 -1
- package/src/Utilities/Extensions/EnumExtensions.d.ts +0 -4
- package/src/Utilities/Extensions/EnumExtensions.js +3 -15
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +4 -10
- package/src/Utilities/Helpers/AdaptableHelper.js +10 -64
- 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 +1 -76
- 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 +6 -7
- package/src/agGrid/AdaptableAgGrid.js +164 -145
- package/src/agGrid/AgGridAdapter.d.ts +0 -1
- package/src/agGrid/AgGridAdapter.js +7 -10
- package/src/agGrid/AgGridColumnAdapter.d.ts +3 -1
- package/src/agGrid/AgGridColumnAdapter.js +39 -13
- 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 +89 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +10 -9
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/Redux/ActionsReducers/QueryRedux.d.ts +0 -10
- package/src/Redux/ActionsReducers/QueryRedux.js +0 -25
- package/src/Utilities/Helpers/FormatContentHelper.d.ts +0 -22
- package/src/Utilities/Helpers/FormatContentHelper.js +0 -39
- package/src/Utilities/Services/EntitlementService.d.ts +0 -14
- package/src/Utilities/Services/EntitlementService.js +0 -67
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +0 -10
- package/src/Utilities/Services/Interface/IReportService.d.ts +0 -27
- package/src/Utilities/Services/Interface/IReportService.js +0 -2
- package/src/Utilities/Services/ReportService.d.ts +0 -41
- package/src/Utilities/Services/ReportService.js +0 -608
- package/src/Utilities/isAdaptableObject.d.ts +0 -2
- package/src/Utilities/isAdaptableObject.js +0 -8
- package/src/Utilities/reorder.d.ts +0 -1
- package/src/Utilities/reorder.js +0 -17
- package/src/Utilities/sortWithOrder.d.ts +0 -11
- package/src/Utilities/sortWithOrder.js +0 -54
- /package/src/{Utilities/Services/Interface/IEntitlementService.js → PredefinedConfig/Common/ExtendedLayoutInfo.js} +0 -0
|
@@ -50,13 +50,14 @@ const ReactActionColumnRenderer = (props) => {
|
|
|
50
50
|
const isGroupedRow = adaptable.api.gridApi.isGroupRowNode(props.node);
|
|
51
51
|
const isSummaryRow = adaptable.api.gridApi.isSummaryNode(props.node);
|
|
52
52
|
let shouldRender = true;
|
|
53
|
+
const isActionRowColumn = adaptable.api.columnApi.internalApi.isActionRowButtonColumn(props.colDef.colId);
|
|
53
54
|
if (isGroupedRow) {
|
|
54
|
-
if ((_a = actionColumn.rowScope) === null || _a === void 0 ? void 0 : _a.ExcludeGroupRows) {
|
|
55
|
+
if (isActionRowColumn || ((_a = actionColumn.rowScope) === null || _a === void 0 ? void 0 : _a.ExcludeGroupRows)) {
|
|
55
56
|
shouldRender = false;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
else if (isSummaryRow) {
|
|
59
|
-
if ((_b = actionColumn.rowScope) === null || _b === void 0 ? void 0 : _b.ExcludeSummaryRows) {
|
|
60
|
+
if (isActionRowColumn || ((_b = actionColumn.rowScope) === null || _b === void 0 ? void 0 : _b.ExcludeSummaryRows)) {
|
|
60
61
|
shouldRender = false;
|
|
61
62
|
}
|
|
62
63
|
}
|
|
@@ -69,15 +70,7 @@ const ReactActionColumnRenderer = (props) => {
|
|
|
69
70
|
return null;
|
|
70
71
|
}
|
|
71
72
|
const pkValue = adaptable.getPrimaryKeyValueFromRowNode(props.node, props.api);
|
|
72
|
-
const buttonContext = {
|
|
73
|
-
actionColumn,
|
|
74
|
-
primaryKeyValue: pkValue,
|
|
75
|
-
rowNode: props.node,
|
|
76
|
-
adaptableApi: adaptable.api,
|
|
77
|
-
userName: adaptable.adaptableOptions.userName,
|
|
78
|
-
adaptableId: adaptable.adaptableOptions.adaptableId,
|
|
79
|
-
data: props.data,
|
|
80
|
-
};
|
|
73
|
+
const buttonContext = Object.assign(Object.assign({ actionColumn, primaryKeyValue: pkValue, rowNode: props.node }, adaptable.api.internalApi.buildBaseContext()), { data: props.data });
|
|
81
74
|
return (React.createElement("div", { className: "ab-ActionColumn" },
|
|
82
75
|
React.createElement(ActionButtons, { buttons: actionButtons, adaptableApi: adaptable.api, context: buttonContext, rerender: rerender })));
|
|
83
76
|
};
|
|
@@ -101,13 +94,14 @@ class ActionColumnRenderer {
|
|
|
101
94
|
const isGroupedRow = adaptable.api.gridApi.isGroupRowNode(params.node);
|
|
102
95
|
const isSummaryRow = adaptable.api.gridApi.isSummaryNode(params.node);
|
|
103
96
|
let shouldRender = true;
|
|
97
|
+
const isActionRowColumn = adaptable.api.columnApi.internalApi.isActionRowButtonColumn(params.colDef.colId);
|
|
104
98
|
if (isGroupedRow) {
|
|
105
|
-
if ((_a = actionColumn.rowScope) === null || _a === void 0 ? void 0 : _a.ExcludeGroupRows) {
|
|
99
|
+
if (isActionRowColumn || ((_a = actionColumn.rowScope) === null || _a === void 0 ? void 0 : _a.ExcludeGroupRows)) {
|
|
106
100
|
shouldRender = false;
|
|
107
101
|
}
|
|
108
102
|
}
|
|
109
103
|
else if (isSummaryRow) {
|
|
110
|
-
if ((_b = actionColumn.rowScope) === null || _b === void 0 ? void 0 : _b.ExcludeSummaryRows) {
|
|
104
|
+
if (isActionRowColumn || ((_b = actionColumn.rowScope) === null || _b === void 0 ? void 0 : _b.ExcludeSummaryRows)) {
|
|
111
105
|
shouldRender = false;
|
|
112
106
|
}
|
|
113
107
|
}
|
|
@@ -121,15 +115,7 @@ class ActionColumnRenderer {
|
|
|
121
115
|
return;
|
|
122
116
|
}
|
|
123
117
|
const pkValue = adaptable.getPrimaryKeyValueFromRowNode(params.node, params.api);
|
|
124
|
-
const buttonContext = {
|
|
125
|
-
actionColumn,
|
|
126
|
-
primaryKeyValue: pkValue,
|
|
127
|
-
rowNode: params.node,
|
|
128
|
-
adaptableApi: adaptable.api,
|
|
129
|
-
userName: adaptable.adaptableOptions.userName,
|
|
130
|
-
adaptableId: adaptable.adaptableOptions.adaptableId,
|
|
131
|
-
data: params.data,
|
|
132
|
-
};
|
|
118
|
+
const buttonContext = Object.assign(Object.assign({ actionColumn, primaryKeyValue: pkValue, rowNode: params.node }, adaptable.api.internalApi.buildBaseContext()), { data: params.data });
|
|
133
119
|
const eGui = this.eGui;
|
|
134
120
|
const doRender = () => {
|
|
135
121
|
this.unmountReactRoot = adaptable.renderReactRoot((0, renderWithAdaptableContext_1.renderWithAdaptableContext)(ActionButtons({
|
|
@@ -3,7 +3,7 @@ import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
|
|
|
3
3
|
import { ChartRef, Column, GridApi, GridOptions, IRowNode, Module, RowModelType } from '@ag-grid-community/core';
|
|
4
4
|
import { AdaptableLogger } from './AdaptableLogger';
|
|
5
5
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
6
|
-
import { AdaptableVariant, DistinctColumnValuesParams, IAdaptable } from '../AdaptableInterfaces/IAdaptable';
|
|
6
|
+
import { AdaptableVariant, DistinctColumnValuesParams, IAdaptable, NormalizeAdaptableStateOptions } from '../AdaptableInterfaces/IAdaptable';
|
|
7
7
|
import { EmitterCallback } from '../Utilities/Emitter';
|
|
8
8
|
import { AdaptablePlugin } from '../AdaptableOptions/AdaptablePlugin';
|
|
9
9
|
import { AgGridAdapter } from './AgGridAdapter';
|
|
@@ -11,8 +11,6 @@ import { IDataService } from '../Utilities/Services/Interface/IDataService';
|
|
|
11
11
|
import { AdaptableState } from '../PredefinedConfig/AdaptableState';
|
|
12
12
|
import { IAdaptableStore } from '../Redux/Store/Interface/IAdaptableStore';
|
|
13
13
|
import { ICalculatedColumnExpressionService } from '../Utilities/Services/Interface/ICalculatedColumnExpressionService';
|
|
14
|
-
import { IEntitlementService } from '../Utilities/Services/Interface/IEntitlementService';
|
|
15
|
-
import { IReportService } from '../Utilities/Services/Interface/IReportService';
|
|
16
14
|
import { IModuleService } from '../Utilities/Services/Interface/IModuleService';
|
|
17
15
|
import { IValidationService } from '../Utilities/Services/Interface/IValidationService';
|
|
18
16
|
import { IQueryLanguageService } from '../Utilities/Services/Interface/IQueryLanguageService';
|
|
@@ -28,7 +26,7 @@ import { RenderReactRootFn } from '../renderReactRoot';
|
|
|
28
26
|
import { AgGridOptionsService } from './AgGridOptionsService';
|
|
29
27
|
import { AgGridColumnAdapter } from './AgGridColumnAdapter';
|
|
30
28
|
import { RowEditService } from '../Utilities/Services/RowEditService';
|
|
31
|
-
export type AdaptableLifecycleState = 'initial' | 'preprocessOptions' | 'initAdaptableState' | 'setupAgGrid' | 'initAgGrid' | 'available' | 'ready' | 'preDestroyed';
|
|
29
|
+
export type AdaptableLifecycleState = 'initial' | 'preprocessOptions' | 'initAdaptableState' | 'setupAgGrid' | 'initAgGrid' | 'agGridReady' | 'available' | 'ready' | 'preDestroyed';
|
|
32
30
|
type RenderAgGridFrameworkComponentResult = false | GridApi;
|
|
33
31
|
interface AdaptableInitInternalConfig<TData = any> {
|
|
34
32
|
variant: AdaptableVariant;
|
|
@@ -44,6 +42,7 @@ interface AdaptableInitInternalConfig<TData = any> {
|
|
|
44
42
|
export declare class AdaptableAgGrid implements IAdaptable {
|
|
45
43
|
logger: AdaptableLogger;
|
|
46
44
|
private _id;
|
|
45
|
+
private _agGridId;
|
|
47
46
|
lifecycleState: AdaptableLifecycleState;
|
|
48
47
|
variant: AdaptableVariant;
|
|
49
48
|
private emitter;
|
|
@@ -73,8 +72,6 @@ export declare class AdaptableAgGrid implements IAdaptable {
|
|
|
73
72
|
adaptableModules: IModuleCollection;
|
|
74
73
|
DataService: IDataService;
|
|
75
74
|
CalculatedColumnExpressionService: ICalculatedColumnExpressionService;
|
|
76
|
-
EntitlementService: IEntitlementService;
|
|
77
|
-
ReportService: IReportService;
|
|
78
75
|
ModuleService: IModuleService;
|
|
79
76
|
ValidationService: IValidationService;
|
|
80
77
|
QueryLanguageService: IQueryLanguageService;
|
|
@@ -128,6 +125,7 @@ export declare class AdaptableAgGrid implements IAdaptable {
|
|
|
128
125
|
static forEachAdaptable(fn: (adaptable: AdaptableAgGrid) => void): void;
|
|
129
126
|
private static collectInstance;
|
|
130
127
|
private static dismissInstance;
|
|
128
|
+
get isAgGridInitialising(): boolean;
|
|
131
129
|
get isReady(): boolean;
|
|
132
130
|
get isAvailable(): boolean;
|
|
133
131
|
get isDestroyed(): boolean;
|
|
@@ -141,7 +139,7 @@ export declare class AdaptableAgGrid implements IAdaptable {
|
|
|
141
139
|
*/
|
|
142
140
|
static _initInternal(config: AdaptableInitInternalConfig): Promise<AdaptableApi>;
|
|
143
141
|
private _initAdaptableAgGrid;
|
|
144
|
-
normalizeAdaptableState(state: AdaptableState,
|
|
142
|
+
normalizeAdaptableState(state: AdaptableState, agGridOptions: NormalizeAdaptableStateOptions): AdaptableState;
|
|
145
143
|
private normaliseLayoutState;
|
|
146
144
|
private normaliseToolPanelState;
|
|
147
145
|
refreshQuickFilter(): void;
|
|
@@ -351,5 +349,6 @@ export declare class AdaptableAgGrid implements IAdaptable {
|
|
|
351
349
|
private onSortChanged;
|
|
352
350
|
private getColumnSorts;
|
|
353
351
|
private monkeyPatchingGridOptionsUpdates;
|
|
352
|
+
private DANGER_getPrivateAgGridBeans;
|
|
354
353
|
}
|
|
355
354
|
export {};
|