@adaptabletools/adaptable 22.0.1 → 22.0.2
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/index.css +18 -8
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -0
- package/src/Api/Internal/ActionColumnInternalApi.js +9 -0
- package/src/Api/Internal/RowFormInternalApi.js +4 -1
- package/src/Api/Internal/ThemeInternalApi.d.ts +1 -0
- package/src/Api/Internal/ThemeInternalApi.js +3 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +5 -1
- package/src/View/Components/PreviewResultsPanel.js +7 -4
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -3
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -1
- package/src/agGrid/AdaptableAgGrid.js +1 -1
- package/src/agGrid/AgGridExportAdapter.js +6 -2
- package/src/components/Dropdown/index.js +3 -3
- package/src/env.js +2 -2
- package/src/layout-manager/src/index.js +6 -5
- package/src/types.d.ts +0 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/AdaptableOptions/IPushPullPluginOptions.d.ts +0 -35
- package/src/AdaptableOptions/IPushPullPluginOptions.js +0 -1
- package/src/Utilities/Interface/IPPStyle.d.ts +0 -31
- package/src/Utilities/Interface/IPPStyle.js +0 -1
|
@@ -81,9 +81,7 @@ class SmartEditViewPanelComponent extends React.Component {
|
|
|
81
81
|
!shouldDisable && (React.createElement(ButtonApply, { onClick: () => this.onApplyClick(), style: applyButtonStyle, className: `ab-${elementType}__SmartEdit__apply`, tooltip: "Apply Smart Edit", disabled: StringExtensions.IsNullOrEmpty(`${this.props.SmartEditValue}`) ||
|
|
82
82
|
(this.props.PreviewInfo != null &&
|
|
83
83
|
this.props.PreviewInfo.previewValidationSummary.validationResult == 'All'), accessLevel: this.props.accessLevel }, this.props.viewType === 'ToolPanel' && 'Apply Smart Edit')),
|
|
84
|
-
!shouldDisable && (React.createElement(AdaptablePopover, { headerText: "Preview Results", className: `ab-${elementType}__SmartEdit__info`,
|
|
85
|
-
// tooltipText="Preview Results"
|
|
86
|
-
bodyText: [previewPanel], MessageType: UIHelper.getMessageTypeByStatusColour(statusColour), useButton: true, showEvent: 'focus', hideEvent: "blur" })))));
|
|
84
|
+
!shouldDisable && (React.createElement(AdaptablePopover, { headerText: "Preview Results", className: `ab-${elementType}__SmartEdit__info`, bodyText: [previewPanel], popoverMinWidth: 360, popoverMaxWidth: 500, popupPadding: 0, MessageType: UIHelper.getMessageTypeByStatusColour(statusColour), useButton: true, showEvent: 'focus', hideEvent: "blur" })))));
|
|
87
85
|
}
|
|
88
86
|
checkSelectedCells() {
|
|
89
87
|
this.props.onSmartEditCheckSelectedCells();
|
|
@@ -16,6 +16,7 @@ import { IQueryLanguageService } from '../Utilities/Services/Interface/IQueryLan
|
|
|
16
16
|
import { IAlertService } from '../Utilities/Services/Interface/IAlertService';
|
|
17
17
|
import { ITeamSharingService } from '../Utilities/Services/Interface/ITeamSharingService';
|
|
18
18
|
import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
|
|
19
|
+
import { IThemeService } from '../Utilities/Services/Interface/IThemeService';
|
|
19
20
|
import { Fdc3Service } from '../Utilities/Services/Fdc3Service';
|
|
20
21
|
import { AnnotationsService } from '../Utilities/Services/AnnotationsService';
|
|
21
22
|
import { IModuleCollection } from '../Strategy/Interface/IModule';
|
|
@@ -92,9 +93,9 @@ export declare class AdaptableAgGrid implements IAdaptable {
|
|
|
92
93
|
Fdc3Service: Fdc3Service;
|
|
93
94
|
AnnotationsService: AnnotationsService;
|
|
94
95
|
FlashingCellService: FlashingCellService;
|
|
96
|
+
ThemeService: IThemeService;
|
|
95
97
|
private LicenseService;
|
|
96
98
|
private ChartingService;
|
|
97
|
-
private ThemeService;
|
|
98
99
|
private rowListeners;
|
|
99
100
|
private throttleFilterOnDataChange;
|
|
100
101
|
private debouncedSetSelectedRows;
|
|
@@ -196,9 +196,9 @@ export class AdaptableAgGrid {
|
|
|
196
196
|
Fdc3Service;
|
|
197
197
|
AnnotationsService;
|
|
198
198
|
FlashingCellService;
|
|
199
|
+
ThemeService;
|
|
199
200
|
LicenseService;
|
|
200
201
|
ChartingService;
|
|
201
|
-
ThemeService;
|
|
202
202
|
rowListeners;
|
|
203
203
|
throttleFilterOnDataChange;
|
|
204
204
|
debouncedSetSelectedRows;
|
|
@@ -347,7 +347,9 @@ export class AgGridExportAdapter {
|
|
|
347
347
|
let exportedColumnIds = [];
|
|
348
348
|
switch (report.ReportColumnScope) {
|
|
349
349
|
case 'AllColumns':
|
|
350
|
-
exportedColumnIds = exportableColumnIds.filter((colId) => this.isTreeDataGrid() ||
|
|
350
|
+
exportedColumnIds = exportableColumnIds.filter((colId) => this.isTreeDataGrid() ||
|
|
351
|
+
(!this.adaptableApi.columnApi.isAutoRowGroupColumn(colId) &&
|
|
352
|
+
!this.adaptableApi.columnApi.isSelectionColumn(colId)));
|
|
351
353
|
break;
|
|
352
354
|
case 'VisibleColumns':
|
|
353
355
|
exportedColumnIds = getVisibleColumnIds();
|
|
@@ -356,7 +358,9 @@ export class AgGridExportAdapter {
|
|
|
356
358
|
// in this case we have to map the auto-group columns to the real keys
|
|
357
359
|
exportedColumnIds = [
|
|
358
360
|
...groupColumnIds,
|
|
359
|
-
...exportedColumnIds.filter((columnId) => this.isTreeDataGrid() ||
|
|
361
|
+
...exportedColumnIds.filter((columnId) => this.isTreeDataGrid() ||
|
|
362
|
+
(!this.adaptableApi.columnApi.isAutoRowGroupColumn(columnId) &&
|
|
363
|
+
!this.adaptableApi.columnApi.isSelectionColumn(columnId))),
|
|
360
364
|
];
|
|
361
365
|
}
|
|
362
366
|
break;
|
|
@@ -33,7 +33,7 @@ const Dropdown = (props) => {
|
|
|
33
33
|
};
|
|
34
34
|
options = lazyOptions;
|
|
35
35
|
}
|
|
36
|
-
let placeholder = props.emptyText || props.placeholder || 'Select an option';
|
|
36
|
+
let placeholder = props.emptyText || (typeof props.placeholder === 'string' ? props.placeholder : null) || 'Select an option';
|
|
37
37
|
const finalOptions = options.map((option) => {
|
|
38
38
|
if (typeof option === 'string') {
|
|
39
39
|
option = {
|
|
@@ -63,7 +63,7 @@ const Dropdown = (props) => {
|
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
if (e.target === domRef.current) {
|
|
66
|
-
selectRef.current
|
|
66
|
+
selectRef.current?.focus();
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
const onBlur = () => {
|
|
@@ -77,7 +77,7 @@ const Dropdown = (props) => {
|
|
|
77
77
|
selectedText = placeholder;
|
|
78
78
|
}
|
|
79
79
|
//20 ... 20 16
|
|
80
|
-
const renderClearButton = () => (React.createElement(SimpleButton, { variant: "text", icon: "close", tone: "none", tooltip: "Clear", iconSize: 20, ...clearButtonProps, className: twMerge('twa:p-0 twa:mr-1 twa:z-10 twa:color-inherit', clearButtonProps
|
|
80
|
+
const renderClearButton = () => (React.createElement(SimpleButton, { variant: "text", icon: "close", tone: "none", tooltip: "Clear", iconSize: 20, ...clearButtonProps, className: twMerge('twa:p-0 twa:mr-1 twa:z-10 twa:color-inherit', clearButtonProps?.className), style: {
|
|
81
81
|
...(clearButtonProps ? clearButtonProps.style : null),
|
|
82
82
|
}, onClick: (e) => {
|
|
83
83
|
e.preventDefault();
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "22.0.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1773153884150 || Date.now(),
|
|
4
|
+
VERSION: "22.0.2" || '--current-version--',
|
|
5
5
|
};
|
|
@@ -403,11 +403,12 @@ export class LayoutManager extends LMEmitter {
|
|
|
403
403
|
PivotExpandLevel: prevLayout?.PivotExpandLevel ?? -1,
|
|
404
404
|
};
|
|
405
405
|
if (storePivotResultColumns) {
|
|
406
|
-
//
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
.
|
|
410
|
-
|
|
406
|
+
// Save all pivot result columns (including hidden ones from collapsed
|
|
407
|
+
// groups) in their current order, so the order is fully preserved.
|
|
408
|
+
const allPivotResultColumnsInOrder = this.gridApi
|
|
409
|
+
.getColumnState()
|
|
410
|
+
.filter((col) => pivotResultColumnsSet.has(col.colId));
|
|
411
|
+
pivotLayout.PivotResultColumnsOrder = allPivotResultColumnsInOrder.map((col) => col.colId);
|
|
411
412
|
}
|
|
412
413
|
if (layout.SuppressAggFuncInHeader) {
|
|
413
414
|
pivotLayout.SuppressAggFuncInHeader = layout.SuppressAggFuncInHeader;
|
package/src/types.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ export type { CellSummaryOptions } from './AdaptableOptions/CellSummaryOptions';
|
|
|
28
28
|
export type { CustomSortOptions, ColumnValuesComparer } from './AdaptableOptions/CustomSortOptions';
|
|
29
29
|
export type { NoteOptions, NotableCellContext } from './AdaptableOptions/NoteOptions';
|
|
30
30
|
export type { CommentOptions, CommentableCellContext, CommentLoadContext, } from './AdaptableOptions/CommentOptions';
|
|
31
|
-
export type { IPushPullPluginOptions } from './AdaptableOptions/IPushPullPluginOptions';
|
|
32
31
|
export type { LayoutOptions, LayoutViewOptions, LayoutTagOptions, LayoutExtendedContext, AutoGenerateTagsForLayoutsContext, PivotPreviewColumnsContext, TableLayoutCreationDefaultProperties, PivotLayoutCreationDefaultProperties, LayoutCreationDefaultProperties, LayoutCreationDefaultPropertiesContext, } from './AdaptableOptions/LayoutOptions';
|
|
33
32
|
export type { ChartingOptions, ChartContainer, ExternalChartingContext, ExternalChartingOptions, SaveChartBehaviour, } from './AdaptableOptions/ChartingOptions';
|
|
34
33
|
export type { OpenFinPluginOptions } from './AdaptableOptions/OpenFinPluginOptions';
|