@adaptabletools/adaptable 11.1.15 → 11.2.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.
Files changed (196) hide show
  1. package/base.css +2 -0
  2. package/bundle.cjs.js +98 -98
  3. package/index.css +3 -0
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableOptions/AlertOptions.d.ts +8 -2
  8. package/src/AdaptableOptions/DashboardOptions.d.ts +4 -3
  9. package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
  10. package/src/AdaptableOptions/FilterOptions.d.ts +5 -4
  11. package/src/AdaptableOptions/LayoutOptions.d.ts +56 -10
  12. package/src/AdaptableOptions/ToolPanelOptions.d.ts +4 -3
  13. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +18 -16
  14. package/src/Api/AdaptableApi.d.ts +10 -0
  15. package/src/Api/AlertApi.d.ts +3 -1
  16. package/src/Api/ConditionalStyleApi.d.ts +3 -1
  17. package/src/Api/ConfigApi.d.ts +3 -3
  18. package/src/Api/CustomSortApi.d.ts +3 -1
  19. package/src/Api/EventApi.d.ts +14 -0
  20. package/src/Api/Events/LayoutChanged.d.ts +1 -1
  21. package/src/Api/ExportApi.d.ts +16 -0
  22. package/src/Api/FinanceApi.d.ts +104 -3
  23. package/src/Api/FlashingCellApi.d.ts +3 -1
  24. package/src/Api/FormatColumnApi.d.ts +3 -1
  25. package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -0
  26. package/src/Api/Implementation/AdaptableApiImpl.js +53 -0
  27. package/src/Api/Implementation/AlertApiImpl.d.ts +3 -1
  28. package/src/Api/Implementation/AlertApiImpl.js +7 -6
  29. package/src/Api/Implementation/ApiBase.d.ts +1 -1
  30. package/src/Api/Implementation/ApiBase.js +5 -2
  31. package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +3 -1
  32. package/src/Api/Implementation/ConditionalStyleApiImpl.js +5 -4
  33. package/src/Api/Implementation/ConfigApiImpl.js +5 -1
  34. package/src/Api/Implementation/CustomSortApiImpl.d.ts +3 -1
  35. package/src/Api/Implementation/CustomSortApiImpl.js +6 -5
  36. package/src/Api/Implementation/EventApiImpl.d.ts +1 -0
  37. package/src/Api/Implementation/EventApiImpl.js +4 -0
  38. package/src/Api/Implementation/ExportApiImpl.d.ts +3 -0
  39. package/src/Api/Implementation/ExportApiImpl.js +10 -0
  40. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +3 -1
  41. package/src/Api/Implementation/FlashingCellApiImpl.js +8 -6
  42. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -1
  43. package/src/Api/Implementation/FormatColumnApiImpl.js +7 -6
  44. package/src/Api/Implementation/InternalApiImpl.d.ts +14 -5
  45. package/src/Api/Implementation/InternalApiImpl.js +75 -3
  46. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +3 -1
  47. package/src/Api/Implementation/PlusMinusApiImpl.js +6 -8
  48. package/src/Api/Implementation/ScheduleApiImpl.d.ts +17 -6
  49. package/src/Api/Implementation/ScheduleApiImpl.js +25 -12
  50. package/src/Api/Implementation/ShortcutApiImpl.d.ts +3 -1
  51. package/src/Api/Implementation/ShortcutApiImpl.js +5 -4
  52. package/src/Api/Implementation/ToolPanelApiImpl.d.ts +1 -2
  53. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  54. package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
  55. package/src/Api/InternalApi.d.ts +14 -7
  56. package/src/Api/LayoutApi.d.ts +4 -6
  57. package/src/Api/PlusMinusApi.d.ts +3 -1
  58. package/src/Api/ScheduleApi.d.ts +20 -6
  59. package/src/Api/ShortcutApi.d.ts +3 -1
  60. package/src/Api/ToolPanelApi.d.ts +1 -2
  61. package/src/PredefinedConfig/AlertState.d.ts +3 -3
  62. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +2 -5
  63. package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -1
  64. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +4 -3
  65. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +18 -1
  66. package/src/PredefinedConfig/Common/AdaptablePredicate.js +9 -0
  67. package/src/PredefinedConfig/Common/BaseContext.d.ts +10 -0
  68. package/src/PredefinedConfig/Common/BaseContext.js +2 -0
  69. package/src/PredefinedConfig/Common/CellSummary.d.ts +3 -3
  70. package/src/PredefinedConfig/Common/FDC3Context.d.ts +9 -9
  71. package/src/PredefinedConfig/Common/Menu.d.ts +4 -13
  72. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
  73. package/src/PredefinedConfig/DataSourceState.d.ts +2 -2
  74. package/src/PredefinedConfig/FilterState.d.ts +1 -1
  75. package/src/PredefinedConfig/SystemState.d.ts +1 -0
  76. package/src/Redux/ActionsReducers/PopupRedux.d.ts +5 -5
  77. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  78. package/src/Redux/ActionsReducers/SystemRedux.js +11 -1
  79. package/src/Redux/Store/AdaptableStore.d.ts +1 -0
  80. package/src/Redux/Store/AdaptableStore.js +6 -1
  81. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +1 -0
  82. package/src/Strategy/AdaptableModuleBase.d.ts +5 -0
  83. package/src/Strategy/AdaptableModuleBase.js +9 -0
  84. package/src/Strategy/AlertModule.d.ts +4 -1
  85. package/src/Strategy/AlertModule.js +12 -4
  86. package/src/Strategy/CalculatedColumnModule.d.ts +3 -17
  87. package/src/Strategy/CalculatedColumnModule.js +2 -0
  88. package/src/Strategy/ConditionalStyleModule.d.ts +4 -1
  89. package/src/Strategy/ConditionalStyleModule.js +12 -4
  90. package/src/Strategy/CustomSortModule.d.ts +4 -1
  91. package/src/Strategy/CustomSortModule.js +10 -3
  92. package/src/Strategy/DataSourceModule.js +2 -0
  93. package/src/Strategy/ExportModule.d.ts +5 -3
  94. package/src/Strategy/ExportModule.js +10 -0
  95. package/src/Strategy/FlashingCellModule.d.ts +4 -1
  96. package/src/Strategy/FlashingCellModule.js +10 -5
  97. package/src/Strategy/FormatColumnModule.d.ts +4 -1
  98. package/src/Strategy/FormatColumnModule.js +10 -3
  99. package/src/Strategy/FreeTextColumnModule.js +2 -0
  100. package/src/Strategy/Interface/IModule.d.ts +6 -3
  101. package/src/Strategy/Interface/IScheduleModule.d.ts +1 -1
  102. package/src/Strategy/LayoutModule.d.ts +2 -1
  103. package/src/Strategy/LayoutModule.js +35 -2
  104. package/src/Strategy/PlusMinusModule.d.ts +4 -1
  105. package/src/Strategy/PlusMinusModule.js +15 -7
  106. package/src/Strategy/QueryModule.d.ts +2 -8
  107. package/src/Strategy/QueryModule.js +2 -0
  108. package/src/Strategy/ScheduleModule.d.ts +8 -4
  109. package/src/Strategy/ScheduleModule.js +16 -9
  110. package/src/Strategy/ShortcutModule.d.ts +4 -1
  111. package/src/Strategy/ShortcutModule.js +14 -4
  112. package/src/Strategy/StatusBarModule.d.ts +2 -1
  113. package/src/Strategy/StatusBarModule.js +2 -3
  114. package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +2 -2
  115. package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -2
  116. package/src/Strategy/Utilities/getObjectTagsViewItems.d.ts +4 -0
  117. package/src/Strategy/Utilities/getObjectTagsViewItems.js +13 -0
  118. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
  119. package/src/Utilities/Emitter.d.ts +1 -0
  120. package/src/Utilities/Emitter.js +14 -0
  121. package/src/Utilities/Extensions/TypeExtensions.d.ts +2 -0
  122. package/src/Utilities/Interface/MessagePopups.d.ts +3 -3
  123. package/src/Utilities/ObjectFactory.d.ts +2 -2
  124. package/src/Utilities/Services/AlertService.js +1 -1
  125. package/src/Utilities/Services/DataService.js +1 -1
  126. package/src/Utilities/Services/Interface/IModuleService.d.ts +1 -1
  127. package/src/Utilities/Services/ModuleService.d.ts +1 -1
  128. package/src/Utilities/Services/ModuleService.js +1 -0
  129. package/src/View/Alert/AlertStatusSubPanel.js +2 -1
  130. package/src/View/Alert/Wizard/AlertWizard.js +9 -0
  131. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -4
  132. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +9 -0
  133. package/src/View/ColorPicker.d.ts +1 -1
  134. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  135. package/src/View/Components/AdaptableInput/index.d.ts +1 -1
  136. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -0
  137. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  138. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  139. package/src/View/Components/FilterForm/QuickFilterForm.js +11 -7
  140. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  141. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
  142. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
  143. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -0
  144. package/src/View/Components/Popups/AdaptableToaster.js +12 -1
  145. package/src/View/Components/Popups/FormPopups/FormPopups.d.ts +3 -3
  146. package/src/View/Components/TagValueSelector/index.d.ts +13 -0
  147. package/src/View/Components/TagValueSelector/index.js +22 -0
  148. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -2
  149. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +9 -0
  150. package/src/View/CustomSort/Wizard/CustomSortWizard.js +9 -0
  151. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +1 -1
  152. package/src/View/DataSource/Wizard/DataSourceWizard.js +10 -0
  153. package/src/View/Export/ExportSelector.d.ts +4 -0
  154. package/src/View/Export/ExportSelector.js +75 -0
  155. package/src/View/Export/ExportViewPanel.js +6 -7
  156. package/src/View/Export/ReportExportDropdown.d.ts +2 -5
  157. package/src/View/Export/Wizard/NewReportWizard.js +9 -0
  158. package/src/View/Export/constants.d.ts +2 -0
  159. package/src/View/Export/constants.js +5 -0
  160. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +9 -0
  161. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
  162. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +9 -0
  163. package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -1
  164. package/src/View/GridInfo/GridOptionsComponent.js +0 -1
  165. package/src/View/Layout/LayoutCloneButton.d.ts +6 -0
  166. package/src/View/Layout/LayoutCloneButton.js +15 -0
  167. package/src/View/Layout/LayoutRadioSelector.d.ts +2 -1
  168. package/src/View/Layout/LayoutRadioSelector.js +1 -1
  169. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -1
  170. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -0
  171. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +9 -0
  172. package/src/View/Query/Wizard/NamedQueryWizard.js +9 -0
  173. package/src/View/Schedule/Wizard/ScheduleWizard.js +10 -0
  174. package/src/View/Shortcut/Wizard/ShortcutWizard.js +10 -0
  175. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  176. package/src/View/StatusBar/StatusBarPopup.js +1 -1
  177. package/src/View/Wizard/ObjectTagsWizardSection.d.ts +8 -0
  178. package/src/View/Wizard/ObjectTagsWizardSection.js +22 -0
  179. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
  180. package/src/View/Wizard/OnePageAdaptableWizard.js +12 -5
  181. package/src/agGrid/Adaptable.d.ts +14 -1
  182. package/src/agGrid/Adaptable.js +103 -68
  183. package/src/agGrid/agGridHelper.js +2 -1
  184. package/src/agGrid/createAgStatusPanelComponent.js +1 -0
  185. package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +8 -7
  186. package/src/components/Datepicker/index.d.ts +1 -1
  187. package/src/components/ExpressionEditor/index.js +5 -2
  188. package/src/components/Input/index.d.ts +1 -1
  189. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  190. package/src/components/PopupWithFooter.d.ts +1 -1
  191. package/src/components/Textarea/index.d.ts +1 -1
  192. package/src/metamodel/adaptable.metamodel.d.ts +44 -2
  193. package/src/metamodel/adaptable.metamodel.js +235 -21
  194. package/src/types.d.ts +6 -5
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
@@ -5,10 +5,13 @@ import { ReportSchedule } from '../../PredefinedConfig/ExportState';
5
5
  import { Glue42Schedule } from '../../PredefinedConfig/Glue42State';
