@adaptabletools/adaptable 19.1.0 → 19.1.2-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/AdaptableInterfaces/IAdaptable.d.ts +2 -5
- package/src/AdaptableOptions/AlertOptions.d.ts +3 -0
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +1 -1
- package/src/AdaptableOptions/CommentOptions.d.ts +2 -2
- package/src/AdaptableOptions/NoteOptions.d.ts +2 -2
- package/src/Api/AdaptableApi.d.ts +21 -11
- package/src/Api/Events/GridDataChanged.d.ts +3 -0
- package/src/Api/GridApi.d.ts +8 -3
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -4
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ActionRowApiImpl.js +4 -4
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +5 -6
- package/src/Api/Implementation/AdaptableApiImpl.js +7 -1
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.js +16 -15
- package/src/Api/Implementation/ApiBase.d.ts +12 -3
- package/src/Api/Implementation/ApiBase.js +39 -24
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -3
- package/src/Api/Implementation/CalendarApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +9 -9
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +18 -18
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
- package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ColumnMenuApiImpl.js +2 -5
- package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CommentsApiImpl.js +6 -4
- package/src/Api/Implementation/ConfigApiImpl.js +23 -24
- package/src/Api/Implementation/ContextMenuApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ContextMenuApiImpl.js +1 -4
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +3 -3
- package/src/Api/Implementation/DashboardApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DashboardApiImpl.js +5 -5
- package/src/Api/Implementation/DataImportApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DataImportApiImpl.js +3 -3
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DataSetApiImpl.js +5 -5
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
- package/src/Api/Implementation/EntitlementApiImpl.js +5 -5
- package/src/Api/Implementation/EventApiImpl.d.ts +1 -1
- package/src/Api/Implementation/EventApiImpl.js +2 -2
- package/src/Api/Implementation/ExportApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExportApiImpl.js +7 -7
- package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExpressionApiImpl.js +5 -5
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +1 -1
- package/src/Api/Implementation/Fdc3ApiImpl.js +4 -4
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +7 -7
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +4 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -2
- package/src/Api/Implementation/GridApiImpl.js +108 -103
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +4 -4
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -1
- package/src/Api/Implementation/LayoutApiImpl.js +3 -3
- package/src/Api/Implementation/NamedQueryApiImpl.d.ts +1 -1
- package/src/Api/Implementation/NamedQueryApiImpl.js +3 -3
- package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
- package/src/Api/Implementation/NoteApiImpl.js +3 -3
- package/src/Api/Implementation/OptionsApiImpl.js +7 -7
- package/src/Api/Implementation/PluginsApiImpl.js +1 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -1
- package/src/Api/Implementation/PredicateApiImpl.js +4 -4
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +3 -3
- package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.js +4 -4
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +4 -4
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/TeamSharingApiImpl.js +11 -11
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ThemeApiImpl.js +8 -8
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -5
- package/src/Api/Internal/ActionRowInternalApi.js +8 -8
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +55 -50
- package/src/Api/Internal/AlertInternalApi.js +9 -9
- package/src/Api/Internal/CalculatedColumnInternalApi.js +11 -9
- package/src/Api/Internal/ChartingInternalApi.js +1 -1
- package/src/Api/Internal/ColumnFilterInternalApi.js +7 -9
- package/src/Api/Internal/ColumnInternalApi.js +3 -3
- package/src/Api/Internal/CommentsInternalApi.d.ts +1 -0
- package/src/Api/Internal/CommentsInternalApi.js +4 -0
- package/src/Api/Internal/CustomSortInternalApi.js +3 -3
- package/src/Api/Internal/DashboardInternalApi.js +4 -3
- package/src/Api/Internal/DataImportInternalApi.js +2 -2
- package/src/Api/Internal/DataSetInternalApi.js +2 -2
- package/src/Api/Internal/ExportInternalApi.js +21 -22
- package/src/Api/Internal/ExpressionInternalApi.js +4 -4
- package/src/Api/Internal/Fdc3InternalApi.d.ts +0 -1
- package/src/Api/Internal/Fdc3InternalApi.js +9 -12
- package/src/Api/Internal/FlashingCellInternalApi.js +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +2 -3
- package/src/Api/Internal/FreeTextColumnInternalApi.js +5 -2
- package/src/Api/Internal/GridFilterInternalApi.js +2 -2
- package/src/Api/Internal/GridInternalApi.js +26 -26
- package/src/Api/Internal/LayoutInternalApi.js +6 -5
- package/src/Api/Internal/NamedQueryInternalApi.js +2 -2
- package/src/Api/Internal/NoteInternalApi.d.ts +1 -0
- package/src/Api/Internal/NoteInternalApi.js +4 -0
- package/src/Api/Internal/PredicateInternalApi.js +5 -5
- package/src/Api/Internal/ScheduleInternalApi.js +1 -1
- package/src/Api/Internal/StyledColumnInternalApi.js +2 -2
- package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
- package/src/Api/Internal/ThemeInternalApi.js +1 -1
- package/src/PredefinedConfig/Common/ExtendedLayoutInfo.d.ts +15 -0
- package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +3 -0
- package/src/Strategy/NoteModule.d.ts +0 -1
- package/src/Strategy/NoteModule.js +4 -5
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
- package/src/Utilities/Services/CellPopupService.js +4 -4
- package/src/Utilities/Services/Fdc3Service.js +1 -3
- package/src/Utilities/Services/FlashingCellService.d.ts +0 -2
- package/src/Utilities/Services/FlashingCellService.js +2 -3
- package/src/Utilities/Services/RowEditService.js +3 -5
- package/src/View/Alert/AlertStatusSubPanel.js +4 -4
- package/src/View/Charting/ShowChartButton.js +4 -4
- package/src/View/Comments/CommentsEditor.js +2 -2
- package/src/View/Comments/CommentsPopup.js +1 -4
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +14 -13
- package/src/View/Layout/TransposedPopup.js +2 -2
- package/src/View/Note/NotePopup.js +1 -4
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -5
- package/src/agGrid/AdaptableAgGrid.js +47 -26
- package/src/agGrid/AgGridAdapter.js +3 -3
- package/src/agGrid/FloatingFilterWrapper.js +4 -3
- package/src/agGrid/defaultAdaptableOptions.js +100 -96
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/ExpressionPreview.js +4 -4
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +32 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
|
@@ -2974,7 +2974,25 @@ export class AdaptableAgGrid {
|
|
|
2974
2974
|
return this.agGridAdapter.getRegisteredModules();
|
|
2975
2975
|
}
|
|
2976
2976
|
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;
|
|
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;
|
|
2978
|
+
if (!config) {
|
|
2979
|
+
config = {
|
|
2980
|
+
unmount: true,
|
|
2981
|
+
destroyAgGrid: true,
|
|
2982
|
+
};
|
|
2983
|
+
}
|
|
2984
|
+
else {
|
|
2985
|
+
// should not happen unless someone ignored the TypeScript warnings
|
|
2986
|
+
if (config.unmount == undefined) {
|
|
2987
|
+
config.unmount = true;
|
|
2988
|
+
}
|
|
2989
|
+
if (config.destroyAgGrid == undefined) {
|
|
2990
|
+
config.destroyAgGrid = true;
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
if ((config === null || config === void 0 ? void 0 : config.destroyApi) === true) {
|
|
2994
|
+
this.logger.warn(`Use of 'destroyApi' is deprecated. Use 'destroyAgGrid' instead.`);
|
|
2995
|
+
}
|
|
2978
2996
|
if (((_a = this.agGridAdapter) === null || _a === void 0 ? void 0 : _a.getAgGridApi()) && !this.agGridAdapter.getAgGridApi().isDestroyed()) {
|
|
2979
2997
|
this.agGridAdapter
|
|
2980
2998
|
.getAgGridApi()
|
|
@@ -3057,7 +3075,7 @@ export class AdaptableAgGrid {
|
|
|
3057
3075
|
}
|
|
3058
3076
|
}
|
|
3059
3077
|
DANGER_AG_GRID_BEANS_MAP[this._agGridId] = null;
|
|
3060
|
-
if ((config === null || config === void 0 ? void 0 : config.destroyApi) === true) {
|
|
3078
|
+
if ((config === null || config === void 0 ? void 0 : config.destroyApi) === true || (config === null || config === void 0 ? void 0 : config.destroyAgGrid) === true) {
|
|
3061
3079
|
(_b = this.agGridAdapter.getAgGridApi()) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
3062
3080
|
}
|
|
3063
3081
|
this.previousAgGridLayoutState = '';
|
|
@@ -3070,7 +3088,7 @@ export class AdaptableAgGrid {
|
|
|
3070
3088
|
this.agGridListenerMouseEnter = null;
|
|
3071
3089
|
this.agGridListenerMouseLeave = null;
|
|
3072
3090
|
}
|
|
3073
|
-
this.api.
|
|
3091
|
+
this.api._internalDestroySelf();
|
|
3074
3092
|
(_c = this.agGridOptionsService) === null || _c === void 0 ? void 0 : _c.destroy();
|
|
3075
3093
|
this.agGridOptionsService = null;
|
|
3076
3094
|
(_d = this.agGridAdapter) === null || _d === void 0 ? void 0 : _d.destroy();
|
|
@@ -3086,46 +3104,49 @@ export class AdaptableAgGrid {
|
|
|
3086
3104
|
this.columnMinMaxValuesCache = null;
|
|
3087
3105
|
this.lifecycleState = 'preDestroyed';
|
|
3088
3106
|
AdaptableAgGrid.dismissInstance(this);
|
|
3089
|
-
(_g = this.unmountLoadingScreen) === null || _g === void 0 ? void 0 : _g.call(this);
|
|
3090
|
-
this.unmountLoadingScreen = null;
|
|
3091
|
-
if (config && !config.unmount) {
|
|
3092
|
-
return;
|
|
3093
|
-
}
|
|
3094
|
-
const abContainerElement = this.getAdaptableContainerElement();
|
|
3095
|
-
if (abContainerElement != null) {
|
|
3096
|
-
(_h = this.unmountReactRoot) === null || _h === void 0 ? void 0 : _h.call(this);
|
|
3097
|
-
}
|
|
3098
|
-
this.unmountReactRoot = null;
|
|
3099
3107
|
this.DANGER_USE_GETTER_adaptableContainerElement = null;
|
|
3100
3108
|
this.DANGER_USE_GETTER_agGridContainerElement = null;
|
|
3101
|
-
(
|
|
3109
|
+
(_g = this.adaptableStore) === null || _g === void 0 ? void 0 : _g.destroy();
|
|
3102
3110
|
this.adaptableStore = null;
|
|
3103
3111
|
this.adaptableOptions = null;
|
|
3104
3112
|
this.adaptableStatusPanelKeys = null;
|
|
3105
|
-
(
|
|
3113
|
+
(_j = (_h = this.CalculatedColumnExpressionService) === null || _h === void 0 ? void 0 : _h.destroy) === null || _j === void 0 ? void 0 : _j.call(_h);
|
|
3106
3114
|
this.CalculatedColumnExpressionService = null;
|
|
3107
|
-
(
|
|
3115
|
+
(_l = (_k = this.DataService) === null || _k === void 0 ? void 0 : _k.destroy) === null || _l === void 0 ? void 0 : _l.call(_k);
|
|
3108
3116
|
this.DataService = null;
|
|
3109
|
-
(
|
|
3117
|
+
(_o = (_m = this.Fdc3Service) === null || _m === void 0 ? void 0 : _m.destroy) === null || _o === void 0 ? void 0 : _o.call(_m);
|
|
3110
3118
|
this.Fdc3Service = null;
|
|
3111
|
-
(
|
|
3119
|
+
(_q = (_p = this.ModuleService) === null || _p === void 0 ? void 0 : _p.destroy) === null || _q === void 0 ? void 0 : _q.call(_p);
|
|
3112
3120
|
this.ModuleService = null;
|
|
3113
|
-
(
|
|
3121
|
+
(_s = (_r = this.ValidationService) === null || _r === void 0 ? void 0 : _r.destroy) === null || _s === void 0 ? void 0 : _s.call(_r);
|
|
3114
3122
|
this.ValidationService = null;
|
|
3115
|
-
(
|
|
3123
|
+
(_u = (_t = this.QueryLanguageService) === null || _t === void 0 ? void 0 : _t.destroy) === null || _u === void 0 ? void 0 : _u.call(_t);
|
|
3116
3124
|
this.QueryLanguageService = null;
|
|
3117
|
-
(
|
|
3125
|
+
(_w = (_v = this.AlertService) === null || _v === void 0 ? void 0 : _v.destroy) === null || _w === void 0 ? void 0 : _w.call(_v);
|
|
3118
3126
|
this.AlertService = null;
|
|
3119
|
-
(
|
|
3127
|
+
(_y = (_x = this.TeamSharingService) === null || _x === void 0 ? void 0 : _x.destroy) === null || _y === void 0 ? void 0 : _y.call(_x);
|
|
3120
3128
|
this.TeamSharingService = null;
|
|
3121
|
-
(
|
|
3129
|
+
(_0 = (_z = this.RowEditService) === null || _z === void 0 ? void 0 : _z.destroy) === null || _0 === void 0 ? void 0 : _0.call(_z);
|
|
3122
3130
|
this.RowEditService = null;
|
|
3123
|
-
(
|
|
3131
|
+
(_2 = (_1 = this.MetamodelService) === null || _1 === void 0 ? void 0 : _1.destroy) === null || _2 === void 0 ? void 0 : _2.call(_1);
|
|
3124
3132
|
this.MetamodelService = null;
|
|
3125
|
-
(
|
|
3133
|
+
(_4 = (_3 = this.LicenseService) === null || _3 === void 0 ? void 0 : _3.destroy) === null || _4 === void 0 ? void 0 : _4.call(_3);
|
|
3126
3134
|
this.LicenseService = null;
|
|
3127
|
-
(
|
|
3135
|
+
(_6 = (_5 = this.FlashingCellService) === null || _5 === void 0 ? void 0 : _5.destroy) === null || _6 === void 0 ? void 0 : _6.call(_5);
|
|
3128
3136
|
this.FlashingCellService = null;
|
|
3137
|
+
(_8 = (_7 = this.ThemeService) === null || _7 === void 0 ? void 0 : _7.destroy) === null || _8 === void 0 ? void 0 : _8.call(_7);
|
|
3138
|
+
this.ThemeService = null;
|
|
3139
|
+
(_10 = (_9 = this.ChartingService) === null || _9 === void 0 ? void 0 : _9.destroy) === null || _10 === void 0 ? void 0 : _10.call(_9);
|
|
3140
|
+
this.ChartingService = null;
|
|
3141
|
+
(_11 = this.unmountLoadingScreen) === null || _11 === void 0 ? void 0 : _11.call(this);
|
|
3142
|
+
this.unmountLoadingScreen = null;
|
|
3143
|
+
if (config === null || config === void 0 ? void 0 : config.unmount) {
|
|
3144
|
+
const abContainerElement = this.getAdaptableContainerElement();
|
|
3145
|
+
if (abContainerElement != null) {
|
|
3146
|
+
(_12 = this.unmountReactRoot) === null || _12 === void 0 ? void 0 : _12.call(this);
|
|
3147
|
+
}
|
|
3148
|
+
this.unmountReactRoot = null;
|
|
3149
|
+
}
|
|
3129
3150
|
}
|
|
3130
3151
|
canExportToExcel() {
|
|
3131
3152
|
return this.agGridAdapter.isModulePresent(ModuleNames.ExcelExportModule);
|
|
@@ -327,14 +327,14 @@ export class AgGridAdapter {
|
|
|
327
327
|
let row = this.getAgGridApi().getDisplayedRowAtIndex(0);
|
|
328
328
|
if (row == null) {
|
|
329
329
|
// possible that there will be no data.
|
|
330
|
-
this.adaptableInstance.logger.
|
|
330
|
+
this.adaptableInstance.logger.consoleError(`No data in grid, returning type "Unknown" for Column: "${column.getColId()}". This will impact several Adaptable features, such as Filters and ColumnFormats.`);
|
|
331
331
|
return 'Unknown';
|
|
332
332
|
}
|
|
333
333
|
// if it's a group we need the content of the group
|
|
334
334
|
if (row.group) {
|
|
335
335
|
const childNodes = row.childrenAfterGroup;
|
|
336
336
|
if (ArrayExtensions.IsNullOrEmpty(childNodes)) {
|
|
337
|
-
this.adaptableInstance.logger.
|
|
337
|
+
this.adaptableInstance.logger.consoleError(`No data in grid, returning type "Unknown" for Column: "${column.getColId()}". This will impact several Adaptable features, such as Filters and ColumnFormats.`);
|
|
338
338
|
return 'Unknown';
|
|
339
339
|
}
|
|
340
340
|
row = childNodes[0];
|
|
@@ -364,7 +364,7 @@ export class AgGridAdapter {
|
|
|
364
364
|
break;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
this.adaptableInstance.logger.
|
|
367
|
+
this.adaptableInstance.logger.consoleWarn(`No defined type for column '${column.getColId()}'. Defaulting to type of first row value: ${dataType}`);
|
|
368
368
|
return dataType;
|
|
369
369
|
}
|
|
370
370
|
getAbColDefValue(colType) {
|
|
@@ -10,11 +10,12 @@ const filterContainerStyle = {
|
|
|
10
10
|
position: 'relative',
|
|
11
11
|
};
|
|
12
12
|
export const FloatingFilterWrapperFactory = (adaptable) => {
|
|
13
|
+
const adaptableApi = adaptable.api;
|
|
13
14
|
function getContainerId(colId) {
|
|
14
15
|
return `floatingFilter_${colId}_${adaptable.adaptableOptions.adaptableId}`;
|
|
15
16
|
}
|
|
16
17
|
function getFilterProps(colId) {
|
|
17
|
-
const column =
|
|
18
|
+
const column = adaptableApi.columnApi.getColumnWithColumnId(colId);
|
|
18
19
|
const columnFilterProps = {
|
|
19
20
|
Column: column,
|
|
20
21
|
Adaptable: adaptable,
|
|
@@ -53,7 +54,7 @@ export const FloatingFilterWrapperFactory = (adaptable) => {
|
|
|
53
54
|
if (adaptable.variant === 'react') {
|
|
54
55
|
return forwardRef(function ReactFloatingFilterWrapper(props, ref) {
|
|
55
56
|
const colId = props.column.getId();
|
|
56
|
-
const column =
|
|
57
|
+
const column = adaptableApi.columnApi.getColumnWithColumnId(colId);
|
|
57
58
|
useImperativeHandle(ref, () => {
|
|
58
59
|
return {
|
|
59
60
|
onParentModelChanged() { },
|
|
@@ -80,7 +81,7 @@ export const FloatingFilterWrapperFactory = (adaptable) => {
|
|
|
80
81
|
//@ts-ignore
|
|
81
82
|
this.filterContainer.style[key] = filterContainerStyle[key];
|
|
82
83
|
});
|
|
83
|
-
const column =
|
|
84
|
+
const column = adaptableApi.columnApi.getColumnWithColumnId(colId);
|
|
84
85
|
if (column) {
|
|
85
86
|
const filterProps = getFilterProps(colId);
|
|
86
87
|
this.unmountReactRoot = adaptable.renderReactRoot(QuickFilterFormReact(filterProps), this.filterContainer);
|
|
@@ -17,6 +17,26 @@ const DefaultAdaptableOptions = {
|
|
|
17
17
|
autogeneratePrimaryKey: false,
|
|
18
18
|
userName: GeneralConstants.USER_NAME,
|
|
19
19
|
predefinedConfig: undefined,
|
|
20
|
+
actionColumnOptions: {
|
|
21
|
+
actionColumns: undefined,
|
|
22
|
+
},
|
|
23
|
+
actionRowOptions: {
|
|
24
|
+
actionRowButtons: undefined,
|
|
25
|
+
autoHandle: true,
|
|
26
|
+
disableInlineEditing: false,
|
|
27
|
+
setPrimaryKeyValue: undefined,
|
|
28
|
+
actionRowButtonOptions: {
|
|
29
|
+
customConfiguration: undefined,
|
|
30
|
+
position: 'pinnedLeft',
|
|
31
|
+
},
|
|
32
|
+
actionRowFormOptions: {
|
|
33
|
+
formTitle: undefined,
|
|
34
|
+
formDescription: undefined,
|
|
35
|
+
formFieldLabel: undefined,
|
|
36
|
+
formButtons: undefined,
|
|
37
|
+
onFormSubmit: undefined,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
20
40
|
alertOptions: {
|
|
21
41
|
alertForms: undefined,
|
|
22
42
|
maxAlertsInStore: 20,
|
|
@@ -28,6 +48,83 @@ const DefaultAdaptableOptions = {
|
|
|
28
48
|
alertMessageText: undefined,
|
|
29
49
|
showMissingPrimaryKeyAlert: false,
|
|
30
50
|
},
|
|
51
|
+
calendarOptions: { holidays: undefined },
|
|
52
|
+
cellSummaryOptions: { cellSummaryOperations: undefined },
|
|
53
|
+
chartingOptions: {
|
|
54
|
+
saveChartBehaviour: GeneralConstants.SAVE_CHART_BEHAVIOUR_NONE,
|
|
55
|
+
agGridContainerName: GeneralConstants.AG_GRID_CHART_WINDOW,
|
|
56
|
+
externalChartingOptions: {},
|
|
57
|
+
},
|
|
58
|
+
containerOptions: {
|
|
59
|
+
adaptableContainer: GeneralConstants.ADAPTABLE_CONTAINER_ID,
|
|
60
|
+
agGridContainer: GeneralConstants.AG_GRID_CONTAINER_ID,
|
|
61
|
+
agGridContainerWaitTimeout: 60000,
|
|
62
|
+
modalContainer: undefined,
|
|
63
|
+
systemStatusContainer: undefined,
|
|
64
|
+
alertContainer: undefined,
|
|
65
|
+
},
|
|
66
|
+
columnOptions: {
|
|
67
|
+
columnFriendlyName: undefined,
|
|
68
|
+
columnTypes: EMPTY_ARRAY,
|
|
69
|
+
showMissingColumnsWarning: true,
|
|
70
|
+
addColumnGroupToColumnFriendlyName: false,
|
|
71
|
+
},
|
|
72
|
+
columnMenuOptions: {
|
|
73
|
+
customColumnMenu: undefined,
|
|
74
|
+
},
|
|
75
|
+
contextMenuOptions: {
|
|
76
|
+
customContextMenu: undefined,
|
|
77
|
+
},
|
|
78
|
+
columnFilterOptions: {
|
|
79
|
+
quickFilterOptions: {
|
|
80
|
+
hideQuickFilterDropdown: undefined,
|
|
81
|
+
hideQuickFilterInput: undefined,
|
|
82
|
+
quickFilterTrigger: FilterConstants.FILTER_TRIGGER_MOUSE_ENTER,
|
|
83
|
+
quickFilterDebounce: 250,
|
|
84
|
+
quickFilterHeight: null,
|
|
85
|
+
showQuickFilter: true,
|
|
86
|
+
quickFilterWildcards: {},
|
|
87
|
+
quickFilterValuesWidth: 180,
|
|
88
|
+
},
|
|
89
|
+
filterFormOptions: {
|
|
90
|
+
useAgGridFilterFormStyle: true,
|
|
91
|
+
defaultFilterFormTab: 'Values',
|
|
92
|
+
},
|
|
93
|
+
valuesFilterOptions: {
|
|
94
|
+
valuesFilterTrigger: FilterConstants.FILTER_TRIGGER_MOUSE_ENTER,
|
|
95
|
+
sortValuesFilter: false,
|
|
96
|
+
filterValuesUsingTime: false,
|
|
97
|
+
showCurrentlyFilteredValuesOnly: false,
|
|
98
|
+
showCurrentlyFilteredValuesCount: false,
|
|
99
|
+
maxFilterValuesToDisplay: undefined,
|
|
100
|
+
showValuesCount: undefined,
|
|
101
|
+
valuesFilterPredicateOptions: undefined,
|
|
102
|
+
},
|
|
103
|
+
indicateFilteredColumns: true,
|
|
104
|
+
useAdaptableColumnFiltering: true,
|
|
105
|
+
clearColumnFiltersOnStartUp: false,
|
|
106
|
+
filterActionOnUserDataChange: {
|
|
107
|
+
applyFilter: FilterConstants.FILTER_ACTION_ALWAYS,
|
|
108
|
+
throttleDelay: 0,
|
|
109
|
+
},
|
|
110
|
+
filterActionOnExternalDataChange: {
|
|
111
|
+
applyFilter: FilterConstants.FILTER_ACTION_NEVER,
|
|
112
|
+
throttleDelay: 0,
|
|
113
|
+
},
|
|
114
|
+
autoApplyFilter: true,
|
|
115
|
+
defaultNumericColumnFilter: FilterConstants.PREDICATE_EQUALS,
|
|
116
|
+
defaultStringColumnFilter: FilterConstants.PREDICATE_CONTAINS,
|
|
117
|
+
defaultDateColumnFilter: FilterConstants.PREDICATE_ON,
|
|
118
|
+
enableFilterOnSpecialColumns: true,
|
|
119
|
+
showClearFilterButton: false,
|
|
120
|
+
showSuspendFilterButton: false,
|
|
121
|
+
showDatePicker: true,
|
|
122
|
+
},
|
|
123
|
+
commentOptions: {
|
|
124
|
+
showPopupCloseButton: true,
|
|
125
|
+
dateFormat: 'dd-MM-yyyy HH:mm:ss',
|
|
126
|
+
},
|
|
127
|
+
customSortOptions: { customSortComparers: undefined },
|
|
31
128
|
notificationsOptions: {
|
|
32
129
|
maxNotifications: 3,
|
|
33
130
|
position: GeneralConstants.TOAST_POSITIONS_BOTTOM_RIGHT,
|
|
@@ -70,22 +167,6 @@ const DefaultAdaptableOptions = {
|
|
|
70
167
|
maxTimeframeSize: 28800000,
|
|
71
168
|
caseSensitiveExpressions: false,
|
|
72
169
|
},
|
|
73
|
-
calendarOptions: { holidays: undefined },
|
|
74
|
-
cellSummaryOptions: { cellSummaryOperations: undefined },
|
|
75
|
-
containerOptions: {
|
|
76
|
-
adaptableContainer: GeneralConstants.ADAPTABLE_CONTAINER_ID,
|
|
77
|
-
agGridContainer: GeneralConstants.AG_GRID_CONTAINER_ID,
|
|
78
|
-
agGridContainerWaitTimeout: 60000,
|
|
79
|
-
modalContainer: undefined,
|
|
80
|
-
systemStatusContainer: undefined,
|
|
81
|
-
alertContainer: undefined,
|
|
82
|
-
},
|
|
83
|
-
columnOptions: {
|
|
84
|
-
columnFriendlyName: undefined,
|
|
85
|
-
columnTypes: EMPTY_ARRAY,
|
|
86
|
-
showMissingColumnsWarning: true,
|
|
87
|
-
addColumnGroupToColumnFriendlyName: false,
|
|
88
|
-
},
|
|
89
170
|
dashboardOptions: {
|
|
90
171
|
canFloat: true,
|
|
91
172
|
showQuickSearchInHeader: true,
|
|
@@ -93,26 +174,6 @@ const DefaultAdaptableOptions = {
|
|
|
93
174
|
customToolbars: undefined,
|
|
94
175
|
buttonsLocation: GeneralConstants.DASHBOARD_BUTTONS_LOCATION_RIGHT,
|
|
95
176
|
},
|
|
96
|
-
actionColumnOptions: {
|
|
97
|
-
actionColumns: undefined,
|
|
98
|
-
},
|
|
99
|
-
actionRowOptions: {
|
|
100
|
-
actionRowButtons: undefined,
|
|
101
|
-
autoHandle: true,
|
|
102
|
-
disableInlineEditing: false,
|
|
103
|
-
setPrimaryKeyValue: undefined,
|
|
104
|
-
actionRowButtonOptions: {
|
|
105
|
-
customConfiguration: undefined,
|
|
106
|
-
position: 'pinnedLeft',
|
|
107
|
-
},
|
|
108
|
-
actionRowFormOptions: {
|
|
109
|
-
formTitle: undefined,
|
|
110
|
-
formDescription: undefined,
|
|
111
|
-
formFieldLabel: undefined,
|
|
112
|
-
formButtons: undefined,
|
|
113
|
-
onFormSubmit: undefined,
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
177
|
editOptions: {
|
|
117
178
|
validateOnServer: undefined,
|
|
118
179
|
displayServerValidationMessages: true,
|
|
@@ -145,7 +206,6 @@ const DefaultAdaptableOptions = {
|
|
|
145
206
|
],
|
|
146
207
|
reportFilename: undefined,
|
|
147
208
|
},
|
|
148
|
-
customSortOptions: { customSortComparers: undefined },
|
|
149
209
|
dataSetOptions: { dataSets: EMPTY_ARRAY },
|
|
150
210
|
groupingOptions: {
|
|
151
211
|
restoreUngroupedColumns: false,
|
|
@@ -169,57 +229,6 @@ const DefaultAdaptableOptions = {
|
|
|
169
229
|
autoCheckTagsForLayouts: false,
|
|
170
230
|
},
|
|
171
231
|
},
|
|
172
|
-
columnMenuOptions: {
|
|
173
|
-
customColumnMenu: undefined,
|
|
174
|
-
},
|
|
175
|
-
contextMenuOptions: {
|
|
176
|
-
customContextMenu: undefined,
|
|
177
|
-
},
|
|
178
|
-
columnFilterOptions: {
|
|
179
|
-
quickFilterOptions: {
|
|
180
|
-
hideQuickFilterDropdown: undefined,
|
|
181
|
-
hideQuickFilterInput: undefined,
|
|
182
|
-
quickFilterTrigger: FilterConstants.FILTER_TRIGGER_MOUSE_ENTER,
|
|
183
|
-
quickFilterDebounce: 250,
|
|
184
|
-
quickFilterHeight: null,
|
|
185
|
-
showQuickFilter: true,
|
|
186
|
-
quickFilterWildcards: {},
|
|
187
|
-
quickFilterValuesWidth: 180,
|
|
188
|
-
},
|
|
189
|
-
filterFormOptions: {
|
|
190
|
-
useAgGridFilterFormStyle: true,
|
|
191
|
-
defaultFilterFormTab: 'Values',
|
|
192
|
-
},
|
|
193
|
-
valuesFilterOptions: {
|
|
194
|
-
valuesFilterTrigger: FilterConstants.FILTER_TRIGGER_MOUSE_ENTER,
|
|
195
|
-
sortValuesFilter: false,
|
|
196
|
-
filterValuesUsingTime: false,
|
|
197
|
-
showCurrentlyFilteredValuesOnly: false,
|
|
198
|
-
showCurrentlyFilteredValuesCount: false,
|
|
199
|
-
maxFilterValuesToDisplay: undefined,
|
|
200
|
-
showValuesCount: undefined,
|
|
201
|
-
valuesFilterPredicateOptions: undefined,
|
|
202
|
-
},
|
|
203
|
-
indicateFilteredColumns: true,
|
|
204
|
-
useAdaptableColumnFiltering: true,
|
|
205
|
-
clearColumnFiltersOnStartUp: false,
|
|
206
|
-
filterActionOnUserDataChange: {
|
|
207
|
-
applyFilter: FilterConstants.FILTER_ACTION_ALWAYS,
|
|
208
|
-
throttleDelay: 0,
|
|
209
|
-
},
|
|
210
|
-
filterActionOnExternalDataChange: {
|
|
211
|
-
applyFilter: FilterConstants.FILTER_ACTION_NEVER,
|
|
212
|
-
throttleDelay: 0,
|
|
213
|
-
},
|
|
214
|
-
autoApplyFilter: true,
|
|
215
|
-
defaultNumericColumnFilter: FilterConstants.PREDICATE_EQUALS,
|
|
216
|
-
defaultStringColumnFilter: FilterConstants.PREDICATE_CONTAINS,
|
|
217
|
-
defaultDateColumnFilter: FilterConstants.PREDICATE_ON,
|
|
218
|
-
enableFilterOnSpecialColumns: true,
|
|
219
|
-
showClearFilterButton: false,
|
|
220
|
-
showSuspendFilterButton: false,
|
|
221
|
-
showDatePicker: true,
|
|
222
|
-
},
|
|
223
232
|
gridFilterOptions: {
|
|
224
233
|
availableFilterEditors: ['ExpressionEditor', 'QueryBuilder'],
|
|
225
234
|
clearGridFilterOnStartUp: false,
|
|
@@ -310,11 +319,6 @@ const DefaultAdaptableOptions = {
|
|
|
310
319
|
alwaysShowInDashboard: false,
|
|
311
320
|
alwaysShowInToolPanel: false,
|
|
312
321
|
},
|
|
313
|
-
chartingOptions: {
|
|
314
|
-
saveChartBehaviour: GeneralConstants.SAVE_CHART_BEHAVIOUR_NONE,
|
|
315
|
-
agGridContainerName: GeneralConstants.AG_GRID_CHART_WINDOW,
|
|
316
|
-
externalChartingOptions: {},
|
|
317
|
-
},
|
|
318
322
|
fdc3Options: {
|
|
319
323
|
enableLogging: false,
|
|
320
324
|
actionColumnDefaultConfiguration: {
|
|
@@ -330,11 +334,9 @@ const DefaultAdaptableOptions = {
|
|
|
330
334
|
intents: {},
|
|
331
335
|
},
|
|
332
336
|
},
|
|
333
|
-
commentOptions: {
|
|
334
|
-
showPopupCloseButton: true,
|
|
335
|
-
},
|
|
336
337
|
noteOptions: {
|
|
337
338
|
showPopupCloseButton: true,
|
|
339
|
+
dateFormat: 'dd-MM-yyyy HH:mm:ss',
|
|
338
340
|
},
|
|
339
341
|
};
|
|
340
342
|
export function applyDefaultAdaptableOptions(adaptableOptions) {
|
|
@@ -346,12 +348,14 @@ export function applyDefaultAdaptableOptions(adaptableOptions) {
|
|
|
346
348
|
adaptableOptsWithDefaults.expressionOptions = Object.assign({}, DefaultAdaptableOptions.expressionOptions, adaptableOptions.expressionOptions);
|
|
347
349
|
adaptableOptsWithDefaults.calendarOptions = Object.assign({}, DefaultAdaptableOptions.calendarOptions, adaptableOptions.calendarOptions);
|
|
348
350
|
adaptableOptsWithDefaults.columnOptions = Object.assign({}, DefaultAdaptableOptions.columnOptions, adaptableOptions.columnOptions);
|
|
351
|
+
adaptableOptsWithDefaults.commentOptions = Object.assign({}, DefaultAdaptableOptions.commentOptions, adaptableOptions.commentOptions);
|
|
349
352
|
adaptableOptsWithDefaults.customSortOptions = Object.assign({}, DefaultAdaptableOptions.customSortOptions, adaptableOptions.customSortOptions);
|
|
350
353
|
adaptableOptsWithDefaults.dataSetOptions = Object.assign({}, DefaultAdaptableOptions.dataSetOptions, adaptableOptions.dataSetOptions);
|
|
351
354
|
adaptableOptsWithDefaults.cellSummaryOptions = Object.assign({}, DefaultAdaptableOptions.cellSummaryOptions, adaptableOptions.cellSummaryOptions);
|
|
352
355
|
adaptableOptsWithDefaults.predicateOptions = Object.assign({}, DefaultAdaptableOptions.predicateOptions, adaptableOptsWithDefaults.predicateOptions);
|
|
353
356
|
adaptableOptsWithDefaults.layoutOptions = Object.assign({}, DefaultAdaptableOptions.layoutOptions, adaptableOptions.layoutOptions);
|
|
354
357
|
adaptableOptsWithDefaults.notificationsOptions = Object.assign({}, DefaultAdaptableOptions.notificationsOptions, adaptableOptions.notificationsOptions);
|
|
358
|
+
adaptableOptsWithDefaults.noteOptions = Object.assign({}, DefaultAdaptableOptions.noteOptions, adaptableOptions.noteOptions);
|
|
355
359
|
adaptableOptsWithDefaults.alertOptions = Object.assign({}, DefaultAdaptableOptions.alertOptions, adaptableOptions.alertOptions);
|
|
356
360
|
adaptableOptsWithDefaults.flashingCellOptions = Object.assign({}, DefaultAdaptableOptions.flashingCellOptions, adaptableOptions.flashingCellOptions);
|
|
357
361
|
adaptableOptsWithDefaults.entitlementOptions = Object.assign({}, DefaultAdaptableOptions.entitlementOptions, adaptableOptions.entitlementOptions);
|
|
@@ -15,4 +15,4 @@ export type DatepickerProps = Omit<BoxProps, 'value' | 'onChange' | 'defaultValu
|
|
|
15
15
|
showWeekNumber?: boolean;
|
|
16
16
|
showOutsideDays?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "children" | "size" | "name" | "tabIndex" | "color" | "style" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "summary" | "title" | "pattern" | "start" | "hidden" | "content" | "default" | "flex" | "wrap" | "open" | "padding" | "multiple" | "disabled" | "checked" | "download" | "list" | "order" | "target" | "rows" | "src" | "className" | "onTransitionEnd" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "opacity" | "value" | "step" | "sizes" | "variant" | "tx" | "as" | "css" | "key" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "bg" | "backgroundColor" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "sx" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "wmode" | "
|
|
18
|
+
export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "children" | "size" | "name" | "tabIndex" | "color" | "style" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "summary" | "title" | "pattern" | "start" | "hidden" | "content" | "default" | "flex" | "wrap" | "open" | "padding" | "multiple" | "disabled" | "checked" | "download" | "list" | "order" | "target" | "rows" | "src" | "className" | "onTransitionEnd" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "opacity" | "value" | "step" | "sizes" | "variant" | "tx" | "as" | "css" | "key" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "bg" | "backgroundColor" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "sx" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "wmode" | "onHide" | "showClearButton" | "datepickerButtons" | "dateProps" | "showWeekNumber" | "showOutsideDays"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -11,15 +11,15 @@ import { useAdaptable } from '../../View/AdaptableContext';
|
|
|
11
11
|
import AdaptableInput from '../../View/Components/AdaptableInput';
|
|
12
12
|
export const DataTableEditor = ({ fields, dataFormatter, data: initialData, type = 'column', labels, }) => {
|
|
13
13
|
var _a, _b;
|
|
14
|
-
const
|
|
14
|
+
const adaptableApi = useAdaptable().api;
|
|
15
15
|
const [data, setData] = React.useState(initialData);
|
|
16
16
|
const [showColumnIds, setShowValues] = React.useState(false);
|
|
17
17
|
const [searchInputValue, setSearchInputValue] = React.useState('');
|
|
18
18
|
const getColValue = (fieldValue) => {
|
|
19
|
-
return
|
|
19
|
+
return adaptableApi.internalApi.getValueUsingField(data, fieldValue);
|
|
20
20
|
};
|
|
21
21
|
const updateColValue = (rowData, fielValue, newValue) => {
|
|
22
|
-
const updatedRowData =
|
|
22
|
+
const updatedRowData = adaptableApi.internalApi.setValueUsingField(rowData, fielValue, newValue);
|
|
23
23
|
return Object.assign({}, updatedRowData);
|
|
24
24
|
};
|
|
25
25
|
const getColDateValue = (fieldValue) => {
|
|
@@ -2,12 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import { useAdaptable } from '../../View/AdaptableContext';
|
|
3
3
|
export const ExpressionPreview = (props) => {
|
|
4
4
|
var _a;
|
|
5
|
-
const
|
|
6
|
-
const displayColumnFriendlyNames = (_a =
|
|
5
|
+
const adaptableApi = useAdaptable().api;
|
|
6
|
+
const displayColumnFriendlyNames = (_a = adaptableApi.optionsApi.getExpressionOptions()) === null || _a === void 0 ? void 0 : _a.displayColumnFriendlyNamesForExpressions;
|
|
7
7
|
if (!displayColumnFriendlyNames) {
|
|
8
|
-
return React.createElement(React.Fragment, null,
|
|
8
|
+
return React.createElement(React.Fragment, null, adaptableApi.expressionApi.getAdaptableQueryExpression(props.query));
|
|
9
9
|
}
|
|
10
|
-
const expressionWithFriendlyNames =
|
|
10
|
+
const expressionWithFriendlyNames = adaptableApi.expressionApi.getAdaptableQueryExpressionWithColumnFriendlyNames(props.query);
|
|
11
11
|
// '[Column Name] > 2' => ['[Column Name]', '>', '2']
|
|
12
12
|
// not the prettiest
|
|
13
13
|
const strWithMarkedGroupes = expressionWithFriendlyNames.replace(/\]/gi, '],').split(',');
|
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.1.0" || '--current-version--',
|
|
3
|
+
PUBLISH_TIMESTAMP: 1732026942630 || Date.now(),
|
|
4
|
+
VERSION: "19.1.2-canary.0" || '--current-version--',
|
|
5
5
|
};
|
|
@@ -1492,6 +1492,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1492
1492
|
isOpt: boolean;
|
|
1493
1493
|
}[];
|
|
1494
1494
|
};
|
|
1495
|
+
ApplyFilterAction: {
|
|
1496
|
+
name: string;
|
|
1497
|
+
kind: string;
|
|
1498
|
+
desc: string;
|
|
1499
|
+
};
|
|
1495
1500
|
AST_Expression: {
|
|
1496
1501
|
name: string;
|
|
1497
1502
|
kind: string;
|
|
@@ -2709,6 +2714,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2709
2714
|
desc: string;
|
|
2710
2715
|
}[];
|
|
2711
2716
|
};
|
|
2717
|
+
DataChangeDetectionPolicy: {
|
|
2718
|
+
name: string;
|
|
2719
|
+
kind: string;
|
|
2720
|
+
desc: string;
|
|
2721
|
+
};
|
|
2712
2722
|
DataChangedScope: {
|
|
2713
2723
|
name: string;
|
|
2714
2724
|
kind: string;
|
|
@@ -3255,6 +3265,17 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3255
3265
|
name: string;
|
|
3256
3266
|
kind: string;
|
|
3257
3267
|
desc: string;
|
|
3268
|
+
props: ({
|
|
3269
|
+
name: string;
|
|
3270
|
+
kind: string;
|
|
3271
|
+
desc: string;
|
|
3272
|
+
ref?: undefined;
|
|
3273
|
+
} | {
|
|
3274
|
+
name: string;
|
|
3275
|
+
kind: string;
|
|
3276
|
+
desc: string;
|
|
3277
|
+
ref: string;
|
|
3278
|
+
})[];
|
|
3258
3279
|
};
|
|
3259
3280
|
ExternalChartingContext: {
|
|
3260
3281
|
name: string;
|
|
@@ -4028,6 +4049,17 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
4028
4049
|
ref: string;
|
|
4029
4050
|
}[];
|
|
4030
4051
|
};
|
|
4052
|
+
LayoutExtension: {
|
|
4053
|
+
name: string;
|
|
4054
|
+
kind: string;
|
|
4055
|
+
desc: string;
|
|
4056
|
+
props: {
|
|
4057
|
+
name: string;
|
|
4058
|
+
kind: string;
|
|
4059
|
+
desc: string;
|
|
4060
|
+
ref: string;
|
|
4061
|
+
}[];
|
|
4062
|
+
};
|
|
4031
4063
|
LayoutOptions: {
|
|
4032
4064
|
name: string;
|
|
4033
4065
|
kind: string;
|