@adaptabletools/adaptable 13.0.0-canary.10 → 13.0.0-canary.11
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/bundle.cjs.js +125 -125
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +12 -5
- package/src/Api/Implementation/ColumnApiImpl.js +2 -4
- package/src/Api/Implementation/FormatColumnApiImpl.js +1 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +2 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +9 -15
- package/src/Api/QueryLanguageApi.d.ts +3 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +0 -1
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -3
- package/src/View/Components/NewScopeComponent.js +2 -2
- package/src/View/Components/RangesComponent.d.ts +6 -0
- package/src/View/Components/RangesComponent.js +54 -18
- package/src/View/Components/ScopeComponent.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +16 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +3 -3
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +1 -1
- package/src/agGrid/Adaptable.d.ts +3 -0
- package/src/agGrid/Adaptable.js +25 -0
- package/src/agGrid/agGridHelper.js +12 -13
- package/src/metamodel/adaptable.metamodel.d.ts +12 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -174,7 +174,7 @@ class agGridHelper {
|
|
|
174
174
|
const customFriendlyName = typeof columnFriendlyName === 'function'
|
|
175
175
|
? columnFriendlyName({ colId: colId, agColumn: agGridColumn })
|
|
176
176
|
: null;
|
|
177
|
-
const
|
|
177
|
+
const friendlyName = customFriendlyName !== null && customFriendlyName !== void 0 ? customFriendlyName : (isActionRowButtonColumn
|
|
178
178
|
? GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME
|
|
179
179
|
: this.gridOptions.columnApi.getDisplayNameForColumn(agGridColumn, 'header'));
|
|
180
180
|
if (!this.initialAgGridColDefs[colId]) {
|
|
@@ -183,13 +183,14 @@ class agGridHelper {
|
|
|
183
183
|
const ColumnId = colId;
|
|
184
184
|
const pkColumn = this.adaptable.adaptableOptions.primaryKey;
|
|
185
185
|
let ColumnGroup = colsToGroups === null || colsToGroups === void 0 ? void 0 : colsToGroups[ColumnId];
|
|
186
|
+
const dataType = this.getColumnDataType(agGridColumn, false);
|
|
186
187
|
const abColumn = {
|
|
187
188
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
188
189
|
columnId: ColumnId,
|
|
189
190
|
field: colDef.field,
|
|
190
|
-
friendlyName:
|
|
191
|
+
friendlyName: friendlyName,
|
|
191
192
|
isPrimaryKey: ColumnId === pkColumn,
|
|
192
|
-
dataType:
|
|
193
|
+
dataType: dataType,
|
|
193
194
|
visible: agGridColumn.isVisible(),
|
|
194
195
|
readOnly: this.isColumnReadonly(colDef),
|
|
195
196
|
columnGroup: ColumnGroup,
|
|
@@ -202,7 +203,7 @@ class agGridHelper {
|
|
|
202
203
|
aggregationFunction: null,
|
|
203
204
|
moveable: this.isColumnMoveable(colDef),
|
|
204
205
|
hideable: this.isColumnHideable(colDef),
|
|
205
|
-
queryable: this.isColumnQueryable(colDef, ColumnId),
|
|
206
|
+
queryable: this.isColumnQueryable(colDef, ColumnId, friendlyName, dataType),
|
|
206
207
|
isGrouped: this.isColumnGrouped(colDef),
|
|
207
208
|
isFixed: this.isColumnFixed(colDef),
|
|
208
209
|
pinned: this.getColumnPinnedPosition(colDef),
|
|
@@ -316,21 +317,19 @@ class agGridHelper {
|
|
|
316
317
|
}
|
|
317
318
|
return true;
|
|
318
319
|
}
|
|
319
|
-
isColumnQueryable(colDef, columnId) {
|
|
320
|
+
isColumnQueryable(colDef, columnId, friendlyName, datatype) {
|
|
320
321
|
if (!colDef) {
|
|
321
322
|
return false;
|
|
322
323
|
}
|
|
323
324
|
if (colDef.colId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS) {
|
|
324
325
|
return false;
|
|
325
326
|
}
|
|
326
|
-
const
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
return queryableColumns.find((qc) => qc == columnId) != null;
|
|
327
|
+
const abColumnBase = {
|
|
328
|
+
columnId: columnId,
|
|
329
|
+
friendlyName: friendlyName,
|
|
330
|
+
dataType: datatype,
|
|
331
|
+
};
|
|
332
|
+
return this.adaptable.api.queryLanguageApi.isColumnQueryable(abColumnBase);
|
|
334
333
|
}
|
|
335
334
|
isColumnHideable(colDef) {
|
|
336
335
|
if (!colDef) {
|
|
@@ -4195,6 +4195,18 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
4195
4195
|
reference?: undefined;
|
|
4196
4196
|
})[];
|
|
4197
4197
|
};
|
|
4198
|
+
QueryableColumnContext: {
|
|
4199
|
+
name: string;
|
|
4200
|
+
kind: string;
|
|
4201
|
+
description: string;
|
|
4202
|
+
properties: {
|
|
4203
|
+
name: string;
|
|
4204
|
+
kind: string;
|
|
4205
|
+
description: string;
|
|
4206
|
+
uiLabel: string;
|
|
4207
|
+
reference: string;
|
|
4208
|
+
}[];
|
|
4209
|
+
};
|
|
4198
4210
|
QueryApi: {
|
|
4199
4211
|
name: string;
|
|
4200
4212
|
kind: string;
|