@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.
- package/package.json +1 -1
- package/src/AdaptableOptions/CommentOptions.d.ts +1 -1
- package/src/{agGrid/defaultAdaptableOptions.d.ts → AdaptableOptions/DefaultAdaptableOptions.d.ts} +1 -1
- package/src/{agGrid/defaultAdaptableOptions.js → AdaptableOptions/DefaultAdaptableOptions.js} +3 -2
- package/src/AdaptableOptions/EditOptions.d.ts +6 -2
- package/src/AdaptableOptions/NoteOptions.d.ts +1 -1
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/Api/GridApi.d.ts +3 -3
- package/src/Api/Implementation/ActionRowApiImpl.js +2 -2
- package/src/Api/Implementation/AlertApiImpl.js +6 -6
- package/src/Api/Implementation/ChartingApiImpl.js +4 -4
- package/src/Api/Implementation/ColumnApiImpl.js +5 -5
- package/src/Api/Implementation/ColumnFilterApiImpl.js +9 -9
- package/src/Api/Implementation/ColumnScopeApiImpl.js +8 -8
- package/src/Api/Implementation/ConfigApiImpl.js +2 -2
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -2
- package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.js +16 -19
- package/src/Api/Implementation/LayoutApiImpl.js +4 -4
- package/src/Api/Implementation/PredicateApiImpl.js +2 -2
- package/src/Api/Implementation/ScheduleApiImpl.js +2 -2
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -1
- package/src/Api/Implementation/ThemeApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +6 -6
- package/src/Api/Internal/ActionRowInternalApi.js +9 -10
- package/src/Api/Internal/AdaptableInternalApi.js +2 -2
- package/src/Api/Internal/AlertInternalApi.js +3 -3
- package/src/Api/Internal/CalculatedColumnInternalApi.js +1 -1
- package/src/Api/Internal/ChartingInternalApi.js +7 -7
- package/src/Api/Internal/ColumnFilterInternalApi.js +8 -8
- package/src/Api/Internal/CustomSortInternalApi.js +1 -1
- package/src/Api/Internal/DashboardInternalApi.js +1 -1
- package/src/Api/Internal/DataSetInternalApi.js +1 -1
- package/src/Api/Internal/ExportInternalApi.js +37 -37
- package/src/Api/Internal/ExpressionInternalApi.js +1 -1
- package/src/Api/Internal/FlashingCellInternalApi.js +1 -1
- package/src/Api/Internal/FormatColumnInternalApi.js +8 -8
- package/src/Api/Internal/GridInternalApi.d.ts +7 -0
- package/src/Api/Internal/GridInternalApi.js +21 -3
- package/src/Api/Internal/LayoutInternalApi.js +3 -3
- package/src/Api/Internal/StyledColumnInternalApi.js +6 -6
- package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
- package/src/Api/Internal/UserInterfaceInternalApi.js +1 -1
- package/src/Api/StatusBarApi.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableSearchState.d.ts +22 -0
- package/src/PredefinedConfig/Common/AdaptableSearchState.js +2 -0
- package/src/PredefinedConfig/PredefinedConfig.d.ts +4 -4
- package/src/Strategy/BulkUpdateModule.js +0 -12
- package/src/Strategy/PlusMinusModule.js +24 -24
- package/src/Strategy/SmartEditModule.js +0 -11
- package/src/Utilities/Services/MetamodelService.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -1
- package/src/agGrid/Adaptable.js +2 -2
- package/src/agGrid/AdaptableAgGrid.js +22 -21
- package/src/agGrid/AgGridAdapter.js +4 -1
- package/src/agGrid/AgGridColumnAdapter.js +18 -12
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +10 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- 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', (
|
|
430
|
-
//
|
|
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
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
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
|
-
//
|
|
442
|
-
|
|
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:
|
|
6
|
-
VERSION: "19.1.
|
|
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;
|