6
6
  import { IPushPullSchedule } from '../../PredefinedConfig/IPushPullState';
7
7
  import { OpenFinSchedule } from '../../PredefinedConfig/OpenFinState';
8
- import { ReminderSchedule } from '../../PredefinedConfig/ScheduleState';
8
+ import { ReminderSchedule, ScheduleState } from '../../PredefinedConfig/ScheduleState';
9
9
  export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
10
+ getScheduleState(): ScheduleState;
10
11
  getAllSchedule(): BaseSchedule[];
11
- getAllReminderSchedule(): ReminderSchedule[];
12
+ getAllReminderSchedule(config?: {
13
+ includeLayoutNotAssociatedObjects?: boolean;
14
+ }): ReminderSchedule[];
12
15
  getScheduleById(id: BaseSchedule['Uuid']): BaseSchedule;
13
16
  getAllActiveReminderSchedule(): ReminderSchedule[];
14
17
  getAllSuspendedReminderSchedule(): ReminderSchedule[];
@@ -17,7 +20,9 @@ export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
17
20
  editReminderSchedule(schedule: ReminderSchedule): ReminderSchedule;
18
21
  suspendReminderSchedule(schedule: ReminderSchedule): ReminderSchedule;
19
22
  unSuspendReminderSchedule(schedule: ReminderSchedule): ReminderSchedule;
