@adaptabletools/adaptable-cjs 19.1.2 → 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.
Files changed (67) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableOptions/CommentOptions.d.ts +1 -1
  3. package/src/{agGrid/defaultAdaptableOptions.d.ts → AdaptableOptions/DefaultAdaptableOptions.d.ts} +1 -1
  4. package/src/{agGrid/defaultAdaptableOptions.js → AdaptableOptions/DefaultAdaptableOptions.js} +3 -2
  5. package/src/AdaptableOptions/EditOptions.d.ts +6 -2
  6. package/src/AdaptableOptions/NoteOptions.d.ts +1 -1
  7. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -1
  8. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
  9. package/src/Api/GridApi.d.ts +3 -3
  10. package/src/Api/Implementation/ActionRowApiImpl.js +2 -2
  11. package/src/Api/Implementation/AlertApiImpl.js +6 -6
  12. package/src/Api/Implementation/ChartingApiImpl.js +4 -4
  13. package/src/Api/Implementation/ColumnApiImpl.js +5 -5
  14. package/src/Api/Implementation/ColumnFilterApiImpl.js +9 -9
  15. package/src/Api/Implementation/ColumnScopeApiImpl.js +8 -8
  16. package/src/Api/Implementation/ConfigApiImpl.js +2 -2
  17. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +1 -1
  18. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -2
  19. package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
  20. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
  21. package/src/Api/Implementation/GridApiImpl.js +16 -19
  22. package/src/Api/Implementation/LayoutApiImpl.js +4 -4
  23. package/src/Api/Implementation/PredicateApiImpl.js +2 -2
  24. package/src/Api/Implementation/ScheduleApiImpl.js +2 -2
  25. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -1
  26. package/src/Api/Implementation/ThemeApiImpl.js +2 -2
  27. package/src/Api/Implementation/UserInterfaceApiImpl.js +6 -6
  28. package/src/Api/Internal/ActionRowInternalApi.js +9 -10
  29. package/src/Api/Internal/AdaptableInternalApi.js +2 -2
  30. package/src/Api/Internal/AlertInternalApi.js +3 -3
  31. package/src/Api/Internal/CalculatedColumnInternalApi.js +1 -1
  32. package/src/Api/Internal/ChartingInternalApi.js +7 -7
  33. package/src/Api/Internal/ColumnFilterInternalApi.js +8 -8
  34. package/src/Api/Internal/CustomSortInternalApi.js +1 -1
  35. package/src/Api/Internal/DashboardInternalApi.js +1 -1
  36. package/src/Api/Internal/DataSetInternalApi.js +1 -1
  37. package/src/Api/Internal/ExportInternalApi.js +37 -37
  38. package/src/Api/Internal/ExpressionInternalApi.js +1 -1
  39. package/src/Api/Internal/FlashingCellInternalApi.js +1 -1
  40. package/src/Api/Internal/FormatColumnInternalApi.js +8 -8
  41. package/src/Api/Internal/GridInternalApi.d.ts +7 -0
  42. package/src/Api/Internal/GridInternalApi.js +21 -3
  43. package/src/Api/Internal/LayoutInternalApi.js +3 -3
  44. package/src/Api/Internal/StyledColumnInternalApi.js +6 -6
  45. package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
  46. package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
  47. package/src/Api/Internal/UserInterfaceInternalApi.js +1 -1
  48. package/src/Api/StatusBarApi.d.ts +2 -2
  49. package/src/PredefinedConfig/Common/AdaptableSearchState.d.ts +22 -0
  50. package/src/PredefinedConfig/Common/AdaptableSearchState.js +2 -0
  51. package/src/PredefinedConfig/PredefinedConfig.d.ts +4 -4
  52. package/src/Strategy/BulkUpdateModule.js +0 -12
  53. package/src/Strategy/PlusMinusModule.js +24 -24
  54. package/src/Strategy/SmartEditModule.js +0 -11
  55. package/src/Utilities/Services/MetamodelService.js +2 -2
  56. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
  57. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
  58. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -1
  59. package/src/agGrid/Adaptable.js +2 -2
  60. package/src/agGrid/AdaptableAgGrid.js +22 -21
  61. package/src/agGrid/AgGridAdapter.js +4 -1
  62. package/src/agGrid/AgGridColumnAdapter.js +18 -12
  63. package/src/env.js +2 -2
  64. package/src/metamodel/adaptable.metamodel.d.ts +10 -0
  65. package/src/metamodel/adaptable.metamodel.js +1 -1
  66. package/src/types.d.ts +1 -1
  67. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -426,21 +426,27 @@ class AgGridColumnAdapter {
426
426
  });
427
427
  }
428
428
  setupColumnEditable({ col }) {
429
- this.setColDefProperty(col, 'editable', (userValue) => {
430
- // if AG Grid defines the column as NOT editable, we don't mess with it
431
- if (typeof userValue === 'boolean' && userValue === false) {
432
- return userValue;
433
- }
429
+ this.setColDefProperty(col, 'editable', (original_editable) => {
430
+ // cell is NOT editable by default
434
431
  const editableCallback = (params) => {
435
- if (typeof userValue === 'function') {
436
- const agGridColDefEditable = userValue(params);
437
- if (agGridColDefEditable === false) {
438
- return false;
432
+ const getOriginalColDefEditable = () => {
433
+ if (typeof original_editable === 'function') {
434
+ return original_editable(params);
435
+ }
436
+ else {
437
+ return original_editable;
438
+ }
439
+ };
440
+ // 1. evaluate EditOptions.isCellEditable if provided
441
+ if (this.adaptableApi.gridApi.internalApi.hasCellEditableAccordingToEditOptions()) {
442
+ const gridCell = this.adaptableInstance.getGridCellFromRowNode(params.node, params.column.getColId());
443
+ const editOptionsEditability = this.adaptableApi.gridApi.internalApi.isCellEditableAccordingToEditOptions(gridCell, getOriginalColDefEditable());
444
+ if (editOptionsEditability) {
445
+ return editOptionsEditability;
439
446
  }
440
447
  }
441
- // if AG Grid editable is still true, we check if Adaptable allows it
442
- const gridCell = this.adaptableInstance.getGridCellFromRowNode(params.node, params.column.getColId());
443
- return this.adaptableApi.gridApi.isCellEditable(gridCell);
448
+ // 2. otherwise, fallback to colDef.editable
449
+ return getOriginalColDefEditable();
444
450
  };
445
451
  return editableCallback;
446
452
  });
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: 1732030749545 || Date.now(),
6
- VERSION: "19.1.2" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1732624935922 || Date.now(),
6
+ VERSION: "19.2.1-canary.0" || '--current-version--',
7
7
  };
@@ -961,6 +961,16 @@ export declare const ADAPTABLE_METAMODEL: {
961
961
  desc: string;
962
962
  }[];
963
963
  };
964
+ AdaptableSearchState: {
965
+ name: string;
966
+ kind: string;
967
+ desc: string;
968
+ props: {
969
+ name: string;
970
+ kind: string;
971
+ desc: string;
972
+ }[];
973
+ };
964
974
  AdaptableSettingsPanel: {
965
975
  name: string;
966
976
  kind: string;