@adaptabletools/adaptable 12.0.0-canary.5 → 12.0.0-canary.6
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 +24 -24
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/LayoutOptions.d.ts +7 -7
- package/src/Api/Events/ActionRowSubmitted.d.ts +24 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +2 -4
- package/src/Api/Implementation/AlertApiImpl.js +2 -3
- package/src/Api/Implementation/ApiBase.d.ts +12 -1
- package/src/Api/Implementation/ApiBase.js +7 -0
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -4
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +2 -3
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +2 -4
- package/src/Api/Implementation/CustomSortApiImpl.js +2 -3
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +2 -4
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -3
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -4
- package/src/Api/Implementation/FormatColumnApiImpl.js +2 -3
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.js +5 -4
- package/src/Api/Implementation/LayoutApiImpl.d.ts +0 -2
- package/src/Api/Implementation/LayoutApiImpl.js +0 -6
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +2 -4
- package/src/Api/Implementation/PlusMinusApiImpl.js +2 -3
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +6 -16
- package/src/Api/Implementation/ScheduleApiImpl.js +10 -16
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +2 -4
- package/src/Api/Implementation/ShortcutApiImpl.js +2 -3
- package/src/Api/InternalApi.d.ts +1 -1
- package/src/Api/LayoutApi.d.ts +1 -6
- package/src/Redux/Store/AdaptableStore.js +3 -0
- package/src/Strategy/Interface/IModule.d.ts +2 -1
- package/src/Strategy/LayoutModule.d.ts +2 -1
- package/src/Strategy/LayoutModule.js +51 -1
- package/src/View/GridInfo/GridInfoPopup.js +3 -1
- package/src/metamodel/adaptable.metamodel.d.ts +81 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -4,13 +4,14 @@ import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Commo
|
|
|
4
4
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
5
5
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
6
6
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
7
|
-
import { AdaptableModuleView, IModule } from './Interface/IModule';
|
|
7
|
+
import { AdaptableModuleView, IModule, TeamSharingReferences } from './Interface/IModule';
|
|
8
8
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
9
9
|
export declare class LayoutModule extends AdaptableModuleBase implements IModule {
|
|
10
10
|
protected LayoutState: LayoutState;
|
|
11
11
|
constructor(api: AdaptableApi);
|
|
12
12
|
getModuleAdaptableObjects(): AdaptableObject[];
|
|
13
13
|
getExplicitlyReferencedColumnIds(layout: Layout): string[];
|
|
14
|
+
getTeamSharingReferences(adaptableObject: AdaptableObject): TeamSharingReferences;
|
|
14
15
|
hasNamedQueryReferences(): boolean;
|
|
15
16
|
handleAdaptableReady(): void;
|
|
16
17
|
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
@@ -43,7 +43,6 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
43
43
|
}
|
|
44
44
|
*/
|
|
45
45
|
getModuleAdaptableObjects() {
|
|
46
|
-
// ignore - triggering build
|
|
47
46
|
return this.api.layoutApi.getAllLayout();
|
|
48
47
|
}
|
|
49
48
|
getExplicitlyReferencedColumnIds(layout) {
|
|
@@ -60,6 +59,57 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
60
59
|
}
|
|
61
60
|
return Array.from(new Set(columnIds));
|
|
62
61
|
}
|
|
62
|
+
getTeamSharingReferences(adaptableObject) {
|
|
63
|
+
const teamSharingReferences = super.getTeamSharingReferences(adaptableObject);
|
|
64
|
+
const layoutName = adaptableObject.Name;
|
|
65
|
+
if (this.api.internalApi.hasLayoutSpecificObjects() && !!layoutName) {
|
|
66
|
+
const layoutAssociatedObjectReferences = [];
|
|
67
|
+
const loadConfig = {
|
|
68
|
+
associatedWithLayout: layoutName,
|
|
69
|
+
};
|
|
70
|
+
// we ensured that there are layout specific objects, so all the "getAll*()" api methods will return only the objects available in the current layout
|
|
71
|
+
this.api.alertApi.getAlertDefinitions(loadConfig).forEach((alertDefinition) => layoutAssociatedObjectReferences.push({
|
|
72
|
+
Reference: alertDefinition,
|
|
73
|
+
Module: 'Alert',
|
|
74
|
+
}));
|
|
75
|
+
this.api.conditionalStyleApi.getAllConditionalStyle(loadConfig).forEach((conditionalStyle) => layoutAssociatedObjectReferences.push({
|
|
76
|
+
Reference: conditionalStyle,
|
|
77
|
+
Module: 'ConditionalStyle',
|
|
78
|
+
}));
|
|
79
|
+
this.api.customSortApi.getAllCustomSort(loadConfig).forEach((customSort) => layoutAssociatedObjectReferences.push({
|
|
80
|
+
Reference: customSort,
|
|
81
|
+
Module: 'CustomSort',
|
|
82
|
+
}));
|
|
83
|
+
this.api.flashingCellApi.getFlashingCellDefinitions(loadConfig).forEach((flashingCell) => layoutAssociatedObjectReferences.push({
|
|
84
|
+
Reference: flashingCell,
|
|
85
|
+
Module: 'FlashingCell',
|
|
86
|
+
}));
|
|
87
|
+
this.api.formatColumnApi.getAllFormatColumn(loadConfig).forEach((formatColumn) => layoutAssociatedObjectReferences.push({
|
|
88
|
+
Reference: formatColumn,
|
|
89
|
+
Module: 'FormatColumn',
|
|
90
|
+
}));
|
|
91
|
+
this.api.plusMinusApi.getAllPlusMinus(loadConfig).forEach((plusMinusNudge) => layoutAssociatedObjectReferences.push({
|
|
92
|
+
Reference: plusMinusNudge,
|
|
93
|
+
Module: 'PlusMinus',
|
|
94
|
+
}));
|
|
95
|
+
this.api.shortcutApi.getAllShortcut(loadConfig).forEach((shortcut) => layoutAssociatedObjectReferences.push({
|
|
96
|
+
Reference: shortcut,
|
|
97
|
+
Module: 'Shortcut',
|
|
98
|
+
}));
|
|
99
|
+
[
|
|
100
|
+
...this.api.scheduleApi.getAllReportSchedule(loadConfig),
|
|
101
|
+
...this.api.scheduleApi.getAllReminderSchedule(loadConfig),
|
|
102
|
+
...this.api.scheduleApi.getAllGlue42Schedule(loadConfig),
|
|
103
|
+
...this.api.scheduleApi.getAllIPushPullSchedule(loadConfig),
|
|
104
|
+
...this.api.scheduleApi.getAllOpenFinSchedule(loadConfig),
|
|
105
|
+
].forEach((schedule) => layoutAssociatedObjectReferences.push({
|
|
106
|
+
Reference: schedule,
|
|
107
|
+
Module: 'Schedule',
|
|
108
|
+
}));
|
|
109
|
+
teamSharingReferences.push(...layoutAssociatedObjectReferences);
|
|
110
|
+
}
|
|
111
|
+
return teamSharingReferences;
|
|
112
|
+
}
|
|
63
113
|
hasNamedQueryReferences() {
|
|
64
114
|
return false;
|
|
65
115
|
}
|
|
@@ -52,7 +52,9 @@ const GridInfoPopup = (props) => {
|
|
|
52
52
|
const calcColumns = props.api.calculatedColumnApi
|
|
53
53
|
.getAllCalculatedColumn()
|
|
54
54
|
.map((c) => c.ColumnId);
|
|
55
|
-
const actionColumns = props.api.actionApi
|
|
55
|
+
const actionColumns = props.api.actionApi
|
|
56
|
+
.getAllActionColumn()
|
|
57
|
+
.map((ac) => ac.columnId);
|
|
56
58
|
const freeTextColumns = props.api.freeTextColumnApi
|
|
57
59
|
.getAllFreeTextColumn()
|
|
58
60
|
.map((c) => c.ColumnId);
|
|
@@ -296,6 +296,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
296
296
|
kind: string;
|
|
297
297
|
description: string;
|
|
298
298
|
};
|
|
299
|
+
AdaptableDataChangeHistoryAction: {
|
|
300
|
+
name: string;
|
|
301
|
+
kind: string;
|
|
302
|
+
description: string;
|
|
303
|
+
};
|
|
299
304
|
AdaptableExternalIcon: {
|
|
300
305
|
name: string;
|
|
301
306
|
kind: string;
|
|
@@ -1693,6 +1698,28 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1693
1698
|
name: string;
|
|
1694
1699
|
kind: string;
|
|
1695
1700
|
description: string;
|
|
1701
|
+
properties: ({
|
|
1702
|
+
name: string;
|
|
1703
|
+
kind: string;
|
|
1704
|
+
description: string;
|
|
1705
|
+
uiLabel: string;
|
|
1706
|
+
isOptional: boolean;
|
|
1707
|
+
reference: string;
|
|
1708
|
+
} | {
|
|
1709
|
+
name: string;
|
|
1710
|
+
kind: string;
|
|
1711
|
+
description: string;
|
|
1712
|
+
uiLabel: string;
|
|
1713
|
+
reference: string;
|
|
1714
|
+
isOptional?: undefined;
|
|
1715
|
+
} | {
|
|
1716
|
+
name: string;
|
|
1717
|
+
kind: string;
|
|
1718
|
+
description: string;
|
|
1719
|
+
uiLabel: string;
|
|
1720
|
+
isOptional?: undefined;
|
|
1721
|
+
reference?: undefined;
|
|
1722
|
+
})[];
|
|
1696
1723
|
};
|
|
1697
1724
|
CustomDestination: {
|
|
1698
1725
|
name: string;
|
|
@@ -2021,6 +2048,29 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2021
2048
|
uiLabel: string;
|
|
2022
2049
|
}[];
|
|
2023
2050
|
};
|
|
2051
|
+
DataChangeHistoryButton: {
|
|
2052
|
+
name: string;
|
|
2053
|
+
kind: string;
|
|
2054
|
+
description: string;
|
|
2055
|
+
};
|
|
2056
|
+
DataChangeHistoryContext: {
|
|
2057
|
+
name: string;
|
|
2058
|
+
kind: string;
|
|
2059
|
+
description: string;
|
|
2060
|
+
properties: ({
|
|
2061
|
+
name: string;
|
|
2062
|
+
kind: string;
|
|
2063
|
+
description: string;
|
|
2064
|
+
uiLabel: string;
|
|
2065
|
+
reference: string;
|
|
2066
|
+
} | {
|
|
2067
|
+
name: string;
|
|
2068
|
+
kind: string;
|
|
2069
|
+
description: string;
|
|
2070
|
+
uiLabel: string;
|
|
2071
|
+
reference?: undefined;
|
|
2072
|
+
})[];
|
|
2073
|
+
};
|
|
2024
2074
|
DataChangeHistoryOptions: {
|
|
2025
2075
|
name: string;
|
|
2026
2076
|
kind: string;
|
|
@@ -2125,6 +2175,19 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2125
2175
|
name: string;
|
|
2126
2176
|
kind: string;
|
|
2127
2177
|
description: string;
|
|
2178
|
+
properties: ({
|
|
2179
|
+
name: string;
|
|
2180
|
+
kind: string;
|
|
2181
|
+
description: string;
|
|
2182
|
+
uiLabel: string;
|
|
2183
|
+
reference: string;
|
|
2184
|
+
} | {
|
|
2185
|
+
name: string;
|
|
2186
|
+
kind: string;
|
|
2187
|
+
description: string;
|
|
2188
|
+
uiLabel: string;
|
|
2189
|
+
reference?: undefined;
|
|
2190
|
+
})[];
|
|
2128
2191
|
};
|
|
2129
2192
|
EditActionRowContext: {
|
|
2130
2193
|
name: string;
|
|
@@ -2148,6 +2211,19 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2148
2211
|
name: string;
|
|
2149
2212
|
kind: string;
|
|
2150
2213
|
description: string;
|
|
2214
|
+
properties: ({
|
|
2215
|
+
name: string;
|
|
2216
|
+
kind: string;
|
|
2217
|
+
description: string;
|
|
2218
|
+
uiLabel: string;
|
|
2219
|
+
reference: string;
|
|
2220
|
+
} | {
|
|
2221
|
+
name: string;
|
|
2222
|
+
kind: string;
|
|
2223
|
+
description: string;
|
|
2224
|
+
uiLabel: string;
|
|
2225
|
+
reference?: undefined;
|
|
2226
|
+
})[];
|
|
2151
2227
|
};
|
|
2152
2228
|
EditLookUpPermittedValues: {
|
|
2153
2229
|
name: string;
|
|
@@ -3129,6 +3205,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3129
3205
|
kind: string;
|
|
3130
3206
|
description: string;
|
|
3131
3207
|
};
|
|
3208
|
+
LayoutAssociatedObjectLoadConfig: {
|
|
3209
|
+
name: string;
|
|
3210
|
+
kind: string;
|
|
3211
|
+
description: string;
|
|
3212
|
+
};
|
|
3132
3213
|
LayoutAvailableContext: {
|
|
3133
3214
|
name: string;
|
|
3134
3215
|
kind: string;
|