@adaptabletools/adaptable 11.1.14 → 11.2.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +2 -0
- package/bundle.cjs.js +98 -98
- package/index.css +3 -0
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +8 -2
- package/src/AdaptableOptions/DashboardOptions.d.ts +4 -3
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +5 -4
- package/src/AdaptableOptions/LayoutOptions.d.ts +56 -10
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +4 -3
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +18 -16
- package/src/Api/AdaptableApi.d.ts +10 -0
- package/src/Api/AlertApi.d.ts +3 -1
- package/src/Api/ConditionalStyleApi.d.ts +3 -1
- package/src/Api/ConfigApi.d.ts +3 -3
- package/src/Api/CustomSortApi.d.ts +3 -1
- package/src/Api/EventApi.d.ts +1 -0
- package/src/Api/Events/LayoutChanged.d.ts +1 -1
- package/src/Api/ExportApi.d.ts +16 -0
- package/src/Api/FinanceApi.d.ts +104 -3
- package/src/Api/FlashingCellApi.d.ts +3 -1
- package/src/Api/FormatColumnApi.d.ts +3 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +53 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +3 -1
- package/src/Api/Implementation/AlertApiImpl.js +7 -6
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +5 -2
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +5 -4
- package/src/Api/Implementation/ConfigApiImpl.js +5 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +3 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -5
- package/src/Api/Implementation/EventApiImpl.d.ts +1 -0
- package/src/Api/Implementation/EventApiImpl.js +3 -0
- package/src/Api/Implementation/ExportApiImpl.d.ts +3 -0
- package/src/Api/Implementation/ExportApiImpl.js +10 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +3 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +8 -6
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -6
- package/src/Api/Implementation/InternalApiImpl.d.ts +14 -5
- package/src/Api/Implementation/InternalApiImpl.js +75 -3
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +3 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +6 -8
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +17 -6
- package/src/Api/Implementation/ScheduleApiImpl.js +25 -12
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ShortcutApiImpl.js +5 -4
- package/src/Api/Implementation/ToolPanelApiImpl.d.ts +1 -2
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
- package/src/Api/InternalApi.d.ts +14 -7
- package/src/Api/LayoutApi.d.ts +4 -6
- package/src/Api/PlusMinusApi.d.ts +3 -1
- package/src/Api/ScheduleApi.d.ts +20 -6
- package/src/Api/ShortcutApi.d.ts +3 -1
- package/src/Api/ToolPanelApi.d.ts +1 -2
- package/src/PredefinedConfig/AlertState.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableButton.d.ts +2 -5
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -1
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +4 -3
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +18 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +9 -0
- package/src/PredefinedConfig/Common/BaseContext.d.ts +10 -0
- package/src/PredefinedConfig/Common/BaseContext.js +2 -0
- package/src/PredefinedConfig/Common/CellSummary.d.ts +3 -3
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +9 -9
- package/src/PredefinedConfig/Common/Menu.d.ts +4 -13
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
- package/src/PredefinedConfig/DataSourceState.d.ts +2 -2
- package/src/PredefinedConfig/FilterState.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +1 -0
- package/src/PredefinedConfig/Uuid.js +1 -0
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +5 -5
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +11 -1
- package/src/Redux/Store/AdaptableStore.d.ts +1 -0
- package/src/Redux/Store/AdaptableStore.js +6 -1
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +1 -0
- package/src/Strategy/AdaptableModuleBase.d.ts +5 -0
- package/src/Strategy/AdaptableModuleBase.js +9 -0
- package/src/Strategy/AlertModule.d.ts +4 -1
- package/src/Strategy/AlertModule.js +12 -4
- package/src/Strategy/CalculatedColumnModule.d.ts +3 -17
- package/src/Strategy/CalculatedColumnModule.js +2 -0
- package/src/Strategy/ConditionalStyleModule.d.ts +4 -1
- package/src/Strategy/ConditionalStyleModule.js +12 -4
- package/src/Strategy/CustomSortModule.d.ts +4 -1
- package/src/Strategy/CustomSortModule.js +10 -3
- package/src/Strategy/DataSourceModule.js +2 -0
- package/src/Strategy/ExportModule.d.ts +5 -3
- package/src/Strategy/ExportModule.js +10 -0
- package/src/Strategy/FlashingCellModule.d.ts +4 -1
- package/src/Strategy/FlashingCellModule.js +10 -5
- package/src/Strategy/FormatColumnModule.d.ts +4 -1
- package/src/Strategy/FormatColumnModule.js +10 -3
- package/src/Strategy/FreeTextColumnModule.js +2 -0
- package/src/Strategy/Interface/IModule.d.ts +6 -3
- package/src/Strategy/Interface/IScheduleModule.d.ts +1 -1
- package/src/Strategy/LayoutModule.d.ts +2 -1
- package/src/Strategy/LayoutModule.js +35 -2
- package/src/Strategy/PlusMinusModule.d.ts +4 -1
- package/src/Strategy/PlusMinusModule.js +15 -7
- package/src/Strategy/QueryModule.d.ts +2 -8
- package/src/Strategy/QueryModule.js +2 -0
- package/src/Strategy/ScheduleModule.d.ts +8 -4
- package/src/Strategy/ScheduleModule.js +16 -9
- package/src/Strategy/ShortcutModule.d.ts +4 -1
- package/src/Strategy/ShortcutModule.js +14 -4
- package/src/Strategy/StatusBarModule.d.ts +2 -1
- package/src/Strategy/StatusBarModule.js +2 -3
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -2
- package/src/Strategy/Utilities/getObjectTagsViewItems.d.ts +4 -0
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +13 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
- package/src/Utilities/Emitter.d.ts +1 -0
- package/src/Utilities/Emitter.js +9 -0
- package/src/Utilities/Extensions/TypeExtensions.d.ts +2 -0
- package/src/Utilities/Interface/MessagePopups.d.ts +3 -3
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/Services/AlertService.js +1 -1
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Interface/IModuleService.d.ts +1 -1
- package/src/Utilities/Services/ModuleService.d.ts +1 -1
- package/src/Utilities/Services/ModuleService.js +1 -0
- package/src/View/Alert/AlertStatusSubPanel.js +2 -1
- package/src/View/Alert/Wizard/AlertWizard.js +9 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +9 -0
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -0
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +1 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +11 -7
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -0
- package/src/View/Components/Popups/AdaptableToaster.js +3 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.d.ts +3 -3
- package/src/View/Components/TagValueSelector/index.d.ts +13 -0
- package/src/View/Components/TagValueSelector/index.js +22 -0
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +9 -0
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +9 -0
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +1 -1
- package/src/View/DataSource/Wizard/DataSourceWizard.js +10 -0
- package/src/View/Export/ExportSelector.d.ts +4 -0
- package/src/View/Export/ExportSelector.js +75 -0
- package/src/View/Export/ExportViewPanel.js +6 -7
- package/src/View/Export/ReportExportDropdown.d.ts +2 -5
- package/src/View/Export/Wizard/NewReportWizard.js +9 -0
- package/src/View/Export/constants.d.ts +2 -0
- package/src/View/Export/constants.js +5 -0
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +9 -0
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +9 -0
- package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -1
- package/src/View/GridInfo/GridOptionsComponent.js +0 -1
- package/src/View/Layout/LayoutCloneButton.d.ts +6 -0
- package/src/View/Layout/LayoutCloneButton.js +15 -0
- package/src/View/Layout/LayoutRadioSelector.d.ts +2 -1
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -0
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +9 -0
- package/src/View/Query/Wizard/NamedQueryWizard.js +9 -0
- package/src/View/Schedule/Wizard/ScheduleWizard.js +10 -0
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +10 -0
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/StatusBar/StatusBarPopup.js +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.d.ts +8 -0
- package/src/View/Wizard/ObjectTagsWizardSection.js +22 -0
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +12 -5
- package/src/agGrid/Adaptable.d.ts +14 -1
- package/src/agGrid/Adaptable.js +103 -68
- package/src/agGrid/agGridHelper.js +2 -1
- package/src/agGrid/createAgStatusPanelComponent.js +1 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +8 -7
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/index.js +5 -2
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/WindowModal/useStacking.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +44 -2
- package/src/metamodel/adaptable.metamodel.js +229 -21
- package/src/types.d.ts +6 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -6,6 +6,9 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const ScheduleRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ScheduleRedux"));
|
|
8
8
|
class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
+
getScheduleState() {
|
|
10
|
+
return this.getAdaptableState().Schedule;
|
|
11
|
+
}
|
|
9
12
|
getAllSchedule() {
|
|
10
13
|
let allSchedules = [];
|
|
11
14
|
allSchedules.push(...this.getAllReminderSchedule());
|
|
@@ -15,12 +18,13 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
15
18
|
allSchedules.push(...this.getAllOpenFinSchedule());
|
|
16
19
|
return allSchedules;
|
|
17
20
|
}
|
|
18
|
-
getAllReminderSchedule() {
|
|
19
|
-
|
|
21
|
+
getAllReminderSchedule(config) {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
return ((_b = (_a = this.getScheduleState().Reminders) === null || _a === void 0 ? void 0 : _a.filter((schedule) => (config === null || config === void 0 ? void 0 : config.includeLayoutNotAssociatedObjects) ||
|
|
24
|
+
this.adaptable.api.internalApi.isObjectAvailableInLayout(schedule, 'Schedule'))) !== null && _b !== void 0 ? _b : []);
|
|
20
25
|
}
|
|
21
26
|
getScheduleById(id) {
|
|
22
|
-
|
|
23
|
-
return (_a = this.getAllSchedule()) === null || _a === void 0 ? void 0 : _a.find((schedule) => (schedule === null || schedule === void 0 ? void 0 : schedule.Uuid) === id);
|
|
27
|
+
return this.getAllSchedule().find((schedule) => (schedule === null || schedule === void 0 ? void 0 : schedule.Uuid) === id);
|
|
24
28
|
}
|
|
25
29
|
getAllActiveReminderSchedule() {
|
|
26
30
|
return this.getAllReminderSchedule().filter((schedule) => !schedule.IsSuspended);
|
|
@@ -47,8 +51,11 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
47
51
|
this.dispatchAction(ScheduleRedux.ReminderScheduleUnSuspend(schedule));
|
|
48
52
|
return this.getScheduleById(schedule.Uuid);
|
|
49
53
|
}
|
|
50
|
-
getAllReportSchedule() {
|
|
51
|
-
|
|
54
|
+
getAllReportSchedule(config) {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
return ((_b = (_a = this.adaptable.api.exportApi
|
|
57
|
+
.getReportSchedules()) === null || _a === void 0 ? void 0 : _a.filter((schedule) => (config === null || config === void 0 ? void 0 : config.includeLayoutNotAssociatedObjects) ||
|
|
58
|
+
this.adaptable.api.internalApi.isObjectAvailableInLayout(schedule, 'Schedule'))) !== null && _b !== void 0 ? _b : []);
|
|
52
59
|
}
|
|
53
60
|
getAllActiveReportSchedule() {
|
|
54
61
|
return this.getAllReportSchedule().filter((schedule) => !schedule.IsSuspended);
|
|
@@ -75,9 +82,11 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
75
82
|
this.dispatchAction(ScheduleRedux.ReportScheduleUnSuspend(schedule));
|
|
76
83
|
return this.getScheduleById(schedule.Uuid);
|
|
77
84
|
}
|
|
78
|
-
getAllIPushPullSchedule() {
|
|
85
|
+
getAllIPushPullSchedule(config) {
|
|
86
|
+
var _a, _b;
|
|
79
87
|
const ippApi = this.adaptable.api.pluginsApi.getipushpullPluginApi();
|
|
80
|
-
return ippApi ? ippApi.getIPushPullSchedules() :
|
|
88
|
+
return ((_b = (_a = ippApi === null || ippApi === void 0 ? void 0 : ippApi.getIPushPullSchedules()) === null || _a === void 0 ? void 0 : _a.filter((schedule) => (config === null || config === void 0 ? void 0 : config.includeLayoutNotAssociatedObjects) ||
|
|
89
|
+
this.adaptable.api.internalApi.isObjectAvailableInLayout(schedule, 'Schedule'))) !== null && _b !== void 0 ? _b : []);
|
|
81
90
|
}
|
|
82
91
|
getAllActiveIPushPullSchedule() {
|
|
83
92
|
return this.getAllIPushPullSchedule().filter((schedule) => !schedule.IsSuspended);
|
|
@@ -104,9 +113,11 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
104
113
|
this.dispatchAction(ScheduleRedux.IPushPullScheduleUnSuspend(schedule));
|
|
105
114
|
return this.getScheduleById(schedule.Uuid);
|
|
106
115
|
}
|
|
107
|
-
getAllGlue42Schedule() {
|
|
116
|
+
getAllGlue42Schedule(config) {
|
|
117
|
+
var _a, _b;
|
|
108
118
|
const glue42Api = this.adaptable.api.pluginsApi.getGlue42PluginApi();
|
|
109
|
-
return glue42Api ? glue42Api.getGlue42Schedules() :
|
|
119
|
+
return ((_b = (_a = glue42Api === null || glue42Api === void 0 ? void 0 : glue42Api.getGlue42Schedules()) === null || _a === void 0 ? void 0 : _a.filter((schedule) => (config === null || config === void 0 ? void 0 : config.includeLayoutNotAssociatedObjects) ||
|
|
120
|
+
this.adaptable.api.internalApi.isObjectAvailableInLayout(schedule, 'Schedule'))) !== null && _b !== void 0 ? _b : []);
|
|
110
121
|
}
|
|
111
122
|
getAllActiveGlue42Schedule() {
|
|
112
123
|
return this.getAllGlue42Schedule().filter((schedule) => !schedule.IsSuspended);
|
|
@@ -133,9 +144,11 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
133
144
|
this.dispatchAction(ScheduleRedux.Glue42ScheduleUnSuspend(schedule));
|
|
134
145
|
return this.getScheduleById(schedule.Uuid);
|
|
135
146
|
}
|
|
136
|
-
getAllOpenFinSchedule() {
|
|
147
|
+
getAllOpenFinSchedule(config) {
|
|
148
|
+
var _a, _b;
|
|
137
149
|
const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
|
|
138
|
-
return openFinApi ? openFinApi.getOpenFinSchedules() :
|
|
150
|
+
return ((_b = (_a = openFinApi === null || openFinApi === void 0 ? void 0 : openFinApi.getOpenFinSchedules()) === null || _a === void 0 ? void 0 : _a.filter((schedule) => (config === null || config === void 0 ? void 0 : config.includeLayoutNotAssociatedObjects) ||
|
|
151
|
+
this.adaptable.api.internalApi.isObjectAvailableInLayout(schedule, 'Schedule'))) !== null && _b !== void 0 ? _b : []);
|
|
139
152
|
}
|
|
140
153
|
getAllActiveOpenFinSchedule() {
|
|
141
154
|
return this.getAllOpenFinSchedule().filter((schedule) => !schedule.IsSuspended);
|
|
@@ -3,7 +3,9 @@ import { ShortcutApi } from '../ShortcutApi';
|
|
|
3
3
|
import { ShortcutState, Shortcut } from '../../PredefinedConfig/ShortcutState';
|
|
4
4
|
export declare class ShortcutApiImpl extends ApiBase implements ShortcutApi {
|
|
5
5
|
getShortcutState(): ShortcutState;
|
|
6
|
-
getAllShortcut(
|
|
6
|
+
getAllShortcut(config?: {
|
|
7
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
8
|
+
}): Shortcut[];
|
|
7
9
|
getShortcutById(id: Shortcut['Uuid']): Shortcut;
|
|
8
10
|
getAllActiveShortcut(): Shortcut[];
|
|
9
11
|
getAllSuspendedShortcut(): Shortcut[];
|
|
@@ -9,12 +9,13 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
|
|
|
9
9
|
getShortcutState() {
|
|
10
10
|
return this.getAdaptableState().Shortcut;
|
|
11
11
|
}
|
|
12
|
-
getAllShortcut() {
|
|
13
|
-
|
|
12
|
+
getAllShortcut(config) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
return ((_b = (_a = this.getShortcutState().Shortcuts) === null || _a === void 0 ? void 0 : _a.filter((shortcut) => (config === null || config === void 0 ? void 0 : config.includeLayoutNotAssociatedObjects) ||
|
|
15
|
+
this.adaptable.api.internalApi.isObjectAvailableInLayout(shortcut, 'Shortcut'))) !== null && _b !== void 0 ? _b : []);
|
|
14
16
|
}
|
|
15
17
|
getShortcutById(id) {
|
|
16
|
-
|
|
17
|
-
return (_a = this.getAllShortcut()) === null || _a === void 0 ? void 0 : _a.find((shortcut) => (shortcut === null || shortcut === void 0 ? void 0 : shortcut.Uuid) === id);
|
|
18
|
+
return this.getAllShortcut().find((shortcut) => (shortcut === null || shortcut === void 0 ? void 0 : shortcut.Uuid) === id);
|
|
18
19
|
}
|
|
19
20
|
getAllActiveShortcut() {
|
|
20
21
|
return this.getAllShortcut().filter((shortcut) => !shortcut.IsSuspended);
|
|
@@ -3,11 +3,10 @@ import { ToolPanelApi } from '../ToolPanelApi';
|
|
|
3
3
|
import { ToolPanelState, ToolPanelVisibilityMode } from '../../PredefinedConfig/ToolPanelState';
|
|
4
4
|
import { CustomToolPanel, ToolPanelButtonContext } from '../../AdaptableOptions/ToolPanelOptions';
|
|
5
5
|
import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
|
|
6
|
-
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
7
6
|
import { AdaptableToolPanel } from '../../PredefinedConfig/Common/Types';
|
|
8
7
|
export declare class ToolPanelApiImpl extends ApiBase implements ToolPanelApi {
|
|
9
8
|
getToolPanelState(): ToolPanelState;
|
|
10
|
-
showToolPanelPopup(
|
|
9
|
+
showToolPanelPopup(): void;
|
|
11
10
|
openAdapTableToolPanel(): void;
|
|
12
11
|
closeAdapTableToolPanel(): void;
|
|
13
12
|
getCustomToolPanels(): CustomToolPanel[];
|
|
@@ -9,8 +9,8 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
9
9
|
getToolPanelState() {
|
|
10
10
|
return this.getAdaptableState().ToolPanel;
|
|
11
11
|
}
|
|
12
|
-
showToolPanelPopup(
|
|
13
|
-
this.showModulePopup(ModuleConstants.ToolPanelModuleId
|
|
12
|
+
showToolPanelPopup() {
|
|
13
|
+
this.showModulePopup(ModuleConstants.ToolPanelModuleId);
|
|
14
14
|
}
|
|
15
15
|
openAdapTableToolPanel() {
|
|
16
16
|
let gridOptions = this.getOptions().gridOptions;
|
|
@@ -137,12 +137,12 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
137
137
|
let editLookUpValues = editLookUpItem.values;
|
|
138
138
|
// first do the function then get hardcoded items
|
|
139
139
|
if (editLookUpValues != null && typeof editLookUpValues === 'function') {
|
|
140
|
-
const
|
|
140
|
+
const editLookUpContext = {
|
|
141
141
|
adaptableApi: this.adaptable.api,
|
|
142
142
|
column: gridCell.column,
|
|
143
143
|
gridCell: gridCell,
|
|
144
144
|
};
|
|
145
|
-
return editLookUpValues(
|
|
145
|
+
return editLookUpValues(editLookUpContext);
|
|
146
146
|
}
|
|
147
147
|
else {
|
|
148
148
|
let arr = editLookUpValues;
|
package/src/Api/InternalApi.d.ts
CHANGED
|
@@ -17,14 +17,14 @@ import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
|
|
|
17
17
|
import { Layout } from '../PredefinedConfig/LayoutState';
|
|
18
18
|
import { AdaptableAlert, AdaptableCellChangedAlert, AdaptableRowChangedAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
19
19
|
import { IDataService } from '../Utilities/Services/Interface/IDataService';
|
|
20
|
-
import { AdaptableMessageType, AlertDefinition, CellDataChangedInfo, SystemStatusMessageInfo } from '../types';
|
|
20
|
+
import { AdaptableMessageType, AlertDefinition, BaseContext, CellDataChangedInfo, LayoutAssociatedObject, SystemStatusMessageInfo } from '../types';
|
|
21
21
|
import { IEntitlementService } from '../Utilities/Services/Interface/IEntitlementService';
|
|
22
22
|
import { AdaptableFlashingCell } from '../PredefinedConfig/Common/AdaptableFlashingCell';
|
|
23
23
|
import { IQueryLanguageService } from '../Utilities/Services/Interface/IQueryLanguageService';
|
|
24
24
|
import { IAlertService } from '../Utilities/Services/Interface/IAlertService';
|
|
25
25
|
import { AdaptableState } from '../PredefinedConfig/AdaptableState';
|
|
26
26
|
import { ITeamSharingService } from '../Utilities/Services/Interface/ITeamSharingService';
|
|
27
|
-
import { AdaptableButton
|
|
27
|
+
import { AdaptableButton } from '../PredefinedConfig/Common/AdaptableButton';
|
|
28
28
|
import { ColumnValuesComparer } from '../AdaptableOptions/GeneralOptions';
|
|
29
29
|
import { ButtonStyle } from '../PredefinedConfig/Common/ButtonStyle';
|
|
30
30
|
import { AdaptableForm } from '../PredefinedConfig/Common/AdaptableForm';
|
|
@@ -33,6 +33,7 @@ import { AdaptableFrameworkComponent } from '../AdaptableOptions/AdaptableFramew
|
|
|
33
33
|
import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
|
|
34
34
|
import { RowNode } from '@ag-grid-community/all-modules';
|
|
35
35
|
import { IModuleCollection } from '../Strategy/Interface/IModule';
|
|
36
|
+
import { AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
|
|
36
37
|
/**
|
|
37
38
|
* This set of api methods is designed for **internal use of Adaptable** only.
|
|
38
39
|
*
|
|
@@ -40,8 +41,8 @@ import { IModuleCollection } from '../Strategy/Interface/IModule';
|
|
|
40
41
|
*/
|
|
41
42
|
export interface InternalApi {
|
|
42
43
|
getSystemState(): SystemState;
|
|
43
|
-
getAdaptableFormFromAlertForm(alertForm: string | AlertButtonForm, context: any, defaultMessageType?: AdaptableMessageType): Omit<AdaptableForm<
|
|
44
|
-
buttons?: (Omit<AdaptableButton<
|
|
44
|
+
getAdaptableFormFromAlertForm(alertForm: string | AlertButtonForm, context: any, defaultMessageType?: AdaptableMessageType): Omit<AdaptableForm<BaseContext>, 'buttons'> & {
|
|
45
|
+
buttons?: (Omit<AdaptableButton<BaseContext>, 'buttonStyle'> & {
|
|
45
46
|
buttonStyle?: ButtonStyle;
|
|
46
47
|
})[];
|
|
47
48
|
};
|
|
@@ -111,9 +112,9 @@ export interface InternalApi {
|
|
|
111
112
|
clearUpdatedRowState(): void;
|
|
112
113
|
clearGradientColumnState(): void;
|
|
113
114
|
clearPercentBarState(): void;
|
|
114
|
-
getLabelForButton(button: AdaptableButton<
|
|
115
|
-
getTooltipForButton(button: AdaptableButton<
|
|
116
|
-
getStyleForButton(button: AdaptableButton<
|
|
115
|
+
getLabelForButton(button: AdaptableButton<BaseContext>, context: BaseContext): string | undefined;
|
|
116
|
+
getTooltipForButton(button: AdaptableButton<BaseContext>, context: BaseContext): string | undefined;
|
|
117
|
+
getStyleForButton(button: AdaptableButton<BaseContext>, context: BaseContext): ButtonStyle | undefined;
|
|
117
118
|
dispatchReduxAction(action: Action): void;
|
|
118
119
|
waitForTeamSharingImportEnd(): Promise<boolean>;
|
|
119
120
|
getUserDefinedHeaderName(columnId: string): string;
|
|
@@ -121,7 +122,13 @@ export interface InternalApi {
|
|
|
121
122
|
destroyFrameworkComponent(containerDomNode: HTMLElement, frameworkComponent: AdaptableFrameworkComponent, componentType: 'toolPanel' | 'toolbar' | string): void;
|
|
122
123
|
initializeDataChangeHistory(): void;
|
|
123
124
|
isTextComparisonCaseSensitive(): boolean;
|
|
125
|
+
hasLayoutSpecificObjects(): boolean;
|
|
126
|
+
isObjectAvailableInLayout(object: LayoutAssociatedObject, module: AdaptableModule): boolean;
|
|
127
|
+
showLayoutNotAssociatedObjects(): boolean;
|
|
124
128
|
executeWithProgressIndicator(label: string, executeFn: () => unknown): void;
|
|
125
129
|
hideProgressIndicator(): void;
|
|
126
130
|
getCorrectEnglishVariant(wordToSpell: string): string;
|
|
131
|
+
shouldDisplayTagSections(): boolean;
|
|
132
|
+
getAvailableTags(): AdaptableObjectTag[] | undefined;
|
|
133
|
+
showSettingsPanel(module: AdaptableModule, moduleParams?: ModuleParams): void;
|
|
127
134
|
}
|
package/src/Api/LayoutApi.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export interface LayoutApi {
|
|
|
68
68
|
* Saves given Layout into Adaptable State (creates new Layout if it doesn't exist)
|
|
69
69
|
* @param layoutToSave the Layout to save
|
|
70
70
|
*
|
|
71
|
-
* @deprecated use
|
|
71
|
+
* @deprecated use `createOrUpdateLayout()` instead
|
|
72
72
|
*/
|
|
73
73
|
saveLayout(layoutToSave: Layout): void;
|
|
74
74
|
/**
|
|
@@ -136,9 +136,8 @@ export interface LayoutApi {
|
|
|
136
136
|
showLayoutPopup(): void;
|
|
137
137
|
/**
|
|
138
138
|
* Opens Layout Editor - for Current or a named Layout
|
|
139
|
-
*
|
|
140
139
|
* @param layoutName Name of Layout to be edited or cloned; if not specified, uses Current Layout
|
|
141
|
-
* @param action Whether to edit
|
|
140
|
+
* @param action Whether to edit, clone, or create a new Layout
|
|
142
141
|
*/
|
|
143
142
|
showLayoutEditor(layoutName?: string,
|
|
144
143
|
/**
|
|
@@ -166,9 +165,8 @@ export interface LayoutApi {
|
|
|
166
165
|
*/
|
|
167
166
|
isCurrentLayoutReadOnly(): boolean;
|
|
168
167
|
/**
|
|
169
|
-
* Opens
|
|
170
|
-
*
|
|
171
|
-
* @param column AdaptableColumn
|
|
168
|
+
* Opens Change Column Caption popup
|
|
169
|
+
* @param column Column to open Popup for
|
|
172
170
|
*/
|
|
173
171
|
showChangeColumnCaption(column: AdaptableColumn): void;
|
|
174
172
|
/**
|
|
@@ -12,7 +12,9 @@ export interface PlusMinusApi {
|
|
|
12
12
|
* Retrieves all Plus Minus Rules in Adaptable State with those with expressions first
|
|
13
13
|
* @returns plus minus rule
|
|
14
14
|
*/
|
|
15
|
-
getAllPlusMinus(
|
|
15
|
+
getAllPlusMinus(config?: {
|
|
16
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
17
|
+
}): PlusMinusNudge[];
|
|
16
18
|
/**
|
|
17
19
|
* Retrieves Plus Minus Rule by Id
|
|
18
20
|
* @param id Plus Minus id
|
package/src/Api/ScheduleApi.d.ts
CHANGED
|
@@ -3,11 +3,15 @@ import { ReportSchedule } from '../PredefinedConfig/ExportState';
|
|
|
3
3
|
import { Glue42Schedule } from '../PredefinedConfig/Glue42State';
|
|
4
4
|
import { IPushPullSchedule } from '../PredefinedConfig/IPushPullState';
|
|
5
5
|
import { OpenFinSchedule } from '../PredefinedConfig/OpenFinState';
|
|
6
|
-
import { ReminderSchedule } from '../PredefinedConfig/ScheduleState';
|
|
6
|
+
import { ReminderSchedule, ScheduleState } from '../PredefinedConfig/ScheduleState';
|
|
7
7
|
/**
|
|
8
8
|
* Provides run-time access to the Schedule Module and associated state
|
|
9
9
|
*/
|
|
10
10
|
export interface ScheduleApi {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves Schedule section from Adaptable State
|
|
13
|
+
*/
|
|
14
|
+
getScheduleState(): ScheduleState;
|
|
11
15
|
/**
|
|
12
16
|
* Retrieves the Schedule section from Adaptable State
|
|
13
17
|
* @returns schedules
|
|
@@ -23,7 +27,9 @@ export interface ScheduleApi {
|
|
|
23
27
|
* Retrieves all Reminder-based Schedules from Schedule State
|
|
24
28
|
* @returns reminder schedules
|
|
25
29
|
*/
|
|
26
|
-
getAllReminderSchedule(
|
|
30
|
+
getAllReminderSchedule(config?: {
|
|
31
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
32
|
+
}): ReminderSchedule[];
|
|
27
33
|
/**
|
|
28
34
|
* Retrieves all active (not-suspended) Reminder-based Schedules from Schedule State
|
|
29
35
|
* @returns reminder schedules
|
|
@@ -67,7 +73,9 @@ export interface ScheduleApi {
|
|
|
67
73
|
* Retrieves all Report / Export Schedules from Schedule State
|
|
68
74
|
* @returns report schedules
|
|
69
75
|
*/
|
|
70
|
-
getAllReportSchedule(
|
|
76
|
+
getAllReportSchedule(config?: {
|
|
77
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
78
|
+
}): ReportSchedule[];
|
|
71
79
|
/**
|
|
72
80
|
* Retrieves all active (not-suspended) Report / Export Schedules from Schedule State
|
|
73
81
|
* @returns report schedules
|
|
@@ -111,7 +119,9 @@ export interface ScheduleApi {
|
|
|
111
119
|
* Retrieves all ipushpull-based Schedules from Schedule State
|
|
112
120
|
* @returns IPushPull schedules
|
|
113
121
|
*/
|
|
114
|
-
getAllIPushPullSchedule(
|
|
122
|
+
getAllIPushPullSchedule(config?: {
|
|
123
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
124
|
+
}): IPushPullSchedule[];
|
|
115
125
|
/**
|
|
116
126
|
* Retrieves all active (not-suspended) ipushpull-based Schedules from Schedule State
|
|
117
127
|
* @returns IPushPull schedules
|
|
@@ -155,7 +165,9 @@ export interface ScheduleApi {
|
|
|
155
165
|
* Retrieves all Glue42-based Schedules from Schedule State
|
|
156
166
|
* @returns Glue42 schedules
|
|
157
167
|
*/
|
|
158
|
-
getAllGlue42Schedule(
|
|
168
|
+
getAllGlue42Schedule(config?: {
|
|
169
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
170
|
+
}): Glue42Schedule[];
|
|
159
171
|
/**
|
|
160
172
|
* Retrieves all active (not-suspended) Glue42-based Schedules from Schedule State
|
|
161
173
|
* @returns Glue42 schedules
|
|
@@ -199,7 +211,9 @@ export interface ScheduleApi {
|
|
|
199
211
|
* Retrieves all OpenFin-based Schedules from Schedule State
|
|
200
212
|
* @returns OpenFin schedules
|
|
201
213
|
*/
|
|
202
|
-
getAllOpenFinSchedule(
|
|
214
|
+
getAllOpenFinSchedule(config?: {
|
|
215
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
216
|
+
}): OpenFinSchedule[];
|
|
203
217
|
/**
|
|
204
218
|
* Retrieves all active (not-suspended) OpenFin-based Schedules from Schedule State
|
|
205
219
|
* @returns OpenFin schedules
|
package/src/Api/ShortcutApi.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ export interface ShortcutApi {
|
|
|
11
11
|
* Gets all Shortcuts in Adaptable State
|
|
12
12
|
* @returns shortcuts
|
|
13
13
|
*/
|
|
14
|
-
getAllShortcut(
|
|
14
|
+
getAllShortcut(config?: {
|
|
15
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
16
|
+
}): Shortcut[];
|
|
15
17
|
/**
|
|
16
18
|
* Retrieves Shortcut by Id
|
|
17
19
|
* @param id Shortcut id
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ToolPanelState, ToolPanelVisibilityMode } from '../PredefinedConfig/ToolPanelState';
|
|
2
2
|
import { CustomToolPanel, ToolPanelButtonContext } from '../AdaptableOptions/ToolPanelOptions';
|
|
3
3
|
import { AdaptableButton } from '../PredefinedConfig/Common/AdaptableButton';
|
|
4
|
-
import { ModuleParams } from '../View/Components/SharedProps/ModuleViewPopupProps';
|
|
5
4
|
import { AdaptableToolPanel } from '../PredefinedConfig/Common/Types';
|
|
6
5
|
/**
|
|
7
6
|
* Functions for managing the AdapTable ToolPanel Component (at side of grid)
|
|
@@ -14,7 +13,7 @@ export interface ToolPanelApi {
|
|
|
14
13
|
/**
|
|
15
14
|
* Opens the Tool Panel popup
|
|
16
15
|
*/
|
|
17
|
-
showToolPanelPopup(
|
|
16
|
+
showToolPanelPopup(): void;
|
|
18
17
|
/**
|
|
19
18
|
* Opens the Adaptable ToolPanel Component
|
|
20
19
|
*/
|
|
@@ -4,13 +4,13 @@ import { AdaptablePredicate } from './Common/AdaptablePredicate';
|
|
|
4
4
|
import { TypeHint } from './Common/Types';
|
|
5
5
|
import { AdaptableMessageType } from './Common/AdaptableMessageType';
|
|
6
6
|
import { AdaptableForm } from './Common/AdaptableForm';
|
|
7
|
-
import { AdaptableButton
|
|
7
|
+
import { AdaptableButton } from './Common/AdaptableButton';
|
|
8
8
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
9
9
|
import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
10
10
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
11
11
|
import { AdaptableAggregatedBooleanQuery, AdaptableBooleanQuery, AdaptableObservableQuery } from './Common/AdaptableQuery';
|
|
12
12
|
import { ButtonStyle } from './Common/ButtonStyle';
|
|
13
|
-
import { AlertButtonContext } from '../types';
|
|
13
|
+
import { AlertButtonContext, BaseContext } from '../types';
|
|
14
14
|
/**
|
|
15
15
|
* Predefined Configuration for Alert Module
|
|
16
16
|
*/
|
|
@@ -69,7 +69,7 @@ export declare type AdaptableAlertAction = 'highlight-cell' | 'highlight-row' |
|
|
|
69
69
|
/**
|
|
70
70
|
* Defines a button that appears in an Alert Form
|
|
71
71
|
*/
|
|
72
|
-
export interface AlertButton<AlertButtonContext> extends Omit<AdaptableButton<
|
|
72
|
+
export interface AlertButton<AlertButtonContext> extends Omit<AdaptableButton<BaseContext>, 'onClick' | 'label' | 'buttonStyle' | 'hidden' | 'disabled' | 'tooltip'> {
|
|
73
73
|
/**
|
|
74
74
|
* Predefined Action(s) to trigger when button is clicked; but the implementation in `actionHandlers` property of Alert Options
|
|
75
75
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ButtonStyle } from './ButtonStyle';
|
|
2
2
|
import { AdaptableObject } from './AdaptableObject';
|
|
3
|
-
import { AdaptableApi } from '../../Api/AdaptableApi';
|
|
4
3
|
import { AdaptableIcon } from './AdaptableIcon';
|
|
4
|
+
import { BaseContext } from '../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Defines a Button that appears in numerous places including Adaptable Form
|
|
7
7
|
*/
|
|
8
|
-
export interface AdaptableButton<CONTEXT_TYPE extends
|
|
8
|
+
export interface AdaptableButton<CONTEXT_TYPE extends BaseContext> extends AdaptableObject {
|
|
9
9
|
/**
|
|
10
10
|
* Label for Button - can be string or function that provides string
|
|
11
11
|
*/
|
|
@@ -35,6 +35,3 @@ export interface AdaptableButton<CONTEXT_TYPE extends ButtonContext> extends Ada
|
|
|
35
35
|
*/
|
|
36
36
|
hidden?: (button: AdaptableButton<CONTEXT_TYPE>, context: CONTEXT_TYPE) => boolean;
|
|
37
37
|
}
|
|
38
|
-
export interface ButtonContext {
|
|
39
|
-
adaptableApi: AdaptableApi;
|
|
40
|
-
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RowNode } from '@ag-grid-community/all-modules';
|
|
2
|
+
import { InitialGroupOrderComparatorParams } from '@ag-grid-community/core/dist/cjs/es5/entities/iCallbackParams';
|
|
2
3
|
/**
|
|
3
4
|
* Standard comparer function used to evaluate custom sorts, returns -1, 0, 1 as required
|
|
4
5
|
*/
|
|
@@ -19,4 +20,4 @@ nodeA?: RowNode,
|
|
|
19
20
|
* Second Row Node to compare
|
|
20
21
|
*/
|
|
21
22
|
nodeB?: RowNode) => number;
|
|
22
|
-
export declare type AdaptableNodeComparerFunction = (
|
|
23
|
+
export declare type AdaptableNodeComparerFunction = (params: InitialGroupOrderComparatorParams) => number;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { AdaptableButton
|
|
1
|
+
import { AdaptableButton } from './AdaptableButton';
|
|
2
2
|
import { AdaptableFormConfig } from '../../components/FormLayout';
|
|
3
|
+
import { BaseContext } from '../../types';
|
|
3
4
|
export declare type AdaptableFormData = Record<string, any>;
|
|
4
5
|
/**
|
|
5
6
|
* Defines a form which appears dynamically; used by Alerts & Export Custom Destinations
|
|
6
7
|
*/
|
|
7
|
-
export interface AdaptableForm<T extends
|
|
8
|
+
export interface AdaptableForm<T extends BaseContext> {
|
|
8
9
|
/**
|
|
9
10
|
* Title to appear in the Form
|
|
10
11
|
*/
|
|
@@ -54,4 +55,4 @@ export interface AdaptableFormField {
|
|
|
54
55
|
label: string;
|
|
55
56
|
}[];
|
|
56
57
|
}
|
|
57
|
-
export declare function getDefaultAdaptableFormData<T extends
|
|
58
|
+
export declare function getDefaultAdaptableFormData<T extends BaseContext = BaseContext>(formDef?: AdaptableForm<T>): Record<string, any>;
|
|
@@ -8,11 +8,28 @@ export interface AdaptableObject {
|
|
|
8
8
|
*/
|
|
9
9
|
Uuid?: TypeUuid;
|
|
10
10
|
/**
|
|
11
|
-
* Source of state object: 'Config' if provided via
|
|
11
|
+
* Source of state object: 'Config' if provided via `AdaptableOptions.predefinedConfig`, 'User' or undefined for runtime state.
|
|
12
12
|
*/
|
|
13
13
|
Source?: 'Config' | 'User';
|
|
14
14
|
/**
|
|
15
15
|
* Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
|
|
16
16
|
*/
|
|
17
17
|
IsReadOnly?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* List of tags associated with the object
|
|
20
|
+
*/
|
|
21
|
+
Tags?: AdaptableObjectTag[];
|
|
18
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Tag object defined as a label and a value
|
|
25
|
+
*/
|
|
26
|
+
export declare type AdaptableObjectTag = {
|
|
27
|
+
/**
|
|
28
|
+
* Label for the tag
|
|
29
|
+
*/
|
|
30
|
+
label: string;
|
|
31
|
+
/**
|
|
32
|
+
* Value for the tag
|
|
33
|
+
*/
|
|
34
|
+
value: string | number;
|
|
35
|
+
};
|
|
@@ -31,6 +31,15 @@ exports.SystemPredicateDefs = [
|
|
|
31
31
|
toString: ({ inputs }) => `IN (${inputs.join(', ')})`,
|
|
32
32
|
shortcuts: ['#', '['],
|
|
33
33
|
},
|
|
34
|
+
{
|
|
35
|
+
id: 'ExcludeValues',
|
|
36
|
+
label: 'Exclude Values',
|
|
37
|
+
icon: { text: '!IN' },
|
|
38
|
+
columnScope: { DataTypes: ['String', 'Number', 'Date'] },
|
|
39
|
+
moduleScope: ['filter'],
|
|
40
|
+
handler: ({ displayValue, inputs }) => inputs.length === 0 || !inputs.includes(displayValue),
|
|
41
|
+
toString: ({ inputs }) => `Exclude (${inputs.join(', ')})`,
|
|
42
|
+
},
|
|
34
43
|
{
|
|
35
44
|
id: 'Blanks',
|
|
36
45
|
label: 'Blanks',
|
|
@@ -22,12 +22,12 @@ export interface CellSummaryOperation {
|
|
|
22
22
|
/**
|
|
23
23
|
* Function to run when a summary result is required
|
|
24
24
|
*/
|
|
25
|
-
operationFunction: (
|
|
25
|
+
operationFunction: (operationContext: CellSummaryOperationContext) => any;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Context provided to a custom Cell Summary Operation function
|
|
29
29
|
*/
|
|
30
|
-
export interface
|
|
30
|
+
export interface CellSummaryOperationContext {
|
|
31
31
|
/**
|
|
32
32
|
* Currently selected cells
|
|
33
33
|
*/
|
|
@@ -34,7 +34,7 @@ export interface InstrumentContext extends FDC3Context {
|
|
|
34
34
|
/**
|
|
35
35
|
* Context type is always `instrument`
|
|
36
36
|
*/
|
|
37
|
-
type: 'instrument';
|
|
37
|
+
type: 'fdc3.instrument';
|
|
38
38
|
/**
|
|
39
39
|
* Free text name of the Instrument
|
|
40
40
|
*/
|
|
@@ -62,7 +62,7 @@ export interface InstrumentListContext extends FDC3Context {
|
|
|
62
62
|
/**
|
|
63
63
|
* Context type is always `instrumentList`
|
|
64
64
|
*/
|
|
65
|
-
type: 'instrumentList';
|
|
65
|
+
type: 'fdc3.instrumentList';
|
|
66
66
|
/**
|
|
67
67
|
* Free text name of list of Instruments (not set by AdapTable)
|
|
68
68
|
*/
|
|
@@ -83,7 +83,7 @@ export interface PositionContext extends FDC3Context {
|
|
|
83
83
|
/**
|
|
84
84
|
* Context type is always `position`
|
|
85
85
|
*/
|
|
86
|
-
type: 'position';
|
|
86
|
+
type: 'fdc3.position';
|
|
87
87
|
/**
|
|
88
88
|
* The `InstrumentContext` of the relevant Instrument
|
|
89
89
|
*/
|
|
@@ -108,7 +108,7 @@ export interface PortfolioContext extends FDC3Context {
|
|
|
108
108
|
/**
|
|
109
109
|
* Context type is always `portfolio`
|
|
110
110
|
*/
|
|
111
|
-
type: 'portfolio';
|
|
111
|
+
type: 'fdc3.portfolio';
|
|
112
112
|
/**
|
|
113
113
|
* Free text name of portfolio
|
|
114
114
|
*/
|
|
@@ -129,7 +129,7 @@ export interface ContactContext extends FDC3Context {
|
|
|
129
129
|
/**
|
|
130
130
|
* Context type is always `contact`
|
|
131
131
|
*/
|
|
132
|
-
type: 'contact';
|
|
132
|
+
type: 'fdc3.contact';
|
|
133
133
|
/**
|
|
134
134
|
* Free text name of Contact
|
|
135
135
|
*/
|
|
@@ -151,7 +151,7 @@ export interface ContactListContext extends FDC3Context {
|
|
|
151
151
|
/**
|
|
152
152
|
* Context type is always `contactList`
|
|
153
153
|
*/
|
|
154
|
-
type: 'contactList';
|
|
154
|
+
type: 'fdc3.contactList';
|
|
155
155
|
/**
|
|
156
156
|
* Free text name of Contact list
|
|
157
157
|
*/
|
|
@@ -172,7 +172,7 @@ export interface OrganizationContext extends FDC3Context {
|
|
|
172
172
|
/**
|
|
173
173
|
* Context type is always `organization`
|
|
174
174
|
*/
|
|
175
|
-
type: 'organization';
|
|
175
|
+
type: 'fdc3.organization';
|
|
176
176
|
/**
|
|
177
177
|
* Free text name of Organization
|
|
178
178
|
*/
|
|
@@ -195,7 +195,7 @@ export interface CountryContext extends FDC3Context {
|
|
|
195
195
|
/**
|
|
196
196
|
* Context type is always `country`
|
|
197
197
|
*/
|
|
198
|
-
type: 'country';
|
|
198
|
+
type: 'fdc3.country';
|
|
199
199
|
/**
|
|
200
200
|
* Free text name of Country
|
|
201
201
|
*/
|
|
@@ -227,4 +227,4 @@ export interface AdaptableFDC3EventInfo extends BaseEventInfo {
|
|
|
227
227
|
*/
|
|
228
228
|
context: FDC3Context;
|
|
229
229
|
}
|
|
230
|
-
export declare type ContextType = 'instrument' | 'instrumentList' | 'position' | 'portfolio' | 'contact' | 'contactList' | 'organization' | 'country';
|
|
230
|
+
export declare type ContextType = 'fdc3.instrument' | 'fdc3.instrumentList' | 'fdc3.position' | 'fdc3.portfolio' | 'fdc3.contact' | 'fdc3.contactList' | 'fdc3.organization' | 'fdc3.country';
|