20
- getAllReportSchedule(): ReportSchedule[];
23
+ getAllReportSchedule(config?: {
24
+ includeLayoutNotAssociatedObjects?: boolean;
25
+ }): ReportSchedule[];
21
26
  getAllActiveReportSchedule(): ReportSchedule[];
22
27
  getAllSuspendedReportSchedule(): ReportSchedule[];
23
28
  addReportSchedule(schedule: ReportSchedule): ReportSchedule;
@@ -25,7 +30,9 @@ export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
25
30
  deleteReportSchedule(schedule: ReportSchedule): void;
26
31
  suspendReportSchedule(schedule: ReportSchedule): ReportSchedule;
27
32
  unSuspendReportSchedule(schedule: ReportSchedule): ReportSchedule;
28
- getAllIPushPullSchedule(): IPushPullSchedule[];
33
+ getAllIPushPullSchedule(config?: {
34
+ includeLayoutNotAssociatedObjects?: boolean;
35
+ }): IPushPullSchedule[];
29
36
  getAllActiveIPushPullSchedule(): IPushPullSchedule[];
30
37
  getAllSuspendedIPushPullSchedule(): IPushPullSchedule[];
31
38
  addIPushPullSchedule(schedule: IPushPullSchedule): IPushPullSchedule;
@@ -33,7 +40,9 @@ export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
33
40
  deleteIPushPullSchedule(schedule: IPushPullSchedule): void;
