@adaptabletools/adaptable 12.1.2 → 12.1.5
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 +116 -143
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/Api/ColumnApi.d.ts +6 -0
- package/src/Api/Events/SearchChanged.d.ts +1 -0
- package/src/Api/FormatColumnApi.d.ts +5 -3
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ColumnApiImpl.js +14 -0
- package/src/Api/Implementation/FilterApiImpl.js +3 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +5 -3
- package/src/Api/Implementation/FormatColumnApiImpl.js +40 -11
- package/src/PredefinedConfig/AlertState.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +9 -1
- package/src/PredefinedConfig/Common/Types.d.ts +1 -0
- package/src/PredefinedConfig/Common/Types.js +38 -1
- package/src/PredefinedConfig/FlashingCellState.d.ts +1 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +2 -2
- package/src/Redux/Store/AdaptableStore.js +8 -0
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/BulkUpdateModule.js +1 -1
- package/src/Strategy/CalculatedColumnModule.js +1 -1
- package/src/Strategy/CellSummaryModule.js +1 -1
- package/src/Strategy/ChartingModule.js +1 -1
- package/src/Strategy/ConditionalStyleModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +1 -1
- package/src/Strategy/DashboardModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +1 -1
- package/src/Strategy/FilterModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +1 -1
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/FreeTextColumnModule.js +1 -1
- package/src/Strategy/GridInfoModule.js +1 -1
- package/src/Strategy/LayoutModule.js +3 -3
- package/src/Strategy/PlusMinusModule.js +1 -1
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/QuickSearchModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +1 -1
- package/src/Strategy/ShortcutModule.js +1 -1
- package/src/Strategy/SmartEditModule.js +1 -1
- package/src/Strategy/StateManagementModule.js +1 -1
- package/src/Strategy/StatusBarModule.js +1 -1
- package/src/Strategy/SystemStatusModule.js +1 -1
- package/src/Strategy/TeamSharingModule.js +1 -1
- package/src/Strategy/ThemeModule.js +1 -1
- package/src/Strategy/ToolPanelModule.js +1 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +68 -0
- package/src/Utilities/Constants/ModuleConstants.js +70 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +5 -0
- package/src/Utilities/Services/MetamodelService.d.ts +4 -4
- package/src/Utilities/Services/MetamodelService.js +19 -12
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +193 -135
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +23 -15
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +3 -7
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +148 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -7
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.d.ts +6 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +33 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +6 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +82 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +6 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +109 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +8 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +16 -0
- package/src/View/AdaptableWizardView/Wizard.js +2 -1
- package/src/View/AdaptableWizardView/helper.d.ts +1 -1
- package/src/View/AdaptableWizardView/helper.js +3 -10
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +6 -2
- package/src/View/Alert/Wizard/AlertWizard.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +2 -1
- package/src/View/Components/RangesComponent.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +6 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +2 -2
- package/src/View/Layout/Wizard/LayoutWizard.js +11 -4
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +8 -4
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +3 -2
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +1 -1
- package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
- package/src/agGrid/Adaptable.d.ts +1 -1
- package/src/agGrid/Adaptable.js +14 -10
- package/src/agGrid/PercentBarRenderer.d.ts +2 -1
- package/src/agGrid/PercentBarRenderer.js +3 -3
- package/src/agGrid/agGridHelper.d.ts +1 -1
- package/src/agGrid/agGridHelper.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.5",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1659522068928;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -303,5 +303,11 @@ export interface ColumnApi {
|
|
|
303
303
|
* @param columnId Column to Check
|
|
304
304
|
*/
|
|
305
305
|
isActionRowButtonColumn(columnId: string): boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Returns the default Aggregation Function for a Column
|
|
308
|
+
* @param columnId Column to Check
|
|
309
|
+
*/
|
|
306
310
|
getDefaultAggFunc(columnId: string): string;
|
|
311
|
+
getMinValueForNumericColumn(column: AdaptableColumn): number | undefined;
|
|
312
|
+
getMaxValueForNumericColumn(column: AdaptableColumn): number | undefined;
|
|
307
313
|
}
|
|
@@ -2,6 +2,7 @@ import { BaseEventInfo } from './BaseEventInfo';
|
|
|
2
2
|
import { AdaptableSortState } from '../../types';
|
|
3
3
|
import { AdaptableSearchState } from './AdaptableSearchState';
|
|
4
4
|
/**
|
|
5
|
+
* Deprecated Search Changed Event - use `QueryRun` or `FilterApplied` instead
|
|
5
6
|
* @deprecated Use QueryRun and or FilterApplied
|
|
6
7
|
*/
|
|
7
8
|
export interface SearchChangedInfo extends BaseEventInfo {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormatColumnState, FormatColumn, ColumnStyle, ColumnComparison } from '../PredefinedConfig/FormatColumnState';
|
|
1
|
+
import { FormatColumnState, FormatColumn, ColumnStyle, ColumnComparison, CellColorRange } from '../PredefinedConfig/FormatColumnState';
|
|
2
2
|
import { AdaptableColumn, AdaptableFormat } from '../types';
|
|
3
3
|
import { RowNode } from '@ag-grid-community/all-modules';
|
|
4
4
|
/**
|
|
@@ -156,14 +156,16 @@ export interface FormatColumnApi {
|
|
|
156
156
|
* @param rowNode current Row Node
|
|
157
157
|
* @param cellValue current Cell Value
|
|
158
158
|
*/
|
|
159
|
-
getNumericStyleMinValue(numericStyle: ColumnStyle, rowNode: RowNode, cellValue: any): number;
|
|
159
|
+
getNumericStyleMinValue(numericStyle: ColumnStyle, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
160
160
|
/**
|
|
161
161
|
* Gets the Maximum Value to display for a Numeric Style
|
|
162
162
|
* @param numericStyle Numeric Style to check
|
|
163
163
|
* @param rowNode current Row Node
|
|
164
164
|
* @param cellValue current Cell Value
|
|
165
165
|
*/
|
|
166
|
-
getNumericStyleMaxValue(numericStyle: ColumnStyle, rowNode: RowNode, cellValue: any): number;
|
|
166
|
+
getNumericStyleMaxValue(numericStyle: ColumnStyle, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
167
|
+
getCellColorRangeMinValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
168
|
+
getCellColorRangeMaxValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
167
169
|
/**
|
|
168
170
|
* Returns first Format Column that contains checkbox style
|
|
169
171
|
* @param columnId column to check
|
|
@@ -70,4 +70,6 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
70
70
|
isColumnReferencedInExpression(columnId: string, expression: string): boolean;
|
|
71
71
|
isActionRowButtonColumn(columnId: string): boolean;
|
|
72
72
|
getDefaultAggFunc(columnId: string): string;
|
|
73
|
+
getMinValueForNumericColumn(column: AdaptableColumn): number | undefined;
|
|
74
|
+
getMaxValueForNumericColumn(column: AdaptableColumn): number | undefined;
|
|
73
75
|
}
|
|
@@ -420,5 +420,19 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
420
420
|
const agColumn = (_b = (_a = this.getAgGridColumnForAdaptableColumn(columnId)) === null || _a === void 0 ? void 0 : _a.getColDef) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
421
421
|
return (_c = agColumn === null || agColumn === void 0 ? void 0 : agColumn.defaultAggFunc) !== null && _c !== void 0 ? _c : availableAggregationFunctions[0];
|
|
422
422
|
}
|
|
423
|
+
getMinValueForNumericColumn(column) {
|
|
424
|
+
if (column.dataType !== 'Number') {
|
|
425
|
+
return undefined;
|
|
426
|
+
}
|
|
427
|
+
// can we cache this in some way?
|
|
428
|
+
return Math.min(...this.getDistinctRawValuesForColumn(column.columnId));
|
|
429
|
+
}
|
|
430
|
+
getMaxValueForNumericColumn(column) {
|
|
431
|
+
if (column.dataType !== 'Number') {
|
|
432
|
+
return undefined;
|
|
433
|
+
}
|
|
434
|
+
// can we cache this in some way?
|
|
435
|
+
return Math.max(...this.getDistinctRawValuesForColumn(column.columnId));
|
|
436
|
+
}
|
|
423
437
|
}
|
|
424
438
|
exports.ColumnApiImpl = ColumnApiImpl;
|
|
@@ -208,6 +208,9 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
208
208
|
* @param filter
|
|
209
209
|
*/
|
|
210
210
|
isFilterActive(filter) {
|
|
211
|
+
if (!filter || !filter.Predicate || !filter.Predicate.PredicateId) {
|
|
212
|
+
return false;
|
|
213
|
+
}
|
|
211
214
|
const predicateDef = this.adaptable.api.predicateApi.getPredicateDefById(filter === null || filter === void 0 ? void 0 : filter.Predicate.PredicateId);
|
|
212
215
|
if (ArrayExtensions_1.default.IsNull(predicateDef.inputs) &&
|
|
213
216
|
// values predicates have no inputs in the definition
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdaptableStyle } from '../../PredefinedConfig/Common/AdaptableStyle';
|
|
2
2
|
import { ApiBase, LayoutAssociatedObjectLoadConfig } from './ApiBase';
|
|
3
3
|
import { FormatColumnApi } from '../FormatColumnApi';
|
|
4
|
-
import { FormatColumnState, FormatColumn, ColumnStyle, ColumnComparison } from '../../PredefinedConfig/FormatColumnState';
|
|
4
|
+
import { FormatColumnState, FormatColumn, ColumnStyle, CellColorRange, ColumnComparison } from '../../PredefinedConfig/FormatColumnState';
|
|
5
5
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
6
6
|
import { RowNode } from '@ag-grid-community/all-modules';
|
|
7
7
|
import { AdaptableFormat } from '../../types';
|
|
@@ -39,8 +39,10 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
39
39
|
getFormatColumnsWithAllScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
|
|
40
40
|
getFormatColumnsWithDataTypeScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
|
|
41
41
|
getFormatColumnsWithColumnScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
|
|
42
|
-
getNumericStyleMinValue(numericStyle: ColumnStyle, rowNode: RowNode, cellValue: any): number;
|
|
43
|
-
getNumericStyleMaxValue(numericStyle: ColumnStyle, rowNode: RowNode, cellValue: any): number | undefined;
|
|
42
|
+
getNumericStyleMinValue(numericStyle: ColumnStyle, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
43
|
+
getNumericStyleMaxValue(numericStyle: ColumnStyle, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number | undefined;
|
|
44
|
+
getCellColorRangeMinValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
45
|
+
getCellColorRangeMaxValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
44
46
|
getCheckBoxStyleFormatColumn(column: AdaptableColumn): FormatColumn | undefined;
|
|
45
47
|
isCheckBoxStyleFormatColumn(column: AdaptableColumn): boolean;
|
|
46
48
|
fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
|
|
@@ -180,7 +180,7 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
180
180
|
getFormatColumnsWithColumnScope(formatColumns) {
|
|
181
181
|
return formatColumns.filter((fc) => this.adaptable.api.scopeApi.scopeHasColumns(fc.Scope));
|
|
182
182
|
}
|
|
183
|
-
getNumericStyleMinValue(numericStyle, rowNode, cellValue) {
|
|
183
|
+
getNumericStyleMinValue(numericStyle, column, rowNode, cellValue) {
|
|
184
184
|
var _a, _b;
|
|
185
185
|
const columnComparison = numericStyle.GradientStyle
|
|
186
186
|
? numericStyle.GradientStyle.ColumnComparison
|
|
@@ -199,24 +199,28 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
// for
|
|
202
|
+
// for Gradient Column we want just the range that contains cell value
|
|
203
203
|
if (numericStyle.GradientStyle) {
|
|
204
204
|
let range;
|
|
205
205
|
numericStyle.GradientStyle.CellRanges.forEach((cellRange) => {
|
|
206
|
-
if (!range
|
|
207
|
-
|
|
206
|
+
if (!range) {
|
|
207
|
+
if ((cellRange.Min == 'Col-Min' || cellValue >= cellRange.Min) &&
|
|
208
|
+
(cellRange.Max == 'Col-Max' || cellValue <= cellRange.Max)) {
|
|
209
|
+
range = cellRange;
|
|
210
|
+
}
|
|
208
211
|
}
|
|
209
212
|
});
|
|
210
|
-
return range
|
|
213
|
+
return this.getCellColorRangeMinValue(range, column);
|
|
211
214
|
}
|
|
215
|
+
// for percentbar we want to get the whole Ranges
|
|
212
216
|
if (numericStyle.PercentBarStyle) {
|
|
213
217
|
const ranges = (_b = numericStyle.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges;
|
|
214
218
|
if (ranges) {
|
|
215
|
-
return ranges[0]
|
|
219
|
+
return this.getCellColorRangeMinValue(ranges[0], column);
|
|
216
220
|
}
|
|
217
221
|
}
|
|
218
222
|
}
|
|
219
|
-
getNumericStyleMaxValue(numericStyle, rowNode, cellValue) {
|
|
223
|
+
getNumericStyleMaxValue(numericStyle, column, rowNode, cellValue) {
|
|
220
224
|
var _a, _b;
|
|
221
225
|
const columnComparison = numericStyle.GradientStyle
|
|
222
226
|
? numericStyle.GradientStyle.ColumnComparison
|
|
@@ -238,19 +242,44 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
238
242
|
if (numericStyle.GradientStyle) {
|
|
239
243
|
let range;
|
|
240
244
|
numericStyle.GradientStyle.CellRanges.forEach((cellRange) => {
|
|
241
|
-
if (!range
|
|
242
|
-
|
|
245
|
+
if (!range) {
|
|
246
|
+
if ((cellRange.Min == 'Col-Min' || cellValue >= cellRange.Min) &&
|
|
247
|
+
(cellRange.Max == 'Col-Max' || cellValue <= cellRange.Max)) {
|
|
248
|
+
range = cellRange;
|
|
249
|
+
}
|
|
243
250
|
}
|
|
244
251
|
});
|
|
245
|
-
return range
|
|
252
|
+
return this.getCellColorRangeMaxValue(range, column);
|
|
246
253
|
}
|
|
247
254
|
if (numericStyle.PercentBarStyle) {
|
|
248
255
|
const ranges = (_b = numericStyle.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges;
|
|
249
256
|
if (ranges) {
|
|
250
|
-
return ranges[ranges.length - 1]
|
|
257
|
+
return this.getCellColorRangeMaxValue(ranges[ranges.length - 1], column);
|
|
251
258
|
}
|
|
252
259
|
}
|
|
253
260
|
}
|
|
261
|
+
getCellColorRangeMinValue(range, column) {
|
|
262
|
+
if (!range) {
|
|
263
|
+
return undefined;
|
|
264
|
+
}
|
|
265
|
+
if (range.Min == undefined) {
|
|
266
|
+
return undefined;
|
|
267
|
+
}
|
|
268
|
+
return range.Min == 'Col-Min'
|
|
269
|
+
? this.getAdaptableApi().columnApi.getMinValueForNumericColumn(column)
|
|
270
|
+
: range.Min;
|
|
271
|
+
}
|
|
272
|
+
getCellColorRangeMaxValue(range, column) {
|
|
273
|
+
if (!range) {
|
|
274
|
+
return undefined;
|
|
275
|
+
}
|
|
276
|
+
if (range.Max == undefined) {
|
|
277
|
+
return undefined;
|
|
278
|
+
}
|
|
279
|
+
return range.Max == 'Col-Max'
|
|
280
|
+
? this.getAdaptableApi().columnApi.getMaxValueForNumericColumn(column)
|
|
281
|
+
: range.Max;
|
|
282
|
+
}
|
|
254
283
|
getCheckBoxStyleFormatColumn(column) {
|
|
255
284
|
var _a;
|
|
256
285
|
if (column.dataType != 'Boolean') {
|
|
@@ -37,7 +37,7 @@ export interface AlertDefinition extends SuspendableObject {
|
|
|
37
37
|
*/
|
|
38
38
|
MessageType: AdaptableMessageType;
|
|
39
39
|
/**
|
|
40
|
-
* Alert Message
|
|
40
|
+
* Alert Message; if not provided AdapTable creates dynamically using Rule & Scope (Note: can be provided as a function in AlertOptions)
|
|
41
41
|
*/
|
|
42
42
|
MessageText?: string;
|
|
43
43
|
/**
|
|
@@ -126,4 +126,4 @@ export interface AlertProperties {
|
|
|
126
126
|
*/
|
|
127
127
|
PreventEdit?: boolean;
|
|
128
128
|
}
|
|
129
|
-
export declare type SystemAlertPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False' | 'PercentChange' | 'PrimaryKeyDuplicate' | 'ExistingValuesOnly' | 'NoDuplicateValues' | 'IsNumeric' | 'AddedRow' | 'RemovedRow' | 'Any';
|
|
129
|
+
export declare type SystemAlertPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False' | 'PercentChange' | 'PrimaryKeyDuplicate' | 'ExistingValuesOnly' | 'NoDuplicateValues' | 'IsNumeric' | 'IsNotNumeric' | 'AddedRow' | 'RemovedRow' | 'Any';
|
|
@@ -59,7 +59,7 @@ exports.SystemPredicateDefs = [
|
|
|
59
59
|
return true;
|
|
60
60
|
}
|
|
61
61
|
if (column.dataType === 'Date') {
|
|
62
|
-
return inputs.
|
|
62
|
+
return inputs.every((input) => {
|
|
63
63
|
return !isSameDay_1.default(input, value);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
@@ -186,6 +186,14 @@ exports.SystemPredicateDefs = [
|
|
|
186
186
|
icon: { text: '1' },
|
|
187
187
|
columnScope: { DataTypes: ['Number'] },
|
|
188
188
|
moduleScope: ['alert', 'flashingcell'],
|
|
189
|
+
handler: ({ value }) => !isNaN(Number(value)),
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
id: 'IsNotNumeric',
|
|
193
|
+
label: 'Is Not Numeric',
|
|
194
|
+
icon: { text: '1' },
|
|
195
|
+
columnScope: { DataTypes: ['Number'] },
|
|
196
|
+
moduleScope: ['alert', 'flashingcell'],
|
|
189
197
|
handler: ({ value }) => isNaN(Number(value)),
|
|
190
198
|
},
|
|
191
199
|
// String System Filters
|
|
@@ -29,6 +29,7 @@ export declare type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFi
|
|
|
29
29
|
* Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
|
|
30
30
|
*/
|
|
31
31
|
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
32
|
+
export declare const ALL_MODULES: AdaptableModule[];
|
|
32
33
|
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
33
34
|
export declare type TypeHint<Base, Literals> = (Base & {
|
|
34
35
|
__subType?: true;
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
This page includes frequently used typed - particularly helpful for State and Api where we can strongly type stuff
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ALL_TOOL_PANELS = exports.ALL_STATUS_SUB_PANELS = exports.ALL_TOOLBARS = void 0;
|
|
6
|
+
exports.ALL_MODULES = exports.ALL_TOOL_PANELS = exports.ALL_STATUS_SUB_PANELS = exports.ALL_TOOLBARS = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
7
9
|
exports.ALL_TOOLBARS = [
|
|
8
10
|
'Alert',
|
|
9
11
|
'BulkUpdate',
|
|
@@ -72,3 +74,38 @@ exports.ALL_TOOL_PANELS = [
|
|
|
72
74
|
'SystemStatus',
|
|
73
75
|
'Theme',
|
|
74
76
|
];
|
|
77
|
+
exports.ALL_MODULES = [
|
|
78
|
+
ModuleConstants.AlertModuleId,
|
|
79
|
+
ModuleConstants.BulkUpdateModuleId,
|
|
80
|
+
ModuleConstants.CalculatedColumnModuleId,
|
|
81
|
+
ModuleConstants.CellSummaryModuleId,
|
|
82
|
+
ModuleConstants.ChartingModuleId,
|
|
83
|
+
ModuleConstants.ConditionalStyleModuleId,
|
|
84
|
+
ModuleConstants.CustomSortModuleId,
|
|
85
|
+
ModuleConstants.DashboardModuleId,
|
|
86
|
+
ModuleConstants.DataChangeHistoryModuleId,
|
|
87
|
+
ModuleConstants.DataSetModuleId,
|
|
88
|
+
ModuleConstants.ExportModuleId,
|
|
89
|
+
ModuleConstants.FilterModuleId,
|
|
90
|
+
ModuleConstants.FlashingCellModuleId,
|
|
91
|
+
ModuleConstants.FormatColumnModuleId,
|
|
92
|
+
ModuleConstants.FreeTextColumnModuleId,
|
|
93
|
+
ModuleConstants.Glue42ModuleId,
|
|
94
|
+
ModuleConstants.GridInfoModuleId,
|
|
95
|
+
ModuleConstants.IPushPullModuleId,
|
|
96
|
+
ModuleConstants.LayoutModuleId,
|
|
97
|
+
ModuleConstants.OpenFinModuleId,
|
|
98
|
+
ModuleConstants.PlusMinusModuleId,
|
|
99
|
+
ModuleConstants.QueryModuleId,
|
|
100
|
+
ModuleConstants.QuickSearchModuleId,
|
|
101
|
+
ModuleConstants.ScheduleModuleId,
|
|
102
|
+
ModuleConstants.SettingsPanelModuleId,
|
|
103
|
+
ModuleConstants.ShortcutModuleId,
|
|
104
|
+
ModuleConstants.SmartEditModuleId,
|
|
105
|
+
ModuleConstants.StateManagementModuleId,
|
|
106
|
+
ModuleConstants.StatusBarModuleId,
|
|
107
|
+
ModuleConstants.SystemStatusModuleId,
|
|
108
|
+
ModuleConstants.TeamSharingModuleId,
|
|
109
|
+
ModuleConstants.ThemeModuleId,
|
|
110
|
+
ModuleConstants.ToolPanelModuleId,
|
|
111
|
+
];
|
|
@@ -65,4 +65,4 @@ export interface FlashingCellDefinition extends SuspendableObject {
|
|
|
65
65
|
*/
|
|
66
66
|
FlashDuration?: number | 'always';
|
|
67
67
|
}
|
|
68
|
-
export declare type SystemFlashingCellPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False' | 'PercentChange' | 'IsNumeric' | 'Any';
|
|
68
|
+
export declare type SystemFlashingCellPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False' | 'PercentChange' | 'IsNumeric' | 'IsNotNumeric' | 'Any';
|
|
@@ -111,11 +111,11 @@ export interface CellColorRange {
|
|
|
111
111
|
/**
|
|
112
112
|
* Start number of Range
|
|
113
113
|
*/
|
|
114
|
-
Min: number;
|
|
114
|
+
Min: number | 'Col-Min';
|
|
115
115
|
/**
|
|
116
116
|
* End number of Range
|
|
117
117
|
*/
|
|
118
|
-
Max: number;
|
|
118
|
+
Max: number | 'Col-Max';
|
|
119
119
|
/**
|
|
120
120
|
* Cell colour to use for values that fall inside Range
|
|
121
121
|
*/
|
|
@@ -899,6 +899,14 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
+
// when changing current layout via the api, the layout should update
|
|
903
|
+
if (returnAction.type == LayoutRedux.LAYOUT_SAVE) {
|
|
904
|
+
const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
|
|
905
|
+
const savingLayout = returnAction.layout;
|
|
906
|
+
if (currentLayout.Name === savingLayout.Name) {
|
|
907
|
+
adaptable.setLayout(savingLayout);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
902
910
|
return returnAction;
|
|
903
911
|
}
|
|
904
912
|
/*******************
|
|
@@ -20,7 +20,7 @@ const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
|
20
20
|
const ActiveAlertsPanelItemLabel_1 = require("../View/Alert/ActiveAlertsPanelItemLabel");
|
|
21
21
|
class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
22
22
|
constructor(api) {
|
|
23
|
-
super(ModuleConstants.AlertModuleId,
|
|
23
|
+
super(ModuleConstants.AlertModuleId, ModuleConstants.AlertModuleFriendlyName, 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
|
|
24
24
|
this.api.internalApi
|
|
25
25
|
.getDataService()
|
|
26
26
|
.on('CellDataChanged', (cellDataChangedInfo) => {
|
|
@@ -10,7 +10,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
|
|
|
10
10
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../Utilities/ObjectFactory"));
|
|
11
11
|
class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
12
12
|
constructor(api) {
|
|
13
|
-
super(ModuleConstants.BulkUpdateModuleId,
|
|
13
|
+
super(ModuleConstants.BulkUpdateModuleId, ModuleConstants.BulkUpdateFriendlyName, 'bulk-update', 'BulkUpdatePopup', 'Update multiple cell simultaneously with a new or existing value', api);
|
|
14
14
|
}
|
|
15
15
|
getViewAccessLevel() {
|
|
16
16
|
return 'Full';
|
|
@@ -13,7 +13,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
|
|
|
13
13
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
14
14
|
class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
15
15
|
constructor(api) {
|
|
16
|
-
super(ModuleConstants.CalculatedColumnModuleId,
|
|
16
|
+
super(ModuleConstants.CalculatedColumnModuleId, ModuleConstants.CalculatedColumnFriendlyName, 'calculated-column', 'CalculatedColumnPopup', 'Create bespoke columns whose cell value is derived dynamically from an Expression', api);
|
|
17
17
|
}
|
|
18
18
|
handleConfigReloaded(adaptableStateReloadedInfo) {
|
|
19
19
|
// re-dispatch the CalculatedColumnReady action to recreate all the aggregated scalar columns
|
|
@@ -9,7 +9,7 @@ const Helper_1 = require("../Utilities/Helpers/Helper");
|
|
|
9
9
|
const CellSummaryStatusPanel_1 = require("../View/CellSummary/CellSummaryStatusPanel");
|
|
10
10
|
class CellSummaryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
11
11
|
constructor(api) {
|
|
12
|
-
super(ModuleConstants.CellSummaryModuleId,
|
|
12
|
+
super(ModuleConstants.CellSummaryModuleId, ModuleConstants.CellSummaryFriendlyName, 'cell-summary', 'CellSummaryPopup', 'See summary information on a group of cells using multiple summary operations', api);
|
|
13
13
|
}
|
|
14
14
|
getViewAccessLevel() {
|
|
15
15
|
return 'Full';
|
|
@@ -6,7 +6,7 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
8
|
constructor(api) {
|
|
9
|
-
super(ModuleConstants.ChartingModuleId,
|
|
9
|
+
super(ModuleConstants.ChartingModuleId, ModuleConstants.ChartingFriendlyName, 'chart', 'ChartPopup', 'Create AG Grid Charts in order to see Adaptable Data visually', api);
|
|
10
10
|
}
|
|
11
11
|
isModuleAvailable() {
|
|
12
12
|
return this.api.chartingApi.isChartingEnabled() && super.isModuleAvailable();
|
|
@@ -15,7 +15,7 @@ const getStyleViewItems_1 = require("./Utilities/getStyleViewItems");
|
|
|
15
15
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
16
16
|
class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
17
17
|
constructor(api) {
|
|
18
|
-
super(ModuleConstants.ConditionalStyleModuleId,
|
|
18
|
+
super(ModuleConstants.ConditionalStyleModuleId, ModuleConstants.ConditionalStyleFriendlyName, 'conditional-style', 'ConditionalStylePopup', 'Style columns and rows dynamically based on rules and cell values', api);
|
|
19
19
|
}
|
|
20
20
|
getModuleAdaptableObjects(config) {
|
|
21
21
|
return this.api.conditionalStyleApi.getAllConditionalStyle(config);
|
|
@@ -11,7 +11,7 @@ const getCustomSortSortOrderViewItems_1 = require("./Utilities/CustomSort/getCus
|
|
|
11
11
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
12
12
|
class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
13
13
|
constructor(api) {
|
|
14
|
-
super(ModuleConstants.CustomSortModuleId,
|
|
14
|
+
super(ModuleConstants.CustomSortModuleId, ModuleConstants.CustomSortFriendlyName, 'custom-sort', 'CustomSortPopup', 'Provide bespoke sorting information for Columns (in place of alphabetical sorting)', api);
|
|
15
15
|
}
|
|
16
16
|
getModuleAdaptableObjects(config) {
|
|
17
17
|
return this.api.customSortApi.getAllCustomSort(config);
|
|
@@ -8,7 +8,7 @@ const DashboardRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/Da
|
|
|
8
8
|
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
9
9
|
class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
10
10
|
constructor(api) {
|
|
11
|
-
super(ModuleConstants.DashboardModuleId,
|
|
11
|
+
super(ModuleConstants.DashboardModuleId, ModuleConstants.DashboardFriendlyName, 'dashboard', 'DashboardPopup', 'The Dashboard - usually placed above the Grid - is designed to provide quick access to commonly required AdapTable functionalty', api);
|
|
12
12
|
}
|
|
13
13
|
updateOldConfig() {
|
|
14
14
|
let dashboardState = this.api.dashboardApi.getDashboardState();
|
|
@@ -8,7 +8,7 @@ const SystemRedux_1 = require("../Redux/ActionsReducers/SystemRedux");
|
|
|
8
8
|
const DataChangeHistoryStatusBarContent_1 = require("../View/DataChangeHistory/DataChangeHistoryStatusBarContent");
|
|
9
9
|
class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
10
10
|
constructor(api) {
|
|
11
|
-
super(ModuleConstants.DataChangeHistoryModuleId,
|
|
11
|
+
super(ModuleConstants.DataChangeHistoryModuleId, ModuleConstants.DataChangeHistoryFriendlyName, 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
|
|
12
12
|
this.api.internalApi
|
|
13
13
|
.getDataService()
|
|
14
14
|
.on('CellDataChanged', (cellDataChangedInfo) => {
|
|
@@ -10,7 +10,7 @@ const Uuid_1 = require("../PredefinedConfig/Uuid");
|
|
|
10
10
|
const DataSetSelector_1 = require("../View/DataSet/DataSetSelector");
|
|
11
11
|
class DataSetModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
12
12
|
constructor(api) {
|
|
13
|
-
super(ModuleConstants.DataSetModuleId,
|
|
13
|
+
super(ModuleConstants.DataSetModuleId, ModuleConstants.DataSetFriendlyName, 'data-set', 'DataSetPopup', 'Update the entire data source in AdapTable using pre-populated data sets', api);
|
|
14
14
|
}
|
|
15
15
|
handleAdaptableReady() {
|
|
16
16
|
this.api.dataSetApi.getAllDataSets().forEach((ds) => {
|
|
@@ -21,7 +21,7 @@ const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
|
21
21
|
const ExportSelector_1 = require("../View/Export/ExportSelector");
|
|
22
22
|
class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
23
23
|
constructor(api) {
|
|
24
|
-
super(ModuleConstants.ExportModuleId,
|
|
24
|
+
super(ModuleConstants.ExportModuleId, ModuleConstants.ExportFriendlyName, 'export-data', 'ExportPopup', 'Export data from the Grid to numerous locations in numerous formatso', api);
|
|
25
25
|
}
|
|
26
26
|
getModuleAdaptableObjects() {
|
|
27
27
|
return this.api.exportApi.getAllReports();
|
|
@@ -11,7 +11,7 @@ const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
|
11
11
|
const FilterStatusBarSubPanelPopover_1 = require("../View/Filter/FilterStatusBarSubPanelPopover");
|
|
12
12
|
class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
13
13
|
constructor(api) {
|
|
14
|
-
super(ModuleConstants.FilterModuleId,
|
|
14
|
+
super(ModuleConstants.FilterModuleId, ModuleConstants.FilterFriendlyName, 'column-filter', 'FilterPopup', 'Advanced filtering capability allows users to see precisely the data they want', api);
|
|
15
15
|
}
|
|
16
16
|
getModuleAdaptableObjects() {
|
|
17
17
|
return this.api.filterApi.getColumnFilters();
|
|
@@ -17,7 +17,7 @@ const getFlashingTargetViewItems_1 = require("./Utilities/FlashingCell/getFlashi
|
|
|
17
17
|
const getFlashingCellStyleViewItems_1 = require("./Utilities/FlashingCell/getFlashingCellStyleViewItems");
|
|
18
18
|
class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
19
19
|
constructor(api) {
|
|
20
|
-
super(ModuleConstants.FlashingCellModuleId,
|
|
20
|
+
super(ModuleConstants.FlashingCellModuleId, ModuleConstants.FlashingCellFriendlyName, 'flashing-cell', 'FlashingAlert', 'Flash cells when they change', api);
|
|
21
21
|
this.api.internalApi
|
|
22
22
|
.getDataService()
|
|
23
23
|
.on('CellDataChanged', (cellDataChangedInfo) => {
|
|
@@ -15,7 +15,7 @@ const getFormatColumnStyleViewItems_1 = require("./Utilities/FormatColumn/getFor
|
|
|
15
15
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
16
16
|
class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
17
17
|
constructor(api) {
|
|
18
|
-
super(ModuleConstants.FormatColumnModuleId,
|
|
18
|
+
super(ModuleConstants.FormatColumnModuleId, ModuleConstants.FormatColumnFriendlyName, 'format-column', 'FormatColumnPopup', 'Create a column style, display format or cell alignment', api);
|
|
19
19
|
/**
|
|
20
20
|
* Use Case: Data (cell/row) has changed
|
|
21
21
|
* Action: Any CheckboxFormatColumns need to be updated, as their disabled state may have changed
|
|
@@ -247,7 +247,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
name: 'Display Format',
|
|
250
|
-
values: [FormatColumnFormatWizardSection_1.getFormatColumnFormatSummaryValue(formatColumn
|
|
250
|
+
values: [FormatColumnFormatWizardSection_1.getFormatColumnFormatSummaryValue(formatColumn)],
|
|
251
251
|
},
|
|
252
252
|
getFormatColumnSettingsViewItems_1.getFormatColumnSettingsViewItems(formatColumn),
|
|
253
253
|
getObjectTagsViewItems_1.getObjectTagsViewItems(formatColumn, this.api),
|
|
@@ -9,7 +9,7 @@ const FreeTextColumnWizard_1 = require("../View/FreeTextColumn/Wizard/FreeTextCo
|
|
|
9
9
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
10
10
|
class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
11
11
|
constructor(api) {
|
|
12
|
-
super(ModuleConstants.FreeTextColumnModuleId,
|
|
12
|
+
super(ModuleConstants.FreeTextColumnModuleId, ModuleConstants.FreeTextColumnFriendlyName, 'freetext-column', 'FreeTextColumnPopup', 'Dynamic column showing custom content (stored in state and not with grid data)', api);
|
|
13
13
|
}
|
|
14
14
|
isModuleAvailable() {
|
|
15
15
|
// FreeTextColumn module doesn't support autogenerated primary keys
|
|
@@ -6,7 +6,7 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
8
|
constructor(api) {
|
|
9
|
-
super(ModuleConstants.GridInfoModuleId,
|
|
9
|
+
super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, 'info', 'GridInfoPopup', 'Display information about the Grid, the Options selected and all columns', api);
|
|
10
10
|
}
|
|
11
11
|
getViewAccessLevel() {
|
|
12
12
|
return 'Full';
|
|
@@ -16,7 +16,7 @@ const getLayoutFilterViewItems_1 = require("./Utilities/Layout/getLayoutFilterVi
|
|
|
16
16
|
const getLayoutSortViewItems_1 = require("./Utilities/Layout/getLayoutSortViewItems");
|
|
17
17
|
class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
18
18
|
constructor(api) {
|
|
19
|
-
super(ModuleConstants.LayoutModuleId,
|
|
19
|
+
super(ModuleConstants.LayoutModuleId, ModuleConstants.LayoutFriendlyName, 'layout', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
|
|
20
20
|
this.api.eventApi.on('LayoutChanged', (layoutChangedInfo) => {
|
|
21
21
|
var _a;
|
|
22
22
|
if (layoutChangedInfo.newLayoutState.CurrentLayout !==
|
|
@@ -247,8 +247,8 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
247
247
|
values: [layout.Name],
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
|
-
name: '
|
|
251
|
-
values: [(layout === null || layout === void 0 ? void 0 : layout.EnablePivot) ? '
|
|
250
|
+
name: 'Layout Grid Type',
|
|
251
|
+
values: [(layout === null || layout === void 0 ? void 0 : layout.EnablePivot) ? 'Pivot' : 'Table'],
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
name: 'Columns',
|
|
@@ -14,7 +14,7 @@ const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
|
14
14
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
15
15
|
class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
16
16
|
constructor(api) {
|
|
17
|
-
super(ModuleConstants.PlusMinusModuleId,
|
|
17
|
+
super(ModuleConstants.PlusMinusModuleId, ModuleConstants.PlusMinusFriendlyName, 'plus-minus', 'PlusMinusPopup', 'Configure how a cell value will edit when the + or - keys are pressed', api);
|
|
18
18
|
this.shouldHandleKeyDown = false;
|
|
19
19
|
this.adaptable = api.internalApi.getAdaptableInstance();
|
|
20
20
|
}
|
|
@@ -10,7 +10,7 @@ const EditCurrentQueryButton_1 = require("../View/Query/EditCurrentQueryButton")
|
|
|
10
10
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
11
11
|
class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
12
12
|
constructor(api) {
|
|
13
|
-
super(ModuleConstants.QueryModuleId,
|
|
13
|
+
super(ModuleConstants.QueryModuleId, ModuleConstants.QueryFriendlyName, 'query', 'QueryPopup', 'Run real-time text-based queries using a wealth of powerful functions and operators', api);
|
|
14
14
|
}
|
|
15
15
|
getModuleAdaptableObjects() {
|
|
16
16
|
return this.api.queryApi.getAllNamedQuery();
|
|
@@ -7,7 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
|
|
|
7
7
|
const QuickSearchStatusBarContent_1 = require("../View/QuickSearch/QuickSearchStatusBarContent");
|
|
8
8
|
class QuickSearchModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
9
9
|
constructor(api) {
|
|
10
|
-
super(ModuleConstants.QuickSearchModuleId,
|
|
10
|
+
super(ModuleConstants.QuickSearchModuleId, ModuleConstants.QuickSearchFriendlyName, 'quick-search', 'QuickSearchPopup', 'Quickly highlight all cells in the grid that contain matching query text', api);
|
|
11
11
|
}
|
|
12
12
|
getViewProperties() {
|
|
13
13
|
return {
|
|
@@ -35,7 +35,7 @@ const NodeSchedule = {
|
|
|
35
35
|
};
|
|
36
36
|
class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
37
37
|
constructor(api) {
|
|
38
|
-
super(ModuleConstants.ScheduleModuleId,
|
|
38
|
+
super(ModuleConstants.ScheduleModuleId, ModuleConstants.ScheduleFriendlyName, 'schedule', 'SchedulePopup', 'Schedule AdapTable functionality to run at times of your choosing (e.g. run reports)', api);
|
|
39
39
|
this.scheduleJobs = [];
|
|
40
40
|
this.addMidnightRefreshSchedule();
|
|
41
41
|
}
|