@adaptabletools/adaptable 13.0.0-canary.18 → 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/bundle.cjs.js +114 -114
- 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 +10 -0
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ExportApiImpl.js +14 -14
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/FormatColumnApiImpl.js +6 -0
- 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/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/Export/ExportViewPanel.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.js +2 -6
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "13.0.0-canary.
|
|
3
|
+
"version": "13.0.0-canary.19",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1664114694163;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -30,7 +30,7 @@ export interface ExportOptions {
|
|
|
30
30
|
/**
|
|
31
31
|
* Reports run entirely by users (and not AdapTable)
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
serverReports?: ServerReport[];
|
|
34
34
|
/**
|
|
35
35
|
* System Reports to use; leave blank for all, empty array for none
|
|
36
36
|
*
|
|
@@ -57,7 +57,7 @@ export declare type DataFormatType = 'rawValue' | 'formattedValue';
|
|
|
57
57
|
/**
|
|
58
58
|
* Defines a Report where all the data is provided entirely by the user
|
|
59
59
|
*/
|
|
60
|
-
export interface
|
|
60
|
+
export interface ServerReport {
|
|
61
61
|
/**
|
|
62
62
|
* Name of the Report
|
|
63
63
|
*/
|
package/src/Api/ExportApi.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdaptableForm } from '../PredefinedConfig/Common/AdaptableForm';
|
|
2
2
|
import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } from '../PredefinedConfig/ExportState';
|
|
3
3
|
import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
|
|
4
|
-
import { CustomDestination,
|
|
4
|
+
import { CustomDestination, ServerReport, ExportFormContext } from '../AdaptableOptions/ExportOptions';
|
|
5
5
|
import { ExportDestination } from '../PredefinedConfig/Common/Enums';
|
|
6
6
|
/**
|
|
7
7
|
* Provides run-time access to the Export Module and Report state
|
|
@@ -50,7 +50,7 @@ export interface ExportApi {
|
|
|
50
50
|
/**
|
|
51
51
|
* Returns any Custom Reports that have been provided to Export Options
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
getAllServerReports(): ServerReport[] | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* Retrieves System Reports section of Export State
|
|
56
56
|
*/
|
|
@@ -139,14 +139,14 @@ export interface ExportApi {
|
|
|
139
139
|
exportVisualDataToExcel(): void;
|
|
140
140
|
/**
|
|
141
141
|
* Whether a Report is a Custom Report
|
|
142
|
-
* @param
|
|
142
|
+
* @param report Report to Check
|
|
143
143
|
*/
|
|
144
|
-
|
|
144
|
+
isServerReport(report: Report): boolean;
|
|
145
145
|
/**
|
|
146
|
-
* Runs the report function of the
|
|
146
|
+
* Runs the report function of the ServerReport with the given reportName
|
|
147
147
|
* @param reportName custom report name
|
|
148
148
|
*/
|
|
149
|
-
|
|
149
|
+
runServerReport(reportName: string): ReportData | undefined;
|
|
150
150
|
/**
|
|
151
151
|
* Returns the ReportData for the Report with the given name
|
|
152
152
|
* @param reportName - the name of the report
|
|
@@ -213,4 +213,14 @@ export interface FormatColumnApi {
|
|
|
213
213
|
* @returns Format Columns with Expression
|
|
214
214
|
*/
|
|
215
215
|
getFormatColumnsWithExpression(): FormatColumn[] | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* Increment the precedence of the given FormatColumn
|
|
218
|
+
* @param formatColumn
|
|
219
|
+
*/
|
|
220
|
+
incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
221
|
+
/**
|
|
222
|
+
* Decrement the precedence of the given FormatColumn
|
|
223
|
+
* @param formatColumn
|
|
224
|
+
*/
|
|
225
|
+
decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
216
226
|
}
|
|
@@ -3,7 +3,7 @@ import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } fr
|
|
|
3
3
|
import { ApiBase } from './ApiBase';
|
|
4
4
|
import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
5
5
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
6
|
-
import { CustomDestination,
|
|
6
|
+
import { CustomDestination, ServerReport, ExportFormContext } from '../../AdaptableOptions/ExportOptions';
|
|
7
7
|
import { ExportDestination } from '../../PredefinedConfig/Common/Enums';
|
|
8
8
|
export declare class ExportApiImpl extends ApiBase implements ExportApi {
|
|
9
9
|
getExportState(): ExportState;
|
|
@@ -30,8 +30,8 @@ export declare class ExportApiImpl extends ApiBase implements ExportApi {
|
|
|
30
30
|
editReports(reports: Report[]): Report[];
|
|
31
31
|
isDataChangeInReport(cellDataChangedInfo: CellDataChangedInfo, report: Report): boolean;
|
|
32
32
|
exportVisualDataToExcel(): void;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
getAllServerReports(): ServerReport[] | undefined;
|
|
34
|
+
isServerReport(report: Report): boolean;
|
|
35
|
+
runServerReport(serverReportName: string): ReportData | undefined;
|
|
36
36
|
getReportDataForReport(reportName: string): ReportData | undefined;
|
|
37
37
|
}
|
|
@@ -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);
|
|
@@ -68,4 +68,6 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
68
68
|
private shouldRunStyle;
|
|
69
69
|
private evaluateExpression;
|
|
70
70
|
getFormatColumnsWithExpression(): FormatColumn[] | undefined;
|
|
71
|
+
incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
72
|
+
decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
71
73
|
}
|
|
@@ -265,5 +265,11 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
265
265
|
getFormatColumnsWithExpression() {
|
|
266
266
|
return this.getAllFormatColumn().filter((fc) => { var _a; return !!((_a = fc.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression); });
|
|
267
267
|
}
|
|
268
|
+
incrementFormatColumnPrecedence(formatColumn) {
|
|
269
|
+
this.dispatchAction(FormatColumnRedux.FormatColumnMoveUp(formatColumn));
|
|
270
|
+
}
|
|
271
|
+
decrementFormatColumnPrecedence(formatColumn) {
|
|
272
|
+
this.dispatchAction(FormatColumnRedux.FormatColumnMoveDown(formatColumn));
|
|
273
|
+
}
|
|
268
274
|
}
|
|
269
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,
|
|
@@ -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: [] };
|
|
@@ -84,7 +84,7 @@ class ExportViewPanelComponent extends React.Component {
|
|
|
84
84
|
React.createElement(DropdownButton_1.default, { disabled: currentReportId === constants_1.SELECT_REPORT_STRING, width: "100%", fontSize: "small", items: destinationItems, columns: ['label'], className: `ab-${elementType}__Export__export`, onClear: () => this.onSelectedDestinationChanged(null), showClearButton: !!currentDestination, variant: "outlined", marginRight: 2 }, currentDestinationId)),
|
|
85
85
|
React.createElement(rebass_1.Flex, { className: (0, join_1.default)(accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__Export__controls`), style: { width: '100%' } },
|
|
86
86
|
React.createElement(ButtonExport_1.ButtonExport, { onClick: () => onApplyExport(), tooltip: "Export Report", className: `ab-${elementType}__Export__export`, disabled: currentReport == null || currentDestination == null }),
|
|
87
|
-
React.createElement(ButtonEdit_1.ButtonEdit, { onClick: () => this.props.onEditReport(this.props.moduleInfo.Popup), tooltip: "Edit Report", className: `ab-${elementType}__Export__edit`, disabled: currentReport == null || this.props.api.exportApi.
|
|
87
|
+
React.createElement(ButtonEdit_1.ButtonEdit, { onClick: () => this.props.onEditReport(this.props.moduleInfo.Popup), tooltip: "Edit Report", className: `ab-${elementType}__Export__edit`, disabled: currentReport == null || this.props.api.exportApi.isServerReport(currentReport), accessLevel: accessLevel }),
|
|
88
88
|
React.createElement(ButtonNew_1.ButtonNew, { variant: "text", className: `ab-${elementType}__Export__new`, tone: "neutral", children: null, onClick: () => this.props.onNewReport(this.props.moduleInfo.Popup), tooltip: "Create New Report", accessLevel: accessLevel }),
|
|
89
89
|
React.createElement(ButtonDelete_1.ButtonDelete, { tooltip: "Delete Report", className: `ab-${elementType}__Export__delete`, disabled: currentReport == null, ConfirmAction: ExportRedux.ReportDelete(currentReport), ConfirmationMsg: deleteMessage, ConfirmationTitle: 'Delete Report', accessLevel: accessLevel }),
|
|
90
90
|
this.props.api.internalApi
|
|
@@ -102,9 +102,9 @@ class ExportViewPanelComponent extends React.Component {
|
|
|
102
102
|
...this.props.api.exportApi.getAvailableSystemReports(),
|
|
103
103
|
...this.props.UserReports.map((r) => r.Name),
|
|
104
104
|
];
|
|
105
|
-
const
|
|
106
|
-
if (ArrayExtensions_1.default.IsNotNullOrEmpty(
|
|
107
|
-
reportNames.push(...
|
|
105
|
+
const serverReports = this.props.api.exportApi.getAllServerReports();
|
|
106
|
+
if (ArrayExtensions_1.default.IsNotNullOrEmpty(serverReports)) {
|
|
107
|
+
reportNames.push(...serverReports.map((r) => r.name));
|
|
108
108
|
}
|
|
109
109
|
return reportNames;
|
|
110
110
|
}
|
|
@@ -104,15 +104,11 @@ const StyledColumnWizardStyleSection = (props) => {
|
|
|
104
104
|
};
|
|
105
105
|
// percentbar
|
|
106
106
|
const onUpdatePercentBarStyleColumnComparison = (columnComparison) => {
|
|
107
|
-
const PercentBarStyle = {
|
|
108
|
-
ColumnComparison: columnComparison,
|
|
109
|
-
};
|
|
107
|
+
const PercentBarStyle = Object.assign(Object.assign({}, data.PercentBarStyle), { ColumnComparison: columnComparison });
|
|
110
108
|
props.onChange(Object.assign(Object.assign({}, data), { PercentBarStyle }));
|
|
111
109
|
};
|
|
112
110
|
const onUpdatePercentBarStyleRanges = (ranges) => {
|
|
113
|
-
const PercentBarStyle = {
|
|
114
|
-
CellRanges: ranges,
|
|
115
|
-
};
|
|
111
|
+
const PercentBarStyle = Object.assign(Object.assign({}, data.PercentBarStyle), { CellRanges: ranges });
|
|
116
112
|
props.onChange(Object.assign(Object.assign({}, data), { PercentBarStyle }));
|
|
117
113
|
};
|
|
118
114
|
const onPercentBarCellTextCellValueChanged = (checked) => {
|
|
@@ -1931,17 +1931,6 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1931
1931
|
kind: string;
|
|
1932
1932
|
description: string;
|
|
1933
1933
|
};
|
|
1934
|
-
CustomReport: {
|
|
1935
|
-
name: string;
|
|
1936
|
-
kind: string;
|
|
1937
|
-
description: string;
|
|
1938
|
-
properties: {
|
|
1939
|
-
name: string;
|
|
1940
|
-
kind: string;
|
|
1941
|
-
description: string;
|
|
1942
|
-
uiLabel: string;
|
|
1943
|
-
}[];
|
|
1944
|
-
};
|
|
1945
1934
|
CustomSettingsPanel: {
|
|
1946
1935
|
name: string;
|
|
1947
1936
|
kind: string;
|
|
@@ -3050,6 +3039,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3050
3039
|
uiLabel: string;
|
|
3051
3040
|
}[];
|
|
3052
3041
|
};
|
|
3042
|
+
FormatColumnRule: {
|
|
3043
|
+
name: string;
|
|
3044
|
+
kind: string;
|
|
3045
|
+
description: string;
|
|
3046
|
+
};
|
|
3053
3047
|
FormatColumnState: {
|
|
3054
3048
|
name: string;
|
|
3055
3049
|
kind: string;
|
|
@@ -4511,6 +4505,17 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
4511
4505
|
reference: string;
|
|
4512
4506
|
}[];
|
|
4513
4507
|
};
|
|
4508
|
+
ServerReport: {
|
|
4509
|
+
name: string;
|
|
4510
|
+
kind: string;
|
|
4511
|
+
description: string;
|
|
4512
|
+
properties: {
|
|
4513
|
+
name: string;
|
|
4514
|
+
kind: string;
|
|
4515
|
+
description: string;
|
|
4516
|
+
uiLabel: string;
|
|
4517
|
+
}[];
|
|
4518
|
+
};
|
|
4514
4519
|
SettingsPanelApi: {
|
|
4515
4520
|
name: string;
|
|
4516
4521
|
kind: string;
|