34
41
  suspendIPushPullSchedule(schedule: IPushPullSchedule): IPushPullSchedule;
35
42
  unSuspendIPushPullSchedule(schedule: IPushPullSchedule): IPushPullSchedule;
36
- getAllGlue42Schedule(): Glue42Schedule[];
43
+ getAllGlue42Schedule(config?: {
44
+ includeLayoutNotAssociatedObjects?: boolean;
45
+ }): Glue42Schedule[];
37
46
  getAllActiveGlue42Schedule(): Glue42Schedule[];
38
47
  getAllSuspendedGlue42Schedule(): Glue42Schedule[];
39
48
  addGlue42Schedule(schedule: Glue42Schedule): Glue42Schedule;
@@ -41,7 +50,9 @@ export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
41
50
  deleteGlue42Schedule(schedule: Glue42Schedule): void;
42
51
  suspendGlue42Schedule(schedule: Glue42Schedule): Glue42Schedule;
43
52
  unSuspendGlue42Schedule(schedule: Glue42Schedule): Glue42Schedule;
44
- getAllOpenFinSchedule(): OpenFinSchedule[];
53
+ getAllOpenFinSchedule(config?: {
54
+ includeLayoutNotAssociatedObjects?: boolean;
55
+ }): OpenFinSchedule[];
45
56
  getAllActiveOpenFinSchedule(): OpenFinSchedule[];
