@adaptabletools/adaptable 16.0.0-canary.2 → 16.0.0-canary.4

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 (189) hide show
  1. package/README.md +2 -0
  2. package/base.css +62 -54
  3. package/base.css.map +1 -1
  4. package/bundle.cjs.js +159 -159
  5. package/index.css +82 -70
  6. package/index.css.map +1 -1
  7. package/package.json +10 -2
  8. package/publishTimestamp.d.ts +1 -1
  9. package/publishTimestamp.js +1 -1
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +5 -1
  11. package/src/AdaptableOptions/ActionRowOptions.d.ts +8 -5
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +9 -4
  13. package/src/AdaptableOptions/ColumnOptions.d.ts +1 -10
  14. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +6 -2
  15. package/src/AdaptableOptions/Fdc3Options.d.ts +150 -0
  16. package/src/AdaptableOptions/Fdc3Options.js +5 -0
  17. package/src/AdaptableOptions/FilterOptions.d.ts +1 -0
  18. package/src/AdaptableOptions/FinancePluginOptions.d.ts +9 -9
  19. package/src/AdaptableOptions/FormatColumnOptions.d.ts +7 -7
  20. package/src/AdaptableOptions/GroupingOptions.d.ts +6 -11
  21. package/src/AdaptableOptions/OpenFinPluginOptions.d.ts +1 -1
  22. package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
  23. package/src/AdaptableOptions/TeamSharingOptions.d.ts +5 -0
  24. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +21 -11
  25. package/src/Api/AdaptableApi.d.ts +7 -2
  26. package/src/Api/ColumnApi.d.ts +18 -7
  27. package/src/Api/DataChangeHistoryApi.d.ts +6 -0
  28. package/src/Api/EventApi.d.ts +22 -9
  29. package/src/Api/Events/ChexboxColumnClicked.d.ts +1 -0
  30. package/src/Api/Events/ScheduleTriggered.d.ts +11 -0
  31. package/src/Api/Events/ThemeChanged.d.ts +0 -6
  32. package/src/Api/Events/ThemeEdited.d.ts +11 -0
  33. package/src/Api/Events/ThemeEdited.js +2 -0
  34. package/src/Api/Fdc3Api.d.ts +83 -0
  35. package/src/Api/Fdc3Api.js +2 -0
  36. package/src/Api/FinanceApi.d.ts +12 -12
  37. package/src/Api/Implementation/ActionRowApiImpl.js +7 -5
  38. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
  39. package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
  40. package/src/Api/Implementation/ApiBase.d.ts +4 -0
  41. package/src/Api/Implementation/ApiBase.js +6 -0
  42. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
  43. package/src/Api/Implementation/ChartingApiImpl.js +4 -0
  44. package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -1
  45. package/src/Api/Implementation/ColumnApiImpl.js +22 -3
  46. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  47. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +3 -0
  48. package/src/Api/Implementation/Fdc3ApiImpl.d.ts +26 -0
  49. package/src/Api/Implementation/Fdc3ApiImpl.js +79 -0
  50. package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
  51. package/src/Api/Implementation/OptionsApiImpl.js +3 -0
  52. package/src/Api/Implementation/PredicateApiImpl.d.ts +5 -5
  53. package/src/Api/Implementation/PredicateApiImpl.js +8 -8
  54. package/src/Api/Implementation/QuickSearchApiImpl.d.ts +2 -0
  55. package/src/Api/Implementation/QuickSearchApiImpl.js +7 -0
  56. package/src/Api/Implementation/ScheduleApiImpl.d.ts +4 -0
  57. package/src/Api/Implementation/ScheduleApiImpl.js +5 -0
  58. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +0 -3
  59. package/src/Api/Implementation/StyledColumnApiImpl.js +0 -26
  60. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
  61. package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -0
  62. package/src/Api/Internal/AdaptableInternalApi.d.ts +5 -3
  63. package/src/Api/Internal/AdaptableInternalApi.js +18 -12
  64. package/src/Api/Internal/AlertInternalApi.js +7 -2
  65. package/src/Api/Internal/Fdc3InternalApi.d.ts +11 -0
  66. package/src/Api/Internal/Fdc3InternalApi.js +72 -0
  67. package/src/Api/Internal/FilterInternalApi.js +8 -4
  68. package/src/Api/Internal/FormatColumnInternalApi.js +11 -13
  69. package/src/Api/Internal/ScheduleInternalApi.d.ts +8 -0
  70. package/src/Api/Internal/ScheduleInternalApi.js +20 -0
  71. package/src/Api/Internal/StyledColumnInternalApi.d.ts +5 -2
  72. package/src/Api/Internal/StyledColumnInternalApi.js +29 -2
  73. package/src/Api/Internal/UserInterfaceInternalApi.d.ts +5 -0
  74. package/src/Api/Internal/UserInterfaceInternalApi.js +18 -0
  75. package/src/Api/OptionsApi.d.ts +6 -1
  76. package/src/Api/PredicateApi.d.ts +5 -5
  77. package/src/Api/QuickSearchApi.d.ts +8 -0
  78. package/src/Api/StyledColumnApi.d.ts +0 -14
  79. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
  80. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +7 -7
  81. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +8 -15
  82. package/src/PredefinedConfig/Common/AdaptablePredicate.js +65 -41
  83. package/src/PredefinedConfig/Common/{FDC3Context.d.ts → FDC3Context_DEPR.d.ts} +19 -19
  84. package/src/PredefinedConfig/Common/FDC3Context_DEPR.js +2 -0
  85. package/src/PredefinedConfig/Common/Fdc3Context.d.ts +53 -0
  86. package/src/PredefinedConfig/Common/Fdc3Context.js +35 -0
  87. package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +68 -0
  88. package/src/PredefinedConfig/Common/Fdc3Intent.js +75 -0
  89. package/src/PredefinedConfig/Common/Types.d.ts +2 -2
  90. package/src/PredefinedConfig/StyledColumnState.d.ts +3 -2
  91. package/src/PredefinedConfig/SystemState.d.ts +3 -0
  92. package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
  93. package/src/Redux/ActionsReducers/SystemRedux.d.ts +17 -6
  94. package/src/Redux/ActionsReducers/SystemRedux.js +33 -3
  95. package/src/Redux/Store/AdaptableStore.js +3 -4
  96. package/src/Strategy/AdaptableModuleBase.d.ts +6 -6
  97. package/src/Strategy/Fdc3Module.d.ts +13 -0
  98. package/src/Strategy/Fdc3Module.js +85 -0
  99. package/src/Strategy/FlashingCellModule.js +6 -2
  100. package/src/Strategy/Interface/IModule.d.ts +2 -2
  101. package/src/Strategy/ScheduleModule.js +3 -2
  102. package/src/Strategy/StyledColumnModule.js +24 -15
  103. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  104. package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
  105. package/src/Utilities/Constants/ModuleConstants.js +5 -2
  106. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +9 -3
  107. package/src/Utilities/MenuItem.d.ts +4 -4
  108. package/src/Utilities/Services/Fdc3Service.d.ts +20 -0
  109. package/src/Utilities/Services/Fdc3Service.js +87 -0
  110. package/src/Utilities/Services/MetamodelService.js +5 -1
  111. package/src/Utilities/Services/ModuleService.js +1 -1
  112. package/src/Utilities/Services/QueryLanguageService.js +1 -1
  113. package/src/Utilities/Services/RowEditService.js +1 -1
  114. package/src/Utilities/Services/TeamSharingService.d.ts +2 -0
  115. package/src/Utilities/Services/TeamSharingService.js +60 -3
  116. package/src/Utilities/Services/ValidationService.js +6 -2
  117. package/src/View/AdaptableView.js +9 -7
  118. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +9 -0
  119. package/src/View/Charting/useChartingElements.js +1 -1
  120. package/src/View/Components/AdaptableButton/index.d.ts +3 -0
  121. package/src/View/Components/AdaptableButton/index.js +18 -0
  122. package/src/View/Components/AdaptableIconComponent/index.d.ts +7 -0
  123. package/src/View/Components/AdaptableIconComponent/index.js +16 -0
  124. package/src/View/Components/AdaptableIconComponent/useCustomIcon.d.ts +2 -0
  125. package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +12 -0
  126. package/src/{components → View/Components}/Badge/index.d.ts +1 -1
  127. package/src/{components → View/Components}/Badge/index.js +1 -1
  128. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  129. package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
  130. package/src/View/Components/FilterForm/QuickFilterForm.js +3 -2
  131. package/src/View/Components/Panels/PanelWithButton.d.ts +2 -2
  132. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
  133. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
  134. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
  135. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  136. package/src/View/Components/PredicateEditor/PredicateEditor.js +4 -4
  137. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -2
  138. package/src/View/Dashboard/Dashboard.js +3 -3
  139. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -0
  140. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +13 -7
  141. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -1
  142. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
  143. package/src/View/DataChangeHistory/buildActionColumnButton.js +9 -2
  144. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  145. package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.d.ts +2 -0
  146. package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +26 -0
  147. package/src/View/QuickSearch/QuickSearchInput.d.ts +6 -0
  148. package/src/View/QuickSearch/QuickSearchInput.js +22 -0
  149. package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +2 -5
  150. package/src/View/QuickSearch/QuickSearchViewPanel.js +5 -19
  151. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -2
  152. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
  153. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -5
  154. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +2 -9
  155. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -1
  156. package/src/View/UIHelper.d.ts +2 -2
  157. package/src/agGrid/ActionColumnRenderer.d.ts +0 -2
  158. package/src/agGrid/ActionColumnRenderer.js +21 -6
  159. package/src/agGrid/Adaptable.d.ts +7 -2
  160. package/src/agGrid/Adaptable.js +82 -37
  161. package/src/agGrid/BadgeRenderer.js +19 -20
  162. package/src/agGrid/CheckboxRenderer.js +1 -1
  163. package/src/agGrid/agGridHelper.js +4 -0
  164. package/src/agGrid/agGridMenuHelper.js +11 -4
  165. package/src/agGrid/attachAddaptableColumnTypes.d.ts +1 -0
  166. package/src/agGrid/attachAddaptableColumnTypes.js +5 -4
  167. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  168. package/src/components/Drawer/index.d.ts +6 -0
  169. package/src/components/Drawer/index.js +60 -0
  170. package/src/components/ExpressionEditor/index.js +4 -2
  171. package/src/components/Icon/index.d.ts +11 -0
  172. package/src/components/{AdaptableIconComponent → Icon}/index.js +10 -10
  173. package/src/components/IconSelector/IconSelector.js +3 -3
  174. package/src/components/SimpleButton/index.js +10 -10
  175. package/src/components/Toggle/Toggle.d.ts +2 -2
  176. package/src/components/Toggle/Toggle.js +2 -2
  177. package/src/components/icons/fdc3.d.ts +3 -0
  178. package/src/components/icons/fdc3.js +9 -0
  179. package/src/components/icons/index.d.ts +4 -4
  180. package/src/components/icons/index.js +9 -7
  181. package/src/metamodel/adaptable.metamodel.d.ts +117 -47
  182. package/src/metamodel/adaptable.metamodel.js +1 -1
  183. package/src/types.d.ts +9 -5
  184. package/version.d.ts +1 -1
  185. package/version.js +1 -1
  186. package/src/View/Components/AdaptableViewIcon/index.d.ts +0 -10
  187. package/src/View/Components/AdaptableViewIcon/index.js +0 -18
  188. package/src/components/AdaptableIconComponent/index.d.ts +0 -11
  189. /package/src/{PredefinedConfig/Common/FDC3Context.js → Api/Events/ScheduleTriggered.js} +0 -0
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.QuickSearchApiImpl = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const QuickSearchRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QuickSearchRedux"));
6
+ const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
6
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
7
8
  const ApiBase_1 = require("./ApiBase");
