@adaptabletools/adaptable 19.0.0-canary.0 → 19.0.1
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/README.md +1 -2
- package/base.css +1 -1
- package/base.css.map +1 -1
- package/index.css +1 -1
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
- package/src/Api/AlertApi.d.ts +8 -0
- package/src/Api/ColumnApi.d.ts +4 -0
- package/src/Api/CustomSortApi.d.ts +8 -0
- package/src/Api/Events/LiveDataChanged.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +25 -12
- package/src/Api/FormatColumnApi.d.ts +8 -0
- package/src/Api/GridApi.d.ts +0 -20
- package/src/Api/Implementation/AlertApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AlertApiImpl.js +6 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +6 -0
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +2 -0
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +3 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +9 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/FormatColumnApiImpl.js +6 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -4
- package/src/Api/Implementation/GridApiImpl.js +0 -17
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ShortcutApiImpl.js +6 -0
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +6 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +0 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -9
- package/src/Api/Internal/ExportInternalApi.d.ts +3 -3
- package/src/Api/Internal/ExportInternalApi.js +17 -13
- package/src/Api/Internal/GridFilterInternalApi.d.ts +1 -1
- package/src/Api/Internal/GridFilterInternalApi.js +1 -1
- package/src/Api/ShortcutApi.d.ts +8 -0
- package/src/Api/StyledColumnApi.d.ts +8 -0
- package/src/Api/UserInterfaceApi.d.ts +0 -10
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +1 -1
- package/src/PredefinedConfig/Common/RowScope.d.ts +1 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +0 -4
- package/src/Redux/ActionsReducers/SystemRedux.js +3 -8
- package/src/Strategy/DashboardModule.js +11 -7
- package/src/View/Dashboard/DashboardPopup.js +4 -3
- package/src/View/Dashboard/DashboardViewPanel.js +2 -1
- package/src/View/Layout/Wizard/getGridFilterPreview.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
- package/src/agGrid/AdaptableAgGrid.js +4 -3
- package/src/agGrid/AgGridColumnAdapter.js +2 -1
- package/src/agGrid/AgGridMenuAdapter.js +14 -14
- package/src/agGrid/PercentBarRenderer.js +1 -1
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/PredefinedConfig/QueryState.d.ts +0 -18
- package/src/PredefinedConfig/QueryState.js +0 -1
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -70,6 +70,14 @@ export interface CustomSortApi {
|
|
|
70
70
|
* @returns sort column
|
|
71
71
|
*/
|
|
72
72
|
suspendCustomSort(customSort: CustomSort): CustomSort;
|
|
73
|
+
/**
|
|
74
|
+
* Suspends all Custom Sorts
|
|
75
|
+
*/
|
|
76
|
+
suspendAllCustomSort(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Activates all suspended Custom Sort
|
|
79
|
+
*/
|
|
80
|
+
unSuspendAllCustomSort(): void;
|
|
73
81
|
/**
|
|
74
82
|
* Un-suspends or activates a suspended Custom Sort
|
|
75
83
|
* @param customSort Custom Sort to suspend
|
|
@@ -22,7 +22,7 @@ export interface LiveDataChangedInfo extends BaseEventInfo {
|
|
|
22
22
|
*/
|
|
23
23
|
export interface LiveReport {
|
|
24
24
|
/**
|
|
25
|
-
* For OpenFin this is the workbook name; for iPushpull the page name
|
|
25
|
+
* For OpenFin this is the workbook name; for iPushpull the page name
|
|
26
26
|
*/
|
|
27
27
|
pageName: string;
|
|
28
28
|
/**
|
|
@@ -13,7 +13,7 @@ export interface FlashingCellApi {
|
|
|
13
13
|
*/
|
|
14
14
|
getFlashingCellState(): FlashingCellState;
|
|
15
15
|
/**
|
|
16
|
-
* Retrieves all Flashing
|
|
16
|
+
* Retrieves all Flashing Cell Definitions in Flashing Cell State
|
|
17
17
|
*/
|
|
18
18
|
getFlashingCellDefinitions(config?: {
|
|
19
19
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
@@ -21,7 +21,7 @@ export interface FlashingCellApi {
|
|
|
21
21
|
/**
|
|
22
22
|
* Retrieves Flashing Cell Definition by the technical ID (from `FlashingCellState`)
|
|
23
23
|
* @param id Flashing Cell Definition Id
|
|
24
|
-
* @returns
|
|
24
|
+
* @returns Flashing Cell Definition
|
|
25
25
|
*/
|
|
26
26
|
getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid']): FlashingCellDefinition;
|
|
27
27
|
/**
|
|
@@ -29,9 +29,14 @@ export interface FlashingCellApi {
|
|
|
29
29
|
* @returns flashing cell definitions
|
|
30
30
|
*/
|
|
31
31
|
getActiveFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves all suspended Cell Definitions in Flashing Cell State
|
|
34
|
+
* @returns flashing cell definitions
|
|
35
|
+
*/
|
|
36
|
+
getSuspendedFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
32
37
|
/**
|
|
33
38
|
* Returns `FlashTarget` of the given Flashing Cell Definition
|
|
34
|
-
* @param flashingCellDefinition Flashing
|
|
39
|
+
* @param flashingCellDefinition Flashing Cell Definition to check
|
|
35
40
|
*/
|
|
36
41
|
getFlashingCellFlashTarget(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition['FlashTarget'];
|
|
37
42
|
/**
|
|
@@ -46,13 +51,13 @@ export interface FlashingCellApi {
|
|
|
46
51
|
*/
|
|
47
52
|
editFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
48
53
|
/**
|
|
49
|
-
* Edits provided Flashing
|
|
54
|
+
* Edits provided Flashing Cell Definitions
|
|
50
55
|
* @param flashingCellDefinitions Flashing Cell Definitions to Edit
|
|
51
|
-
* @returns
|
|
56
|
+
* @returns Flashing Cell definitions
|
|
52
57
|
*/
|
|
53
58
|
editFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
|
|
54
59
|
/**
|
|
55
|
-
* Adds a Flashing
|
|
60
|
+
* Adds a Flashing Cell Definition to State
|
|
56
61
|
* @param flashingCellDefinition Flashing Cell Definition to Add
|
|
57
62
|
*/
|
|
58
63
|
addFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
@@ -62,23 +67,31 @@ export interface FlashingCellApi {
|
|
|
62
67
|
*/
|
|
63
68
|
setFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): void;
|
|
64
69
|
/**
|
|
65
|
-
* Adds provided Flashing
|
|
70
|
+
* Adds provided Flashing Cell Definitions
|
|
66
71
|
* @param flashingCellDefinitions Flashing Cell Definition to Add
|
|
67
|
-
* @returns
|
|
72
|
+
* @returns Flashing Cell Definition
|
|
68
73
|
*/
|
|
69
74
|
addFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
|
|
70
75
|
/**
|
|
71
|
-
* Suspends a Flashing
|
|
76
|
+
* Suspends a Flashing Cell Definition
|
|
72
77
|
* @param flashingCellDefinition Flashing Cell Definition to Suspend
|
|
73
|
-
* @returns
|
|
78
|
+
* @returns Flashing Cell Definition
|
|
74
79
|
*/
|
|
75
80
|
suspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
76
81
|
/**
|
|
77
|
-
* Activates a suspended Flashing
|
|
82
|
+
* Activates a suspended Flashing Cell Definition
|
|
78
83
|
* @param flashingCellDefinition Flashing Cell Definition to Un-Suspend (activate)
|
|
79
|
-
* @returns
|
|
84
|
+
* @returns Flashing Cell Definition
|
|
80
85
|
*/
|
|
81
86
|
unSuspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
87
|
+
/**
|
|
88
|
+
* Suspends all FlashingCell Definitions
|
|
89
|
+
*/
|
|
90
|
+
suspendAllFlashingCellDefinition(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Activates all suspended Flashing Cell Definition
|
|
93
|
+
*/
|
|
94
|
+
unSuspendAllFlashingCellDefinition(): void;
|
|
82
95
|
/**
|
|
83
96
|
* Retrieves all Predicate Defs that match given Scope
|
|
84
97
|
* @param scope the Scope to check
|
|
@@ -74,6 +74,14 @@ export interface FormatColumnApi {
|
|
|
74
74
|
* @returns format column
|
|
75
75
|
*/
|
|
76
76
|
unSuspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
77
|
+
/**
|
|
78
|
+
* Suspends all Format Columns
|
|
79
|
+
*/
|
|
80
|
+
suspendAllFormatColumn(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Activates all suspended Format Column
|
|
83
|
+
*/
|
|
84
|
+
unSuspendAllFormatColumn(): void;
|
|
77
85
|
/**
|
|
78
86
|
* Opens Settings Panel with Format Column section selected and visible
|
|
79
87
|
*/
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -33,14 +33,6 @@ export interface GridApi {
|
|
|
33
33
|
* Retrieves visible data from the grid (filtered and sorted)
|
|
34
34
|
*/
|
|
35
35
|
getVisibleData(): any[];
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated use `loadGridData()` instead
|
|
38
|
-
*/
|
|
39
|
-
resetGridData(data: any[]): void;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated use `loadGridData()` instead
|
|
42
|
-
*/
|
|
43
|
-
setInitialGridData(data: any): void;
|
|
44
36
|
/**
|
|
45
37
|
* Loads data into grid and fire a `GridDataChanged.trigger='Load'` event
|
|
46
38
|
* @param data data to load
|
|
@@ -360,12 +352,6 @@ export interface GridApi {
|
|
|
360
352
|
* Whether AdapTable instance can be Row Grouped
|
|
361
353
|
*/
|
|
362
354
|
isGridGroupable(): boolean;
|
|
363
|
-
/**
|
|
364
|
-
* Whether AdapTable instance offers row selection
|
|
365
|
-
*
|
|
366
|
-
* @deprecated use `isGridRowSelectable()` instead
|
|
367
|
-
*/
|
|
368
|
-
isGridSelectable(): boolean;
|
|
369
355
|
/**
|
|
370
356
|
* Whether AdapTable instance offers row selection
|
|
371
357
|
*/
|
|
@@ -536,12 +522,6 @@ export interface GridApi {
|
|
|
536
522
|
* Returns AG Grid Row Model Type
|
|
537
523
|
*/
|
|
538
524
|
getAgGridRowModelType(): RowModelType;
|
|
539
|
-
/**
|
|
540
|
-
* Returns number of visible rows in Data Source
|
|
541
|
-
*
|
|
542
|
-
* @deprecated use `getRowCount()` instead
|
|
543
|
-
*/
|
|
544
|
-
getVisibleRowCount(): number;
|
|
545
525
|
/**
|
|
546
526
|
* Opens a window with a transposed view of Grid
|
|
547
527
|
*/
|
|
@@ -30,6 +30,8 @@ export declare class AlertApiImpl extends ApiBase implements AlertApi {
|
|
|
30
30
|
openAlertSettingsPanel(): void;
|
|
31
31
|
editAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
32
32
|
suspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
33
|
+
suspendAllAlertDefinition(): void;
|
|
34
|
+
unSuspendAllAlertDefinition(): void;
|
|
33
35
|
unSuspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
34
36
|
evaluateAlertDefinitions(alertDefinitions: AlertDefinition[]): void;
|
|
35
37
|
findAlertDefinitions(criteria: AdaptableObjectLookupCriteria): AlertDefinition[];
|
|
@@ -156,6 +156,12 @@ export class AlertApiImpl extends ApiBase {
|
|
|
156
156
|
this.dispatchAction(AlertRedux.AlertDefinitionSuspend(alertDefinition));
|
|
157
157
|
return this.getAlertDefinitionById(alertDefinition.Uuid);
|
|
158
158
|
}
|
|
159
|
+
suspendAllAlertDefinition() {
|
|
160
|
+
this.dispatchAction(AlertRedux.AlertDefinitionSuspendAll());
|
|
161
|
+
}
|
|
162
|
+
unSuspendAllAlertDefinition() {
|
|
163
|
+
this.dispatchAction(AlertRedux.AlertDefinitionUnSuspendAll());
|
|
164
|
+
}
|
|
159
165
|
unSuspendAlertDefinition(alertDefinition) {
|
|
160
166
|
this.dispatchAction(AlertRedux.AlertDefinitionUnSuspend(alertDefinition));
|
|
161
167
|
return this.getAlertDefinitionById(alertDefinition.Uuid);
|
|
@@ -10,6 +10,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
10
10
|
internalApi: ColumnInternalApi;
|
|
11
11
|
constructor(adaptable: IAdaptable);
|
|
12
12
|
getColumns(): AdaptableColumn[];
|
|
13
|
+
getStandardColumns(): AdaptableColumn[];
|
|
13
14
|
getVisibleColumns(): AdaptableColumn[];
|
|
14
15
|
selectColumn(columnId: string): void;
|
|
15
16
|
selectColumns(columnIds: string[]): void;
|
|
@@ -23,6 +23,12 @@ export class ColumnApiImpl extends ApiBase {
|
|
|
23
23
|
var _a;
|
|
24
24
|
return (_a = this.getAdaptableApi().gridApi.getGridState().Columns) !== null && _a !== void 0 ? _a : [];
|
|
25
25
|
}
|
|
26
|
+
getStandardColumns() {
|
|
27
|
+
const cols = this.getAdaptableApi()
|
|
28
|
+
.gridApi.getGridState()
|
|
29
|
+
.Columns.filter((c) => !this.internalApi.isActionRowButtonColumn(c.columnId));
|
|
30
|
+
return cols !== null && cols !== void 0 ? cols : [];
|
|
31
|
+
}
|
|
26
32
|
getVisibleColumns() {
|
|
27
33
|
const layout = this.getAdaptableApi().layoutApi.getCurrentLayout();
|
|
28
34
|
const visibleCols = layout.Columns.reduce((acc, colId) => {
|
|
@@ -25,5 +25,7 @@ export declare class CustomSortApiImpl extends ApiBase implements CustomSortApi
|
|
|
25
25
|
deleteCustomSort(column: string): void;
|
|
26
26
|
suspendCustomSort(customSort: CustomSort): CustomSort;
|
|
27
27
|
unSuspendCustomSort(customSort: CustomSort): CustomSort;
|
|
28
|
+
suspendAllCustomSort(): void;
|
|
29
|
+
unSuspendAllCustomSort(): void;
|
|
28
30
|
openCustomSortSettingsPanel(): void;
|
|
29
31
|
}
|
|
@@ -60,6 +60,12 @@ export class CustomSortApiImpl extends ApiBase {
|
|
|
60
60
|
this.dispatchAction(CustomSortRedux.CustomSortUnSuspend(customSort));
|
|
61
61
|
return this.getCustomSortById(customSort.Uuid);
|
|
62
62
|
}
|
|
63
|
+
suspendAllCustomSort() {
|
|
64
|
+
this.dispatchAction(CustomSortRedux.CustomSortSuspendAll());
|
|
65
|
+
}
|
|
66
|
+
unSuspendAllCustomSort() {
|
|
67
|
+
this.dispatchAction(CustomSortRedux.CustomSortUnSuspendAll());
|
|
68
|
+
}
|
|
63
69
|
openCustomSortSettingsPanel() {
|
|
64
70
|
this.showModulePopup(ModuleConstants.CustomSortModuleId);
|
|
65
71
|
}
|
|
@@ -14,6 +14,7 @@ export declare class FlashingCellApiImpl extends ApiBase implements FlashingCell
|
|
|
14
14
|
getFlashingCellDefinitions(config?: LayoutAssociatedObjectLoadConfig): FlashingCellDefinition[];
|
|
15
15
|
getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid']): FlashingCellDefinition;
|
|
16
16
|
getActiveFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
17
|
+
getSuspendedFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
17
18
|
getFlashingCellFlashTarget(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition['FlashTarget'];
|
|
18
19
|
showFlashingCell(flashingCellToShow: AdaptableFlashingCell): void;
|
|
19
20
|
addFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
@@ -21,6 +22,8 @@ export declare class FlashingCellApiImpl extends ApiBase implements FlashingCell
|
|
|
21
22
|
editFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
22
23
|
suspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
23
24
|
unSuspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
25
|
+
suspendAllFlashingCellDefinition(): void;
|
|
26
|
+
unSuspendAllFlashingCellDefinition(): void;
|
|
24
27
|
addFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
|
|
25
28
|
editFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
|
|
26
29
|
getFlashingCellPredicateDefsForScope(scope: ColumnScope): AdaptablePredicateDef[];
|
|
@@ -24,6 +24,9 @@ export class FlashingCellApiImpl extends ApiBase {
|
|
|
24
24
|
getActiveFlashingCellDefinitions() {
|
|
25
25
|
return this.getFlashingCellDefinitions().filter((fc) => !fc.IsSuspended);
|
|
26
26
|
}
|
|
27
|
+
getSuspendedFlashingCellDefinitions() {
|
|
28
|
+
return this.getFlashingCellDefinitions().filter((fc) => fc.IsSuspended);
|
|
29
|
+
}
|
|
27
30
|
getFlashingCellFlashTarget(flashingCellDefinition) {
|
|
28
31
|
var _a;
|
|
29
32
|
return (_a = flashingCellDefinition.FlashTarget) !== null && _a !== void 0 ? _a : 'cell';
|
|
@@ -64,6 +67,12 @@ export class FlashingCellApiImpl extends ApiBase {
|
|
|
64
67
|
this.dispatchAction(FlashingCellRedux.FlashingCellDefinitionUnSuspend(flashingCellDefinition));
|
|
65
68
|
return this.getFlashingCellDefinitionById(flashingCellDefinition.Uuid);
|
|
66
69
|
}
|
|
70
|
+
suspendAllFlashingCellDefinition() {
|
|
71
|
+
this.dispatchAction(FlashingCellRedux.FlashingCellDefinitionSuspendAll());
|
|
72
|
+
}
|
|
73
|
+
unSuspendAllFlashingCellDefinition() {
|
|
74
|
+
this.dispatchAction(FlashingCellRedux.FlashingCellDefinitionUnSuspendAll());
|
|
75
|
+
}
|
|
67
76
|
addFlashingCellDefinitions(flashingCellDefinitions) {
|
|
68
77
|
flashingCellDefinitions.forEach((fad) => {
|
|
69
78
|
this.addFlashingCellDefinition(fad);
|
|
@@ -29,6 +29,8 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
29
29
|
deleteAllFormatColumns(): void;
|
|
30
30
|
suspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
31
31
|
unSuspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
32
|
+
suspendAllFormatColumn(): void;
|
|
33
|
+
unSuspendAllFormatColumn(): void;
|
|
32
34
|
getFormatColumnsForColumn(column: AdaptableColumn, config?: {
|
|
33
35
|
includeSuspended?: boolean;
|
|
34
36
|
}): FormatColumn[];
|
|
@@ -60,6 +60,12 @@ export class FormatColumnApiImpl extends ApiBase {
|
|
|
60
60
|
this.dispatchAction(FormatColumnRedux.FormatColumnUnSuspend(formatColumn));
|
|
61
61
|
return this.getFormatColumnById(formatColumn.Uuid);
|
|
62
62
|
}
|
|
63
|
+
suspendAllFormatColumn() {
|
|
64
|
+
this.dispatchAction(FormatColumnRedux.FormatColumnSuspendAll());
|
|
65
|
+
}
|
|
66
|
+
unSuspendAllFormatColumn() {
|
|
67
|
+
this.dispatchAction(FormatColumnRedux.FormatColumnUnSuspendAll());
|
|
68
|
+
}
|
|
63
69
|
getFormatColumnsForColumn(column, config) {
|
|
64
70
|
const formatColumns = this.getFormatColumns().filter((formatColumn) => (config === null || config === void 0 ? void 0 : config.includeSuspended) || !formatColumn.IsSuspended);
|
|
65
71
|
return this.internalApi.getFormatColumnWithColumnInScope(formatColumns, column);
|
|
@@ -21,8 +21,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
21
21
|
getVariant(): AdaptableVariant;
|
|
22
22
|
getGridState(): GridState;
|
|
23
23
|
loadGridData(dataSource: any): void;
|
|
24
|
-
resetGridData(dataSource: any[]): void;
|
|
25
|
-
setInitialGridData(data: any): void;
|
|
26
24
|
getGridData(): any[];
|
|
27
25
|
getFilteredData(): any[];
|
|
28
26
|
getVisibleData(): any[];
|
|
@@ -94,7 +92,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
94
92
|
expandRowGroupsForValues(columnValues: any[]): void;
|
|
95
93
|
isGridPivotable(): boolean;
|
|
96
94
|
isGridGroupable(): boolean;
|
|
97
|
-
isGridSelectable(): boolean;
|
|
98
95
|
isGridRowSelectable(): boolean;
|
|
99
96
|
isGridRangeSelectable(): boolean;
|
|
100
97
|
isGridRowGrouped(): boolean;
|
|
@@ -136,7 +133,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
136
133
|
getGridContainerElement(): HTMLElement | null;
|
|
137
134
|
openGridInfoSettingsPanel(): void;
|
|
138
135
|
getAgGridRowModelType(): RowModelType;
|
|
139
|
-
getVisibleRowCount(): number;
|
|
140
136
|
showTransposedView(transposeConfig?: TransposeConfig): void;
|
|
141
137
|
getAllAgGridColumns(): Column<any>[];
|
|
142
138
|
}
|
|
@@ -4,7 +4,6 @@ import { SystemHighlightCellAdd, SystemHighlightCellDelete, SystemHighlightCellD
|
|
|
4
4
|
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
5
5
|
import { GridInternalApi } from '../Internal/GridInternalApi';
|
|
6
6
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
7
|
-
import { logDeprecation } from '../../Utilities/logDeprecation';
|
|
8
7
|
import { WINDOW_SHOW_TRANSPOSED_VIEW } from '../../View/Components/Popups/WindowPopups/windowFactory';
|
|
9
8
|
import { ROW_SUMMARY_ROW_ID } from '../../PredefinedConfig/Common/RowSummary';
|
|
10
9
|
export class GridApiImpl extends ApiBase {
|
|
@@ -28,14 +27,6 @@ export class GridApiImpl extends ApiBase {
|
|
|
28
27
|
const allRowNodes = this.getAllRowNodes();
|
|
29
28
|
this.internalApi.fireGridDataChangedEvent(dataSource, allRowNodes, 'Load');
|
|
30
29
|
}
|
|
31
|
-
resetGridData(dataSource) {
|
|
32
|
-
logDeprecation(this.adaptable.logger, 'GridApi', 'resetGridData', 'loadGridData');
|
|
33
|
-
this.loadGridData(dataSource);
|
|
34
|
-
}
|
|
35
|
-
setInitialGridData(data) {
|
|
36
|
-
logDeprecation(this.adaptable.logger, 'GridApi', 'setInitialGridData', 'loadGridData');
|
|
37
|
-
this.loadGridData(data);
|
|
38
|
-
}
|
|
39
30
|
getGridData() {
|
|
40
31
|
return this.adaptable.getGridData();
|
|
41
32
|
}
|
|
@@ -359,10 +350,6 @@ export class GridApiImpl extends ApiBase {
|
|
|
359
350
|
isGridGroupable() {
|
|
360
351
|
return !this.getAdaptableApi().internalApi.isGridInTreeMode();
|
|
361
352
|
}
|
|
362
|
-
isGridSelectable() {
|
|
363
|
-
logDeprecation(this.adaptable.logger, 'GridApi', 'isGridSelectable', 'isGridRowSelectable');
|
|
364
|
-
return this.isGridRowSelectable();
|
|
365
|
-
}
|
|
366
353
|
isGridRowSelectable() {
|
|
367
354
|
return this.adaptable.isGridRowSelectable();
|
|
368
355
|
}
|
|
@@ -544,10 +531,6 @@ export class GridApiImpl extends ApiBase {
|
|
|
544
531
|
getAgGridRowModelType() {
|
|
545
532
|
return this.adaptable.getAgGridRowModelType();
|
|
546
533
|
}
|
|
547
|
-
getVisibleRowCount() {
|
|
548
|
-
logDeprecation(this.adaptable.logger, 'GridApi', 'getVisibleRowCount', 'getRowCount');
|
|
549
|
-
return this.getRowCount();
|
|
550
|
-
}
|
|
551
534
|
showTransposedView(transposeConfig = {}) {
|
|
552
535
|
var _a, _b, _c, _d, _e;
|
|
553
536
|
const transposedColumnId = (_a = transposeConfig.transposedColumnId) !== null && _a !== void 0 ? _a : this.getAdaptableApi().optionsApi.getPrimaryKey();
|
|
@@ -14,5 +14,7 @@ export declare class ShortcutApiImpl extends ApiBase implements ShortcutApi {
|
|
|
14
14
|
deleteAllShortcuts(): void;
|
|
15
15
|
suspendShortcut(shortcut: Shortcut): Shortcut;
|
|
16
16
|
unSuspendShortcut(shortcut: Shortcut): Shortcut;
|
|
17
|
+
suspendAllShortcut(): void;
|
|
18
|
+
unSuspendAllShortcut(): void;
|
|
17
19
|
openShortcutSettingsPanel(): void;
|
|
18
20
|
}
|
|
@@ -39,6 +39,12 @@ export class ShortcutApiImpl extends ApiBase {
|
|
|
39
39
|
this.dispatchAction(ShortcutRedux.ShortcutUnSuspend(shortcut));
|
|
40
40
|
return this.getShortcutById(shortcut.Uuid);
|
|
41
41
|
}
|
|
42
|
+
suspendAllShortcut() {
|
|
43
|
+
this.dispatchAction(ShortcutRedux.ShortcutSuspendAll());
|
|
44
|
+
}
|
|
45
|
+
unSuspendAllShortcut() {
|
|
46
|
+
this.dispatchAction(ShortcutRedux.ShortcutUnSuspendAll());
|
|
47
|
+
}
|
|
42
48
|
openShortcutSettingsPanel() {
|
|
43
49
|
this.showModulePopup(ModuleConstants.ShortcutModuleId);
|
|
44
50
|
}
|
|
@@ -24,5 +24,7 @@ export declare class StyledColumnApiImpl extends ApiBase implements StyledColumn
|
|
|
24
24
|
canDisplaySparklines(): boolean;
|
|
25
25
|
suspendStyledColumn(styledColumn: StyledColumn): void;
|
|
26
26
|
unSuspendStyledColumn(styledColumn: StyledColumn): void;
|
|
27
|
+
suspendAllStyledColumn(): void;
|
|
28
|
+
unSuspendAllStyledColumn(): void;
|
|
27
29
|
openStyledColumnSettingsPanel(): void;
|
|
28
30
|
}
|
|
@@ -63,6 +63,12 @@ export class StyledColumnApiImpl extends ApiBase {
|
|
|
63
63
|
unSuspendStyledColumn(styledColumn) {
|
|
64
64
|
this.dispatchAction(StyledColumnRedux.StyledColumnUnSuspend(styledColumn));
|
|
65
65
|
}
|
|
66
|
+
suspendAllStyledColumn() {
|
|
67
|
+
this.dispatchAction(StyledColumnRedux.StyledColumnSuspendAll());
|
|
68
|
+
}
|
|
69
|
+
unSuspendAllStyledColumn() {
|
|
70
|
+
this.dispatchAction(StyledColumnRedux.StyledColumnUnSuspendAll());
|
|
71
|
+
}
|
|
66
72
|
openStyledColumnSettingsPanel() {
|
|
67
73
|
this.showModulePopup(ModuleConstants.StyledColumnModuleId);
|
|
68
74
|
}
|
|
@@ -29,8 +29,6 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
|
|
|
29
29
|
getReadOnlyCellStyle(): AdaptableStyle | undefined;
|
|
30
30
|
getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
|
|
31
31
|
getCustomIconDefinition(iconName: string): import("../../types").AdaptableIcon | import("../../types").CustomIcon;
|
|
32
|
-
showLoadingScreen(): void;
|
|
33
|
-
hideLoadingScreen(): void;
|
|
34
32
|
showProgressIndicator(config: ProgressIndicatorConfig): void;
|
|
35
33
|
hideProgressIndicator(): void;
|
|
36
34
|
openCustomWindowPopup(config: CustomWindowConfig): {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
2
2
|
import { SystemProgressIndicatorHide, SystemProgressIndicatorShow, } from '../../Redux/ActionsReducers/SystemRedux';
|
|
3
3
|
import { ArrayExtensions } from '../../Utilities/Extensions/ArrayExtensions';
|
|
4
|
-
import { logDeprecation } from '../../Utilities/logDeprecation';
|
|
5
4
|
import { CUSTOM_WINDOW_FACTORY_ID } from '../../View/Components/Popups/WindowPopups/WindowPopups';
|
|
6
5
|
import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
|
|
7
6
|
import { ApiBase } from './ApiBase';
|
|
@@ -168,14 +167,6 @@ export class UserInterfaceApiImpl extends ApiBase {
|
|
|
168
167
|
}
|
|
169
168
|
return customIcon;
|
|
170
169
|
}
|
|
171
|
-
showLoadingScreen() {
|
|
172
|
-
logDeprecation(this.adaptable.logger, 'UserInterfaceApi', 'showLoadingScreen', 'showProgressIndicator');
|
|
173
|
-
this.showProgressIndicator({ text: 'Loading' });
|
|
174
|
-
}
|
|
175
|
-
hideLoadingScreen() {
|
|
176
|
-
logDeprecation(this.adaptable.logger, 'UserInterfaceApi', 'hideLoadingScreen', 'hideProgressIndicator');
|
|
177
|
-
this.hideProgressIndicator();
|
|
178
|
-
}
|
|
179
170
|
showProgressIndicator(config) {
|
|
180
171
|
if (config.delay) {
|
|
181
172
|
this.showProgressIndicatorTimeout = setTimeout(() => {
|
|
@@ -30,10 +30,10 @@ export declare class ExportInternalApi extends ApiBase {
|
|
|
30
30
|
getReportData(report: Report, includePrimaryKey?: boolean): ReportData;
|
|
31
31
|
getReportDataAsArray(report: Report, includePrimaryKey?: boolean): any[][];
|
|
32
32
|
convertReportDataToArray(reportData: ReportData): any[][];
|
|
33
|
-
getRowObjectForColumnIds(rowNode: IRowNode, columnIds: string[]): Record<string, any>;
|
|
33
|
+
getRowObjectForColumnIds(rowNode: IRowNode, columnIds: string[], reportName: string): Record<string, any>;
|
|
34
34
|
publishLiveLiveDataChangedEvent(reportDestination: 'ipushpull' | 'OpenFin', liveDataTrigger: 'Connected' | 'Disconnected' | 'SnapshotSent' | 'LiveDataStarted' | 'LiveDataStopped' | 'LiveDataUpdated', liveReport?: any): void;
|
|
35
|
-
getCellExportValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
36
|
-
getCellExportValueFromRawValue(rowNode: IRowNode, cellRawValue: any, columnId: string): any;
|
|
35
|
+
getCellExportValueFromRowNode(rowNode: IRowNode, columnId: string, reportName: string): any;
|
|
36
|
+
getCellExportValueFromRawValue(rowNode: IRowNode, cellRawValue: any, columnId: string, reportName: string): any;
|
|
37
37
|
getReportFileName(reportName: string, destination: SystemExportDestination | CustomDestination): string;
|
|
38
38
|
private getCustomExportDateFormat;
|
|
39
39
|
private getCellExportValueFromRawValueByType;
|
|
@@ -361,12 +361,12 @@ export class ExportInternalApi extends ApiBase {
|
|
|
361
361
|
switch (report.ReportRowScope) {
|
|
362
362
|
case 'AllRows':
|
|
363
363
|
this.getAdaptableApi().internalApi.forAllRowNodesDo((rowNode) => {
|
|
364
|
-
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds));
|
|
364
|
+
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds, report.Name));
|
|
365
365
|
});
|
|
366
366
|
break;
|
|
367
367
|
case 'VisibleRows':
|
|
368
368
|
this.getAdaptableApi().internalApi.forAllVisibleRowNodesDo((rowNode) => {
|
|
369
|
-
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds));
|
|
369
|
+
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds, report.Name));
|
|
370
370
|
});
|
|
371
371
|
break;
|
|
372
372
|
case 'ExpressionRows':
|
|
@@ -375,7 +375,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
375
375
|
if (this.getAdaptableApi()
|
|
376
376
|
.internalApi.getQueryLanguageService()
|
|
377
377
|
.evaluateBooleanExpression((_a = report.Query) === null || _a === void 0 ? void 0 : _a.BooleanExpression, ExportModuleId, rowNode)) {
|
|
378
|
-
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds));
|
|
378
|
+
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds, report.Name));
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
break;
|
|
@@ -390,7 +390,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
390
390
|
if (selectedRowCells) {
|
|
391
391
|
const selectedRowColumnIds = selectedRowCells.map((rowCell) => rowCell.column.columnId);
|
|
392
392
|
const selectedColumnIds = columnIds.filter((columnId) => selectedRowColumnIds.includes(columnId));
|
|
393
|
-
const row = this.getRowObjectForColumnIds(rowNode, selectedColumnIds);
|
|
393
|
+
const row = this.getRowObjectForColumnIds(rowNode, selectedColumnIds, report.Name);
|
|
394
394
|
if (includePrimaryKey) {
|
|
395
395
|
row[this.getAdaptableApi().optionsApi.getPrimaryKey()] = rowPrimaryKeyValue;
|
|
396
396
|
}
|
|
@@ -405,7 +405,7 @@ export class ExportInternalApi extends ApiBase {
|
|
|
405
405
|
this.getAdaptableApi().internalApi.forAllRowNodesDo((rowNode) => {
|
|
406
406
|
const rowPrimaryKeyValue = this.getAdaptableApi().gridApi.getPrimaryKeyValueForRowNode(rowNode);
|
|
407
407
|
if (selectedGridRowPrimaryKeys.includes(rowPrimaryKeyValue)) {
|
|
408
|
-
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds));
|
|
408
|
+
resultRowData.push(this.getRowObjectForColumnIds(rowNode, columnIds, report.Name));
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
}
|
|
@@ -431,9 +431,9 @@ export class ExportInternalApi extends ApiBase {
|
|
|
431
431
|
...reportData.rows.map((row) => reportData.columns.map((column) => row[column.columnId])),
|
|
432
432
|
];
|
|
433
433
|
}
|
|
434
|
-
getRowObjectForColumnIds(rowNode, columnIds) {
|
|
434
|
+
getRowObjectForColumnIds(rowNode, columnIds, reportName) {
|
|
435
435
|
return columnIds.reduce((result, columnId) => {
|
|
436
|
-
result[columnId] = this.getCellExportValueFromRowNode(rowNode, columnId);
|
|
436
|
+
result[columnId] = this.getCellExportValueFromRowNode(rowNode, columnId, reportName);
|
|
437
437
|
return result;
|
|
438
438
|
}, {});
|
|
439
439
|
}
|
|
@@ -441,24 +441,28 @@ export class ExportInternalApi extends ApiBase {
|
|
|
441
441
|
const liveDataChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { reportDestination: reportDestination, liveDataTrigger: liveDataTrigger, liveReport: liveReport });
|
|
442
442
|
this.getAdaptableApi().eventApi.emit('LiveDataChanged', liveDataChangedInfo);
|
|
443
443
|
}
|
|
444
|
-
getCellExportValueFromRowNode(rowNode, columnId) {
|
|
445
|
-
return this.getCellExportValueFromRawValue(rowNode, this.getAdaptableApi().gridApi.getRawValueFromRowNode(rowNode, columnId), columnId);
|
|
444
|
+
getCellExportValueFromRowNode(rowNode, columnId, reportName) {
|
|
445
|
+
return this.getCellExportValueFromRawValue(rowNode, this.getAdaptableApi().gridApi.getRawValueFromRowNode(rowNode, columnId), columnId, reportName);
|
|
446
446
|
}
|
|
447
|
-
getCellExportValueFromRawValue(rowNode, cellRawValue, columnId) {
|
|
447
|
+
getCellExportValueFromRawValue(rowNode, cellRawValue, columnId, reportName) {
|
|
448
448
|
if (StringExtensions.IsNullOrEmpty(cellRawValue)) {
|
|
449
449
|
return cellRawValue;
|
|
450
450
|
}
|
|
451
451
|
const column = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId);
|
|
452
452
|
const columnDataType = column.dataType;
|
|
453
|
-
// if
|
|
453
|
+
// 1. if it is a Visual Data report then we always ONLY send the formatted value and ignore all other properties
|
|
454
|
+
if (reportName == VISUAL_DATA_REPORT) {
|
|
455
|
+
return this.getCellExportValueFromRawValueByType(rowNode, cellRawValue, columnId, 'formattedValue');
|
|
456
|
+
}
|
|
457
|
+
// 2. if this is a date column and there is a custom export date format provided, that will next take precedence
|
|
454
458
|
if (columnDataType === 'Date' && !!this.getCustomExportDateFormat()) {
|
|
455
459
|
const exportDateFormat = this.getCustomExportDateFormat();
|
|
456
460
|
return FormatHelper.DateFormatter(cellRawValue, {
|
|
457
461
|
Pattern: exportDateFormat,
|
|
458
462
|
});
|
|
459
463
|
}
|
|
460
|
-
//
|
|
461
|
-
|
|
464
|
+
// 3. in all other cases check the general export format types
|
|
465
|
+
const cellExportFormat = this.getAdaptableApi().exportApi.internalApi.getCellExportFormatType(column, columnDataType);
|
|
462
466
|
return this.getCellExportValueFromRawValueByType(rowNode, cellRawValue, columnId, cellExportFormat);
|
|
463
467
|
}
|
|
464
468
|
getReportFileName(reportName, destination) {
|
|
@@ -3,7 +3,7 @@ import { GridFilter } from '../../types';
|
|
|
3
3
|
export declare class GridFilterInternalApi extends ApiBase {
|
|
4
4
|
fireGridFilterAppliedEvent(): void;
|
|
5
5
|
/**
|
|
6
|
-
* Compares to Grid
|
|
6
|
+
* Compares to Grid Filter to see if they are identical
|
|
7
7
|
*/
|
|
8
8
|
isGridFilterDifferent(oldFilter: GridFilter, newFilter: GridFilter): boolean;
|
|
9
9
|
}
|
|
@@ -11,7 +11,7 @@ export class GridFilterInternalApi extends ApiBase {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* Compares to Grid
|
|
14
|
+
* Compares to Grid Filter to see if they are identical
|
|
15
15
|
*/
|
|
16
16
|
isGridFilterDifferent(oldFilter, newFilter) {
|
|
17
17
|
return (oldFilter === null || oldFilter === void 0 ? void 0 : oldFilter.Expression) === (newFilter === null || newFilter === void 0 ? void 0 : newFilter.Expression);
|
package/src/Api/ShortcutApi.d.ts
CHANGED
|
@@ -53,6 +53,14 @@ export interface ShortcutApi {
|
|
|
53
53
|
* @returns shortcut
|
|
54
54
|
*/
|
|
55
55
|
unSuspendShortcut(shortcut: Shortcut): Shortcut;
|
|
56
|
+
/**
|
|
57
|
+
* Suspends all Shortcuts
|
|
58
|
+
*/
|
|
59
|
+
suspendAllShortcut(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Activates all suspended Shortcut
|
|
62
|
+
*/
|
|
63
|
+
unSuspendAllShortcut(): void;
|
|
56
64
|
/**
|
|
57
65
|
* Opens Settings Panel with Shortcut section selected and visible
|
|
58
66
|
*/
|
|
@@ -57,6 +57,14 @@ export interface StyledColumnApi {
|
|
|
57
57
|
* @param styledColumn
|
|
58
58
|
*/
|
|
59
59
|
unSuspendStyledColumn(styledColumn: StyledColumn): void;
|
|
60
|
+
/**
|
|
61
|
+
* Suspends all Styled Columns
|
|
62
|
+
*/
|
|
63
|
+
suspendAllStyledColumn(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Activates all suspended Styled Column
|
|
66
|
+
*/
|
|
67
|
+
unSuspendAllStyledColumn(): void;
|
|
60
68
|
/**
|
|
61
69
|
* Checks whether Column with given `columnId` has a PercentBar Style applied
|
|
62
70
|
* @param columnId column ID
|
|
@@ -71,16 +71,6 @@ export interface UserInterfaceApi {
|
|
|
71
71
|
* @param name name of Icon
|
|
72
72
|
*/
|
|
73
73
|
getCustomIconDefinition(name: string): AdaptableIcon | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* Displays the popup that says getting data and initialising grid
|
|
76
|
-
* @deprecated use `showProgressIndicator()` instead
|
|
77
|
-
*/
|
|
78
|
-
showLoadingScreen(): void;
|
|
79
|
-
/**
|
|
80
|
-
* Hides the popup that says getting data and initialising grid
|
|
81
|
-
* @deprecated use `hideProgressIndicator()` instead
|
|
82
|
-
*/
|
|
83
|
-
hideLoadingScreen(): void;
|
|
84
74
|
/**
|
|
85
75
|
* Displays a progress indicator
|
|
86
76
|
* @param config.progressText - text to display in the progress indicator
|