46
57
  getAllSuspendedOpenFinSchedule(): OpenFinSchedule[];
47
58
  addOpenFinSchedule(schedule: OpenFinSchedule): OpenFinSchedule;
@@ -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
- return this.getAdaptableState().Schedule.Reminders;
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
- var _a;
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
- return this.adaptable.api.exportApi.getReportSchedules();
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(): Shortcut[];
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
- return this.getAdaptableState().Shortcut.Shortcuts;
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
- var _a;
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(popupParams?: ModuleParams): void;
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(popupParams) {
13
- this.showModulePopup(ModuleConstants.ToolPanelModuleId, popupParams);
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 editLookUpParams = {
140
+ const editLookUpContext = {
141
141
  adaptableApi: this.adaptable.api,
142
142
  column: gridCell.column,
143
143
  gridCell: gridCell,
144
144
  };
145
- return editLookUpValues(editLookUpParams);
145
+ return editLookUpValues(editLookUpContext);
146
146
  }
147
147
  else {
148
148
  let arr = editLookUpValues;
@@ -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, ButtonContext } from '../PredefinedConfig/Common/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<ButtonContext>, 'buttons'> & {
44
- buttons?: (Omit<AdaptableButton<ButtonContext>, 'buttonStyle'> & {
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<ButtonContext>, context: ButtonContext): string | undefined;
115
- getTooltipForButton(button: AdaptableButton<ButtonContext>, context: ButtonContext): string | undefined;
116
- getStyleForButton(button: AdaptableButton<ButtonContext>, context: ButtonContext): ButtonStyle | undefined;
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
  }
@@ -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 {@link createOrUpdateLayout} instead
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/clone, or create a new, Layout
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 change column caption popup
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(): PlusMinusNudge[];
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
@@ -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(): ReminderSchedule[];
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(): ReportSchedule[];
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(): IPushPullSchedule[];
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(): Glue42Schedule[];
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(): OpenFinSchedule[];
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
@@ -11,7 +11,9 @@ export interface ShortcutApi {
11
11
  * Gets all Shortcuts in Adaptable State
12
12
  * @returns shortcuts
13
13
  */
14
- getAllShortcut(): Shortcut[];
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(popupParams?: ModuleParams): void;
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, ButtonContext } from './Common/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<ButtonContext>, 'onClick' | 'label' | 'buttonStyle' | 'hidden' | 'disabled' | 'tooltip'> {
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 ButtonContext> extends AdaptableObject {
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 = (nodeA: RowNode, nodeB: RowNode) => number;
23
+ export declare type AdaptableNodeComparerFunction = (params: InitialGroupOrderComparatorParams) => number;
@@ -1,10 +1,11 @@
1
- import { AdaptableButton, ButtonContext } from './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 ButtonContext> {
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 ButtonContext = ButtonContext>(formDef?: AdaptableForm<T>): Record<string, any>;
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 {@link AdaptableOptions.predefinedConfig}, 'User' or undefined for runtime state.
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',
@@ -0,0 +1,10 @@
1
+ import { AdaptableApi } from '../../types';
2
+ /**
3
+ * Base Context object used in many functions provided by AdapTable
4
+ */
5
+ export interface BaseContext {
6
+ /**
7
+ * The Adaptable Api - included as a convenience
8
+ */
9
+ adaptableApi: AdaptableApi;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -22,12 +22,12 @@ export interface CellSummaryOperation {
22
22
  /**
23
23
  * Function to run when a summary result is required
24
24
  */
25
- operationFunction: (operationParam: CellSummaryOperationParams) => any;
25
+ operationFunction: (operationContext: CellSummaryOperationContext) => any;
26
26
  }
27
27
  /**
28
- * Params provided to a custom Cell Summary Operation function
28
+ * Context provided to a custom Cell Summary Operation function
29
29
  */
30
- export interface CellSummaryOperationParams {
30
+ export interface CellSummaryOperationContext {
31
31
  /**
32
32
  * Currently selected cells
33
33
  */