@adaptabletools/adaptable 13.0.0-canary.17 → 13.0.0-canary.19
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/base.css +99 -0
- package/base.css.map +1 -1
- package/bundle.cjs.js +128 -128
- package/index.css +115 -0
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
- package/src/Api/ExportApi.d.ts +6 -6
- package/src/Api/FormatColumnApi.d.ts +47 -29
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ExportApiImpl.js +14 -14
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +23 -11
- package/src/Api/Implementation/FormatColumnApiImpl.js +48 -63
- package/src/PredefinedConfig/FormatColumnState.d.ts +4 -3
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +0 -18
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +0 -18
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +4 -4
- package/src/Redux/ActionsReducers/PluginsRedux.js +5 -5
- package/src/Strategy/FormatColumnModule.js +2 -12
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -1
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/ObjectFactory.js +4 -4
- package/src/Utilities/Services/ReportService.js +6 -6
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +9 -9
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -5
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
- package/src/View/Components/AdaptableObjectRow/index.js +1 -6
- package/src/View/Components/Buttons/ButtonInfo.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonInfo.js +3 -5
- package/src/View/Components/EntityRulesEditor/index.js +8 -17
- package/src/View/Components/FilterForm/FilterForm.js +11 -16
- package/src/View/Components/FilterForm/QuickFilterForm.js +7 -13
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/Panels/PanelWithButton.js +1 -5
- package/src/View/Components/Panels/PanelWithImage.js +1 -5
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +3 -16
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +5 -5
- package/src/View/Components/ScopeComponent.js +4 -4
- package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
- package/src/View/Components/StyleComponent.js +12 -17
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/Export/ReportExportDropdown.js +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +10 -11
- package/src/View/FlashingCell/FlashingCellStyle.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +6 -6
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +26 -26
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +2 -6
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +5 -5
- package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +3 -3
- package/src/View/SmartEdit/SmartEditPopup.js +3 -3
- package/src/View/SpecialColumnSettingsWizardStep.js +10 -10
- package/src/View/StateManagement/StateManagementPopup.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.js +2 -6
- package/src/View/SystemStatus/SystemStatusEntityRow.js +4 -6
- package/src/View/TeamSharing/SharedEntityObjectView.js +1 -1
- package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
- package/src/View/Theme/ThemePopup.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +1 -2
- package/src/agGrid/Adaptable.d.ts +0 -1
- package/src/agGrid/Adaptable.js +41 -65
- package/src/agGrid/PercentBarRenderer.js +3 -6
- package/src/agGrid/weightedAverage.js +19 -11
- package/src/components/CheckBox/index.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +13 -32
- package/src/components/ExpressionEditor/index.js +9 -17
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/StylePreview.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +16 -11
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -61,10 +61,10 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
61
61
|
const reports = this.getAvailableSystemReports()
|
|
62
62
|
.map((s) => this.getReportByName(s))
|
|
63
63
|
.concat(this.getExportState().Reports);
|
|
64
|
-
const
|
|
65
|
-
if (ArrayExtensions_1.default.IsNotNullOrEmpty(
|
|
66
|
-
reports.push(...
|
|
67
|
-
return ObjectFactory_1.default.
|
|
64
|
+
const serverReports = this.getAllServerReports();
|
|
65
|
+
if (ArrayExtensions_1.default.IsNotNullOrEmpty(serverReports)) {
|
|
66
|
+
reports.push(...serverReports.map((c) => {
|
|
67
|
+
return ObjectFactory_1.default.CreateServerReport(c.name);
|
|
68
68
|
}));
|
|
69
69
|
}
|
|
70
70
|
return reports;
|
|
@@ -120,7 +120,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
120
120
|
return true;
|
|
121
121
|
}
|
|
122
122
|
// if its a Custom Report then the User has to run it so we just ignore completely
|
|
123
|
-
if (this.
|
|
123
|
+
if (this.isServerReport(report)) {
|
|
124
124
|
return false;
|
|
125
125
|
}
|
|
126
126
|
// Start with the DataChanged Column and go through all possibilities
|
|
@@ -178,21 +178,21 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
178
178
|
exportVisualDataToExcel() {
|
|
179
179
|
this.adaptable.exportVisualDataToExcel();
|
|
180
180
|
}
|
|
181
|
-
|
|
182
|
-
return this.getExportOptions().
|
|
181
|
+
getAllServerReports() {
|
|
182
|
+
return this.getExportOptions().serverReports;
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
isServerReport(report) {
|
|
185
185
|
var _a;
|
|
186
|
-
return ((_a = this.
|
|
186
|
+
return ((_a = this.getAllServerReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == report.Name)) != null;
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
runServerReport(serverReportName) {
|
|
189
189
|
var _a;
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
192
|
-
(0, LoggingHelper_1.LogAdaptableWarning)(`
|
|
190
|
+
const serverReport = (_a = this.getAllServerReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == serverReportName);
|
|
191
|
+
if (!serverReport) {
|
|
192
|
+
(0, LoggingHelper_1.LogAdaptableWarning)(`Server Report '${serverReportName}' not found!`);
|
|
193
193
|
return undefined;
|
|
194
194
|
}
|
|
195
|
-
return
|
|
195
|
+
return serverReport.onRunReport();
|
|
196
196
|
}
|
|
197
197
|
getReportDataForReport(reportName) {
|
|
198
198
|
const report = this.getReportByName(reportName);
|
|
@@ -13,6 +13,7 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
13
13
|
getAllActiveFormatColumn(): FormatColumn[];
|
|
14
14
|
getAllSuspendedFormatColumn(): FormatColumn[];
|
|
15
15
|
getAllFormatColumnWithStyle(): FormatColumn[];
|
|
16
|
+
getAllFormatColumnWithStyleAndCellAlignment(): FormatColumn[];
|
|
16
17
|
getAllFormatColumnWithDisplayFormat(): FormatColumn[];
|
|
17
18
|
getAllFormatColumnWithCellAlignment(): FormatColumn[];
|
|
18
19
|
addFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
@@ -25,16 +26,24 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
25
26
|
suspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
26
27
|
unSuspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
27
28
|
applyFormatColumnDisplayFormats(): void;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
getFormatColumnsForColumn(column: AdaptableColumn, config?: {
|
|
30
|
+
includeSuspended?: boolean;
|
|
31
|
+
}): FormatColumn[];
|
|
32
|
+
getFormatColumnsWithStyleForColumn(column: AdaptableColumn, config?: {
|
|
33
|
+
includeSuspended?: boolean;
|
|
34
|
+
}): FormatColumn[];
|
|
35
|
+
getFormatColumnsForColumnId(columnId: string, config?: {
|
|
36
|
+
includeSuspended?: boolean;
|
|
37
|
+
}): FormatColumn[];
|
|
38
|
+
getFormatColumnWithStyleClassNameForColumn(column: AdaptableColumn, config?: {
|
|
39
|
+
includeSuspended?: boolean;
|
|
40
|
+
}): FormatColumn[];
|
|
41
|
+
getFormatColumnsWithDisplayFormatForColumn(column: AdaptableColumn, config?: {
|
|
42
|
+
includeSuspended?: boolean;
|
|
43
|
+
}): FormatColumn[];
|
|
35
44
|
getFormatColumnWithSingleColumnScope(columnId: string): FormatColumn | undefined;
|
|
36
45
|
private getFormatColumnInColumnScope;
|
|
37
|
-
private
|
|
46
|
+
private getFormatColumnWithColumnInScope;
|
|
38
47
|
hasStyleFormatColumns(): boolean;
|
|
39
48
|
showFormatColumnPopup(): void;
|
|
40
49
|
getFormatColumnsWithAllScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
|
|
@@ -47,10 +56,11 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
47
56
|
hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
|
|
48
57
|
getFormatColumnPredicateDefs(): AdaptablePredicateDef[];
|
|
49
58
|
getFormatColumnDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
50
|
-
|
|
59
|
+
getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
|
|
51
60
|
node: RowNode;
|
|
52
|
-
|
|
53
|
-
|
|
61
|
+
value: any;
|
|
62
|
+
}): FormatColumn[];
|
|
63
|
+
isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
|
|
54
64
|
node: RowNode;
|
|
55
65
|
value: any;
|
|
56
66
|
}): boolean;
|
|
@@ -58,4 +68,6 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
58
68
|
private shouldRunStyle;
|
|
59
69
|
private evaluateExpression;
|
|
60
70
|
getFormatColumnsWithExpression(): FormatColumn[] | undefined;
|
|
71
|
+
incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
72
|
+
decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
61
73
|
}
|
|
@@ -27,13 +27,16 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
27
27
|
return this.getAllFormatColumn().filter((formatColumn) => formatColumn.IsSuspended);
|
|
28
28
|
}
|
|
29
29
|
getAllFormatColumnWithStyle() {
|
|
30
|
-
return this.getAllFormatColumn().filter((fc) => fc.Style
|
|
30
|
+
return this.getAllFormatColumn().filter((fc) => fc.Style);
|
|
31
|
+
}
|
|
32
|
+
getAllFormatColumnWithStyleAndCellAlignment() {
|
|
33
|
+
return this.getAllFormatColumn().filter((fc) => fc.Style || fc.CellAlignment);
|
|
31
34
|
}
|
|
32
35
|
getAllFormatColumnWithDisplayFormat() {
|
|
33
|
-
return this.getAllFormatColumn().filter((fc) => fc.DisplayFormat
|
|
36
|
+
return this.getAllFormatColumn().filter((fc) => fc.DisplayFormat);
|
|
34
37
|
}
|
|
35
38
|
getAllFormatColumnWithCellAlignment() {
|
|
36
|
-
return this.getAllFormatColumn().filter((fc) => fc.CellAlignment
|
|
39
|
+
return this.getAllFormatColumn().filter((fc) => fc.CellAlignment);
|
|
37
40
|
}
|
|
38
41
|
addFormatColumn(formatColumn) {
|
|
39
42
|
this.addUidToAdaptableObject(formatColumn);
|
|
@@ -77,37 +80,27 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
77
80
|
applyFormatColumnDisplayFormats() {
|
|
78
81
|
throw 'This API method is deprecated - it is not needed anymore.';
|
|
79
82
|
}
|
|
80
|
-
|
|
81
|
-
const formatColumns = this.
|
|
82
|
-
return this.
|
|
83
|
-
}
|
|
84
|
-
getColumnFormatColumnsWithStyle(column) {
|
|
85
|
-
const formatColumns = this.getAllFormatColumnWithStyle();
|
|
86
|
-
return this.getFormatColumnInColumnScope(formatColumns, column).filter((scopedFormatColumn) => {
|
|
87
|
-
return this.adaptable.api.scopeApi.isColumnInScope(column, scopedFormatColumn.Scope);
|
|
88
|
-
});
|
|
83
|
+
getFormatColumnsForColumn(column, config) {
|
|
84
|
+
const formatColumns = this.getAllFormatColumn().filter((formatColumn) => (config === null || config === void 0 ? void 0 : config.includeSuspended) || !formatColumn.IsSuspended);
|
|
85
|
+
return this.getFormatColumnWithColumnInScope(formatColumns, column);
|
|
89
86
|
}
|
|
90
|
-
|
|
91
|
-
const formatColumns = this.
|
|
92
|
-
return this.
|
|
87
|
+
getFormatColumnsWithStyleForColumn(column, config) {
|
|
88
|
+
const formatColumns = this.getAllFormatColumnWithStyleAndCellAlignment().filter((formatColumn) => (config === null || config === void 0 ? void 0 : config.includeSuspended) || !formatColumn.IsSuspended);
|
|
89
|
+
return this.getFormatColumnWithColumnInScope(formatColumns, column);
|
|
93
90
|
}
|
|
94
|
-
|
|
91
|
+
getFormatColumnsForColumnId(columnId, config) {
|
|
95
92
|
const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
|
|
96
93
|
if (!abColumn) {
|
|
97
94
|
return undefined;
|
|
98
95
|
}
|
|
99
|
-
return this.
|
|
96
|
+
return this.getFormatColumnsForColumn(abColumn, config);
|
|
100
97
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return this.getAppropriateFormatColumn(formatColumns, column);
|
|
98
|
+
getFormatColumnWithStyleClassNameForColumn(column, config) {
|
|
99
|
+
return this.getFormatColumnsWithStyleForColumn(column, config).filter((formatColumn) => { var _a; return StringExtensions_1.default.IsNotNullOrEmpty((_a = formatColumn === null || formatColumn === void 0 ? void 0 : formatColumn.Style) === null || _a === void 0 ? void 0 : _a.ClassName); });
|
|
104
100
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
getFormatColumnWithDisplayFormatForColumn(column) {
|
|
109
|
-
const formatColumns = this.getAllFormatColumnWithDisplayFormat();
|
|
110
|
-
return this.getAppropriateFormatColumn(formatColumns, column);
|
|
101
|
+
getFormatColumnsWithDisplayFormatForColumn(column, config) {
|
|
102
|
+
const formatColumns = this.getAllFormatColumnWithDisplayFormat().filter((formatColumn) => (config === null || config === void 0 ? void 0 : config.includeSuspended) || !formatColumn.IsSuspended);
|
|
103
|
+
return this.getFormatColumnWithColumnInScope(formatColumns, column);
|
|
111
104
|
}
|
|
112
105
|
getFormatColumnWithSingleColumnScope(columnId) {
|
|
113
106
|
const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
|
|
@@ -126,7 +119,8 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
126
119
|
});
|
|
127
120
|
return returnFormatColumn;
|
|
128
121
|
}
|
|
129
|
-
|
|
122
|
+
// TODO is this really needed, I don't think it achieves anything
|
|
123
|
+
getFormatColumnInColumnScope(formatColumns) {
|
|
130
124
|
// we need to maintain the format columns order, therefore we will extract all 3 scope types in a single iteration
|
|
131
125
|
return formatColumns.filter((fc) => {
|
|
132
126
|
return (
|
|
@@ -138,8 +132,8 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
138
132
|
this.adaptable.api.scopeApi.scopeIsAll(fc.Scope));
|
|
139
133
|
});
|
|
140
134
|
}
|
|
141
|
-
|
|
142
|
-
return this.getFormatColumnInColumnScope(formatColumns
|
|
135
|
+
getFormatColumnWithColumnInScope(formatColumns, column) {
|
|
136
|
+
return this.getFormatColumnInColumnScope(formatColumns).filter((scopedFormatColumn) => this.adaptable.api.scopeApi.isColumnInScope(column, scopedFormatColumn.Scope));
|
|
143
137
|
}
|
|
144
138
|
hasStyleFormatColumns() {
|
|
145
139
|
return ArrayExtensions_1.default.IsNotNullOrEmpty(this.getAllFormatColumnWithStyle());
|
|
@@ -214,50 +208,35 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
214
208
|
getFormatColumnDefsForScope(scope) {
|
|
215
209
|
return this.getFormatColumnPredicateDefs().filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
|
|
216
210
|
}
|
|
217
|
-
|
|
218
|
-
|
|
211
|
+
getFormatColumnsRelevantForColumn(formatColumns, column, params) {
|
|
212
|
+
return formatColumns.filter((formatColumn) => this.isFormatColumnRelevantForColumn(formatColumn, column, params));
|
|
213
|
+
}
|
|
214
|
+
isFormatColumnRelevantForColumn(formatColumn, column, params) {
|
|
215
|
+
// suspended is important to be first
|
|
219
216
|
if (formatColumn.IsSuspended) {
|
|
220
217
|
return false;
|
|
221
218
|
}
|
|
222
219
|
if (!formatColumn.Rule) {
|
|
223
220
|
return true;
|
|
224
221
|
}
|
|
225
|
-
if (
|
|
226
|
-
|
|
227
|
-
this.evaluateExpression(formatColumn, params.node)) {
|
|
228
|
-
return true;
|
|
229
|
-
}
|
|
230
|
-
// nothing has passed then return false
|
|
231
|
-
return false;
|
|
232
|
-
}
|
|
233
|
-
isFormatColumnActiveForColumn(formatColumn, column, params) {
|
|
234
|
-
// suspedned is important to be first
|
|
235
|
-
if (formatColumn.IsSuspended) {
|
|
222
|
+
if (!formatColumn.IncludeGroupedRows &&
|
|
223
|
+
this.adaptable.api.gridApi.isGroupRowNode(params.node)) {
|
|
236
224
|
return false;
|
|
237
225
|
}
|
|
238
|
-
|
|
239
|
-
|
|
226
|
+
// first run the predicate
|
|
227
|
+
if (formatColumn.Rule.Predicate && formatColumn.Rule.Predicate.PredicateId) {
|
|
228
|
+
return this.evaluatePredicate({
|
|
229
|
+
formatColumn,
|
|
230
|
+
column,
|
|
231
|
+
value: params.value,
|
|
232
|
+
node: params.node,
|
|
233
|
+
});
|
|
240
234
|
}
|
|
241
|
-
if (
|
|
242
|
-
|
|
243
|
-
if (formatColumn.Rule.Predicate && formatColumn.Rule.Predicate.PredicateId) {
|
|
244
|
-
if (this.evaluatePredicate({
|
|
245
|
-
formatColumn,
|
|
246
|
-
column,
|
|
247
|
-
value: params.value,
|
|
248
|
-
node: params.node,
|
|
249
|
-
})) {
|
|
250
|
-
return true;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
else if (formatColumn.Rule.BooleanExpression) {
|
|
254
|
-
if (this.evaluateExpression(formatColumn, params.node)) {
|
|
255
|
-
return true;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
// nothing has passed then return false
|
|
259
|
-
return false;
|
|
235
|
+
else if (formatColumn.Rule.BooleanExpression) {
|
|
236
|
+
return this.evaluateExpression(formatColumn, params.node);
|
|
260
237
|
}
|
|
238
|
+
// nothing has passed then return false
|
|
239
|
+
return false;
|
|
261
240
|
}
|
|
262
241
|
evaluatePredicate({ formatColumn, column, value, node, }) {
|
|
263
242
|
const params = {
|
|
@@ -286,5 +265,11 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
286
265
|
getFormatColumnsWithExpression() {
|
|
287
266
|
return this.getAllFormatColumn().filter((fc) => { var _a; return !!((_a = fc.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression); });
|
|
288
267
|
}
|
|
268
|
+
incrementFormatColumnPrecedence(formatColumn) {
|
|
269
|
+
this.dispatchAction(FormatColumnRedux.FormatColumnMoveUp(formatColumn));
|
|
270
|
+
}
|
|
271
|
+
decrementFormatColumnPrecedence(formatColumn) {
|
|
272
|
+
this.dispatchAction(FormatColumnRedux.FormatColumnMoveDown(formatColumn));
|
|
273
|
+
}
|
|
289
274
|
}
|
|
290
275
|
exports.FormatColumnApiImpl = FormatColumnApiImpl;
|
|
@@ -51,7 +51,7 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
51
51
|
IncludeGroupedRows?: boolean;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* The Format Column Rule - can be either a Predicate or
|
|
54
|
+
* The Format Column Rule - can be either a Predicate or a BooleanExpression
|
|
55
55
|
*/
|
|
56
56
|
export declare type FormatColumnRule = XOR<{
|
|
57
57
|
Predicate: FormatColumnPredicate;
|
|
@@ -59,9 +59,11 @@ export declare type FormatColumnRule = XOR<{
|
|
|
59
59
|
export interface FormatColumnPredicate extends AdaptablePredicate {
|
|
60
60
|
PredicateId: TypeHint<string, SystemFormatColumnPredicateId>;
|
|
61
61
|
}
|
|
62
|
-
declare type SystemFormatColumnPredicateId = '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';
|
|
62
|
+
export declare type SystemFormatColumnPredicateId = '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';
|
|
63
63
|
/**
|
|
64
64
|
* Special Style used when Formatting Columns: Gradient, PercentBar or CheckBox
|
|
65
|
+
*
|
|
66
|
+
* @deprecated use StyledColumn instead
|
|
65
67
|
*/
|
|
66
68
|
export interface ColumnStyle {
|
|
67
69
|
/**
|
|
@@ -77,4 +79,3 @@ export interface ColumnStyle {
|
|
|
77
79
|
*/
|
|
78
80
|
CheckBoxStyle?: boolean;
|
|
79
81
|
}
|
|
80
|
-
export {};
|
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
import * as Redux from 'redux';
|
|
2
2
|
import { ConditionalStyleState, ConditionalStyle } from '../../PredefinedConfig/ConditionalStyleState';
|
|
3
|
-
/**
|
|
4
|
-
* @ReduxAction A Conditional Style has been added
|
|
5
|
-
*/
|
|
6
3
|
export declare const CONDITIONAL_STYLE_ADD = "CONDITIONAL_STYLE_ADD";
|
|
7
|
-
/**
|
|
8
|
-
* @ReduxAction A Conditional Style has been edited
|
|
9
|
-
*/
|
|
10
4
|
export declare const CONDITIONAL_STYLE_EDIT = "CONDITIONAL_STYLE_EDIT";
|
|
11
|
-
/**
|
|
12
|
-
* @ReduxAction A Conditional Style has been deleted
|
|
13
|
-
*/
|
|
14
5
|
export declare const CONDITIONAL_STYLE_DELETE = "CONDITIONAL_STYLE_DELETE";
|
|
15
|
-
/**
|
|
16
|
-
* @ReduxAction Conditional Style Module is ready
|
|
17
|
-
*/
|
|
18
6
|
export declare const CONDITIONAL_STYLE_READY = "CONDITIONAL_STYLE_READY";
|
|
19
|
-
/**
|
|
20
|
-
* @ReduxAction Conditional Style is suspended
|
|
21
|
-
*/
|
|
22
7
|
export declare const CONDITIONAL_STYLE_SUSPEND = "CONDITIONAL_STYLE_SUSPEND";
|
|
23
|
-
/**
|
|
24
|
-
* @ReduxAction Conditional Style is unsuspended, or activated
|
|
25
|
-
*/
|
|
26
8
|
export declare const CONDITIONAL_STYLE_UNSUSPEND = "CONDITIONAL_STYLE_UNSUSPEND";
|
|
27
9
|
export interface ConditionalStyleAction extends Redux.Action {
|
|
28
10
|
conditionalStyle: ConditionalStyle;
|
|
@@ -5,29 +5,11 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
7
7
|
const utils_1 = require("./utils");
|
|
8
|
-
/**
|
|
9
|
-
* @ReduxAction A Conditional Style has been added
|
|
10
|
-
*/
|
|
11
8
|
exports.CONDITIONAL_STYLE_ADD = 'CONDITIONAL_STYLE_ADD';
|
|
12
|
-
/**
|
|
13
|
-
* @ReduxAction A Conditional Style has been edited
|
|
14
|
-
*/
|
|
15
9
|
exports.CONDITIONAL_STYLE_EDIT = 'CONDITIONAL_STYLE_EDIT';
|
|
16
|
-
/**
|
|
17
|
-
* @ReduxAction A Conditional Style has been deleted
|
|
18
|
-
*/
|
|
19
10
|
exports.CONDITIONAL_STYLE_DELETE = 'CONDITIONAL_STYLE_DELETE';
|
|
20
|
-
/**
|
|
21
|
-
* @ReduxAction Conditional Style Module is ready
|
|
22
|
-
*/
|
|
23
11
|
exports.CONDITIONAL_STYLE_READY = 'CONDITIONAL_STYLE_READY';
|
|
24
|
-
/**
|
|
25
|
-
* @ReduxAction Conditional Style is suspended
|
|
26
|
-
*/
|
|
27
12
|
exports.CONDITIONAL_STYLE_SUSPEND = 'CONDITIONAL_STYLE_SUSPEND';
|
|
28
|
-
/**
|
|
29
|
-
* @ReduxAction Conditional Style is unsuspended, or activated
|
|
30
|
-
*/
|
|
31
13
|
exports.CONDITIONAL_STYLE_UNSUSPEND = 'CONDITIONAL_STYLE_UNSUSPEND';
|
|
32
14
|
const ConditionalStyleAdd = (conditionalStyle) => ({
|
|
33
15
|
type: exports.CONDITIONAL_STYLE_ADD,
|
|
@@ -162,19 +162,19 @@ export declare const GLUE42_LIVE_REPORT_CLEAR = "GLUE42_LIVE_REPORT_CLEAR";
|
|
|
162
162
|
/**
|
|
163
163
|
* @ReduxAction Glue43 is now available
|
|
164
164
|
*/
|
|
165
|
-
export declare const
|
|
165
|
+
export declare const GLUE42_SET_AVAILABLE_ON = "GLUE42_SET_AVAILABLE_ON";
|
|
166
166
|
/**
|
|
167
167
|
* @ReduxAction Glue43 is no longer available
|
|
168
168
|
*/
|
|
169
|
-
export declare const
|
|
169
|
+
export declare const GLUE42_SET_AVAILABLE_OFF = "GLUE42_SET_AVAILABLE_OFF";
|
|
170
170
|
/**
|
|
171
171
|
* @ReduxAction Glue43 is now running
|
|
172
172
|
*/
|
|
173
|
-
export declare const
|
|
173
|
+
export declare const GLUE42_SET_RUNNING_ON = "GLUE42_SET_RUNNING_ON";
|
|
174
174
|
/**
|
|
175
175
|
* @ReduxAction Glue43 is no longer running
|
|
176
176
|
*/
|
|
177
|
-
export declare const
|
|
177
|
+
export declare const GLUE42_SET_RUNNING_OFF = "SET_GLGLUE42_SET_RUNNING_OFFUE42_RUNNING_OFF";
|
|
178
178
|
export interface PluginsAction extends Redux.Action {
|
|
179
179
|
pluginState: any;
|
|
180
180
|
pluginId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PluginsReducer = exports.PluginsSetPluginState = exports.
|
|
3
|
+
exports.PluginsReducer = exports.PluginsSetPluginState = exports.GLUE42_SET_RUNNING_OFF = exports.GLUE42_SET_RUNNING_ON = exports.GLUE42_SET_AVAILABLE_OFF = exports.GLUE42_SET_AVAILABLE_ON = exports.GLUE42_LIVE_REPORT_CLEAR = exports.GLUE42_LIVE_REPORT_SET = exports.GLUE42_STOP_LIVE_DATA = exports.GLUE42_START_LIVE_DATA = exports.GLUE42_SEND_SNAPSHOT = exports.GLUE42_SET_THROTTLE_TIME = exports.GLUE42_SET_LOGIN_ERROR_MESSAGE = exports.GLUE42_LOGIN = exports.OPENFIN_SET_CURRENT_REPORTNAME = exports.OPENFIN_SET_RUNNING_OFF = exports.OPENFIN_SET_RUNNING_ON = exports.OPENFIN_SET_AVAILABLE_OFF = exports.OPENFIN_SET_AVAILABLE_ON = exports.OPENFIN_LIVE_REPORT_CLEAR = exports.OPENFIN_LIVE_REPORT_SET = exports.OPENFIN_STOP_LIVE_DATA = exports.OPENFIN_START_LIVE_DATA = exports.IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES = exports.IPUSHPULL_SET_CURRENT_PAGE = exports.IPUSHPULL_SET_CURRENT_FOLDER = exports.IPUSHPULL_SET_CURRENT_REPORTNAME = exports.IPUSHPULL_DOMAIN_PAGES_CLEAR = exports.IPUSHPULL_DOMAIN_PAGES_SET = exports.IPUSHPULL_LIVE_REPORT_CLEAR = exports.IPUSHPULL_LIVE_REPORT_SET = exports.IPUSHPULL_SET_RUNNING_OFF = exports.IPUSHPULL_SET_RUNNING_ON = exports.IPUSHPULL_SET_AVAILABLE_OFF = exports.IPUSHPULL_SET_AVAILABLE_ON = exports.IPUSHPULL_SET_LOGIN_DETAILS = exports.IPUSHPULL_SET_LOGIN_ERROR_MESSAGE = exports.IPUSHPULL_LOGOUT = exports.IPUSHPULL_LOGIN = exports.IPUSHPULL_ADD_PAGE = exports.IPUSHPULL_STOP_LIVE_DATA = exports.IPUSHPULL_START_LIVE_DATA = exports.IPUSHPULL_REPORT_SELECT = exports.IPUSHPULL_SEND_SNAPSHOT = exports.IPUSHPULL_SET_THROTTLE_TIME = exports.PLUGINS_SET_PLUGIN_STATE = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @ReduxAction Plugins have been instantiated
|
|
6
6
|
*/
|
|
@@ -164,19 +164,19 @@ exports.GLUE42_LIVE_REPORT_CLEAR = 'GLUE42_LIVE_REPORT_CLEAR';
|
|
|
164
164
|
/**
|
|
165
165
|
* @ReduxAction Glue43 is now available
|
|
166
166
|
*/
|
|
167
|
-
exports.
|
|
167
|
+
exports.GLUE42_SET_AVAILABLE_ON = 'GLUE42_SET_AVAILABLE_ON';
|
|
168
168
|
/**
|
|
169
169
|
* @ReduxAction Glue43 is no longer available
|
|
170
170
|
*/
|
|
171
|
-
exports.
|
|
171
|
+
exports.GLUE42_SET_AVAILABLE_OFF = 'GLUE42_SET_AVAILABLE_OFF';
|
|
172
172
|
/**
|
|
173
173
|
* @ReduxAction Glue43 is now running
|
|
174
174
|
*/
|
|
175
|
-
exports.
|
|
175
|
+
exports.GLUE42_SET_RUNNING_ON = 'GLUE42_SET_RUNNING_ON';
|
|
176
176
|
/**
|
|
177
177
|
* @ReduxAction Glue43 is no longer running
|
|
178
178
|
*/
|
|
179
|
-
exports.
|
|
179
|
+
exports.GLUE42_SET_RUNNING_OFF = 'SET_GLGLUE42_SET_RUNNING_OFFUE42_RUNNING_OFF';
|
|
180
180
|
const PluginsSetPluginState = (pluginId, pluginState) => ({
|
|
181
181
|
type: exports.PLUGINS_SET_PLUGIN_STATE,
|
|
182
182
|
pluginId,
|
|
@@ -77,22 +77,12 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
77
77
|
addColumnMenuItems(column) {
|
|
78
78
|
let returnColumnMenuItems = [];
|
|
79
79
|
if (column && this.isModuleEditable() && !column.isSparkline) {
|
|
80
|
-
// not fullproof as might be an All but its generally pretty good
|
|
81
|
-
let formatColumn = this.api.formatColumnApi.getFormatColumnForColumn(column);
|
|
82
|
-
let formatExists = formatColumn
|
|
83
|
-
? this.api.scopeApi.isColumnInScopeColumns(column, formatColumn.Scope)
|
|
84
|
-
: false;
|
|
85
|
-
if (formatColumn && formatColumn.IsReadOnly && formatColumn.IsReadOnly == true) {
|
|
86
|
-
formatExists = false;
|
|
87
|
-
}
|
|
88
|
-
let label = formatExists ? 'Edit ' : 'Create ';
|
|
89
80
|
let popupParam = {
|
|
90
81
|
column: column,
|
|
91
|
-
action:
|
|
82
|
+
action: 'New',
|
|
92
83
|
source: 'ColumnMenu',
|
|
93
|
-
value: formatColumn,
|
|
94
84
|
};
|
|
95
|
-
returnColumnMenuItems.push(this.createColumnMenuItemShowPopup(
|
|
85
|
+
returnColumnMenuItems.push(this.createColumnMenuItemShowPopup('Create Format Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam));
|
|
96
86
|
}
|
|
97
87
|
return returnColumnMenuItems;
|
|
98
88
|
}
|
|
@@ -119,7 +119,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
119
119
|
exportFormatType: 'rawValue',
|
|
120
120
|
exportDateFormat: undefined,
|
|
121
121
|
customDestinations: undefined,
|
|
122
|
-
|
|
122
|
+
serverReports: undefined,
|
|
123
123
|
appendFileTimestamp: false,
|
|
124
124
|
systemExportDestinations: [
|
|
125
125
|
Enums_1.ExportDestination.Excel,
|
|
@@ -40,7 +40,7 @@ export declare function CreateEmptyAlertDefinition(): AlertDefinition;
|
|
|
40
40
|
export declare function CreateEmptyFlashingCellDefinition(): FlashingCellDefinition;
|
|
41
41
|
export declare function CreateInternalAlertDefinitionForMessages(messageType: AdaptableMessageType, alertProperties?: AlertProperties): AlertDefinition;
|
|
42
42
|
export declare function CreateEmptyReport(): Report;
|
|
43
|
-
export declare function
|
|
43
|
+
export declare function CreateServerReport(reportName: string): Report;
|
|
44
44
|
export declare function CreateEmptyBaseSchedule(scheduleType: ScheduleType): BaseSchedule;
|
|
45
45
|
export declare function CreateEmptyReminderSchedule(): ReminderSchedule;
|
|
46
46
|
export declare function CreateEmptyReportSchedule(): ReportSchedule;
|
|
@@ -82,7 +82,7 @@ export declare const ObjectFactory: {
|
|
|
82
82
|
CreateEmptyAlertDefinition: typeof CreateEmptyAlertDefinition;
|
|
83
83
|
CreateEmptyFlashingCellDefinition: typeof CreateEmptyFlashingCellDefinition;
|
|
84
84
|
CreateInternalAlertDefinitionForMessages: typeof CreateInternalAlertDefinitionForMessages;
|
|
85
|
-
|
|
85
|
+
CreateServerReport: typeof CreateServerReport;
|
|
86
86
|
CreateEmptyReport: typeof CreateEmptyReport;
|
|
87
87
|
CreateEmptyBaseSchedule: typeof CreateEmptyBaseSchedule;
|
|
88
88
|
CreateEmptyReminderSchedule: typeof CreateEmptyReminderSchedule;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObjectFactory = exports.CreateToastOptions = exports.CreateCustomDisplayFormatterContext = exports.CreateEmptyStyledColumn = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyConditionalStyle = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.
|
|
3
|
+
exports.ObjectFactory = exports.CreateToastOptions = exports.CreateCustomDisplayFormatterContext = exports.CreateEmptyStyledColumn = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyConditionalStyle = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.CreateServerReport = exports.CreateEmptyReport = exports.CreateInternalAlertDefinitionForMessages = exports.CreateEmptyFlashingCellDefinition = exports.CreateEmptyAlertDefinition = exports.CreateRowChangedAlert = exports.CreateCellChangedAlert = exports.CreateGenericAlert = exports.CreateEmptyPlusMinusNudge = exports.CreateEmptyNamedQuery = exports.CreateEmptyCalculatedColumn = exports.CreateEmptyCustomSort = void 0;
|
|
4
4
|
const Enums_1 = require("../PredefinedConfig/Common/Enums");
|
|
5
5
|
const GeneralConstants_1 = require("./Constants/GeneralConstants");
|
|
6
6
|
const Uuid_1 = require("../PredefinedConfig/Uuid");
|
|
@@ -130,7 +130,7 @@ function CreateEmptyReport() {
|
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
132
|
exports.CreateEmptyReport = CreateEmptyReport;
|
|
133
|
-
function
|
|
133
|
+
function CreateServerReport(reportName) {
|
|
134
134
|
return {
|
|
135
135
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
136
136
|
Name: reportName,
|
|
@@ -140,7 +140,7 @@ function CreateCustomReport(reportName) {
|
|
|
140
140
|
Query: undefined,
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
exports.
|
|
143
|
+
exports.CreateServerReport = CreateServerReport;
|
|
144
144
|
function CreateEmptyBaseSchedule(scheduleType) {
|
|
145
145
|
return {
|
|
146
146
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
@@ -447,7 +447,7 @@ exports.ObjectFactory = {
|
|
|
447
447
|
CreateEmptyAlertDefinition,
|
|
448
448
|
CreateEmptyFlashingCellDefinition,
|
|
449
449
|
CreateInternalAlertDefinitionForMessages,
|
|
450
|
-
|
|
450
|
+
CreateServerReport,
|
|
451
451
|
CreateEmptyReport,
|
|
452
452
|
CreateEmptyBaseSchedule,
|
|
453
453
|
CreateEmptyReminderSchedule,
|
|
@@ -91,7 +91,7 @@ class ReportService {
|
|
|
91
91
|
}
|
|
92
92
|
GetReportColumnScopeShortDescription(report) {
|
|
93
93
|
var _a, _b;
|
|
94
|
-
if (this.adaptableApi.exportApi.
|
|
94
|
+
if (this.adaptableApi.exportApi.isServerReport(report)) {
|
|
95
95
|
return ['[Custom Columns]'];
|
|
96
96
|
}
|
|
97
97
|
switch (report.ReportColumnScope) {
|
|
@@ -109,7 +109,7 @@ class ReportService {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
GetReportColumnScopeLongDescription(report) {
|
|
112
|
-
if (this.adaptableApi.exportApi.
|
|
112
|
+
if (this.adaptableApi.exportApi.isServerReport(report)) {
|
|
113
113
|
return '[Custom Columns]';
|
|
114
114
|
}
|
|
115
115
|
switch (report.ReportColumnScope) {
|
|
@@ -124,7 +124,7 @@ class ReportService {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
GetReportExpressionDescription(report, cols) {
|
|
127
|
-
if (this.adaptableApi.exportApi.
|
|
127
|
+
if (this.adaptableApi.exportApi.isServerReport(report)) {
|
|
128
128
|
return '[Custom Data]';
|
|
129
129
|
}
|
|
130
130
|
if (this.IsSystemReport(report.Name)) {
|
|
@@ -160,7 +160,7 @@ class ReportService {
|
|
|
160
160
|
GetReportColumnsForReport(report, includePrimaryKey = false) {
|
|
161
161
|
let reportColumns = [];
|
|
162
162
|
let gridColumns = this.adaptableApi.columnApi.getColumns();
|
|
163
|
-
if (this.adaptableApi.exportApi.
|
|
163
|
+
if (this.adaptableApi.exportApi.isServerReport(report)) {
|
|
164
164
|
return reportColumns;
|
|
165
165
|
}
|
|
166
166
|
// first get the cols depending on the Column Scope
|
|
@@ -204,8 +204,8 @@ class ReportService {
|
|
|
204
204
|
friendlyName: column.friendlyName,
|
|
205
205
|
dataType: column.dataType,
|
|
206
206
|
}));
|
|
207
|
-
if (this.adaptableApi.exportApi.
|
|
208
|
-
return this.adaptableApi.exportApi.
|
|
207
|
+
if (this.adaptableApi.exportApi.isServerReport(report)) {
|
|
208
|
+
return this.adaptableApi.exportApi.runServerReport(report.Name);
|
|
209
209
|
}
|
|
210
210
|
if (ArrayExtensions_1.default.IsNullOrEmpty(columns)) {
|
|
211
211
|
return { columns: [], rows: [] };
|
|
@@ -36,7 +36,7 @@ class AdaptablePopover extends React.Component {
|
|
|
36
36
|
return (React.createElement(rebass_1.Flex, { alignItems: "center", className: this.props.className },
|
|
37
37
|
React.createElement(OverlayTrigger_1.default, { showTriangle: true, render: () => popoverClickRootClose, showEvent: (this.props.showEvent || 'mouseenter'), hideEvent: (this.props.hideEvent || 'mouseleave'), style: {
|
|
38
38
|
overflow: 'visible',
|
|
39
|
-
}, defaultZIndex: 100000 }, useButton ? (React.createElement(ButtonInfo_1.ButtonInfo, { style: iconStyle, onClick: () => null, icon: showIcon && icon, tooltip: this.props.tooltipText }, this.props.children)) : (React.createElement("div", { title: this.props.tooltipText, tabIndex: 0, style: { cursor: 'pointer', display: 'inline-block' } },
|
|
39
|
+
}, defaultZIndex: 100000 }, useButton ? (React.createElement(ButtonInfo_1.ButtonInfo, { style: iconStyle, variant: "text", onClick: () => null, icon: showIcon && icon, tooltip: this.props.tooltipText }, this.props.children)) : (React.createElement("div", { title: this.props.tooltipText, tabIndex: 0, style: { cursor: 'pointer', display: 'inline-block' } },
|
|
40
40
|
this.props.children,
|
|
41
41
|
showIcon && React.createElement(icons_1.Icon, { name: icon }))))));
|
|
42
42
|
}
|