@adaptabletools/adaptable 14.0.0-canary.2 → 14.0.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/bundle.cjs.js +197 -197
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -1
- package/src/Api/AdaptableApi.d.ts +12 -12
- package/src/Api/ColumnApi.d.ts +2 -10
- package/src/Api/EventApi.d.ts +8 -8
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ColumnApiImpl.js +0 -8
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -1
- package/src/Api/Internal/AdaptableInternalApi.js +4 -3
- package/src/Api/Internal/ExportInternalApi.d.ts +8 -0
- package/src/Api/Internal/ExportInternalApi.js +51 -0
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +11 -0
- package/src/Api/Internal/FormatColumnInternalApi.js +10 -0
- package/src/Api/OptionsApi.d.ts +1 -1
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -0
- package/src/PredefinedConfig/SystemState.d.ts +3 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +8 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +26 -2
- package/src/Redux/Store/AdaptableStore.js +6 -0
- package/src/Strategy/AdaptableModuleBase.js +1 -1
- package/src/Strategy/AlertModule.js +1 -2
- package/src/Strategy/DashboardModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.js +2 -4
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +8 -1
- package/src/Strategy/FilterModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +1 -2
- package/src/Strategy/FreeTextColumnModule.js +1 -2
- package/src/Strategy/LayoutModule.js +6 -6
- package/src/Strategy/SettingsPanelModule.js +1 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +1 -2
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -4
- package/src/Utilities/Services/ChartingService.js +1 -1
- package/src/Utilities/Services/EntitlementService.js +4 -4
- package/src/Utilities/Services/Interface/IReportService.d.ts +7 -1
- package/src/Utilities/Services/QueryLanguageService.js +3 -3
- package/src/Utilities/Services/ReportService.d.ts +10 -2
- package/src/Utilities/Services/ReportService.js +40 -31
- package/src/Utilities/Services/TeamSharingService.js +3 -3
- package/src/Utilities/Services/ValidationService.js +6 -6
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +11 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +6 -27
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
- package/src/View/Components/EntityRulesEditor/Utilities.d.ts +2 -2
- package/src/View/Components/EntityRulesEditor/Utilities.js +19 -12
- package/src/View/Components/FilterForm/FilterForm.js +6 -7
- package/src/View/Components/FilterForm/QuickFilterForm.js +7 -9
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +1 -1
- package/src/View/Components/Popups/AdaptableToaster.js +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -2
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -2
- package/src/View/Dashboard/CustomToolbarWrapper.js +7 -1
- package/src/View/Dashboard/Dashboard.js +5 -5
- package/src/View/Dashboard/DashboardPopup.js +2 -3
- package/src/View/Dashboard/DashboardViewPanel.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +1 -2
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
- package/src/View/Filter/FilterViewPanel.js +3 -3
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +5 -14
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +4 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +4 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +3 -3
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +9 -3
- 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/View/SpecialColumnSettingsWizardStep.js +2 -3
- package/src/agGrid/Adaptable.d.ts +1 -1
- package/src/agGrid/Adaptable.js +123 -39
- package/src/agGrid/PercentBarRenderer.js +1 -1
- package/src/agGrid/agGridHelper.js +3 -0
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +7 -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
|
@@ -53,7 +53,7 @@ class FilterFormComponent extends React.Component {
|
|
|
53
53
|
static createColumnFilterFromProps(props) {
|
|
54
54
|
let existingColumnFilter = props.columnFilters.find((cf) => cf.ColumnId == props.currentColumn.columnId);
|
|
55
55
|
if (!existingColumnFilter) {
|
|
56
|
-
const filterOptions = props.api.
|
|
56
|
+
const filterOptions = props.api.optionsApi.getFilterOptions();
|
|
57
57
|
if (filterOptions.defaultFilterFormTab == 'Values') {
|
|
58
58
|
return ObjectFactory_1.ObjectFactory.CreateColumnFilter(props.currentColumn.columnId, 'Values', []);
|
|
59
59
|
}
|
|
@@ -83,7 +83,7 @@ class FilterFormComponent extends React.Component {
|
|
|
83
83
|
: 'values';
|
|
84
84
|
}
|
|
85
85
|
static getDerivedStateFromProps(props, state) {
|
|
86
|
-
const filterOptions = props.api.
|
|
86
|
+
const filterOptions = props.api.optionsApi.getFilterOptions();
|
|
87
87
|
const editedColumnFilter = filterOptions.autoApplyFilter
|
|
88
88
|
? FilterFormComponent.createColumnFilterFromProps(props)
|
|
89
89
|
: state.editedColumnFilter;
|
|
@@ -110,8 +110,7 @@ class FilterFormComponent extends React.Component {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
async loadPermittedValues(filter = '') {
|
|
113
|
-
const { values: distinctColumnValues, suppressClientSideFilter } = await (0, runIfNotResolvedIn_1.runIfNotResolvedIn)(this.props.api.gridApi.internalApi.getDistinctFilterDisplayValuesForColumn(this.props.currentColumn.columnId, filter, this.props.api.
|
|
114
|
-
.showDistinctFilteredValuesOnly), () => this._isMounted && this.setState({ isDistinctColumnValuesLoading: true }));
|
|
113
|
+
const { values: distinctColumnValues, suppressClientSideFilter } = await (0, runIfNotResolvedIn_1.runIfNotResolvedIn)(this.props.api.gridApi.internalApi.getDistinctFilterDisplayValuesForColumn(this.props.currentColumn.columnId, filter, this.props.api.optionsApi.getFilterOptions().showDistinctFilteredValuesOnly), () => this._isMounted && this.setState({ isDistinctColumnValuesLoading: true }));
|
|
115
114
|
if (!this._isMounted) {
|
|
116
115
|
return;
|
|
117
116
|
}
|
|
@@ -124,7 +123,7 @@ class FilterFormComponent extends React.Component {
|
|
|
124
123
|
render() {
|
|
125
124
|
var _a, _b;
|
|
126
125
|
let isFilterable = this.isFilterable();
|
|
127
|
-
const filterOptions = this.props.api.
|
|
126
|
+
const filterOptions = this.props.api.optionsApi.getFilterOptions();
|
|
128
127
|
const predicateDefs = this.props.api.filterApi
|
|
129
128
|
.getFilterPredicateDefsForColumn(this.props.currentColumn)
|
|
130
129
|
.filter((predicate) => !predicate.onlyQuickFilter);
|
|
@@ -214,7 +213,7 @@ class FilterFormComponent extends React.Component {
|
|
|
214
213
|
this.onCloseForm();
|
|
215
214
|
}
|
|
216
215
|
else {
|
|
217
|
-
if (this.props.api.
|
|
216
|
+
if (this.props.api.optionsApi.getFilterOptions().autoApplyFilter) {
|
|
218
217
|
this.props.onSetColumnFilter(editedColumnFilter);
|
|
219
218
|
}
|
|
220
219
|
}
|
|
@@ -257,7 +256,7 @@ class FilterFormComponent extends React.Component {
|
|
|
257
256
|
const { editedColumnFilter } = this.state;
|
|
258
257
|
editedColumnFilter.Predicate.Inputs[index] = value;
|
|
259
258
|
this.setState({ editedColumnFilter });
|
|
260
|
-
if (this.props.api.
|
|
259
|
+
if (this.props.api.optionsApi.getFilterOptions().autoApplyFilter) {
|
|
261
260
|
this.props.onSetColumnFilter(editedColumnFilter);
|
|
262
261
|
}
|
|
263
262
|
// this.props.onSetColumnFilter(editedColumnFilter);
|
|
@@ -32,8 +32,7 @@ class QuickFilterFormComponent extends React.Component {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
this.loadPermittedValues = async (filter = '') => {
|
|
35
|
-
const { values, suppressClientSideFilter } = await (0, runIfNotResolvedIn_1.runIfNotResolvedIn)(this.props.api.gridApi.internalApi.getDistinctFilterDisplayValuesForColumn(this.props.currentColumn.columnId, filter, this.props.api.
|
|
36
|
-
.showDistinctFilteredValuesOnly), () => this._isMounted && this.setState({ isDistinctColumnValuesLoading: true }));
|
|
35
|
+
const { values, suppressClientSideFilter } = await (0, runIfNotResolvedIn_1.runIfNotResolvedIn)(this.props.api.gridApi.internalApi.getDistinctFilterDisplayValuesForColumn(this.props.currentColumn.columnId, filter, this.props.api.optionsApi.getFilterOptions().showDistinctFilteredValuesOnly), () => this._isMounted && this.setState({ isDistinctColumnValuesLoading: true }));
|
|
37
36
|
if (!this._isMounted) {
|
|
38
37
|
return;
|
|
39
38
|
}
|
|
@@ -67,7 +66,7 @@ class QuickFilterFormComponent extends React.Component {
|
|
|
67
66
|
// there is no way to find out if the changed rows are relevant for this filter, so we have to update it every time :/
|
|
68
67
|
this.handleGridValueChange();
|
|
69
68
|
});
|
|
70
|
-
if ((_c = this.props.api.
|
|
69
|
+
if ((_c = this.props.api.optionsApi.getFilterOptions()) === null || _c === void 0 ? void 0 : _c.showDistinctFilteredValuesOnly) {
|
|
71
70
|
this.props.api.internalApi.getAdaptableInstance()._on('GridFiltered', () => {
|
|
72
71
|
const filter = this.getFilterFromProps();
|
|
73
72
|
if (this.hasValuesPredicate(filter === null || filter === void 0 ? void 0 : filter.Predicate)) {
|
|
@@ -98,7 +97,7 @@ class QuickFilterFormComponent extends React.Component {
|
|
|
98
97
|
}
|
|
99
98
|
getFilterFromProps(props = this.props) {
|
|
100
99
|
const filter = props.columnFilters.find((cf) => cf.ColumnId == props.currentColumn.columnId);
|
|
101
|
-
const filterOptions = props.api.
|
|
100
|
+
const filterOptions = props.api.optionsApi.getFilterOptions();
|
|
102
101
|
if (filter) {
|
|
103
102
|
return filter;
|
|
104
103
|
}
|
|
@@ -132,12 +131,12 @@ class QuickFilterFormComponent extends React.Component {
|
|
|
132
131
|
hideEvent = 'blur';
|
|
133
132
|
}
|
|
134
133
|
let showQuickFilterDropdown = true;
|
|
135
|
-
let hideQuickFilterDropdownFunction = this.props.api.
|
|
134
|
+
let hideQuickFilterDropdownFunction = this.props.api.optionsApi.getFilterOptions().hideQuickFilterDropdown;
|
|
136
135
|
if (hideQuickFilterDropdownFunction) {
|
|
137
136
|
showQuickFilterDropdown = !hideQuickFilterDropdownFunction(this.props.currentColumn);
|
|
138
137
|
}
|
|
139
138
|
let showQuickFilterInput = true;
|
|
140
|
-
let hideQuickFilterInputFunction = this.props.api.
|
|
139
|
+
let hideQuickFilterInputFunction = this.props.api.optionsApi.getFilterOptions().hideQuickFilterInput;
|
|
141
140
|
if (hideQuickFilterInputFunction) {
|
|
142
141
|
showQuickFilterInput = !hideQuickFilterInputFunction(this.props.currentColumn);
|
|
143
142
|
}
|
|
@@ -269,8 +268,7 @@ class QuickFilterFormComponent extends React.Component {
|
|
|
269
268
|
} },
|
|
270
269
|
React.createElement(rebass_1.Flex, { m: 2 },
|
|
271
270
|
React.createElement(SimpleButton_1.default, { onClick: () => this.clearFilter() }, "Clear Filter"),
|
|
272
|
-
((_a = this.props.api.
|
|
273
|
-
false && (React.createElement(SimpleButton_1.default, { ml: 2, onClick: () => this.updateFilter(this.state.filter) }, "Apply Filter"))),
|
|
271
|
+
((_a = this.props.api.optionsApi.getFilterOptions()) === null || _a === void 0 ? void 0 : _a.autoApplyFilter) == false && (React.createElement(SimpleButton_1.default, { ml: 2, onClick: () => this.updateFilter(this.state.filter) }, "Apply Filter"))),
|
|
274
272
|
React.createElement(ListBoxFilterForm_1.ListBoxFilterForm, { disabled: this.isFilterDisabled(), suppressClientSideFilter: this.state.suppressClientSideFilter, isLoading: this.state.isDistinctColumnValuesLoading, onFilterChange: this.handleFilterChange, currentColumn: this.props.currentColumn, columns: [], columnDistinctValues: this.state.distinctColumnValues, dataType: this.props.currentColumn.dataType, uiSelectedColumnValues: this.state.filter.Predicate.Inputs.filter((input) => input !== ''), useAgGridStyle: true, onColumnValueSelectedChange: (list) => this.onColumnValuesChange(list) })));
|
|
275
273
|
} },
|
|
276
274
|
React.createElement(SimpleButton_1.default, { "data-name": 'Select Values', style: {
|
|
@@ -288,7 +286,7 @@ class QuickFilterFormComponent extends React.Component {
|
|
|
288
286
|
var _a;
|
|
289
287
|
const { filter } = this.state;
|
|
290
288
|
filter.Predicate = { PredicateId: filter.Predicate.PredicateId, Inputs: columnValues };
|
|
291
|
-
if ((_a = this.props.api.
|
|
289
|
+
if ((_a = this.props.api.optionsApi.getFilterOptions()) === null || _a === void 0 ? void 0 : _a.autoApplyFilter) {
|
|
292
290
|
this.updateFilter(filter);
|
|
293
291
|
}
|
|
294
292
|
else {
|
|
@@ -8,7 +8,7 @@ const AdaptableViewFactory_1 = require("../../../AdaptableViewFactory");
|
|
|
8
8
|
const AdaptablePopupModuleView_1 = require("./AdaptablePopupModuleView");
|
|
9
9
|
const AdaptablePopupBody = (props) => {
|
|
10
10
|
var _a;
|
|
11
|
-
const modalContainer = UIHelper_1.UIHelper.getModalContainer(props.api.
|
|
11
|
+
const modalContainer = UIHelper_1.UIHelper.getModalContainer(props.api.optionsApi.getAdaptableOptions(), document);
|
|
12
12
|
const moduleName = props.module.moduleInfo.ModuleName;
|
|
13
13
|
const accessLevel = props.api.internalApi
|
|
14
14
|
.getEntitlementService()
|
|
@@ -11,7 +11,7 @@ const TopBar = (props) => {
|
|
|
11
11
|
var _a;
|
|
12
12
|
const baseClassName = 'ab-Adaptable-Popup__TopBar';
|
|
13
13
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
14
|
-
const applicationIcon = (_a = adaptable.api.
|
|
14
|
+
const applicationIcon = (_a = adaptable.api.optionsApi.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.applicationIcon;
|
|
15
15
|
let icon = React.createElement(React.Fragment, null);
|
|
16
16
|
const iconClassName = `${baseClassName}__Icon`;
|
|
17
17
|
if (props.icon === 'ConfigurationIcon') {
|
|
@@ -14,7 +14,7 @@ const showToast = (props) => {
|
|
|
14
14
|
Toastify_1.toast.dismiss();
|
|
15
15
|
api = null;
|
|
16
16
|
});
|
|
17
|
-
const adaptableOptions = props.api.
|
|
17
|
+
const adaptableOptions = props.api.optionsApi.getAdaptableOptions();
|
|
18
18
|
const toastProps = ObjectFactory_1.default.CreateToastOptions(adaptableOptions.notificationsOptions, {
|
|
19
19
|
containerId: adaptableOptions.adaptableId,
|
|
20
20
|
onClose: () => {
|
|
@@ -27,7 +27,7 @@ const AdaptableToolPanelComponent = (props) => {
|
|
|
27
27
|
const toolPanelsGlyph = React.createElement(icons_1.Icon, { name: 'align-justify' });
|
|
28
28
|
const entitlementService = props.api.internalApi.getEntitlementService();
|
|
29
29
|
const moduleService = props.api.internalApi.getModuleService();
|
|
30
|
-
const adaptableOptions = props.api.
|
|
30
|
+
const adaptableOptions = props.api.optionsApi.getAdaptableOptions();
|
|
31
31
|
const toolPanelOptions = adaptableOptions.toolPanelOptions;
|
|
32
32
|
const settingsPanelOptions = adaptableOptions.settingsPanelOptions;
|
|
33
33
|
if (entitlementService.isModuleHiddenEntitlement('ToolPanel')) {
|
|
@@ -66,8 +66,7 @@ class ToolPanelPopupComponent extends React.Component {
|
|
|
66
66
|
const isToolPanelReadOnly = entitlementService.isModuleReadOnlyEntitlement('ToolPanel');
|
|
67
67
|
const isModuleCheckboxDisabled = (module) => {
|
|
68
68
|
if (module === 'SettingsPanel') {
|
|
69
|
-
return this.props.api.
|
|
70
|
-
.alwaysShowInDashboard;
|
|
69
|
+
return this.props.api.optionsApi.getSettingsPanelOptions().alwaysShowInDashboard;
|
|
71
70
|
}
|
|
72
71
|
return false;
|
|
73
72
|
};
|
|
@@ -25,10 +25,9 @@ exports.isValidCustomSortColumn = isValidCustomSortColumn;
|
|
|
25
25
|
const CustomSortColumnWizardSection = (props) => {
|
|
26
26
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
27
27
|
const sortableCols = React.useMemo(() => {
|
|
28
|
-
var _a, _b;
|
|
29
28
|
const sortableColumns = api.columnApi.getSortableColumns();
|
|
30
29
|
const customSorts = api.customSortApi.getCustomSorts();
|
|
31
|
-
const columnSortComparers =
|
|
30
|
+
const columnSortComparers = api.optionsApi.getGeneralOptions().customSortComparers || [];
|
|
32
31
|
const usedColumnIds = [
|
|
33
32
|
...customSorts.map((customSort) => customSort.ColumnId),
|
|
34
33
|
...columnSortComparers.map((comparer) => api.scopeApi.getColumnIdsInScope(comparer.scope)),
|
|
@@ -43,9 +43,15 @@ const CustomToolbarWrapper = (props) => {
|
|
|
43
43
|
if (props.customToolbar.frameworkComponent) {
|
|
44
44
|
adaptableApi.internalApi.createFrameworkComponent(element, props.customToolbar.frameworkComponent, 'toolbar');
|
|
45
45
|
}
|
|
46
|
+
const destroyUnsubscribe = adaptableApi.eventApi.on('AdaptableDestroy', () => {
|
|
47
|
+
var _a;
|
|
48
|
+
(_a = adaptableApi === null || adaptableApi === void 0 ? void 0 : adaptableApi.internalApi) === null || _a === void 0 ? void 0 : _a.destroyFrameworkComponent(element, props.customToolbar.frameworkComponent, 'toolbar');
|
|
49
|
+
});
|
|
46
50
|
return () => {
|
|
51
|
+
var _a;
|
|
52
|
+
destroyUnsubscribe();
|
|
47
53
|
if (props.customToolbar.frameworkComponent) {
|
|
48
|
-
adaptableApi.internalApi.destroyFrameworkComponent(element, props.customToolbar.frameworkComponent, 'toolbar');
|
|
54
|
+
(_a = adaptableApi === null || adaptableApi === void 0 ? void 0 : adaptableApi.internalApi) === null || _a === void 0 ? void 0 : _a.destroyFrameworkComponent(element, props.customToolbar.frameworkComponent, 'toolbar');
|
|
49
55
|
}
|
|
50
56
|
};
|
|
51
57
|
}, []);
|
|
@@ -70,7 +70,7 @@ const DashboardComponent = (props) => {
|
|
|
70
70
|
const renderModuleButtons = () => {
|
|
71
71
|
let shortcutsArray = props.DashboardState.ModuleButtons;
|
|
72
72
|
let shortcuts = null;
|
|
73
|
-
const alwaysShowInDashboard = props.api.
|
|
73
|
+
const alwaysShowInDashboard = props.api.optionsApi.getSettingsPanelOptions().alwaysShowInDashboard;
|
|
74
74
|
const shouldAddSettingsPanel = alwaysShowInDashboard &&
|
|
75
75
|
!props.api.internalApi.getEntitlementService().isModuleHiddenEntitlement('SettingsPanel');
|
|
76
76
|
if (shouldAddSettingsPanel && !shortcutsArray.includes('SettingsPanel')) {
|
|
@@ -100,14 +100,14 @@ const DashboardComponent = (props) => {
|
|
|
100
100
|
};
|
|
101
101
|
const renderQuickSearch = () => {
|
|
102
102
|
return (React.createElement(rebass_1.Box, { ml: 2 },
|
|
103
|
-
React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { type: "text", placeholder: props.api.
|
|
103
|
+
React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { type: "text", placeholder: props.api.optionsApi.getSearchOptions().quickSearchPlaceholder, className: "ab-DashboardToolbar__QuickSearch__text", value: searchText, OnTextChange: search, style: { width: 'auto' }, inputStyle: { width: '7rem' } })));
|
|
104
104
|
};
|
|
105
105
|
let instanceName = props.api.internalApi.getToolbarTitle();
|
|
106
|
-
let dashboardOptions = props.api.
|
|
106
|
+
let dashboardOptions = props.api.optionsApi.getDashboardOptions();
|
|
107
107
|
const shouldRenderQuickSearchHeader = dashboardOptions.showQuickSearchInHeader &&
|
|
108
108
|
props.api.internalApi.getModuleService().getModuleById(ModuleConstants_1.QuickSearchModuleId).isModuleAvailable();
|
|
109
|
-
const applicationIcon = props.api.
|
|
110
|
-
return props.DashboardState.IsHidden ? (React.createElement("div", null)) : (React.createElement(Dashboard_1.Dashboard, { title: instanceName, canFloat: props.api.
|
|
109
|
+
const applicationIcon = props.api.optionsApi.getUserInterfaceOptions().applicationIcon;
|
|
110
|
+
return props.DashboardState.IsHidden ? (React.createElement("div", null)) : (React.createElement(Dashboard_1.Dashboard, { title: instanceName, canFloat: props.api.optionsApi.getDashboardOptions().canFloat, activeTabIndex: props.DashboardState.ActiveTabIndex, onActiveTabIndexChange: (ActiveTabIndex) => {
|
|
111
111
|
props.onSetActiveTabIndex(ActiveTabIndex);
|
|
112
112
|
}, collapsed: props.DashboardState.IsCollapsed, onCollapsedChange: (IsCollapsed) => {
|
|
113
113
|
props.onSetIsCollapsed(IsCollapsed);
|
|
@@ -65,8 +65,7 @@ class DashboardPopupComponent extends React.Component {
|
|
|
65
65
|
const isDashboardDisabled = dashboardAccessLevel === 'ReadOnly';
|
|
66
66
|
const isModuleCheckboxDisabled = (module) => {
|
|
67
67
|
if (module === 'SettingsPanel') {
|
|
68
|
-
return this.props.api.
|
|
69
|
-
.alwaysShowInDashboard;
|
|
68
|
+
return this.props.api.optionsApi.getSettingsPanelOptions().alwaysShowInDashboard;
|
|
70
69
|
}
|
|
71
70
|
return false;
|
|
72
71
|
};
|
|
@@ -75,7 +74,7 @@ class DashboardPopupComponent extends React.Component {
|
|
|
75
74
|
areDashboardSettingsVisible && (React.createElement(Panel_1.default, { header: 'Dashboard Modes', style: { height: 'auto', overflow: 'visible' }, variant: "default", borderRadius: "none" },
|
|
76
75
|
React.createElement(CheckBox_1.CheckBox, { mr: 3, "data-name": "collapse", className: `${baseClassName}__settings-option`, checked: this.props.IsCollapsed, onChange: (checked) => this.props.onSetDashboardCollapsed(checked) }, "Collapse"),
|
|
77
76
|
' ',
|
|
78
|
-
this.props.api.
|
|
77
|
+
this.props.api.optionsApi.getDashboardOptions().canFloat && (React.createElement(CheckBox_1.CheckBox, { mr: 3, "data-name": "floating", className: `${baseClassName}__settings-option`, checked: this.props.IsFloating, onChange: (checked) => this.props.onSetDashboardFloating(checked) }, "Float")),
|
|
79
78
|
' ',
|
|
80
79
|
React.createElement(CheckBox_1.CheckBox, { "data-name": "hidden", className: `${baseClassName}__settings-option`, checked: this.props.IsHidden, onChange: (checked) => this.props.onSetDashboardHidden(checked) }, "Hidden"))),
|
|
81
80
|
React.createElement(Panel_1.default, { header: 'Dashboard Contents', style: { borderBottom: '1px solid var(--ab-color-primary)' }, variant: "default", borderRadius: "none", marginTop: 4 },
|
|
@@ -17,7 +17,7 @@ class DashboardViewPanelComponent extends React.Component {
|
|
|
17
17
|
' ',
|
|
18
18
|
React.createElement(CheckBox_1.CheckBox, { className: `ab-${elementType}__Dashboard__collapsed-check`, marginTop: 0, fontSize: 2, padding: 1, checked: this.props.IsCollapsed, onChange: (checked) => this.props.onSetDashboardCollapsed(checked) }, "Collapse"),
|
|
19
19
|
'',
|
|
20
|
-
this.props.api.
|
|
20
|
+
this.props.api.optionsApi.getDashboardOptions().canFloat && (React.createElement(CheckBox_1.CheckBox, { className: `ab-${elementType}__Dashboard__collapsed-check`, marginTop: 0, fontSize: 2, padding: 1, checked: this.props.IsFloating, onChange: (checked) => this.props.onSetDashboardFloating(checked) }, "Float")),
|
|
21
21
|
' ',
|
|
22
22
|
React.createElement(CheckBox_1.CheckBox, { className: `ab-${elementType}__Dashboard__hidden-check`, marginTop: 0, fontSize: 2, padding: 1, checked: this.props.IsHidden, onChange: (checked) => this.props.onSetDashboardHidden(checked) }, "Hidden")));
|
|
23
23
|
}
|
|
@@ -64,7 +64,7 @@ const DataChangeHistoryGrid = (props) => {
|
|
|
64
64
|
// 2. this UI will be reimplemented with Infinite Table anyway
|
|
65
65
|
const addedRows = mapChangeHistoryRowData(addedChangeHistoryLogs, mainAdaptableInstance);
|
|
66
66
|
const removedRows = mapChangeHistoryRowData(removedChangeHistoryLogs, mainAdaptableInstance);
|
|
67
|
-
adaptableApi.
|
|
67
|
+
adaptableApi.optionsApi.getAgGridOptions().api.applyTransactionAsync({
|
|
68
68
|
add: addedRows,
|
|
69
69
|
remove: removedRows,
|
|
70
70
|
});
|
|
@@ -31,8 +31,7 @@ class DataChangeHistoryPopupComponent extends React.Component {
|
|
|
31
31
|
suspended && (React.createElement(ButtonPlay_1.ButtonPlay, { className: "ab-DataChangeHistoryPopup--button-resume", "data-name": 'data-change-history--button-resume', variant: 'outlined', tooltip: 'Resume tracking data changes', onClick: () => onChangeHistoryResume() }, "Resume")),
|
|
32
32
|
enabled && (React.createElement(ButtonPause_1.ButtonPause, { className: "ab-DataChangeHistoryPopup--button-suspend", "data-name": 'data-change-history--button-suspend', variant: 'outlined', tooltip: 'Suspend tracking data changes', onClick: () => onChangeHistorySuspend() }, "Suspend")),
|
|
33
33
|
(enabled || suspended) && (React.createElement(ButtonStop_1.ButtonStop, { className: "ab-DataChangeHistoryPopup--button-deactivate", "data-name": 'data-change-history--button-deactivate', variant: 'outlined', tooltip: 'Deactivate data change tracking', onClick: () => onChangeHistoryDisable() }, "Deactivate"))));
|
|
34
|
-
const dateFormat = `${this.props.api.
|
|
35
|
-
.dateFormat} HH:mm:ss`;
|
|
34
|
+
const dateFormat = `${this.props.api.optionsApi.getUserInterfaceOptions().dateInputOptions.dateFormat} HH:mm:ss`;
|
|
36
35
|
const statusPanel = (React.createElement(rebass_1.Flex, { className: "ab-DataChangeHistoryPopup--status-panel", alignItems: 'center', style: { gap: 'var(--ab-space-1)' } },
|
|
37
36
|
enabled && (React.createElement(React.Fragment, null,
|
|
38
37
|
React.createElement(rebass_1.Text, { className: "ab-DataChangeHistoryPanel--status-active", style: { color: 'var(--ab-color-success)', fontWeight: 'bold' } }, "Active"),
|
|
@@ -40,7 +40,7 @@ const DataChangeHistoryViewPanelControl = (props) => {
|
|
|
40
40
|
suspended && (React.createElement(ButtonPlay_1.ButtonPlay, { className: "ab-DataChangeHistoryPanel--button-resume", "data-name": 'data-change-history--button-resume', tooltip: 'Resume tracking data changes', onClick: () => onChangeHistoryResume() })),
|
|
41
41
|
enabled && (React.createElement(ButtonPause_1.ButtonPause, { className: "ab-DataChangeHistoryPanel--button-suspend", "data-name": 'data-change-history--button-suspend', tooltip: 'Suspend tracking data changes', onClick: () => onChangeHistorySuspend() })),
|
|
42
42
|
(enabled || suspended) && (React.createElement(ButtonStop_1.ButtonStop, { className: "ab-DataChangeHistoryPanel--button-deactivate", "data-name": 'data-change-history--button-deactivate', tooltip: 'Deactivate data change tracking', onClick: () => onChangeHistoryDisable() }))));
|
|
43
|
-
const dateFormat = `${adaptable.api.
|
|
43
|
+
const dateFormat = `${adaptable.api.optionsApi.getUserInterfaceOptions().dateInputOptions.dateFormat} HH:mm:ss`;
|
|
44
44
|
const statusPanel = (React.createElement(rebass_1.Flex, { className: "ab-DataChangeHistoryPanel--status-panel", alignItems: 'center', style: { gap: gap } },
|
|
45
45
|
enabled && (React.createElement(Tooltip_1.default, { label: !!activationTime && `since ${(0, FormatHelper_1.DateFormatter)(activationTime, { Pattern: dateFormat })}` },
|
|
46
46
|
React.createElement(rebass_1.Text, { className: "ab-DataChangeHistoryPanel--status-active", fontSize: 2, style: { color: 'var(--ab-color-success)' } }, "Active"))),
|
|
@@ -19,10 +19,10 @@ class FilterViewPanelComponent extends React.Component {
|
|
|
19
19
|
super(props);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
var _a, _b
|
|
22
|
+
var _a, _b;
|
|
23
23
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
24
|
-
const showClearButton = (
|
|
25
|
-
const showSuspendFilterButton = (
|
|
24
|
+
const showClearButton = (_a = this.props.api.optionsApi.getFilterOptions()) === null || _a === void 0 ? void 0 : _a.showClearFilterButton;
|
|
25
|
+
const showSuspendFilterButton = (_b = this.props.api.optionsApi.getFilterOptions()) === null || _b === void 0 ? void 0 : _b.showSuspendFilterButton;
|
|
26
26
|
const isAtLeastOneFilterActive = this.props.api.filterApi.getActiveColumnFilters().length > 0;
|
|
27
27
|
const isAtLeastOneFilter = this.props.api.filterApi.getColumnFilters().length > 0;
|
|
28
28
|
const handleSuspendUnsuspendAll = () => {
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isValidFlashingCellRules = void 0;
|
|
4
|
-
const
|
|
4
|
+
const Utilities_1 = require("../../Components/EntityRulesEditor/Utilities");
|
|
5
5
|
const isValidFlashingCellRules = (flashingCell, api, context) => {
|
|
6
|
-
var _a, _b
|
|
7
|
-
let valid = true;
|
|
6
|
+
var _a, _b;
|
|
8
7
|
if (!((_b = (_a = flashingCell.Rule) === null || _a === void 0 ? void 0 : _a.Predicates) === null || _b === void 0 ? void 0 : _b.length) && !flashingCell.Rule.BooleanExpression) {
|
|
9
8
|
return 'No Rule defined for Flashing Cell';
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return 'Predicate is not valid';
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
if (valid && flashingCell.Rule.BooleanExpression) {
|
|
18
|
-
valid = api.queryLanguageApi.isValidBooleanExpression(flashingCell.Rule.BooleanExpression, ModuleConstants_1.FlashingCellModuleId);
|
|
19
|
-
if (!valid) {
|
|
20
|
-
return 'The Expression is not a valid Boolean Expression';
|
|
21
|
-
}
|
|
10
|
+
const isRuleValid = (0, Utilities_1.isAdaptableRuleValid)(flashingCell, api, context);
|
|
11
|
+
if (typeof isRuleValid === 'string') {
|
|
12
|
+
return isRuleValid;
|
|
22
13
|
}
|
|
23
14
|
// boolean expressions may also be saved as named queries
|
|
24
15
|
if (context.namedQuery != false) {
|
|
@@ -151,6 +151,7 @@ const getFormatDisplayTypeForScope = (scope, api) => {
|
|
|
151
151
|
};
|
|
152
152
|
exports.getFormatDisplayTypeForScope = getFormatDisplayTypeForScope;
|
|
153
153
|
const renderDateFormat = (data, _onChange, setFormatOption, scopedCustomFormatters) => {
|
|
154
|
+
var _a;
|
|
154
155
|
if (data.DisplayFormat.Formatter !== 'DateFormatter') {
|
|
155
156
|
return null;
|
|
156
157
|
}
|
|
@@ -165,8 +166,9 @@ const renderDateFormat = (data, _onChange, setFormatOption, scopedCustomFormatte
|
|
|
165
166
|
")."),
|
|
166
167
|
React.createElement(FormLayout_1.default, null,
|
|
167
168
|
React.createElement(FormLayout_1.FormRow, { label: "Pattern" },
|
|
168
|
-
React.createElement(Input_1.default, { "data-name": "pattern", value: data.DisplayFormat.Options.Pattern, onChange: (e) => setFormatOption('Pattern', e.currentTarget.value), mr: 2 }),
|
|
169
|
-
React.createElement("span", null,
|
|
169
|
+
React.createElement(Input_1.default, { "data-name": "pattern", value: (_a = data.DisplayFormat.Options.Pattern) !== null && _a !== void 0 ? _a : '', onChange: (e) => setFormatOption('Pattern', e.currentTarget.value), mr: 2 }),
|
|
170
|
+
React.createElement("span", null, data.DisplayFormat.Options.Pattern &&
|
|
171
|
+
FormatHelper_1.default.DateFormatter(new Date(), data.DisplayFormat.Options, true)))))),
|
|
170
172
|
scopedCustomFormatters.length > 0 && (React.createElement(Tabs_1.Tabs, { marginTop: 2, keyboardNavigation: false },
|
|
171
173
|
React.createElement(Tabs_1.Tabs.Tab, null, "Custom Formats"),
|
|
172
174
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
@@ -97,7 +97,10 @@ function FormatColumnWizard(props) {
|
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
isValid: (abObject, api, context) => {
|
|
100
|
-
|
|
100
|
+
if (!abObject.Rule) {
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
return (0, Utilities_1.isAdaptableRuleValid)(abObject, api, context);
|
|
101
104
|
},
|
|
102
105
|
title: 'Condition',
|
|
103
106
|
details: 'Build a Rule when the Format Column should be applied',
|
|
@@ -62,7 +62,7 @@ exports.isValidFreeTextColumn = isValidFreeTextColumn;
|
|
|
62
62
|
const FreeTextColumnSettingsWizardSection = (props) => {
|
|
63
63
|
var _a;
|
|
64
64
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
65
|
-
const Pattern = api.
|
|
65
|
+
const Pattern = api.optionsApi.getUserInterfaceOptions().dateInputOptions.dateFormat;
|
|
66
66
|
const [ColumnNameFocused, setColumnNameFocused] = (0, react_1.useState)(false);
|
|
67
67
|
const inEdit = props.isEdit;
|
|
68
68
|
const validCheck = (0, exports.isValidFreeTextColumn)(data, api);
|
|
@@ -65,7 +65,7 @@ const GridInfoPopup = (props) => {
|
|
|
65
65
|
})
|
|
66
66
|
: null;
|
|
67
67
|
const selectedRowInfo = props.api.gridApi.getSelectedRowInfo();
|
|
68
|
-
if ((_a = props.api.
|
|
68
|
+
if ((_a = props.api.optionsApi.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.showAdapTableVersion) {
|
|
69
69
|
returnRows.push(createReadOnlyColItem(colItems, 'AdapTable Version', version_1.default));
|
|
70
70
|
}
|
|
71
71
|
returnRows.push(createReadOnlyColItem(colItems, 'Sorted Columns', ArrayExtensions_1.default.IsNotNullOrEmpty(sorts) ? sorts.join('; ') : 'None'));
|
|
@@ -15,13 +15,13 @@ const tableDOMProps = {
|
|
|
15
15
|
const PivotDetailsPopoup = (props) => {
|
|
16
16
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
17
17
|
const adaptableApi = adaptable.api;
|
|
18
|
-
const primaryKey = adaptableApi.
|
|
18
|
+
const primaryKey = adaptableApi.optionsApi.getPrimaryKey();
|
|
19
19
|
const { hasPivotValue, rows, rowGroups, columnId, layout, aggColumn, pivotValue, pivotColumnId, } = props.popupProps;
|
|
20
20
|
let data = rows;
|
|
21
21
|
const columns = React.useMemo(() => {
|
|
22
|
-
var _a
|
|
22
|
+
var _a;
|
|
23
23
|
const getFriendlyName = (columnId) => adaptableApi.columnApi.getFriendlyNameForColumnId(columnId);
|
|
24
|
-
const pivotPreviewOptionColumn = (
|
|
24
|
+
const pivotPreviewOptionColumn = (_a = adaptableApi.optionsApi.getLayoutOptions()) === null || _a === void 0 ? void 0 : _a.pivotPreviewColumns;
|
|
25
25
|
let pivotPreviewExtraColumns = [];
|
|
26
26
|
if (typeof pivotPreviewOptionColumn === 'function') {
|
|
27
27
|
const pivotPreviewColumnsContext = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OnePageAdaptableWizardContextType } from '../../Wizard/OnePageAdaptableWizard';
|
|
3
|
-
import {
|
|
3
|
+
import { AdaptableApi, PlusMinusNudge } from '../../../types';
|
|
4
4
|
export declare const PlusMinusSettingsSummary: React.FunctionComponent<{
|
|
5
5
|
hasCondition: boolean;
|
|
6
6
|
}>;
|
|
7
|
-
export declare const isSettingsValid: (hasCondition: boolean) => (data: PlusMinusNudge, api: AdaptableApi, context: OnePageAdaptableWizardContextType<PlusMinusNudge>) =>
|
|
7
|
+
export declare const isSettingsValid: (hasCondition: boolean) => (data: PlusMinusNudge, api: AdaptableApi, context: OnePageAdaptableWizardContextType<PlusMinusNudge>) => string | true;
|
|
8
8
|
interface PlusMinusSettingsWizardSectionProps {
|
|
9
9
|
onChange: (plusMinusNudge: PlusMinusNudge) => void;
|
|
10
10
|
hasCondition: boolean;
|
|
@@ -24,9 +24,15 @@ const PlusMinusSettingsSummary = (props) => {
|
|
|
24
24
|
};
|
|
25
25
|
exports.PlusMinusSettingsSummary = PlusMinusSettingsSummary;
|
|
26
26
|
const isSettingsValid = (hasCondition) => (data, api, context) => {
|
|
27
|
-
|
|
28
|
-
if (
|
|
29
|
-
|
|
27
|
+
var _a;
|
|
28
|
+
if (hasCondition) {
|
|
29
|
+
if (!((_a = data === null || data === void 0 ? void 0 : data.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression)) {
|
|
30
|
+
return 'No valid Rule is specified';
|
|
31
|
+
}
|
|
32
|
+
const ruleValidation = (0, Utilities_1.isAdaptableRuleValid)(data, api, context);
|
|
33
|
+
if (typeof ruleValidation === 'string') {
|
|
34
|
+
return ruleValidation;
|
|
35
|
+
}
|
|
30
36
|
}
|
|
31
37
|
if (typeof data.NudgeValue !== 'number') {
|
|
32
38
|
return 'Nudge value is not specified';
|
|
@@ -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.
|
|
21
|
+
RunQueryAfterQuickSearch: props.api.optionsApi.getSearchOptions().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.
|
|
30
|
+
props.api.optionsApi.getAdaptableOptions().searchOptions.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.
|
|
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.getSearchOptions().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.
|
|
15
|
+
return (React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { onClick: (event) => event.stopPropagation(), type: "text", inputStyle: { padding: '2px 3px', width: 90 }, placeholder: adaptable.api.optionsApi.getSearchOptions().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.
|
|
13
|
+
return (React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { type: "text", placeholder: props.api.optionsApi.getSearchOptions().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 {
|
|
@@ -12,7 +12,7 @@ const AdaptableContext_1 = require("./AdaptableContext");
|
|
|
12
12
|
const SpecialColumnSettingsWizardStep = (props) => {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
15
|
-
const possibleColumnTypes = adaptable.api.
|
|
15
|
+
const possibleColumnTypes = adaptable.api.optionsApi.getColumnOptions().columnTypes;
|
|
16
16
|
const { Filterable, Resizable, Groupable, Sortable, Pivotable, Aggregatable, SuppressMenu, SuppressMovable, } = (_a = props.settings) !== null && _a !== void 0 ? _a : {};
|
|
17
17
|
const handleColumnTypeChange = (columnType, checked) => {
|
|
18
18
|
var _a, _b, _c;
|
|
@@ -38,8 +38,7 @@ const SpecialColumnSettingsWizardStep = (props) => {
|
|
|
38
38
|
{ size: '30%', name: 'third' },
|
|
39
39
|
] },
|
|
40
40
|
React.createElement(FormLayout_1.FormRow, null,
|
|
41
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "filterable", checked: Filterable, onChange: (Filterable) => onSettingsChange({ Filterable }), disabled: !adaptable.api.
|
|
42
|
-
.enableFilterOnSpecialColumns }, "Filterable"),
|
|
41
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "filterable", checked: Filterable, onChange: (Filterable) => onSettingsChange({ Filterable }), disabled: !adaptable.api.optionsApi.getFilterOptions().enableFilterOnSpecialColumns }, "Filterable"),
|
|
43
42
|
React.createElement(CheckBox_1.CheckBox, { "data-name": "resizable", checked: Resizable, onChange: (Resizable) => onSettingsChange({ Resizable }) }, "Resizable"),
|
|
44
43
|
React.createElement(CheckBox_1.CheckBox, { "data-name": "groupable", checked: Groupable, onChange: (Groupable) => onSettingsChange({ Groupable }) }, "Groupable")),
|
|
45
44
|
React.createElement(FormLayout_1.FormRow, null,
|
|
@@ -282,7 +282,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
282
282
|
private getUserColDefProperty;
|
|
283
283
|
setupColumnCellStyle({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
284
284
|
setupColumnCellClass({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
285
|
-
getExcelClassNameForCell(colId: string, primaryKeyValue: any): string;
|
|
285
|
+
getExcelClassNameForCell(colId: string, primaryKeyValue: any, userDefinedCellClass?: string | string[]): string;
|
|
286
286
|
setupColumnCellEditor({ colId, col }: ColumnSetupInfo): void;
|
|
287
287
|
setupColumnCellRenderer({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
288
288
|
setupColumnTooltipValueGetter({ col, colId, abColumn }: ColumnSetupInfo): void;
|