@adaptabletools/adaptable-cjs 19.2.0 → 19.2.1-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 +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/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -1
- package/src/agGrid/AdaptableAgGrid.js +20 -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.cjs.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-cjs",
|
|
3
|
-
"version": "19.2.0",
|
|
3
|
+
"version": "19.2.1-canary.0",
|
|
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
|
}
|
|
@@ -514,10 +514,11 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
514
514
|
isCellEditableAccordingToEditOptions(gridCell, defaultColDefinitionEditableValue) {
|
|
515
515
|
var _a;
|
|
516
516
|
const cellEditable = (_a = this.getEditOptions()) === null || _a === void 0 ? void 0 : _a.isCellEditable;
|
|
517
|
-
if (
|
|
517
|
+
if (cellEditable) {
|
|
518
518
|
const cellEditableContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { gridCell, defaultColDefEditableValue: defaultColDefinitionEditableValue });
|
|
519
519
|
return cellEditable(cellEditableContext);
|
|
520
520
|
}
|
|
521
|
+
return undefined;
|
|
521
522
|
}
|
|
522
523
|
}
|
|
523
524
|
exports.GridInternalApi = GridInternalApi;
|
|
@@ -50,7 +50,7 @@ const Navigation = (props) => {
|
|
|
50
50
|
React.createElement("button", { type: "button", className: `${baseClassName}__Button`, onClick: () => {
|
|
51
51
|
dispatch(menuItem.reduxAction);
|
|
52
52
|
}, "data-name": dataName },
|
|
53
|
-
menuItem.icon && (React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: menuItem.icon, iconClassName: `${baseClassName}__Icon` })),
|
|
53
|
+
props.api.optionsApi.getSettingsPanelOptions().showModuleIcons && menuItem.icon && (React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: menuItem.icon, iconClassName: `${baseClassName}__Icon` })),
|
|
54
54
|
customIcon && React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: customIcon }),
|
|
55
55
|
menuItem.label)));
|
|
56
56
|
}))));
|
|
@@ -76,7 +76,7 @@ const GridInfoPopup = (props) => {
|
|
|
76
76
|
React.createElement(Panel_1.default, { flex: 1 },
|
|
77
77
|
React.createElement(Tabs_1.Tabs, null,
|
|
78
78
|
React.createElement(Tabs_1.Tabs.Tab, null, "Grid Summary"),
|
|
79
|
-
React.createElement(Tabs_1.Tabs.Tab, null, "Config"),
|
|
79
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Grid Config"),
|
|
80
80
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
81
81
|
React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { margin: 2, colItems: propValueColItems, items: gridSummaries })),
|
|
82
82
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
@@ -1789,8 +1789,7 @@ class AdaptableAgGrid {
|
|
|
1789
1789
|
return acc;
|
|
1790
1790
|
}
|
|
1791
1791
|
const ColumnGroupId = columnGroup.getGroupId();
|
|
1792
|
-
const AllowGroupSplit = !columnGroup.getProvidedColumnGroup().getColGroupDef()
|
|
1793
|
-
.marryChildren;
|
|
1792
|
+
const AllowGroupSplit = !columnGroup.getProvidedColumnGroup().getColGroupDef().marryChildren;
|
|
1794
1793
|
const FriendlyName = (_c = columnGroup.getProvidedColumnGroup().getColGroupDef().headerName) !== null && _c !== void 0 ? _c : ColumnGroupId;
|
|
1795
1794
|
const columnsInGroup = columnGroup.getLeafColumns();
|
|
1796
1795
|
columnsInGroup.forEach((col) => {
|
|
@@ -2978,7 +2977,7 @@ class AdaptableAgGrid {
|
|
|
2978
2977
|
return this.agGridAdapter.getRegisteredModules();
|
|
2979
2978
|
}
|
|
2980
2979
|
destroy(config) {
|
|
2981
|
-
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;
|
|
2980
|
+
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;
|
|
2982
2981
|
if (!config) {
|
|
2983
2982
|
config = {
|
|
2984
2983
|
unmount: true,
|
|
@@ -3112,42 +3111,44 @@ class AdaptableAgGrid {
|
|
|
3112
3111
|
this.DANGER_USE_GETTER_agGridContainerElement = null;
|
|
3113
3112
|
(_g = this.adaptableStore) === null || _g === void 0 ? void 0 : _g.destroy();
|
|
3114
3113
|
this.adaptableStore = null;
|
|
3114
|
+
(_h = this.adaptableModules) === null || _h === void 0 ? void 0 : _h.clear();
|
|
3115
|
+
this.adaptableModules = null;
|
|
3115
3116
|
this.adaptableOptions = null;
|
|
3116
3117
|
this.adaptableStatusPanelKeys = null;
|
|
3117
|
-
(
|
|
3118
|
+
(_k = (_j = this.CalculatedColumnExpressionService) === null || _j === void 0 ? void 0 : _j.destroy) === null || _k === void 0 ? void 0 : _k.call(_j);
|
|
3118
3119
|
this.CalculatedColumnExpressionService = null;
|
|
3119
|
-
(
|
|
3120
|
+
(_m = (_l = this.DataService) === null || _l === void 0 ? void 0 : _l.destroy) === null || _m === void 0 ? void 0 : _m.call(_l);
|
|
3120
3121
|
this.DataService = null;
|
|
3121
|
-
(
|
|
3122
|
+
(_p = (_o = this.Fdc3Service) === null || _o === void 0 ? void 0 : _o.destroy) === null || _p === void 0 ? void 0 : _p.call(_o);
|
|
3122
3123
|
this.Fdc3Service = null;
|
|
3123
|
-
(
|
|
3124
|
+
(_r = (_q = this.ModuleService) === null || _q === void 0 ? void 0 : _q.destroy) === null || _r === void 0 ? void 0 : _r.call(_q);
|
|
3124
3125
|
this.ModuleService = null;
|
|
3125
|
-
(
|
|
3126
|
+
(_t = (_s = this.ValidationService) === null || _s === void 0 ? void 0 : _s.destroy) === null || _t === void 0 ? void 0 : _t.call(_s);
|
|
3126
3127
|
this.ValidationService = null;
|
|
3127
|
-
(
|
|
3128
|
+
(_v = (_u = this.QueryLanguageService) === null || _u === void 0 ? void 0 : _u.destroy) === null || _v === void 0 ? void 0 : _v.call(_u);
|
|
3128
3129
|
this.QueryLanguageService = null;
|
|
3129
|
-
(
|
|
3130
|
+
(_x = (_w = this.AlertService) === null || _w === void 0 ? void 0 : _w.destroy) === null || _x === void 0 ? void 0 : _x.call(_w);
|
|
3130
3131
|
this.AlertService = null;
|
|
3131
|
-
(
|
|
3132
|
+
(_z = (_y = this.TeamSharingService) === null || _y === void 0 ? void 0 : _y.destroy) === null || _z === void 0 ? void 0 : _z.call(_y);
|
|
3132
3133
|
this.TeamSharingService = null;
|
|
3133
|
-
(
|
|
3134
|
+
(_1 = (_0 = this.RowEditService) === null || _0 === void 0 ? void 0 : _0.destroy) === null || _1 === void 0 ? void 0 : _1.call(_0);
|
|
3134
3135
|
this.RowEditService = null;
|
|
3135
|
-
(
|
|
3136
|
+
(_3 = (_2 = this.MetamodelService) === null || _2 === void 0 ? void 0 : _2.destroy) === null || _3 === void 0 ? void 0 : _3.call(_2);
|
|
3136
3137
|
this.MetamodelService = null;
|
|
3137
|
-
(
|
|
3138
|
+
(_5 = (_4 = this.LicenseService) === null || _4 === void 0 ? void 0 : _4.destroy) === null || _5 === void 0 ? void 0 : _5.call(_4);
|
|
3138
3139
|
this.LicenseService = null;
|
|
3139
|
-
(
|
|
3140
|
+
(_7 = (_6 = this.FlashingCellService) === null || _6 === void 0 ? void 0 : _6.destroy) === null || _7 === void 0 ? void 0 : _7.call(_6);
|
|
3140
3141
|
this.FlashingCellService = null;
|
|
3141
|
-
(
|
|
3142
|
+
(_9 = (_8 = this.ThemeService) === null || _8 === void 0 ? void 0 : _8.destroy) === null || _9 === void 0 ? void 0 : _9.call(_8);
|
|
3142
3143
|
this.ThemeService = null;
|
|
3143
|
-
(
|
|
3144
|
+
(_11 = (_10 = this.ChartingService) === null || _10 === void 0 ? void 0 : _10.destroy) === null || _11 === void 0 ? void 0 : _11.call(_10);
|
|
3144
3145
|
this.ChartingService = null;
|
|
3145
|
-
(
|
|
3146
|
+
(_12 = this.unmountLoadingScreen) === null || _12 === void 0 ? void 0 : _12.call(this);
|
|
3146
3147
|
this.unmountLoadingScreen = null;
|
|
3147
3148
|
if (config === null || config === void 0 ? void 0 : config.unmount) {
|
|
3148
3149
|
const abContainerElement = this.getAdaptableContainerElement();
|
|
3149
3150
|
if (abContainerElement != null) {
|
|
3150
|
-
(
|
|
3151
|
+
(_13 = this.unmountReactRoot) === null || _13 === void 0 ? void 0 : _13.call(this);
|
|
3151
3152
|
}
|
|
3152
3153
|
this.unmountReactRoot = null;
|
|
3153
3154
|
}
|
|
@@ -440,7 +440,10 @@ class AgGridColumnAdapter {
|
|
|
440
440
|
// 1. evaluate EditOptions.isCellEditable if provided
|
|
441
441
|
if (this.adaptableApi.gridApi.internalApi.hasCellEditableAccordingToEditOptions()) {
|
|
442
442
|
const gridCell = this.adaptableInstance.getGridCellFromRowNode(params.node, params.column.getColId());
|
|
443
|
-
|
|
443
|
+
const editOptionsEditability = this.adaptableApi.gridApi.internalApi.isCellEditableAccordingToEditOptions(gridCell, getOriginalColDefEditable());
|
|
444
|
+
if (editOptionsEditability) {
|
|
445
|
+
return editOptionsEditability;
|
|
446
|
+
}
|
|
444
447
|
}
|
|
445
448
|
// 2. otherwise, fallback to colDef.editable
|
|
446
449
|
return getOriginalColDefEditable();
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
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" || '',
|
|
5
|
-
PUBLISH_TIMESTAMP:
|
|
6
|
-
VERSION: "19.2.0" || '--current-version--',
|
|
5
|
+
PUBLISH_TIMESTAMP: 1732624935922 || Date.now(),
|
|
6
|
+
VERSION: "19.2.1-canary.0" || '--current-version--',
|
|
7
7
|
};
|
|
@@ -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;
|