@adaptabletools/adaptable 16.0.0-canary.0 → 16.0.0-canary.2
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 +71 -71
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +15 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -7
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +51 -0
- package/src/AdaptableOptions/{SearchOptions.d.ts → QuickSearchOptions.d.ts} +2 -2
- package/src/AdaptableOptions/QuickSearchOptions.js +2 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +0 -43
- package/src/Api/Implementation/ApiBase.d.ts +3 -2
- package/src/Api/Implementation/ApiBase.js +5 -2
- package/src/Api/Implementation/CellSummaryApiImpl.js +2 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +3 -2
- package/src/Api/Implementation/OptionsApiImpl.js +5 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/OptionsApi.d.ts +6 -2
- package/src/PredefinedConfig/Common/CellSummary.d.ts +1 -0
- package/src/PredefinedConfig/Common/Enums.d.ts +2 -1
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/Redux/Store/AdaptableStore.js +1 -1
- package/src/Strategy/CellSummaryModule.js +1 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +5 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +1 -1
- package/src/Utilities/ObjectFactory.js +1 -0
- package/src/Utilities/Services/MetamodelService.js +4 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +6 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +6 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +32 -23
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +5 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +11 -11
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +11 -21
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +5 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +4 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +3 -4
- package/src/View/AdaptableWizardView/Wizard.d.ts +4 -1
- package/src/View/AdaptableWizardView/Wizard.js +11 -10
- package/src/View/Dashboard/Dashboard.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +6 -2
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +1 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.js +1 -1
- package/src/agGrid/Adaptable.d.ts +7 -7
- package/src/agGrid/Adaptable.js +38 -36
- package/src/agGrid/agGridHelper.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +57 -30
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +5 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/src/AdaptableOptions/{SearchOptions.js → FormatColumnOptions.js} +0 -0
|
@@ -388,11 +388,11 @@ const renderStringFormat = (data, _onChange, setFormatOption, scopedCustomFormat
|
|
|
388
388
|
] })))));
|
|
389
389
|
};
|
|
390
390
|
const FormatColumnFormatWizardSection = (props) => {
|
|
391
|
-
var _a
|
|
391
|
+
var _a;
|
|
392
392
|
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
393
393
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
394
394
|
const formatColumnApi = adaptable.api.formatColumnApi;
|
|
395
|
-
const customDisplayFormatters = (
|
|
395
|
+
const customDisplayFormatters = (_a = adaptable.api.optionsApi.getFormatColumnOptions().customDisplayFormatters) !== null && _a !== void 0 ? _a : [];
|
|
396
396
|
const update = (updated) => {
|
|
397
397
|
props.onChange(Object.assign(Object.assign({}, data), updated));
|
|
398
398
|
};
|
|
@@ -18,7 +18,7 @@ const useQuickSearchDebounced_1 = require("./useQuickSearchDebounced");
|
|
|
18
18
|
const QuickSearchPopupComponent = (props) => {
|
|
19
19
|
const [searchText, search] = (0, useQuickSearchDebounced_1.useQuickSearchDebounced)(props);
|
|
20
20
|
const [state, setState] = (0, react_1.useState)({
|
|
21
|
-
RunQueryAfterQuickSearch: props.api.optionsApi.
|
|
21
|
+
RunQueryAfterQuickSearch: props.api.optionsApi.getQuickSearchOptions().filterResultsAfterQuickSearch,
|
|
22
22
|
EditedStyle: props.QuickSearchStyle,
|
|
23
23
|
});
|
|
24
24
|
const onUpdateStyle = (style) => {
|
|
@@ -27,14 +27,14 @@ const QuickSearchPopupComponent = (props) => {
|
|
|
27
27
|
};
|
|
28
28
|
const onQuickSearchBehaviourChange = (checked) => {
|
|
29
29
|
setState(Object.assign(Object.assign({}, state), { RunQueryAfterQuickSearch: checked }));
|
|
30
|
-
props.api.optionsApi.getAdaptableOptions().
|
|
30
|
+
props.api.optionsApi.getAdaptableOptions().quickSearchOptions.filterResultsAfterQuickSearch =
|
|
31
31
|
checked;
|
|
32
32
|
};
|
|
33
33
|
return (React.createElement(PopupPanel_1.PopupPanel, { headerText: props.moduleInfo.FriendlyName, glyphicon: props.moduleInfo.Glyph, infoLink: props.moduleInfo.HelpPage, infoLinkDisabled: !props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
34
34
|
React.createElement(Panel_1.default, { header: props.moduleInfo.FriendlyName + ' Text', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginLeft: 2, marginRight: 2 },
|
|
35
35
|
' ',
|
|
36
36
|
React.createElement(FormLayout_1.default, null,
|
|
37
|
-
React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { "data-name": "quick-search-text", type: "text", marginLeft: 2, marginRight: 5, padding: 20, style: { height: '100%' }, placeholder: props.api.optionsApi.
|
|
37
|
+
React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { "data-name": "quick-search-text", type: "text", marginLeft: 2, marginRight: 5, padding: 20, style: { height: '100%' }, placeholder: props.api.optionsApi.getQuickSearchOptions().quickSearchPlaceholder, value: searchText, OnTextChange: search }))),
|
|
38
38
|
React.createElement(Panel_1.default, { header: props.api.internalApi.getCorrectEnglishVariant('Behaviour'), style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginLeft: 2, marginRight: 2 },
|
|
39
39
|
' ',
|
|
40
40
|
React.createElement(rebass_1.Flex, { flexDirection: "column" },
|
|
@@ -12,6 +12,6 @@ const QuickSearchStatusBarContent = () => {
|
|
|
12
12
|
const dispatch = (0, react_redux_1.useDispatch)();
|
|
13
13
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
14
14
|
const handleTextChange = React.useCallback((text) => dispatch(QuickSearchRedux.QuickSearchRun(text)), []);
|
|
15
|
-
return (React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { onClick: (event) => event.stopPropagation(), type: "text", inputStyle: { padding: '2px 3px', width: 90 }, placeholder: adaptable.api.optionsApi.
|
|
15
|
+
return (React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { onClick: (event) => event.stopPropagation(), type: "text", inputStyle: { padding: '2px 3px', width: 90 }, placeholder: adaptable.api.optionsApi.getQuickSearchOptions().quickSearchPlaceholder, value: text, OnTextChange: handleTextChange }));
|
|
16
16
|
};
|
|
17
17
|
exports.QuickSearchStatusBarContent = QuickSearchStatusBarContent;
|
|
@@ -10,7 +10,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
10
10
|
const QuickSearchViewPanelComponent = (props) => {
|
|
11
11
|
const [searchText, search] = (0, useQuickSearchDebounced_1.useQuickSearchDebounced)(props);
|
|
12
12
|
const elementType = props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
13
|
-
return (React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { type: "text", placeholder: props.api.optionsApi.
|
|
13
|
+
return (React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { type: "text", placeholder: props.api.optionsApi.getQuickSearchOptions().quickSearchPlaceholder, className: `ab-${elementType}__QuickSearch__text`, value: searchText, OnTextChange: search, style: { height: '100%' }, inputStyle: { width: '7rem' } }));
|
|
14
14
|
};
|
|
15
15
|
function mapStateToProps(state) {
|
|
16
16
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChartRef, ColDef, ColGroupDef, Column, ColumnRowGroupChangedEvent, ExcelStyle, GridOptions, IRowNode, Module, ModuleNames } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard } from '../AdaptableInterfaces/AdaptableNoCodeWizard';
|
|
3
|
-
import { AdaptableVariant, IAdaptable } from '../AdaptableInterfaces/IAdaptable';
|
|
3
|
+
import { AdaptableVariant, AgGridConfig, IAdaptable } from '../AdaptableInterfaces/IAdaptable';
|
|
4
4
|
import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
|
|
5
5
|
import { AdaptablePlugin } from '../AdaptableOptions/AdaptablePlugin';
|
|
6
6
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
@@ -39,6 +39,7 @@ import { IRowEditService } from '../Utilities/Services/Interface/IRowEditService
|
|
|
39
39
|
import { RenderReactRootFn } from '../renderReactRoot';
|
|
40
40
|
import { AdaptableLogger } from './AdaptableLogger';
|
|
41
41
|
declare type RuntimeConfig = {
|
|
42
|
+
gridOptions: GridOptions;
|
|
42
43
|
waitForAgGrid?: boolean;
|
|
43
44
|
supressReact18RenderWarning?: boolean;
|
|
44
45
|
renderReactRoot?: RenderReactRootFn;
|
|
@@ -118,21 +119,19 @@ export declare class Adaptable implements IAdaptable {
|
|
|
118
119
|
* @param runtimeConfig the list of all the provided AG Grid modules (which will be passed to the underlying AG Grid instance)
|
|
119
120
|
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
120
121
|
*/
|
|
121
|
-
static init(adaptableOptions: AdaptableOptions,
|
|
122
|
-
agGridModules: Module[];
|
|
123
|
-
}): Promise<AdaptableApi>;
|
|
122
|
+
static init(adaptableOptions: AdaptableOptions, agGridConfig: AgGridConfig): Promise<AdaptableApi>;
|
|
124
123
|
/**
|
|
125
124
|
* Lazy static constructor for Adaptable
|
|
126
125
|
* Receives an AdaptableOptions object
|
|
127
126
|
* Returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
128
127
|
* @param adaptableOptions an instance of AdaptableOptions
|
|
129
128
|
*/
|
|
130
|
-
static initInternal(adaptableOptions: AdaptableOptions, runtimeConfig
|
|
129
|
+
static initInternal(adaptableOptions: AdaptableOptions, runtimeConfig: RuntimeConfig): Promise<AdaptableApi>;
|
|
131
130
|
private static collectInstance;
|
|
132
131
|
static forEachAdaptable(fn: (adaptable: Adaptable) => void): void;
|
|
133
132
|
private static dismissInstance;
|
|
134
133
|
constructor();
|
|
135
|
-
init(adaptableOptions: AdaptableOptions, runtimeConfig
|
|
134
|
+
init(adaptableOptions: AdaptableOptions, runtimeConfig: RuntimeConfig, _staticInit?: boolean): Promise<AdaptableApi>;
|
|
136
135
|
forPlugins(callback: (plugin: AdaptablePlugin) => any): void;
|
|
137
136
|
getPlugin(pluginId: string): AdaptablePlugin;
|
|
138
137
|
getPluginProperty(pluginId: string, propertyName: string, ...args: any): any;
|
|
@@ -328,7 +327,8 @@ export declare class Adaptable implements IAdaptable {
|
|
|
328
327
|
private applyCurrentTheme;
|
|
329
328
|
private applyFinalRendering;
|
|
330
329
|
isAgGridModulePresent(moduleName: ModuleNames): boolean;
|
|
331
|
-
|
|
330
|
+
getAgGridRegisteredModules(): Module[];
|
|
331
|
+
private getAgGridRegisteredModuleNames;
|
|
332
332
|
private onRowDataChanged;
|
|
333
333
|
private onCellDataChanged;
|
|
334
334
|
private isUndoChange;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -282,14 +282,15 @@ class Adaptable {
|
|
|
282
282
|
* @param runtimeConfig the list of all the provided AG Grid modules (which will be passed to the underlying AG Grid instance)
|
|
283
283
|
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
284
284
|
*/
|
|
285
|
-
static init(adaptableOptions,
|
|
285
|
+
static init(adaptableOptions, agGridConfig) {
|
|
286
286
|
var _a;
|
|
287
|
-
if (!((_a =
|
|
287
|
+
if (!((_a = agGridConfig === null || agGridConfig === void 0 ? void 0 : agGridConfig.modules) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
288
288
|
AdaptableLogger_1.AdaptableLogger.consoleErrorBase(`No AG Grid modules were provided, thus limiting AdapTables features significantly!\n\nRead further info here:${DocumentationLinkConstants_1.AgGridModulesDocsLink}`);
|
|
289
289
|
}
|
|
290
290
|
return Adaptable.initInternal(adaptableOptions, {
|
|
291
|
+
gridOptions: agGridConfig.gridOptions,
|
|
291
292
|
supressReact18RenderWarning: true,
|
|
292
|
-
agGridModules:
|
|
293
|
+
agGridModules: agGridConfig.modules,
|
|
293
294
|
});
|
|
294
295
|
}
|
|
295
296
|
/**
|
|
@@ -354,29 +355,27 @@ class Adaptable {
|
|
|
354
355
|
async init(adaptableOptions, runtimeConfig, _staticInit) {
|
|
355
356
|
this.logger = new AdaptableLogger_1.AdaptableLogger(adaptableOptions.adaptableId || String(Date.now()));
|
|
356
357
|
const perfAdaptableInit = this.logger.beginPerf(`Adaptable init()`);
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
// releaseReactWarnings();
|
|
374
|
-
};
|
|
358
|
+
this.supressReact18RenderWarning = !!runtimeConfig.supressReact18RenderWarning;
|
|
359
|
+
if (runtimeConfig.renderReactRoot) {
|
|
360
|
+
this.renderReactRoot = (el, container) => {
|
|
361
|
+
const unmount = runtimeConfig.renderReactRoot(el, container);
|
|
362
|
+
return () => {
|
|
363
|
+
// we used to capture here because of FloatingFilters/Filters - see FloatingFilterWrapper and FilterWrapper
|
|
364
|
+
// as we didn't have a native React implementation for our React wrapper
|
|
365
|
+
// but we might need to do this again in the future for some other components that are not native React
|
|
366
|
+
// captureReactWarnings();
|
|
367
|
+
if (typeof unmount === 'function') {
|
|
368
|
+
// rAF is required, otherwise the unmount would be performed during the rendering phase and React doesn't like that
|
|
369
|
+
requestAnimationFrame(() => {
|
|
370
|
+
unmount();
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
// releaseReactWarnings();
|
|
375
374
|
};
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
if (runtimeConfig.variant) {
|
|
378
|
+
this.variant = runtimeConfig.variant;
|
|
380
379
|
}
|
|
381
380
|
if (!_staticInit) {
|
|
382
381
|
this.logger.warn(`
|
|
@@ -387,8 +386,11 @@ class Adaptable {
|
|
|
387
386
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!`);
|
|
388
387
|
}
|
|
389
388
|
this.emitter = new Emitter_1.default();
|
|
389
|
+
this.runtimeConfig = runtimeConfig;
|
|
390
|
+
this.gridOptions = this.runtimeConfig.gridOptions;
|
|
390
391
|
// we create AdaptableOptions by merging the values provided by the user with the defaults (where no value has been set)
|
|
391
392
|
this.adaptableOptions = AdaptableHelper_1.default.assignAdaptableOptions(adaptableOptions);
|
|
393
|
+
this.adaptableOptions._gridOptions = this.gridOptions;
|
|
392
394
|
if (this.hasAutogeneratedPrimaryKey()) {
|
|
393
395
|
this.logger
|
|
394
396
|
.warn(`Autogenerated primary key (adaptableOptions.autogeneratedPrimaryKey = TRUE) should be used only as a last resort,
|
|
@@ -398,8 +400,6 @@ class Adaptable {
|
|
|
398
400
|
this.adaptableOptions.primaryKey = GeneralConstants_1.AUTOGENERATED_PK_COLUMN;
|
|
399
401
|
}
|
|
400
402
|
Adaptable.collectInstance(this);
|
|
401
|
-
this.runtimeConfig = runtimeConfig || {};
|
|
402
|
-
this.gridOptions = this.adaptableOptions.gridOptions;
|
|
403
403
|
if (this.gridOptions.allowContextMenuWithControlKey === undefined) {
|
|
404
404
|
this.gridOptions.allowContextMenuWithControlKey = true;
|
|
405
405
|
}
|
|
@@ -444,6 +444,8 @@ class Adaptable {
|
|
|
444
444
|
// @ts-ignore
|
|
445
445
|
this.RowEditService = new RowEditService_1.RowEditService(this.api);
|
|
446
446
|
this.MetamodelService = new MetamodelService_1.MetamodelService(() => this.api.optionsApi.getAdaptableOptions());
|
|
447
|
+
// validate the provided AdaptableOptions
|
|
448
|
+
this.MetamodelService.validateAdaptableOptionsValues();
|
|
447
449
|
this.forPlugins((plugin) => plugin.afterInitServices(this));
|
|
448
450
|
// Set up Modules - we set up all the Modules suitable for AG Grid
|
|
449
451
|
// But users can make some hidden or readonly in their entitlements
|
|
@@ -463,15 +465,13 @@ class Adaptable {
|
|
|
463
465
|
this.gridOptions.columnTypes.abColDefDate.cellEditor =
|
|
464
466
|
this.variant === 'react' ? AdaptableDateEditor_1.ReactAdaptableDateEditor : AdaptableDateEditor_1.AdaptableDateEditor;
|
|
465
467
|
}
|
|
466
|
-
// validate the provided AdaptableOptions
|
|
467
|
-
this.MetamodelService.validateAdaptableOptionsValues();
|
|
468
468
|
return this.initializeAgGrid().then((initialized) => {
|
|
469
469
|
if (!initialized) {
|
|
470
470
|
// we have no grid, we can't do anything
|
|
471
471
|
this.logger.error('Unable to set up AG Grid');
|
|
472
472
|
return this.api;
|
|
473
473
|
}
|
|
474
|
-
this.logger.info(`Registered AG Grid modules: `, this.
|
|
474
|
+
this.logger.info(`Registered AG Grid modules: `, this.getAgGridRegisteredModuleNames().sort());
|
|
475
475
|
let self = this;
|
|
476
476
|
// add our adaptable object to the grid options api object
|
|
477
477
|
// this is VERY useful for when we need to access Adaptable inside of agGrid only functions
|
|
@@ -584,7 +584,7 @@ class Adaptable {
|
|
|
584
584
|
this.logger.info('emit AdaptableReady');
|
|
585
585
|
this.api.eventApi.emit('AdaptableReady', {
|
|
586
586
|
adaptableApi: this.api,
|
|
587
|
-
gridOptions: this.
|
|
587
|
+
gridOptions: this.gridOptions,
|
|
588
588
|
});
|
|
589
589
|
// }, 0);
|
|
590
590
|
perfInitState.end();
|
|
@@ -1256,7 +1256,7 @@ class Adaptable {
|
|
|
1256
1256
|
if (!params.node) {
|
|
1257
1257
|
return false;
|
|
1258
1258
|
}
|
|
1259
|
-
if (!this.api.optionsApi.
|
|
1259
|
+
if (!this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnRowGroups && params.node.group) {
|
|
1260
1260
|
return false;
|
|
1261
1261
|
}
|
|
1262
1262
|
let quickSearchValue = this.api.quickSearchApi.getQuickSearchValue();
|
|
@@ -3781,6 +3781,9 @@ class Adaptable {
|
|
|
3781
3781
|
return !!allGridModulesMap[moduleName];
|
|
3782
3782
|
}
|
|
3783
3783
|
getAgGridRegisteredModules() {
|
|
3784
|
+
return core_1.ModuleRegistry.__getRegisteredModules(this.gridOptions.gridId);
|
|
3785
|
+
}
|
|
3786
|
+
getAgGridRegisteredModuleNames() {
|
|
3784
3787
|
return core_1.ModuleRegistry.__getRegisteredModules(this.gridOptions.gridId).map((module) => module.moduleName);
|
|
3785
3788
|
}
|
|
3786
3789
|
onRowDataChanged({ rowNode, oldData, newData, }) {
|
|
@@ -5133,13 +5136,12 @@ class AdaptableNoCodeWizard {
|
|
|
5133
5136
|
constructor(adaptableOptions, extraOptions = {}) {
|
|
5134
5137
|
var _a;
|
|
5135
5138
|
const defaultInit = async ({ gridOptions, adaptableOptions, agGridModules, }) => {
|
|
5136
|
-
adaptableOptions
|
|
5137
|
-
return await Adaptable.init(adaptableOptions, { agGridModules: agGridModules });
|
|
5139
|
+
return await Adaptable.init(adaptableOptions, { gridOptions, modules: agGridModules });
|
|
5138
5140
|
};
|
|
5139
5141
|
this.adaptableOptions = adaptableOptions;
|
|
5140
5142
|
this.init = extraOptions.onInit || defaultInit;
|
|
5141
5143
|
this.extraOptions = extraOptions;
|
|
5142
|
-
this.agGridModules = core_1.ModuleRegistry.__getRegisteredModules((_a = this.adaptableOptions.
|
|
5144
|
+
this.agGridModules = core_1.ModuleRegistry.__getRegisteredModules((_a = this.adaptableOptions._gridOptions) === null || _a === void 0 ? void 0 : _a.gridId);
|
|
5143
5145
|
this.render();
|
|
5144
5146
|
}
|
|
5145
5147
|
render(container) {
|
|
@@ -5168,7 +5170,7 @@ class AdaptableNoCodeWizard {
|
|
|
5168
5170
|
unmount();
|
|
5169
5171
|
this.init({
|
|
5170
5172
|
adaptableOptions,
|
|
5171
|
-
gridOptions: adaptableOptions.
|
|
5173
|
+
gridOptions: adaptableOptions._gridOptions,
|
|
5172
5174
|
agGridModules: [...this.agGridModules],
|
|
5173
5175
|
});
|
|
5174
5176
|
} })), container, true);
|
|
@@ -221,7 +221,7 @@ class agGridHelper {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
// lets set this here one as the function cannot change the result so dont need to run it each time
|
|
224
|
-
let excludeColumnFromQuickSearch = this.adaptable.adaptableOptions.
|
|
224
|
+
let excludeColumnFromQuickSearch = this.adaptable.adaptableOptions.quickSearchOptions.excludeColumnFromQuickSearch;
|
|
225
225
|
if (excludeColumnFromQuickSearch) {
|
|
226
226
|
if (excludeColumnFromQuickSearch(abColumn)) {
|
|
227
227
|
abColumn.isExcludedFromQuickSearch = true;
|
|
@@ -540,7 +540,7 @@ class agGridHelper {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
// if they have selected to clear searches on startup then do it
|
|
543
|
-
if (this.adaptable.adaptableOptions.
|
|
543
|
+
if (this.adaptable.adaptableOptions.quickSearchOptions.clearSearchesOnStartUp) {
|
|
544
544
|
if (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.adaptable.api.quickSearchApi.getQuickSearchState().QuickSearchText) ||
|
|
545
545
|
StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.adaptable.api.queryApi.getCurrentQuery()) ||
|
|
546
546
|
ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.dataSetApi.getDataSets())) {
|
|
@@ -964,6 +964,22 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
964
964
|
kind: string;
|
|
965
965
|
desc: string;
|
|
966
966
|
};
|
|
967
|
+
AgGridConfig: {
|
|
968
|
+
name: string;
|
|
969
|
+
kind: string;
|
|
970
|
+
desc: string;
|
|
971
|
+
props: ({
|
|
972
|
+
name: string;
|
|
973
|
+
kind: string;
|
|
974
|
+
desc: string;
|
|
975
|
+
ref: string;
|
|
976
|
+
} | {
|
|
977
|
+
name: string;
|
|
978
|
+
kind: string;
|
|
979
|
+
desc: string;
|
|
980
|
+
ref?: undefined;
|
|
981
|
+
})[];
|
|
982
|
+
};
|
|
967
983
|
AlertButton: {
|
|
968
984
|
name: string;
|
|
969
985
|
kind: string;
|
|
@@ -2975,6 +2991,17 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2975
2991
|
defVal?: undefined;
|
|
2976
2992
|
})[];
|
|
2977
2993
|
};
|
|
2994
|
+
FormatColumnOptions: {
|
|
2995
|
+
name: string;
|
|
2996
|
+
kind: string;
|
|
2997
|
+
desc: string;
|
|
2998
|
+
props: {
|
|
2999
|
+
name: string;
|
|
3000
|
+
kind: string;
|
|
3001
|
+
desc: string;
|
|
3002
|
+
isOpt: boolean;
|
|
3003
|
+
}[];
|
|
3004
|
+
};
|
|
2978
3005
|
FormatColumnPredicate: {
|
|
2979
3006
|
name: string;
|
|
2980
3007
|
kind: string;
|
|
@@ -3986,6 +4013,36 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3986
4013
|
isOpt: boolean;
|
|
3987
4014
|
}[];
|
|
3988
4015
|
};
|
|
4016
|
+
QuickSearchOptions: {
|
|
4017
|
+
name: string;
|
|
4018
|
+
kind: string;
|
|
4019
|
+
desc: string;
|
|
4020
|
+
props: ({
|
|
4021
|
+
name: string;
|
|
4022
|
+
kind: string;
|
|
4023
|
+
desc: string;
|
|
4024
|
+
isOpt: boolean;
|
|
4025
|
+
gridInfo: string;
|
|
4026
|
+
defVal: string;
|
|
4027
|
+
noCode?: undefined;
|
|
4028
|
+
} | {
|
|
4029
|
+
name: string;
|
|
4030
|
+
kind: string;
|
|
4031
|
+
desc: string;
|
|
4032
|
+
isOpt: boolean;
|
|
4033
|
+
defVal: string;
|
|
4034
|
+
gridInfo?: undefined;
|
|
4035
|
+
noCode?: undefined;
|
|
4036
|
+
} | {
|
|
4037
|
+
name: string;
|
|
4038
|
+
kind: string;
|
|
4039
|
+
desc: string;
|
|
4040
|
+
isOpt: boolean;
|
|
4041
|
+
gridInfo: string;
|
|
4042
|
+
noCode: string;
|
|
4043
|
+
defVal: string;
|
|
4044
|
+
})[];
|
|
4045
|
+
};
|
|
3989
4046
|
QuickSearchState: {
|
|
3990
4047
|
name: string;
|
|
3991
4048
|
kind: string;
|
|
@@ -4215,36 +4272,6 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
4215
4272
|
isOpt: boolean;
|
|
4216
4273
|
}[];
|
|
4217
4274
|
};
|
|
4218
|
-
SearchOptions: {
|
|
4219
|
-
name: string;
|
|
4220
|
-
kind: string;
|
|
4221
|
-
desc: string;
|
|
4222
|
-
props: ({
|
|
4223
|
-
name: string;
|
|
4224
|
-
kind: string;
|
|
4225
|
-
desc: string;
|
|
4226
|
-
isOpt: boolean;
|
|
4227
|
-
gridInfo: string;
|
|
4228
|
-
defVal: string;
|
|
4229
|
-
noCode?: undefined;
|
|
4230
|
-
} | {
|
|
4231
|
-
name: string;
|
|
4232
|
-
kind: string;
|
|
4233
|
-
desc: string;
|
|
4234
|
-
isOpt: boolean;
|
|
4235
|
-
defVal: string;
|
|
4236
|
-
gridInfo?: undefined;
|
|
4237
|
-
noCode?: undefined;
|
|
4238
|
-
} | {
|
|
4239
|
-
name: string;
|
|
4240
|
-
kind: string;
|
|
4241
|
-
desc: string;
|
|
4242
|
-
isOpt: boolean;
|
|
4243
|
-
gridInfo: string;
|
|
4244
|
-
noCode: string;
|
|
4245
|
-
defVal: string;
|
|
4246
|
-
})[];
|
|
4247
|
-
};
|
|
4248
4275
|
SelectedCellInfo: {
|
|
4249
4276
|
name: string;
|
|
4250
4277
|
kind: string;
|