8
9
  class QuickSearchApiImpl extends ApiBase_1.ApiBase {
@@ -27,5 +28,11 @@ class QuickSearchApiImpl extends ApiBase_1.ApiBase {
27
28
  openQuickSearchSettingsPanel() {
28
29
  this.showModulePopup(ModuleConstants.QuickSearchModuleId);
29
30
  }
31
+ showFloatingQuickSearch() {
32
+ this.dispatchAction(SystemRedux.SystemQuickSearchFloatingVisibility(true));
33
+ }
34
+ hideFloatingQuickSearch() {
35
+ this.dispatchAction(SystemRedux.SystemQuickSearchFloatingVisibility(false));
36
+ }
30
37
  }
31
38
  exports.QuickSearchApiImpl = QuickSearchApiImpl;
@@ -6,7 +6,11 @@ import { Glue42Schedule } from '../../PredefinedConfig/Glue42State';
6
6
  import { IPushPullSchedule } from '../../PredefinedConfig/IPushPullState';
7
7
  import { OpenFinSchedule } from '../../PredefinedConfig/OpenFinState';
8
8
  import { ReminderSchedule, ScheduleState } from '../../PredefinedConfig/ScheduleState';
9
+ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
10
+ import { ScheduleInternalApi } from '../Internal/ScheduleInternalApi';
9
11
  export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
12
+ internalApi: ScheduleInternalApi;
13
+ constructor(adaptable: IAdaptable);
10
14
  getScheduleState(): ScheduleState;
11
15
  getSchedules(): BaseSchedule[];
12
16
  getReminderSchedules(config?: {
@@ -5,7 +5,12 @@ const tslib_1 = require("tslib");
5
5
  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
+ const ScheduleInternalApi_1 = require("../Internal/ScheduleInternalApi");
8
9
  class ScheduleApiImpl extends ApiBase_1.ApiBase {
10
+ constructor(adaptable) {
11
+ super(adaptable);
12
+ this.internalApi = new ScheduleInternalApi_1.ScheduleInternalApi(adaptable);
13
+ }
9
14
  getScheduleState() {
10
15
  return this.getAdaptableState().Schedule;
11
16
  }
@@ -17,10 +17,7 @@ export declare class StyledColumnApiImpl extends ApiBase implements StyledColumn
17
17
  getSuspendedStyledColumns(): StyledColumn[];
18
18
  deleteStyledColumn(styledColumn: StyledColumn): void;
19
19
  addStyledColumn(styledColumn: StyledColumn): void;
20
- getCheckBoxStyleStyledColumn(column: AdaptableColumn): StyledColumn | undefined;
21
20
  isSparklineStyleStyledColumn(column: AdaptableColumn): boolean;
22
- isCheckBoxStyleStyledColumn(column: AdaptableColumn): boolean;
23
- fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
24
21
  getActiveStyledColumnForColumn(column: AdaptableColumn): StyledColumn | undefined;
25
22
  hasPercentBarStyle(columnId: string): boolean;
26
23
  hasGradientStyle(columnId: string): boolean;
@@ -4,7 +4,6 @@ exports.StyledColumnApiImpl = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const ApiBase_1 = require("./ApiBase");
6
6
  const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/StyledColumnRedux"));
7
- const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
8
7
  const StyledColumnInternalApi_1 = require("../Internal/StyledColumnInternalApi");
9
8
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
10
9
  class StyledColumnApiImpl extends ApiBase_1.ApiBase {
@@ -37,37 +36,12 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
37
36
  addStyledColumn(styledColumn) {
38
37
  this.dispatchAction(StyledColumnRedux.StyledColumnAdd(styledColumn));
39
38
  }
40
- getCheckBoxStyleStyledColumn(column) {
41
- var _a;
42
- if (column.dataType != 'Boolean') {
43
- return undefined;
44
- }
45
- const checkBoxFormatColumns = (_a = this.getStyledColumnState().StyledColumns) === null || _a === void 0 ? void 0 : _a.filter((sc) => sc === null || sc === void 0 ? void 0 : sc.CheckBoxStyle);
46
- const styledColumn = checkBoxFormatColumns.find((sc) => sc.ColumnId == column.columnId);
47
- return styledColumn;
48
- }
49
39
  isSparklineStyleStyledColumn(column) {
50
40
  if (!column) {
51
41
  return false;
52
42
  }
53
43
  return !!this.getStyledColumns().find((styledColumn) => !!styledColumn.SparkLineStyle && styledColumn.ColumnId === column.columnId);
54
44
  }
55
- isCheckBoxStyleStyledColumn(column) {
56
- const styledColumn = this.getCheckBoxStyleStyledColumn(column);
57
- return Helper_1.default.objectExists(styledColumn);
58
- }
59
- fireCheckboxColumnClickedEvent(columnId, rowData, primaryKeyValue, isChecked) {
60
- let checkboxColumnClickedInfo = {
61
- adaptableApi: this.adaptable.api,
62
- column: this.adaptable.api.columnApi.getColumnWithColumnId(columnId),
63
- rowData: rowData,
64
- primaryKeyValue: primaryKeyValue,
65
- isChecked: isChecked,
66
- userName: this.adaptable.api.optionsApi.getUserName(),
67
- adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
68
- };
69
- this.adaptable.api.eventApi.emit('CheckboxColumnClicked', checkboxColumnClickedInfo);
70
- }
71
45
  getActiveStyledColumnForColumn(column) {
72
46
  const styledColumns = this.getActiveStyledColumns();
73
47
  return styledColumns.find((sc) => sc.ColumnId == column.columnId);
@@ -5,7 +5,11 @@ import { AdaptableStyle } from '../../PredefinedConfig/Common/AdaptableStyle';
5
5
  import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../../PredefinedConfig/Common/Menu';
6
6
  import { BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../../AdaptableOptions/UserInterfaceOptions';
7
7
  import { AdaptableObjectTag, GridCell } from '../../types';
8
+ import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
9
+ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
8
10
  export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
11
+ internalApi: UserInterfaceInternalApi;
12
+ constructor(adaptable: IAdaptable);
9
13
  getColorPalette(): string[];
10
14
  getStyleClassNames(): string[] | undefined;
11
15
  getPermittedValuesItems(): PermittedValues[];
@@ -25,8 +29,5 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
25
29
  getEditableCellStyle(): AdaptableStyle | undefined;
26
30
  getReadOnlyCellStyle(): AdaptableStyle | undefined;
27
31
  getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
28
- getCustomIconDefinition(iconName: string): import("../../types").AdaptableIcon | {
29
- name: string;
30
- icon: import("../../types").AdaptableIcon;
31
- };
32
+ getCustomIconDefinition(iconName: string): import("../../types").AdaptableIcon | import("../../types").CustomIcon;
32
33
  }
@@ -3,7 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserInterfaceApiImpl = void 0;
4
4
  const ApiBase_1 = require("./ApiBase");
5
5
  const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
6
+ const UserInterfaceInternalApi_1 = require("../Internal/UserInterfaceInternalApi");
6
7
  class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
8
+ constructor(adaptable) {
9
+ super(adaptable);
10
+ this.internalApi = new UserInterfaceInternalApi_1.UserInterfaceInternalApi(adaptable);
11
+ }
7
12
  getColorPalette() {
8
13
  let colorPalette = this.getUserInterfaceOptions().colorPalette;
9
14
  // first do the function then get hardcoded items
@@ -3,7 +3,6 @@ import { UIConfirmation } from '../../Utilities/Interface/MessagePopups';
3
3
  import { SystemState } from '../../PredefinedConfig/SystemState';
4
4
  import { Action } from 'redux';
5
5
  import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
6
- import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
7
6
  import { AdaptableMenuItem } from '../../PredefinedConfig/Common/Menu';
8
7
  import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
9
8
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
@@ -26,6 +25,7 @@ import { IMetamodelService } from '../../Utilities/Services/Interface/IMetamodel
26
25
  import { IModuleCollection } from '../../Strategy/Interface/IModule';
27
26
  import { AdaptableObjectTag, AdaptableObjectWithScope } from '../../PredefinedConfig/Common/AdaptableObject';
28
27
  import { IRowEditService } from '../../Utilities/Services/Interface/IRowEditService';
28
+ import { Fdc3Service } from '../../Utilities/Services/Fdc3Service';
29
29
  export declare class AdaptableInternalApi extends ApiBase {
30
30
  getSystemState(): SystemState;
31
31
  showPopupConfirmation(confirmation: UIConfirmation): void;
@@ -66,6 +66,7 @@ export declare class AdaptableInternalApi extends ApiBase {
66
66
  getTeamSharingService(): ITeamSharingService;
67
67
  getMetamodelService(): IMetamodelService;
68
68
  getRowEditService(): IRowEditService;
69
+ getFdc3Service(): Fdc3Service;
69
70
  getModules(): IModuleCollection;
70
71
  getModuleFriendlyName(adaptableModule: AdaptableModule): string;
71
72
  forAllRowNodesDo(func: (rowNode: IRowNode) => void, config?: {
@@ -106,7 +107,8 @@ export declare class AdaptableInternalApi extends ApiBase {
106
107
  getPreviousGroupedColumnsIndex(layoutId: string): {
107
108
  [key: string]: number;
108
109
  };
109
- getValueUsingField(rowData: Record<string, any>, column: AdaptableColumn): any;
110
- setValueUsingField(rowData: Record<string, any>, column: AdaptableColumn, newValue: any): Record<string, any>;
110
+ getValueUsingField(rowData: Record<string, any>, columnValueKey: string): any;
111
+ setValueUsingField(rowData: Record<string, any>, columnValueKey: string, newValue: any): Record<string, any>;
111
112
  findAdaptableObjectsByLookupCriteria<T extends AdaptableObjectWithScope>({ scope, tag, ids }: AdaptableObjectLookupCriteria, specificAdaptableObjects: T[]): T[];
113
+ buildBaseContext(): BaseContext;
112
114
  }
@@ -11,7 +11,7 @@ const ApiBase_1 = require("../Implementation/ApiBase");
11
11
  const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
12
12
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
13
13
  const waitForCondition_1 = require("../../Utilities/waitForCondition");
14
- const AdaptableIconComponent_1 = require("../../components/AdaptableIconComponent");
14
+ const Icon_1 = require("../../components/Icon");
15
15
  class AdaptableInternalApi extends ApiBase_1.ApiBase {
16
16
  getSystemState() {
17
17
  return this.getAdaptableState().System;
@@ -121,6 +121,9 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
121
121
  getRowEditService() {
122
122
  return this.adaptable.RowEditService;
123
123
  }
124
+ getFdc3Service() {
125
+ return this.adaptable.Fdc3Service;
126
+ }
124
127
  getModules() {
125
128
  return this.adaptable.adaptableModules;
126
129
  }
@@ -182,7 +185,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
182
185
  if (!buttonIcon) {
183
186
  return;
184
187
  }
185
- if ((0, AdaptableIconComponent_1.isAdaptableInternalIcon)(buttonIcon) || (0, AdaptableIconComponent_1.isAdaptableExternalIcon)(buttonIcon)) {
188
+ if ((0, Icon_1.isAdaptableSystemIcon)(buttonIcon) || (0, Icon_1.isAdaptableCustomIcon)(buttonIcon)) {
186
189
  const defaultIconWidth = (_a = defaultWidthHeight === null || defaultWidthHeight === void 0 ? void 0 : defaultWidthHeight.width) !== null && _a !== void 0 ? _a : 'var(--ab-cmp-simple-button__width)';
187
190
  const defaultIconHeight = (_b = defaultWidthHeight === null || defaultWidthHeight === void 0 ? void 0 : defaultWidthHeight.height) !== null && _b !== void 0 ? _b : 'var(--ab-cmp-simple-button__height)';
188
191
  const buttonIconStyle = Object.assign({}, { width: defaultIconWidth, height: defaultIconHeight }, buttonIcon.style);
@@ -370,15 +373,13 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
370
373
  return (_a = SystemRedux.SystemPreviousGroupedColumnsSelector(this.getAdaptableState().System)) === null || _a === void 0 ? void 0 : _a[layoutId];
371
374
  }
372
375
  // "borrowed" from https://github.com/ag-grid/ag-grid/blob/v28.2.1/community-modules/core/src/ts/utils/object.ts#L205
373
- getValueUsingField(rowData, column) {
374
- var _a;
375
- if (!rowData || !column) {
376
+ getValueUsingField(rowData, columnValueKey) {
377
+ if (!rowData || !(columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.length)) {
376
378
  return;
377
379
  }
378
- const columnValueKey = (_a = column.field) !== null && _a !== void 0 ? _a : column.columnId;
379
- const isColumnValueKeyContainsDots = columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.includes('.');
380
+ const isColumnValueKeyNested = columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.includes('.');
380
381
  // if no '.', then it's not a deep value
381
- if (!isColumnValueKeyContainsDots) {
382
+ if (!isColumnValueKeyNested) {
382
383
  return rowData[columnValueKey];
383
384
  }
384
385
  // otherwise it is a deep value, so need to dig for it
@@ -393,12 +394,10 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
393
394
  return currentObject;
394
395
  }
395
396
  // "borrowed" from https://github.com/ag-grid/ag-grid/blob/v28.2.1/community-modules/core/src/ts/valueService/valueService.ts#L236
396
- setValueUsingField(rowData, column, newValue) {
397
- var _a;
398
- if (!rowData || !column) {
397
+ setValueUsingField(rowData, columnValueKey, newValue) {
398
+ if (!rowData || !(columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.length)) {
399
399
  return;
400
400
  }
401
- const columnValueKey = (_a = column.field) !== null && _a !== void 0 ? _a : column.columnId;
402
401
  const isColumnValueKeyContainsDots = columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.includes('.');
403
402
  let valuesAreSame = false;
404
403
  if (!isColumnValueKeyContainsDots) {
@@ -447,5 +446,12 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
447
446
  }
448
447
  return locatedAdaptableObjects;
449
448
  }
449
+ buildBaseContext() {
450
+ return {
451
+ adaptableApi: this.getAdaptableApi(),
452
+ adaptableId: this.getAdaptableApi().optionsApi.getAdaptableId(),
453
+ userName: this.getAdaptableApi().optionsApi.getUserName(),
454
+ };
455
+ }
450
456
  }
451
457
  exports.AdaptableInternalApi = AdaptableInternalApi;
@@ -474,14 +474,19 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
474
474
  }
475
475
  isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
476
476
  var _a;
477
- return this.getAdaptableApi().predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, {
477
+ const adapatableApi = this.getAdaptableApi();
478
+ const predicateDefHandlerContext = {
478
479
  value: dataChangedEvent.newValue,
479
480
  oldValue: dataChangedEvent.oldValue,
480
481
  // TODO send real display value
481
482
  displayValue: null,
482
483
  node: dataChangedEvent.rowNode,
483
484
  column: dataChangedEvent.column,
484
- }, defaultNoPredicateReturn);
485
+ adaptableApi: adapatableApi,
486
+ userName: adapatableApi.optionsApi.getUserName(),
487
+ adaptableId: adapatableApi.optionsApi.getAdaptableId(),
488
+ };
489
+ return this.getAdaptableApi().predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, predicateDefHandlerContext, defaultNoPredicateReturn);
485
490
  }
486
491
  isAlertDefinitionForRowChangeEvent(alertDefinition) {
487
492
  return (this.isAlertDefinitionForAddedRowChangeEvent(alertDefinition) ||
@@ -0,0 +1,11 @@
1
+ import { ApiBase } from '../Implementation/ApiBase';
2
+ import { Fdc3Context, Fdc3ContextType } from '../../PredefinedConfig/Common/Fdc3Context';
3
+ import { IRowNode } from '@ag-grid-community/core';
4
+ export declare class Fdc3InternalApi extends ApiBase {
5
+ mapRowToContextData(contextType: Fdc3ContextType, rowNode: IRowNode): Fdc3Context;
6
+ /**
7
+ * Computes the context based on the given `Fdc3Options.gridDataContextMapping` and the given `IRowNode`.
8
+ */
9
+ getMappedContextData(contextType: Fdc3ContextType, rowNode: IRowNode): Fdc3Context;
10
+ private mapRowValueToContextData;
11
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Fdc3InternalApi = void 0;
4
+ const ApiBase_1 = require("../Implementation/ApiBase");
5
+ const fdc3_1 = require("@finos/fdc3");
6
+ const Fdc3Options_1 = require("../../AdaptableOptions/Fdc3Options");
7
+ class Fdc3InternalApi extends ApiBase_1.ApiBase {
8
+ mapRowToContextData(contextType, rowNode) {
9
+ const contextMappedFromGridData = this.getMappedContextData(contextType, rowNode);
10
+ const resolveContextDataFn = this.getFdc3Options().resolveContextData;
11
+ if (typeof resolveContextDataFn === 'function') {
12
+ return resolveContextDataFn(Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { contextType,
13
+ contextMappedFromGridData,
14
+ rowNode, rowData: rowNode.data }));
15
+ }
16
+ else {
17
+ return contextMappedFromGridData;
18
+ }
19
+ }
20
+ /**
21
+ * Computes the context based on the given `Fdc3Options.gridDataContextMapping` and the given `IRowNode`.
22
+ */
23
+ getMappedContextData(contextType, rowNode) {
24
+ var _a;
25
+ if (contextType === fdc3_1.ContextTypes.Nothing) {
26
+ return { type: fdc3_1.ContextTypes.Nothing };
27
+ }
28
+ const contextMapping = (_a = this.getFdc3Options().gridDataContextMapping) === null || _a === void 0 ? void 0 : _a[contextType];
29
+ if (!contextMapping) {
30
+ return { type: contextType };
31
+ }
32
+ const mappedData = this.mapRowValueToContextData(rowNode, contextMapping);
33
+ return Object.assign({ type: contextType }, mappedData);
34
+ }
35
+ mapRowValueToContextData(rowNode, contextMapping = {}) {
36
+ // recursively map the row node values to the context data
37
+ const mapContext = (obj) => {
38
+ return Object.keys(obj).reduce((mappedData, contextKey) => {
39
+ const valueReference = obj[contextKey];
40
+ if (Array.isArray(valueReference)) {
41
+ mappedData[contextKey] = valueReference.map((item) => mapContext(item));
42
+ }
43
+ else if (typeof valueReference === 'object') {
44
+ mappedData[contextKey] = mapContext(valueReference);
45
+ }
46
+ else {
47
+ // map value from row node
48
+ // first validate refs
49
+ if (typeof valueReference !== 'string' ||
50
+ (!valueReference.startsWith(Fdc3Options_1.ColumnRefTypePrefix) &&
51
+ !valueReference.startsWith(Fdc3Options_1.FieldRefTypePrefix))) {
52
+ this.logError(`Invalid FDC3 value reference for '${contextKey}': ${valueReference}`);
53
+ return mappedData;
54
+ }
55
+ // '_coldId.columnId'
56
+ if (valueReference.startsWith(Fdc3Options_1.ColumnRefTypePrefix)) {
57
+ const columnId = valueReference.replace(Fdc3Options_1.ColumnRefTypePrefix, '');
58
+ mappedData[contextKey] = this.getGridApi().getRawValueFromRowNode(rowNode, columnId);
59
+ }
60
+ // '_field.fieldName'
61
+ if (valueReference.startsWith(Fdc3Options_1.FieldRefTypePrefix)) {
62
+ const fieldId = valueReference.replace(Fdc3Options_1.FieldRefTypePrefix, '');
63
+ mappedData[contextKey] = this.getAdaptableApi().internalApi.getValueUsingField(rowNode.data, fieldId);
64
+ }
65
+ }
66
+ return mappedData;
67
+ }, {});
68
+ };
69
+ return mapContext(contextMapping);
70
+ }
71
+ }
72
+ exports.Fdc3InternalApi = Fdc3InternalApi;
@@ -94,22 +94,26 @@ class FilterInternalApi extends ApiBase_1.ApiBase {
94
94
  if (someInputsAreEmpty) {
95
95
  return true;
96
96
  }
97
- const column = this.adaptable.api.columnApi.getColumnWithColumnId(columnFilter.ColumnId);
97
+ const column = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnFilter.ColumnId);
98
98
  if (!column) {
99
99
  return true;
100
100
  }
101
- const gridCell = this.adaptable.api.gridApi.getGridCellFromRowNode(node, columnFilter.ColumnId);
101
+ const gridCell = this.getAdaptableApi().gridApi.getGridCellFromRowNode(node, columnFilter.ColumnId);
102
102
  if (!gridCell) {
103
103
  return true;
104
104
  }
105
105
  let value = gridCell.normalisedValue;
106
- return this.adaptable.api.predicateApi.handlePredicate(columnFilter.Predicate, {
106
+ const predicateDefHandlerContext = {
107
107
  value: value,
108
108
  oldValue: null,
109
109
  displayValue: gridCell.displayValue,
110
110
  node,
111
111
  column,
112
- }, true);
112
+ adaptableApi: this.getAdaptableApi(),
113
+ userName: this.getAdaptableApi().optionsApi.getUserName(),
114
+ adaptableId: this.getAdaptableApi().optionsApi.getAdaptableId(),
115
+ };
116
+ return this.adaptable.api.predicateApi.handlePredicate(columnFilter.Predicate, predicateDefHandlerContext, true);
113
117
  }
114
118
  /**
115
119
  * Checks if the filter action should trigger grid filtering.
@@ -171,12 +171,17 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
171
171
  }
172
172
  // first run the predicate
173
173
  if (formatColumn.Rule.Predicates && ((_b = (_a = formatColumn.Rule) === null || _a === void 0 ? void 0 : _a.Predicates) === null || _b === void 0 ? void 0 : _b.length)) {
174
- return this.evaluatePredicate({
175
- formatColumn,
176
- column,
174
+ const predicateDefHandlerContext = {
177
175
  value: params.value,
176
+ oldValue: null,
177
+ displayValue: params.value,
178
178
  node: params.node,
179
- });
179
+ column: column,
180
+ adaptableApi: this.getAdaptableApi(),
181
+ userName: this.getAdaptableApi().optionsApi.getUserName(),
182
+ adaptableId: this.getAdaptableApi().optionsApi.getAdaptableId(),
183
+ };
184
+ return this.evaluatePredicate(formatColumn, predicateDefHandlerContext);
180
185
  }
181
186
  else if (formatColumn.Rule.BooleanExpression) {
182
187
  return this.evaluateExpression(formatColumn, params.node);
@@ -184,16 +189,9 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
184
189
  // nothing has passed then return false
185
190
  return false;
186
191
  }
187
- evaluatePredicate({ formatColumn, column, value, node, }) {
192
+ evaluatePredicate(formatColumn, predicateDefHandlerContext) {
188
193
  var _a;
189
- const params = {
190
- value: value,
191
- oldValue: null,
192
- displayValue: value,
193
- node: node,
194
- column: column,
195
- };
196
- return this.adaptable.api.predicateApi.handleColumnPredicates((_a = formatColumn.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, params, false);
194
+ return this.adaptable.api.predicateApi.handleColumnPredicates((_a = formatColumn.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, predicateDefHandlerContext, false);
197
195
  }
198
196
  evaluateExpression(formatColumn, node) {
199
197
  const isValidExpression = this.adaptable.api.expressionApi.isValidBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, `Invalid format column rule '${formatColumn.Rule.BooleanExpression}'`);
@@ -0,0 +1,8 @@
1
+ import { ApiBase } from '../Implementation/ApiBase';
2
+ import { BaseSchedule } from '../../PredefinedConfig/Common/Schedule';
3
+ export declare class ScheduleInternalApi extends ApiBase {
4
+ /**
5
+ * Fires Schedule Triggered event
6
+ */
7
+ fireScheduleTriggeredEvent(schedule: BaseSchedule): void;
8
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScheduleInternalApi = void 0;
4
+ const ApiBase_1 = require("../Implementation/ApiBase");
5
+ class ScheduleInternalApi extends ApiBase_1.ApiBase {
6
+ /**
7
+ * Fires Schedule Triggered event
8
+ */
9
+ fireScheduleTriggeredEvent(schedule) {
10
+ const adaptableApi = this.getAdaptableApi();
11
+ const scheduleTriggeredInfo = {
12
+ adaptableApi: adaptableApi,
13
+ userName: adaptableApi.optionsApi.getUserName(),
14
+ adaptableId: adaptableApi.optionsApi.getAdaptableId(),
15
+ schedule: schedule,
16
+ };
17
+ adaptableApi.eventApi.emit('ScheduleTriggered', scheduleTriggeredInfo);
18
+ }
19
+ }
20
+ exports.ScheduleInternalApi = ScheduleInternalApi;
@@ -2,7 +2,7 @@ import { ApiBase } from '../Implementation/ApiBase';
2
2
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
3
3
  import { BadgeStyleDefinition, CellColorRange, ColumnComparison, NumericStyledColumn, StyledColumn } from '../../PredefinedConfig/StyledColumnState';
4
4
  import { IRowNode } from '@ag-grid-community/core';
5
- import { PredicateDefHandlerParams } from '../../types';
5
+ import { PredicateDefHandlerContext } from '../../types';
6
6
  export declare class StyledColumnInternalApi extends ApiBase {
7
7
  getMinValueForNumericColumn(column: AdaptableColumn): number | undefined;
8
8
  getMaxValueForNumericColumn(column: AdaptableColumn): number | undefined;
@@ -57,6 +57,9 @@ export declare class StyledColumnInternalApi extends ApiBase {
57
57
  * @param styledColumn Styled Column to Add
58
58
  */
59
59
  hasStyledColumnRelativeCellRange(styledColumn: StyledColumn): boolean;
60
- getApplicableBadge(styledColumn: StyledColumn, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>): BadgeStyleDefinition | null;
60
+ getApplicableBadge(styledColumn: StyledColumn, context: PredicateDefHandlerContext): BadgeStyleDefinition | null;
61
61
  getBadgePredicateDefsForColumn(columnId: string): import("../../types").AdaptablePredicateDef[];
62
+ getCheckBoxStyleStyledColumn(column: AdaptableColumn): StyledColumn | undefined;
63
+ isCheckBoxStyleStyledColumn(column: AdaptableColumn): boolean;
64
+ fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
62
65
  }
@@ -4,6 +4,7 @@ exports.StyledColumnInternalApi = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const ApiBase_1 = require("../Implementation/ApiBase");
6
6
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
7
+ const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
7
8
  class StyledColumnInternalApi extends ApiBase_1.ApiBase {
8
9
  getMinValueForNumericColumn(column) {
9
10
  if (column.dataType !== 'Number') {
@@ -245,7 +246,7 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
245
246
  return cellColorRange.Min == 'Col-Min' || cellColorRange.Max == 'Col-Max';
246
247
  })))) !== null && _e !== void 0 ? _e : false);
247
248
  }
248
- getApplicableBadge(styledColumn, params) {
249
+ getApplicableBadge(styledColumn, context) {
249
250
  var _a, _b;
250
251
  if (!((_a = styledColumn.BadgeStyle) === null || _a === void 0 ? void 0 : _a.Badges.length)) {
251
252
  return null;
@@ -262,7 +263,7 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
262
263
  }
263
264
  }
264
265
  for (let badge of badgesWithoutAll) {
265
- if (this.getPredicateApi().handlePredicate(badge.Predicate, params, false)) {
266
+ if (this.getPredicateApi().handlePredicate(badge.Predicate, context, false)) {
266
267
  return badge;
267
268
  }
268
269
  }
@@ -281,5 +282,31 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
281
282
  .predicateApi.internalApi.getBadgeStylePredicateDefs(scope)
282
283
  .filter((predicate) => this.adaptable.api.scopeApi.isColumnInScope(column, predicate.columnScope));
283
284
  }
285
+ // Deprecated Checkbox Column functions
286
+ getCheckBoxStyleStyledColumn(column) {
287
+ var _a;
288
+ if (column.dataType != 'Boolean') {
289
+ return undefined;
290
+ }
291
+ const checkBoxFormatColumns = (_a = this.getAdaptableApi().styledColumnApi.getStyledColumnState().StyledColumns) === null || _a === void 0 ? void 0 : _a.filter((sc) => sc === null || sc === void 0 ? void 0 : sc.CheckBoxStyle);
292
+ const styledColumn = checkBoxFormatColumns.find((sc) => sc.ColumnId == column.columnId);
293
+ return styledColumn;
294
+ }
295
+ isCheckBoxStyleStyledColumn(column) {
296
+ const styledColumn = this.getCheckBoxStyleStyledColumn(column);
297
+ return Helper_1.default.objectExists(styledColumn);
298
+ }
299
+ fireCheckboxColumnClickedEvent(columnId, rowData, primaryKeyValue, isChecked) {
300
+ let checkboxColumnClickedInfo = {
301
+ adaptableApi: this.adaptable.api,
302
+ column: this.adaptable.api.columnApi.getColumnWithColumnId(columnId),
303
+ rowData: rowData,
304
+ primaryKeyValue: primaryKeyValue,
305
+ isChecked: isChecked,
306
+ userName: this.adaptable.api.optionsApi.getUserName(),
307
+ adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
308
+ };
309
+ this.adaptable.api.eventApi.emit('CheckboxColumnClicked', checkboxColumnClickedInfo);
310
+ }
284
311
  }
285
312
  exports.StyledColumnInternalApi = StyledColumnInternalApi;
@@ -0,0 +1,5 @@
1
+ import { AdaptableIcon } from '../../types';
2
+ import { ApiBase } from '../Implementation/ApiBase';
3
+ export declare class UserInterfaceInternalApi extends ApiBase {
4
+ prepareAdaptableIconDef(icon: AdaptableIcon): AdaptableIcon;
5
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserInterfaceInternalApi = void 0;
4
+ const ApiBase_1 = require("../Implementation/ApiBase");
5
+ class UserInterfaceInternalApi extends ApiBase_1.ApiBase {
6
+ prepareAdaptableIconDef(icon) {
7
+ if (icon && 'name' in icon) {
8
+ let customIcon = icon && 'name' in icon
9
+ ? this.adaptable.api.userInterfaceApi.getCustomIconDefinition(icon.name)
10
+ : null;
11
+ if (customIcon) {
12
+ icon = customIcon;
13
+ }
14
+ }
15
+ return icon;
16
+ }
17
+ }
18
+ exports.UserInterfaceInternalApi = UserInterfaceInternalApi;
@@ -2,6 +2,7 @@ import { CustomSortOptions } from '../AdaptableOptions/CustomSortOptions';
2
2
  import { DataSetOptions } from '../AdaptableOptions/DataSetOptions';
3
3
  import { GroupingOptions } from '../AdaptableOptions/GroupingOptions';
4
4
  import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AdaptableQLOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
5
+ import { Fdc3Options } from '../AdaptableOptions/Fdc3Options';
5
6
  /**
6
7
  * Range of functions to access Adaptable Options
7
8
  */
@@ -123,7 +124,7 @@ export interface OptionsApi {
123
124
  */
124
125
  getNotificationsOptions(): Readonly<NotificationsOptions>;
125
126
  /**
126
- * Returns `AdaptableOptions.searchOptions`
127
+ * Returns `AdaptableOptions.quickSearchOptions`
127
128
  */
128
129
  getQuickSearchOptions(): Readonly<QuickSearchOptions>;
129
130
  /**
@@ -150,4 +151,8 @@ export interface OptionsApi {
150
151
  * Returns `AdaptableOptions.userInterfaceOptions`
151
152
  */
152
153
  getUserInterfaceOptions(): Readonly<UserInterfaceOptions>;
154
+ /**
155
+ * Returns `AdaptableOptions.fdc3Options`
156
+ */
157
+ getFdc3Options(): Readonly<Fdc3Options>;
153
158
  }
@@ -1,5 +1,5 @@
1
1
  import { AdaptableColumnPredicate } from '../../types';
2
- import { AdaptablePredicateDef, AdaptablePredicate, PredicateDefHandlerParams, PredicateModuleScope } from '../PredefinedConfig/Common/AdaptablePredicate';
2
+ import { AdaptablePredicateDef, AdaptablePredicate, PredicateDefHandlerContext, PredicateModuleScope } from '../PredefinedConfig/Common/AdaptablePredicate';
3
3
  /**
4
4
  * Functions which manage the Predicate object in AdapTable
5
5
  */
@@ -58,7 +58,7 @@ export interface PredicateApi {
58
58
  * @param params
59
59
  * @param defaultReturn
60
60
  */
61
- handleColumnPredicate(predicate: AdaptableColumnPredicate, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
61
+ handleColumnPredicate(predicate: AdaptableColumnPredicate, params: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
62
62
  /**
63
63
  * Same has handle predicates but it tales into account predicate column id.
64
64
  *
@@ -66,19 +66,19 @@ export interface PredicateApi {
66
66
  * @param params
67
67
  * @param defaultReturn
68
68
  */
69
- handleColumnPredicates(predicate: AdaptableColumnPredicate[], params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
69
+ handleColumnPredicates(predicate: AdaptableColumnPredicate[], params: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
70
70
  /**
71
71
  * Main Handler function for a Predicate Definition - used by AdapTableQL
72
72
  * @param predicate Predicate to handle
73
73
  * @param params Additional inputs as required
74
74
  * @param defaultReturn Whether to return the default
75
75
  */
76
- handlePredicate(predicate: AdaptablePredicate | undefined, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
76
+ handlePredicate(predicate: AdaptablePredicate | undefined, params: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
77
77
  /**
78
78
  * Handle and compose (with AND) the given Predicate Definitions
79
79
  * @param predicate Predicate to handle
80
80
  * @param params Additional inputs as required
81
81
  * @param defaultReturn Whether to return the default
82
82
  */
83
- handlePredicates(predicates: AdaptablePredicate[], params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
83
+ handlePredicates(predicates: AdaptablePredicate[], params: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
84
84
  }