@adaptabletools/adaptable-cjs 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-cjs",
3
- "version": "19.2.0",
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",
@@ -322,6 +322,7 @@ const DefaultAdaptableOptions = {
322
322
  navigation: {},
323
323
  alwaysShowInDashboard: false,
324
324
  alwaysShowInToolPanel: false,
325
+ showModuleIcons: true
325
326
  },
326
327
  fdc3Options: {
327
328
  enableLogging: false,
@@ -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 Row Forms
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 on Server
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?: boolean;
103
+ defaultColDefEditableValue: boolean;
104
104
  }
@@ -13,10 +13,11 @@ export interface SettingsPanelOptions {
13
13
  */
14
14
  title?: string;
15
15
  /**
16
- * Settings Panel Icon: `ConfigurationIcon`, `ApplicationIcon` or custom Icon
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. OpenFin notifications)
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 Adaptable (e.g. Badge Styles and Buttons)
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?: boolean): boolean | undefined;
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 (typeof cellEditable === 'function') {
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;
@@ -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;
@@ -12,6 +12,7 @@ class CellPopupService {
12
12
  this.adaptable = api.internalApi.getAdaptableInstance();
13
13
  this.adaptable.api.eventApi.on('AdaptableReady', () => this.handleAdaptableReady());
14
14
  }
15
+ destroy() { }
15
16
  getAdaptableState() {
16
17
  return this.api.internalApi.getAdaptableState();
17
18
  }
@@ -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, _14, _15;
2982
2981
  if (!config) {
2983
2982
  config = {
2984
2983
  unmount: true,
@@ -3112,42 +3111,46 @@ 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
- (_j = (_h = this.CalculatedColumnExpressionService) === null || _h === void 0 ? void 0 : _h.destroy) === null || _j === void 0 ? void 0 : _j.call(_h);
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
- (_l = (_k = this.DataService) === null || _k === void 0 ? void 0 : _k.destroy) === null || _l === void 0 ? void 0 : _l.call(_k);
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
- (_o = (_m = this.Fdc3Service) === null || _m === void 0 ? void 0 : _m.destroy) === null || _o === void 0 ? void 0 : _o.call(_m);
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
- (_q = (_p = this.ModuleService) === null || _p === void 0 ? void 0 : _p.destroy) === null || _q === void 0 ? void 0 : _q.call(_p);
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
- (_s = (_r = this.ValidationService) === null || _r === void 0 ? void 0 : _r.destroy) === null || _s === void 0 ? void 0 : _s.call(_r);
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
- (_u = (_t = this.QueryLanguageService) === null || _t === void 0 ? void 0 : _t.destroy) === null || _u === void 0 ? void 0 : _u.call(_t);
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
- (_w = (_v = this.AlertService) === null || _v === void 0 ? void 0 : _v.destroy) === null || _w === void 0 ? void 0 : _w.call(_v);
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
- (_y = (_x = this.TeamSharingService) === null || _x === void 0 ? void 0 : _x.destroy) === null || _y === void 0 ? void 0 : _y.call(_x);
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
- (_0 = (_z = this.RowEditService) === null || _z === void 0 ? void 0 : _z.destroy) === null || _0 === void 0 ? void 0 : _0.call(_z);
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
- (_2 = (_1 = this.MetamodelService) === null || _1 === void 0 ? void 0 : _1.destroy) === null || _2 === void 0 ? void 0 : _2.call(_1);
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
- (_4 = (_3 = this.LicenseService) === null || _3 === void 0 ? void 0 : _3.destroy) === null || _4 === void 0 ? void 0 : _4.call(_3);
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
- (_6 = (_5 = this.FlashingCellService) === null || _5 === void 0 ? void 0 : _5.destroy) === null || _6 === void 0 ? void 0 : _6.call(_5);
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
- (_8 = (_7 = this.ThemeService) === null || _7 === void 0 ? void 0 : _7.destroy) === null || _8 === void 0 ? void 0 : _8.call(_7);
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
- (_10 = (_9 = this.ChartingService) === null || _9 === void 0 ? void 0 : _9.destroy) === null || _10 === void 0 ? void 0 : _10.call(_9);
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
- (_11 = this.unmountLoadingScreen) === null || _11 === void 0 ? void 0 : _11.call(this);
3146
+ (_13 = (_12 = this.CellPopupService) === null || _12 === void 0 ? void 0 : _12.destroy) === null || _13 === void 0 ? void 0 : _13.call(_12);
3147
+ this.CellPopupService = null;
3148
+ (_14 = this.unmountLoadingScreen) === null || _14 === void 0 ? void 0 : _14.call(this);
3146
3149
  this.unmountLoadingScreen = null;
3147
3150
  if (config === null || config === void 0 ? void 0 : config.unmount) {
3148
3151
  const abContainerElement = this.getAdaptableContainerElement();
3149
3152
  if (abContainerElement != null) {
3150
- (_12 = this.unmountReactRoot) === null || _12 === void 0 ? void 0 : _12.call(this);
3153
+ (_15 = this.unmountReactRoot) === null || _15 === void 0 ? void 0 : _15.call(this);
3151
3154
  }
3152
3155
  this.unmountReactRoot = null;
3153
3156
  }
@@ -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
- return this.adaptableApi.gridApi.internalApi.isCellEditableAccordingToEditOptions(gridCell, getOriginalColDefEditable());
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: 1732529781392 || Date.now(),
6
- VERSION: "19.2.0" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1732626175201 || Date.now(),
6
+ VERSION: "19.2.1-canary.1" || '--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
- isOpt?: undefined;
1774
- })[];
1768
+ }[];
1775
1769
  };
1776
1770
  CellHighlightInfo: {
1777
1771
  name: string;