@adaptabletools/adaptable 19.2.0 → 19.2.1-canary.1
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 +1 -1
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +1 -0
- package/src/AdaptableOptions/EditOptions.d.ts +3 -3
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/Api/Internal/GridInternalApi.d.ts +1 -1
- package/src/Api/Internal/GridInternalApi.js +2 -1
- package/src/Utilities/Services/CellPopupService.d.ts +3 -1
- package/src/Utilities/Services/CellPopupService.js +1 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -1
- package/src/agGrid/AdaptableAgGrid.js +22 -19
- package/src/agGrid/AgGridColumnAdapter.js +4 -1
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +2 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.1-canary.1",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -3,11 +3,11 @@ import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedI
|
|
|
3
3
|
import { MathOperation } from '../PredefinedConfig/Common/Enums';
|
|
4
4
|
import { GridCell } from '../PredefinedConfig/Selection/GridCell';
|
|
5
5
|
/**
|
|
6
|
-
* Options related to Editing in AdapTable - includes Server Validation, Smart Edit Operations and
|
|
6
|
+
* Options related to Editing in AdapTable - includes Server Validation, Smart Edit Operations and Cell Editabiility
|
|
7
7
|
*/
|
|
8
8
|
export interface EditOptions<TData = any> {
|
|
9
9
|
/**
|
|
10
|
-
* Function to validate AdapTable data edits
|
|
10
|
+
* Function to validate AdapTable data edits remotely
|
|
11
11
|
*/
|
|
12
12
|
validateOnServer?: (serverValidationContext: ServerValidationContext<TData>) => Promise<ServerValidationResult>;
|
|
13
13
|
/**
|
|
@@ -100,5 +100,5 @@ export interface CellEditableContext<TData = any> extends BaseContext {
|
|
|
100
100
|
/**
|
|
101
101
|
* Default editability according to the AG Grid Column Definition (`ColDef.editable`)
|
|
102
102
|
*/
|
|
103
|
-
defaultColDefEditableValue
|
|
103
|
+
defaultColDefEditableValue: boolean;
|
|
104
104
|
}
|
|
@@ -13,10 +13,11 @@ export interface SettingsPanelOptions {
|
|
|
13
13
|
*/
|
|
14
14
|
title?: string;
|
|
15
15
|
/**
|
|
16
|
-
* Settings Panel
|
|
16
|
+
* Icon shown in top left of Settings Panel: Can be `ConfigurationIcon`, `ApplicationIcon` or custom Icon
|
|
17
17
|
* @defaultValue `ConfigurationIcon`
|
|
18
18
|
*/
|
|
19
19
|
icon?: 'ConfigurationIcon' | 'ApplicationIcon' | AdaptableIcon;
|
|
20
|
+
showModuleIcons?: boolean;
|
|
20
21
|
/**
|
|
21
22
|
* Whether a Settings Panel button should always be displayed in `ModuleButtons` area of Dashboard
|
|
22
23
|
* @defaultValue false
|
|
@@ -17,13 +17,13 @@ export interface UserInterfaceOptions<TData = any> {
|
|
|
17
17
|
*/
|
|
18
18
|
useCustomMacLikeScrollbars?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
* The application icon to appear in Dashboard and elsewhere (e.g.
|
|
20
|
+
* The application icon to appear in Dashboard and elsewhere (e.g. in Notifications)
|
|
21
21
|
*
|
|
22
22
|
* @defaultValue null
|
|
23
23
|
*/
|
|
24
24
|
applicationIcon?: AdaptableIcon;
|
|
25
25
|
/**
|
|
26
|
-
* Bespoke icons that can be used in
|
|
26
|
+
* Bespoke icons that can be used in AdapTable (e.g. Badge Styles and Buttons)
|
|
27
27
|
*/
|
|
28
28
|
customIcons?: CustomIcon[];
|
|
29
29
|
/**
|
|
@@ -120,5 +120,5 @@ export declare class GridInternalApi extends ApiBase {
|
|
|
120
120
|
*
|
|
121
121
|
* DO NOT USE THIS METHOD DIRECTLY - use `GridApi.isCellEditable` instead
|
|
122
122
|
*/
|
|
123
|
-
isCellEditableAccordingToEditOptions(gridCell: GridCell, defaultColDefinitionEditableValue
|
|
123
|
+
isCellEditableAccordingToEditOptions(gridCell: GridCell, defaultColDefinitionEditableValue: boolean): boolean | undefined;
|
|
124
124
|
}
|
|
@@ -510,9 +510,10 @@ export class GridInternalApi extends ApiBase {
|
|
|
510
510
|
isCellEditableAccordingToEditOptions(gridCell, defaultColDefinitionEditableValue) {
|
|
511
511
|
var _a;
|
|
512
512
|
const cellEditable = (_a = this.getEditOptions()) === null || _a === void 0 ? void 0 : _a.isCellEditable;
|
|
513
|
-
if (
|
|
513
|
+
if (cellEditable) {
|
|
514
514
|
const cellEditableContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { gridCell, defaultColDefEditableValue: defaultColDefinitionEditableValue });
|
|
515
515
|
return cellEditable(cellEditableContext);
|
|
516
516
|
}
|
|
517
|
+
return undefined;
|
|
517
518
|
}
|
|
518
519
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
2
2
|
import { AdaptableApi, CellAddress } from '../../types';
|
|
3
|
+
import { IAdaptableService } from './Interface/IAdaptableService';
|
|
3
4
|
/**
|
|
4
5
|
* This service controls the interaction between notes and comments
|
|
5
6
|
*/
|
|
6
|
-
export declare class CellPopupService {
|
|
7
|
+
export declare class CellPopupService implements IAdaptableService {
|
|
7
8
|
private api;
|
|
8
9
|
adaptable: IAdaptable;
|
|
9
10
|
constructor(api: AdaptableApi);
|
|
11
|
+
destroy(): void;
|
|
10
12
|
private getAdaptableState;
|
|
11
13
|
private dispatchAction;
|
|
12
14
|
static isSameAddress(a: CellAddress, b: CellAddress): boolean;
|
|
@@ -8,6 +8,7 @@ export class CellPopupService {
|
|
|
8
8
|
this.adaptable = api.internalApi.getAdaptableInstance();
|
|
9
9
|
this.adaptable.api.eventApi.on('AdaptableReady', () => this.handleAdaptableReady());
|
|
10
10
|
}
|
|
11
|
+
destroy() { }
|
|
11
12
|
getAdaptableState() {
|
|
12
13
|
return this.api.internalApi.getAdaptableState();
|
|
13
14
|
}
|
|
@@ -46,7 +46,7 @@ export const Navigation = (props) => {
|
|
|
46
46
|
React.createElement("button", { type: "button", className: `${baseClassName}__Button`, onClick: () => {
|
|
47
47
|
dispatch(menuItem.reduxAction);
|
|
48
48
|
}, "data-name": dataName },
|
|
49
|
-
menuItem.icon && (React.createElement(AdaptableIconComponent, { icon: menuItem.icon, iconClassName: `${baseClassName}__Icon` })),
|
|
49
|
+
props.api.optionsApi.getSettingsPanelOptions().showModuleIcons && menuItem.icon && (React.createElement(AdaptableIconComponent, { icon: menuItem.icon, iconClassName: `${baseClassName}__Icon` })),
|
|
50
50
|
customIcon && React.createElement(AdaptableIconComponent, { icon: customIcon }),
|
|
51
51
|
menuItem.label)));
|
|
52
52
|
}))));
|
|
@@ -72,7 +72,7 @@ export const GridInfoPopup = (props) => {
|
|
|
72
72
|
React.createElement(Panel, { flex: 1 },
|
|
73
73
|
React.createElement(Tabs, null,
|
|
74
74
|
React.createElement(Tabs.Tab, null, "Grid Summary"),
|
|
75
|
-
React.createElement(Tabs.Tab, null, "Config"),
|
|
75
|
+
React.createElement(Tabs.Tab, null, "Grid Config"),
|
|
76
76
|
React.createElement(Tabs.Content, null,
|
|
77
77
|
React.createElement(AdaptableObjectCollection, { margin: 2, colItems: propValueColItems, items: gridSummaries })),
|
|
78
78
|
React.createElement(Tabs.Content, null,
|
|
@@ -1785,8 +1785,7 @@ export class AdaptableAgGrid {
|
|
|
1785
1785
|
return acc;
|
|
1786
1786
|
}
|
|
1787
1787
|
const ColumnGroupId = columnGroup.getGroupId();
|
|
1788
|
-
const AllowGroupSplit = !columnGroup.getProvidedColumnGroup().getColGroupDef()
|
|
1789
|
-
.marryChildren;
|
|
1788
|
+
const AllowGroupSplit = !columnGroup.getProvidedColumnGroup().getColGroupDef().marryChildren;
|
|
1790
1789
|
const FriendlyName = (_c = columnGroup.getProvidedColumnGroup().getColGroupDef().headerName) !== null && _c !== void 0 ? _c : ColumnGroupId;
|
|
1791
1790
|
const columnsInGroup = columnGroup.getLeafColumns();
|
|
1792
1791
|
columnsInGroup.forEach((col) => {
|
|
@@ -2974,7 +2973,7 @@ export class AdaptableAgGrid {
|
|
|
2974
2973
|
return this.agGridAdapter.getRegisteredModules();
|
|
2975
2974
|
}
|
|
2976
2975
|
destroy(config) {
|
|
2977
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12;
|
|
2976
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15;
|
|
2978
2977
|
if (!config) {
|
|
2979
2978
|
config = {
|
|
2980
2979
|
unmount: true,
|
|
@@ -3108,42 +3107,46 @@ export class AdaptableAgGrid {
|
|
|
3108
3107
|
this.DANGER_USE_GETTER_agGridContainerElement = null;
|
|
3109
3108
|
(_g = this.adaptableStore) === null || _g === void 0 ? void 0 : _g.destroy();
|
|
3110
3109
|
this.adaptableStore = null;
|
|
3110
|
+
(_h = this.adaptableModules) === null || _h === void 0 ? void 0 : _h.clear();
|
|
3111
|
+
this.adaptableModules = null;
|
|
3111
3112
|
this.adaptableOptions = null;
|
|
3112
3113
|
this.adaptableStatusPanelKeys = null;
|
|
3113
|
-
(
|
|
3114
|
+
(_k = (_j = this.CalculatedColumnExpressionService) === null || _j === void 0 ? void 0 : _j.destroy) === null || _k === void 0 ? void 0 : _k.call(_j);
|
|
3114
3115
|
this.CalculatedColumnExpressionService = null;
|
|
3115
|
-
(
|
|
3116
|
+
(_m = (_l = this.DataService) === null || _l === void 0 ? void 0 : _l.destroy) === null || _m === void 0 ? void 0 : _m.call(_l);
|
|
3116
3117
|
this.DataService = null;
|
|
3117
|
-
(
|
|
3118
|
+
(_p = (_o = this.Fdc3Service) === null || _o === void 0 ? void 0 : _o.destroy) === null || _p === void 0 ? void 0 : _p.call(_o);
|
|
3118
3119
|
this.Fdc3Service = null;
|
|
3119
|
-
(
|
|
3120
|
+
(_r = (_q = this.ModuleService) === null || _q === void 0 ? void 0 : _q.destroy) === null || _r === void 0 ? void 0 : _r.call(_q);
|
|
3120
3121
|
this.ModuleService = null;
|
|
3121
|
-
(
|
|
3122
|
+
(_t = (_s = this.ValidationService) === null || _s === void 0 ? void 0 : _s.destroy) === null || _t === void 0 ? void 0 : _t.call(_s);
|
|
3122
3123
|
this.ValidationService = null;
|
|
3123
|
-
(
|
|
3124
|
+
(_v = (_u = this.QueryLanguageService) === null || _u === void 0 ? void 0 : _u.destroy) === null || _v === void 0 ? void 0 : _v.call(_u);
|
|
3124
3125
|
this.QueryLanguageService = null;
|
|
3125
|
-
(
|
|
3126
|
+
(_x = (_w = this.AlertService) === null || _w === void 0 ? void 0 : _w.destroy) === null || _x === void 0 ? void 0 : _x.call(_w);
|
|
3126
3127
|
this.AlertService = null;
|
|
3127
|
-
(
|
|
3128
|
+
(_z = (_y = this.TeamSharingService) === null || _y === void 0 ? void 0 : _y.destroy) === null || _z === void 0 ? void 0 : _z.call(_y);
|
|
3128
3129
|
this.TeamSharingService = null;
|
|
3129
|
-
(
|
|
3130
|
+
(_1 = (_0 = this.RowEditService) === null || _0 === void 0 ? void 0 : _0.destroy) === null || _1 === void 0 ? void 0 : _1.call(_0);
|
|
3130
3131
|
this.RowEditService = null;
|
|
3131
|
-
(
|
|
3132
|
+
(_3 = (_2 = this.MetamodelService) === null || _2 === void 0 ? void 0 : _2.destroy) === null || _3 === void 0 ? void 0 : _3.call(_2);
|
|
3132
3133
|
this.MetamodelService = null;
|
|
3133
|
-
(
|
|
3134
|
+
(_5 = (_4 = this.LicenseService) === null || _4 === void 0 ? void 0 : _4.destroy) === null || _5 === void 0 ? void 0 : _5.call(_4);
|
|
3134
3135
|
this.LicenseService = null;
|
|
3135
|
-
(
|
|
3136
|
+
(_7 = (_6 = this.FlashingCellService) === null || _6 === void 0 ? void 0 : _6.destroy) === null || _7 === void 0 ? void 0 : _7.call(_6);
|
|
3136
3137
|
this.FlashingCellService = null;
|
|
3137
|
-
(
|
|
3138
|
+
(_9 = (_8 = this.ThemeService) === null || _8 === void 0 ? void 0 : _8.destroy) === null || _9 === void 0 ? void 0 : _9.call(_8);
|
|
3138
3139
|
this.ThemeService = null;
|
|
3139
|
-
(
|
|
3140
|
+
(_11 = (_10 = this.ChartingService) === null || _10 === void 0 ? void 0 : _10.destroy) === null || _11 === void 0 ? void 0 : _11.call(_10);
|
|
3140
3141
|
this.ChartingService = null;
|
|
3141
|
-
(
|
|
3142
|
+
(_13 = (_12 = this.CellPopupService) === null || _12 === void 0 ? void 0 : _12.destroy) === null || _13 === void 0 ? void 0 : _13.call(_12);
|
|
3143
|
+
this.CellPopupService = null;
|
|
3144
|
+
(_14 = this.unmountLoadingScreen) === null || _14 === void 0 ? void 0 : _14.call(this);
|
|
3142
3145
|
this.unmountLoadingScreen = null;
|
|
3143
3146
|
if (config === null || config === void 0 ? void 0 : config.unmount) {
|
|
3144
3147
|
const abContainerElement = this.getAdaptableContainerElement();
|
|
3145
3148
|
if (abContainerElement != null) {
|
|
3146
|
-
(
|
|
3149
|
+
(_15 = this.unmountReactRoot) === null || _15 === void 0 ? void 0 : _15.call(this);
|
|
3147
3150
|
}
|
|
3148
3151
|
this.unmountReactRoot = null;
|
|
3149
3152
|
}
|
|
@@ -435,7 +435,10 @@ export class AgGridColumnAdapter {
|
|
|
435
435
|
// 1. evaluate EditOptions.isCellEditable if provided
|
|
436
436
|
if (this.adaptableApi.gridApi.internalApi.hasCellEditableAccordingToEditOptions()) {
|
|
437
437
|
const gridCell = this.adaptableInstance.getGridCellFromRowNode(params.node, params.column.getColId());
|
|
438
|
-
|
|
438
|
+
const editOptionsEditability = this.adaptableApi.gridApi.internalApi.isCellEditableAccordingToEditOptions(gridCell, getOriginalColDefEditable());
|
|
439
|
+
if (editOptionsEditability) {
|
|
440
|
+
return editOptionsEditability;
|
|
441
|
+
}
|
|
439
442
|
}
|
|
440
443
|
// 2. otherwise, fallback to colDef.editable
|
|
441
444
|
return getOriginalColDefEditable();
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
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: "19.2.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1732626145480 || Date.now(),
|
|
4
|
+
VERSION: "19.2.1-canary.1" || '--current-version--',
|
|
5
5
|
};
|
|
@@ -1761,17 +1761,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1761
1761
|
name: string;
|
|
1762
1762
|
kind: string;
|
|
1763
1763
|
desc: string;
|
|
1764
|
-
props:
|
|
1765
|
-
name: string;
|
|
1766
|
-
kind: string;
|
|
1767
|
-
desc: string;
|
|
1768
|
-
isOpt: boolean;
|
|
1769
|
-
} | {
|
|
1764
|
+
props: {
|
|
1770
1765
|
name: string;
|
|
1771
1766
|
kind: string;
|
|
1772
1767
|
desc: string;
|
|
1773
|
-
|
|
1774
|
-
})[];
|
|
1768
|
+
}[];
|
|
1775
1769
|
};
|
|
1776
1770
|
CellHighlightInfo: {
|
|
1777
1771
|
name: string;
|