@adaptabletools/adaptable-cjs 19.1.0-canary.0 → 19.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableOptions/FormatColumnOptions.d.ts +4 -4
  3. package/src/Api/GridApi.d.ts +2 -1
  4. package/src/Api/Implementation/ActionColumnApiImpl.d.ts +0 -2
  5. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -4
  6. package/src/Api/Implementation/ActionRowApiImpl.d.ts +1 -1
  7. package/src/Api/Implementation/ActionRowApiImpl.js +4 -4
  8. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
  9. package/src/Api/Implementation/AdaptableApiImpl.js +6 -0
  10. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
  11. package/src/Api/Implementation/AlertApiImpl.js +16 -15
  12. package/src/Api/Implementation/ApiBase.d.ts +12 -3
  13. package/src/Api/Implementation/ApiBase.js +39 -24
  14. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +1 -1
  15. package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -3
  16. package/src/Api/Implementation/CalendarApiImpl.js +1 -1
  17. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
  18. package/src/Api/Implementation/ChartingApiImpl.js +9 -9
  19. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  20. package/src/Api/Implementation/ColumnApiImpl.js +18 -18
  21. package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
  22. package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
  23. package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +0 -2
  24. package/src/Api/Implementation/ColumnMenuApiImpl.js +2 -5
  25. package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -1
  26. package/src/Api/Implementation/CommentsApiImpl.js +6 -4
  27. package/src/Api/Implementation/ConfigApiImpl.js +23 -24
  28. package/src/Api/Implementation/ContextMenuApiImpl.d.ts +0 -2
  29. package/src/Api/Implementation/ContextMenuApiImpl.js +1 -4
  30. package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -1
  31. package/src/Api/Implementation/CustomSortApiImpl.js +3 -3
  32. package/src/Api/Implementation/DashboardApiImpl.d.ts +1 -1
  33. package/src/Api/Implementation/DashboardApiImpl.js +5 -5
  34. package/src/Api/Implementation/DataImportApiImpl.d.ts +1 -1
  35. package/src/Api/Implementation/DataImportApiImpl.js +3 -3
  36. package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -1
  37. package/src/Api/Implementation/DataSetApiImpl.js +5 -5
  38. package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
  39. package/src/Api/Implementation/EntitlementApiImpl.js +5 -5
  40. package/src/Api/Implementation/EventApiImpl.d.ts +1 -1
  41. package/src/Api/Implementation/EventApiImpl.js +2 -2
  42. package/src/Api/Implementation/ExportApiImpl.d.ts +1 -1
  43. package/src/Api/Implementation/ExportApiImpl.js +7 -7
  44. package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
  45. package/src/Api/Implementation/ExpressionApiImpl.js +5 -5
  46. package/src/Api/Implementation/Fdc3ApiImpl.d.ts +1 -1
  47. package/src/Api/Implementation/Fdc3ApiImpl.js +4 -4
  48. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -1
  49. package/src/Api/Implementation/FlashingCellApiImpl.js +7 -7
  50. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
  51. package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
  52. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
  53. package/src/Api/Implementation/FreeTextColumnApiImpl.js +4 -4
  54. package/src/Api/Implementation/GridApiImpl.d.ts +3 -2
  55. package/src/Api/Implementation/GridApiImpl.js +106 -103
  56. package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
  57. package/src/Api/Implementation/GridFilterApiImpl.js +4 -4
  58. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -1
  59. package/src/Api/Implementation/LayoutApiImpl.js +3 -3
  60. package/src/Api/Implementation/NamedQueryApiImpl.d.ts +1 -1
  61. package/src/Api/Implementation/NamedQueryApiImpl.js +3 -3
  62. package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
  63. package/src/Api/Implementation/NoteApiImpl.js +3 -3
  64. package/src/Api/Implementation/OptionsApiImpl.js +7 -7
  65. package/src/Api/Implementation/PluginsApiImpl.js +1 -1
  66. package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
  67. package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -1
  68. package/src/Api/Implementation/PredicateApiImpl.js +4 -4
  69. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -1
  70. package/src/Api/Implementation/ScheduleApiImpl.js +3 -3
  71. package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
  72. package/src/Api/Implementation/StatusBarApiImpl.js +1 -1
  73. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -1
  74. package/src/Api/Implementation/StyledColumnApiImpl.js +4 -4
  75. package/src/Api/Implementation/SystemStatusApiImpl.d.ts +1 -1
  76. package/src/Api/Implementation/SystemStatusApiImpl.js +4 -4
  77. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +1 -1
  78. package/src/Api/Implementation/TeamSharingApiImpl.js +11 -11
  79. package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -1
  80. package/src/Api/Implementation/ThemeApiImpl.js +8 -8
  81. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  82. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
  83. package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -5
  84. package/src/Api/Internal/ActionRowInternalApi.js +8 -8
  85. package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
  86. package/src/Api/Internal/AdaptableInternalApi.js +55 -50
  87. package/src/Api/Internal/AlertInternalApi.js +9 -9
  88. package/src/Api/Internal/CalculatedColumnInternalApi.js +11 -9
  89. package/src/Api/Internal/ChartingInternalApi.js +1 -1
  90. package/src/Api/Internal/ColumnFilterInternalApi.js +7 -9
  91. package/src/Api/Internal/ColumnInternalApi.js +3 -3
  92. package/src/Api/Internal/CustomSortInternalApi.js +3 -3
  93. package/src/Api/Internal/DashboardInternalApi.js +4 -3
  94. package/src/Api/Internal/DataImportInternalApi.js +2 -2
  95. package/src/Api/Internal/DataSetInternalApi.js +2 -2
  96. package/src/Api/Internal/ExportInternalApi.js +21 -22
  97. package/src/Api/Internal/ExpressionInternalApi.js +4 -4
  98. package/src/Api/Internal/Fdc3InternalApi.d.ts +0 -1
  99. package/src/Api/Internal/Fdc3InternalApi.js +9 -12
  100. package/src/Api/Internal/FlashingCellInternalApi.js +2 -2
  101. package/src/Api/Internal/FormatColumnInternalApi.js +2 -3
  102. package/src/Api/Internal/FreeTextColumnInternalApi.js +5 -2
  103. package/src/Api/Internal/GridFilterInternalApi.js +2 -2
  104. package/src/Api/Internal/GridInternalApi.js +26 -26
  105. package/src/Api/Internal/LayoutInternalApi.js +6 -5
  106. package/src/Api/Internal/NamedQueryInternalApi.js +2 -2
  107. package/src/Api/Internal/PredicateInternalApi.js +5 -5
  108. package/src/Api/Internal/ScheduleInternalApi.js +1 -1
  109. package/src/Api/Internal/StyledColumnInternalApi.js +2 -2
  110. package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
  111. package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
  112. package/src/Api/Internal/ThemeInternalApi.js +1 -1
  113. package/src/Strategy/NoteModule.d.ts +0 -1
  114. package/src/Strategy/NoteModule.js +4 -5
  115. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
  116. package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
  117. package/src/Utilities/Services/CellPopupService.js +4 -4
  118. package/src/Utilities/Services/Fdc3Service.js +1 -3
  119. package/src/Utilities/Services/FlashingCellService.d.ts +0 -2
  120. package/src/Utilities/Services/FlashingCellService.js +2 -3
  121. package/src/Utilities/Services/RowEditService.js +3 -5
  122. package/src/View/Alert/AlertStatusSubPanel.js +4 -4
  123. package/src/View/Charting/ShowChartButton.js +4 -4
  124. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +14 -13
  125. package/src/agGrid/FloatingFilterWrapper.js +4 -3
  126. package/src/components/Datepicker/index.d.ts +1 -1
  127. package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
  128. package/src/components/ExpressionEditor/ExpressionPreview.js +4 -4
  129. package/src/env.js +2 -2
  130. package/src/metamodel/adaptable.metamodel.js +1 -1
  131. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -21,7 +21,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
21
21
  getSystemFilterPredicateIds(scope) {
22
22
  const systemFilterPredicates = this.getPredicateOptions().systemFilterPredicates;
23
23
  if (typeof systemFilterPredicates === 'function') {
24
- const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'), moduleScope: 'columnFilter', columnScope: scope });
24
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'), moduleScope: 'columnFilter', columnScope: scope });
25
25
  return systemFilterPredicates(systemPredicateContext);
26
26
  }
27
27
  return systemFilterPredicates;
@@ -36,7 +36,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
36
36
  getSystemAlertPredicateIds(scope) {
37
37
  const systemAlertPredicates = this.getPredicateOptions().systemAlertPredicates;
38
38
  if (typeof systemAlertPredicates === 'function') {
39
- const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('alert'), moduleScope: 'alert', columnScope: scope });
39
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('alert'), moduleScope: 'alert', columnScope: scope });
40
40
  return systemAlertPredicates(systemPredicateContext);
41
41
  }
42
42
  return systemAlertPredicates;
@@ -44,7 +44,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
44
44
  getSystemBadgeStylePredicateIds(scope) {
45
45
  const systemBadgeStylePredicates = this.getPredicateOptions().systemBadgeStylePredicates;
46
46
  if (typeof systemBadgeStylePredicates === 'function') {
47
- const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('badgeStyle'), moduleScope: 'badgeStyle', columnScope: scope });
47
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('badgeStyle'), moduleScope: 'badgeStyle', columnScope: scope });
48
48
  return systemBadgeStylePredicates(systemPredicateContext);
49
49
  }
50
50
  return systemBadgeStylePredicates;
@@ -59,7 +59,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
59
59
  getSystemFormatColumnPredicateIds(scope) {
60
60
  const systemFormatColumnPredicates = this.getPredicateOptions().systemFormatColumnPredicates;
61
61
  if (typeof systemFormatColumnPredicates === 'function') {
62
- const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('formatColumn'), moduleScope: 'formatColumn', columnScope: scope });
62
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('formatColumn'), moduleScope: 'formatColumn', columnScope: scope });
63
63
  return systemFormatColumnPredicates(systemPredicateContext);
64
64
  }
65
65
  return systemFormatColumnPredicates;
@@ -74,7 +74,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
74
74
  getSystemFlashingCellPredicateIds(scope) {
75
75
  const systemFlashingCellPredicates = this.getPredicateOptions().systemFlashingCellPredicates;
76
76
  if (typeof systemFlashingCellPredicates === 'function') {
77
- const systemPredicateContext = Object.assign({ systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('flashingcell'), moduleScope: 'flashingcell', columnScope: scope }, this.getAdaptableApi().internalApi.buildBaseContext());
77
+ const systemPredicateContext = Object.assign({ systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('flashingcell'), moduleScope: 'flashingcell', columnScope: scope }, this.getAdaptableInternalApi().buildBaseContext());
78
78
  return systemFlashingCellPredicates(systemPredicateContext);
79
79
  }
80
80
  return systemFlashingCellPredicates;
@@ -8,7 +8,7 @@ class ScheduleInternalApi extends ApiBase_1.ApiBase {
8
8
  */
9
9
  fireScheduleTriggeredEvent(schedule) {
10
10
  const adaptableApi = this.getAdaptableApi();
11
- const scheduleTriggeredInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { schedule: schedule });
11
+ const scheduleTriggeredInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { schedule: schedule });
12
12
  adaptableApi.eventApi.emit('ScheduleTriggered', scheduleTriggeredInfo);
13
13
  }
14
14
  }
@@ -9,13 +9,13 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
9
9
  if (column.dataType !== 'Number') {
10
10
  return undefined;
11
11
  }
12
- return this.adaptable.getMinMaxCachedValueForColumn(column, 'min');
12
+ return this._adaptable.getMinMaxCachedValueForColumn(column, 'min');
13
13
  }
14
14
  getMaxValueForNumericColumn(column) {
15
15
  if (column.dataType !== 'Number') {
16
16
  return undefined;
17
17
  }
18
- return this.adaptable.getMinMaxCachedValueForColumn(column, 'max');
18
+ return this._adaptable.getMinMaxCachedValueForColumn(column, 'max');
19
19
  }
20
20
  /**
21
21
  * Gets the Minimum Value to display for a Styled Column
@@ -10,7 +10,7 @@ class SystemStatusInternalApi extends ApiBase_1.ApiBase {
10
10
  * @param systemStatusMessageInfo Info about new System Status Message
11
11
  */
12
12
  fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
13
- const systemStatusMessageDisplayedInfo = Object.assign({ systemStatusMessageInfo: systemStatusMessageInfo }, this.getAdaptableApi().internalApi.buildBaseContext());
13
+ const systemStatusMessageDisplayedInfo = Object.assign({ systemStatusMessageInfo: systemStatusMessageInfo }, this.getAdaptableInternalApi().buildBaseContext());
14
14
  this.getAdaptableApi().eventApi.emit('SystemStatusMessageDisplayed', systemStatusMessageDisplayedInfo);
15
15
  }
16
16
  addSystemStatusMessageInfo(systemStatusMessageInfo) {
@@ -8,8 +8,8 @@ class TeamSharingInternalApi extends ApiBase_1.ApiBase {
8
8
  * @param sharedEntity Entity that has been changed
9
9
  */
10
10
  fireTeamSharingEntityChangedEvent(sharedEntity) {
11
- if (this.adaptable.isReady) {
12
- const teamSharingEntityChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { sharedEntity: sharedEntity });
11
+ if (this.isAdapTableReady()) {
12
+ const teamSharingEntityChangedInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { sharedEntity: sharedEntity });
13
13
  this.getAdaptableApi().eventApi.emit('TeamSharingEntityChanged', teamSharingEntityChangedInfo);
14
14
  }
15
15
  }
@@ -13,7 +13,7 @@ class ThemeInternalApi extends ApiBase_1.ApiBase {
13
13
  return `ab--theme-${theme}`;
14
14
  }
15
15
  openInWindow() {
16
- this.getAdaptableApi().internalApi.showPopupWindow({
16
+ this.getAdaptableInternalApi().showPopupWindow({
17
17
  id: windowFactory_1.SHOW_THEME_EDITOR,
18
18
  title: 'Theme',
19
19
  icon: 'theme',
@@ -3,7 +3,6 @@ import { ContextMenuContext } from '../PredefinedConfig/Common/Menu';
3
3
  import { AdaptableModuleBase } from './AdaptableModuleBase';
4
4
  import { IModule } from './Interface/IModule';
5
5
  export declare class NoteModule extends AdaptableModuleBase implements IModule {
6
- private adaptable;
7
6
  constructor(api: AdaptableApi);
8
7
  isModuleAvailable(): boolean;
9
8
  createContextMenuItems(menuContext: ContextMenuContext): import("../Utilities/MenuItem").MenuItemDoClickFunction<"calculated-column-edit" | "cell-summary-show" | "column-group" | "column-filter-group" | "column-filter-clear" | "column-filter-suspend" | "column-filter-unsuspend" | "column-info-show" | "dashboard-group" | "dashboard-collapse" | "dashboard-configure" | "dashboard-dock" | "dashboard-expand" | "dashboard-float" | "dashboard-hide" | "dashboard-show" | "data-import" | "grid-group" | "grid-info-show" | "layout-edit" | "settings-panel-open" | "system-status-show" | "menu-group" | "alert-clear" | "bulk-update-apply" | "column-filter-on-cell-value" | "comment-add" | "comment-remove" | "edit-group" | "export-group" | "export-visual-data" | "export-visual-data-excel" | "export-all-data-excel" | "export-all-data" | "export-all-data-csv" | "export-all-data-clipboard" | "export-all-data-json" | "export-all-data-table" | "export-current-data" | "export-current-data-excel" | "export-current-data-csv" | "export-current-data-clipboard" | "export-current-data-json" | "export-current-data-table" | "export-selected-cells" | "export-selected-cells-excel" | "export-selected-cells-csv" | "export-selected-cells-clipboard" | "export-selected-cells-json" | "export-selected-cells-table" | "export-selected-rows" | "export-selected-rows-excel" | "export-selected-rows-csv" | "export-selected-rows-clipboard" | "export-selected-rows-json" | "export-selected-rows-table" | "fdc3-broadcast" | "fdc3-raise-intent" | "flashing-cell-clear" | "flashing-row-clear" | "layout-aggregated-view" | "layout-auto-size" | "layout-clear-selection" | "layout-select-all" | "note-add" | "note-remove" | "smart-edit-apply">[];
@@ -8,7 +8,6 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
8
8
  class NoteModule extends AdaptableModuleBase_1.AdaptableModuleBase {
9
9
  constructor(api) {
10
10
  super(ModuleConstants.NoteModuleId, ModuleConstants.NoteFriendlyName, 'note', 'NotePopup', 'Notes', api);
11
- this.adaptable = api.internalApi.getAdaptableInstance();
12
11
  }
13
12
  isModuleAvailable() {
14
13
  // Note module doesn't support autogenerated primary keys
@@ -25,17 +24,17 @@ class NoteModule extends AdaptableModuleBase_1.AdaptableModuleBase {
25
24
  if (menuContext.isRowGroupColumn || menuContext.isGroupedNode) {
26
25
  return;
27
26
  }
28
- const isReadOnly = this.adaptable.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName) === 'ReadOnly';
27
+ const isReadOnly = this.api.entitlementApi.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName) === 'ReadOnly';
29
28
  if (isReadOnly) {
30
29
  return undefined;
31
30
  }
32
- const isCellNotable = typeof ((_b = (_a = this.adaptable.api.optionsApi) === null || _a === void 0 ? void 0 : _a.getNoteOptions()) === null || _b === void 0 ? void 0 : _b.isCellNotable) === 'function'
33
- ? this.adaptable.api.optionsApi.getNoteOptions().isCellNotable(Object.assign({ gridCell: menuContext.gridCell }, (0, ObjectFactory_1.createBaseContext)(this.api)))
31
+ const isCellNotable = typeof ((_b = (_a = this.api.optionsApi) === null || _a === void 0 ? void 0 : _a.getNoteOptions()) === null || _b === void 0 ? void 0 : _b.isCellNotable) === 'function'
32
+ ? this.api.optionsApi.getNoteOptions().isCellNotable(Object.assign({ gridCell: menuContext.gridCell }, (0, ObjectFactory_1.createBaseContext)(this.api)))
34
33
  : true;
35
34
  if (!isCellNotable) {
36
35
  return;
37
36
  }
38
- const note = this.adaptable.api.noteApi.getNoteForCell({
37
+ const note = this.api.noteApi.getNoteForCell({
39
38
  PrimaryKeyValue: menuContext.primaryKeyValue,
40
39
  ColumnId: menuContext.adaptableColumn.columnId,
41
40
  });
@@ -245,7 +245,7 @@ exports.scalarExpressionFunctions = {
245
245
  // expression is syntactically valid, but operates with incompatible values
246
246
  return;
247
247
  }
248
- return sanitizedArguments.reduce((a, b) => a + b) / args.length;
248
+ return sanitizedArguments.reduce((a, b) => a + b) / sanitizedArguments.length;
249
249
  },
250
250
  description: 'Returns the average of inputted numbers',
251
251
  signatures: ['AVG(number, number, ...number)'],
@@ -42,7 +42,7 @@ class AggregatedScalarLiveValue {
42
42
  const aggregationValue = this.getAggregationValue(rowNode);
43
43
  if (aggregationValue == undefined) {
44
44
  logOnce(`${this.aggregatedScalarExpression} :: aggregation value is NOT available!`, (message) => {
45
- this.adaptableApi.internalApi.getAdaptableInstance().logger.warn(message);
45
+ this.adaptableApi.logWarn(message);
46
46
  });
47
47
  return;
48
48
  }
@@ -78,8 +78,8 @@ class CellPopupService {
78
78
  this.hidePopup();
79
79
  return;
80
80
  }
81
- const cellNote = this.adaptable.api.noteApi.getNoteForCell(cellPosition);
82
- const cellComments = this.adaptable.api.commentApi.getCommentThread(cellPosition);
81
+ const cellNote = this.api.noteApi.getNoteForCell(cellPosition);
82
+ const cellComments = this.api.commentApi.getCommentThread(cellPosition);
83
83
  const hasNotesOrComments = cellNote || cellComments;
84
84
  // call only if it is different
85
85
  if (CellPopupService.isSameAddress(openCellAddress, cellPosition)) {
@@ -96,8 +96,8 @@ class CellPopupService {
96
96
  return;
97
97
  }
98
98
  // if open but this has no note, close
99
- const cellNote = this.adaptable.api.noteApi.getNoteForCell(cellAddress);
100
- const cellComments = this.adaptable.api.commentApi.getCommentThread(cellAddress);
99
+ const cellNote = this.api.noteApi.getNoteForCell(cellAddress);
100
+ const cellComments = this.api.commentApi.getCommentThread(cellAddress);
101
101
  const hasNotesOrComments = cellNote || cellComments;
102
102
  if (openCellAddress && !hasNotesOrComments) {
103
103
  // hide only if in edit mode
@@ -125,9 +125,7 @@ class Fdc3Service {
125
125
  if (!this.getFdc3Options().enableLogging) {
126
126
  return;
127
127
  }
128
- this.adaptableApi.internalApi
129
- .getAdaptableInstance()
130
- .logger.consoleLog(`FDC3::${type} - `, params.join(' : '));
128
+ this.adaptableApi.consoleLog(`FDC3::${type} - `, params.join(' : '));
131
129
  }
132
130
  logFdc3Error(error) {
133
131
  this.adaptableApi.consoleError(`FDC3 error`, error);
@@ -1,4 +1,3 @@
1
- import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
2
1
  import { AdaptableApi, AdaptableFlashingCell } from '../../types';
3
2
  import { TypeUuid } from '../../PredefinedConfig/Uuid';
4
3
  import { IAdaptableService } from './Interface/IAdaptableService';
@@ -8,7 +7,6 @@ export declare const FLASHING_CELL_ROW_KEY = "__ROW";
8
7
  */
9
8
  export declare class FlashingCellService implements IAdaptableService {
10
9
  private api;
11
- adaptable: IAdaptable;
12
10
  gridCellsCurrentlyFlashing: Record<string, Record<string, TypeUuid>>;
13
11
  flashingCellsMapping: Record<TypeUuid, AdaptableFlashingCell>;
14
12
  constructor(api: AdaptableApi);
@@ -8,7 +8,6 @@ exports.FLASHING_CELL_ROW_KEY = '__ROW';
8
8
  class FlashingCellService {
9
9
  constructor(api) {
10
10
  this.api = api;
11
- this.adaptable = api.internalApi.getAdaptableInstance();
12
11
  this.gridCellsCurrentlyFlashing = {};
13
12
  this.flashingCellsMapping = {};
14
13
  }
@@ -53,7 +52,7 @@ class FlashingCellService {
53
52
  clearAllGridCellFlashes() {
54
53
  this.gridCellsCurrentlyFlashing = {};
55
54
  this.flashingCellsMapping = {};
56
- this.adaptable.refreshAllCells(true);
55
+ this.api.gridApi.refreshAllCells(true);
57
56
  }
58
57
  isAnyFlashingCellActive() {
59
58
  return Object.keys(this.gridCellsCurrentlyFlashing).length > 0;
@@ -63,7 +62,7 @@ class FlashingCellService {
63
62
  if (!cellDataChangedInfo) {
64
63
  return;
65
64
  }
66
- this.adaptable.refreshCells([cellDataChangedInfo.rowNode], Object.keys(flashingCell.flashColumnIds), true);
65
+ this.api.gridApi.refreshCells([cellDataChangedInfo.rowNode], Object.keys(flashingCell.flashColumnIds), true);
67
66
  }
68
67
  }
69
68
  exports.FlashingCellService = FlashingCellService;
@@ -4,9 +4,8 @@ exports.RowEditService = void 0;
4
4
  class RowEditService {
5
5
  constructor(adaptableApi) {
6
6
  this.adaptableApi = adaptableApi;
7
- const adaptableInstance = this.adaptableApi.internalApi.getAdaptableInstance();
8
- if (adaptableInstance.adaptableOptions.actionRowOptions.autoHandle) {
9
- adaptableInstance.api.eventApi.on('ActionRowSubmitted', (eventInfo) => this.autoHandleActionRowButtons(eventInfo));
7
+ if (adaptableApi.optionsApi.getActionRowOptions().autoHandle) {
8
+ adaptableApi.eventApi.on('ActionRowSubmitted', (eventInfo) => this.autoHandleActionRowButtons(eventInfo));
10
9
  }
11
10
  }
12
11
  autoHandleActionRowButtons(actionRowSubmittedInfo) {
@@ -23,8 +22,7 @@ class RowEditService {
23
22
  }
24
23
  if (actionRowSubmittedInfo.type === 'rowCreated') {
25
24
  const { formData } = actionRowSubmittedInfo;
26
- const setPrimaryKeyValueFunction = adaptableApi.internalApi.getAdaptableInstance().adaptableOptions.actionRowOptions
27
- .setPrimaryKeyValue;
25
+ const setPrimaryKeyValueFunction = adaptableApi.optionsApi.getActionRowOptions().setPrimaryKeyValue;
28
26
  const newRowData = typeof setPrimaryKeyValueFunction === 'function'
29
27
  ? setPrimaryKeyValueFunction(Object.assign({ rowData: formData }, adaptableApi.internalApi.buildBaseContext()))
30
28
  : Object.assign({}, formData);
@@ -11,16 +11,16 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
11
11
  const ActiveAlertsPanel_1 = require("./ActiveAlertsPanel");
12
12
  const initialStyle = { color: '', background: '' };
13
13
  const AlertStatusPanel = () => {
14
- const adaptable = (0, AdaptableContext_1.useAdaptable)();
14
+ const adaptableApi = (0, AdaptableContext_1.useAdaptable)().api;
15
15
  const [style, setStyle] = React.useState(initialStyle);
16
- const module = adaptable.ModuleService.getModuleById(ModuleConstants.AlertModuleId);
17
- const statusbarHighlightDuration = adaptable.adaptableOptions.alertOptions.statusbarHighlightDuration;
16
+ const module = adaptableApi.internalApi.getModuleService().getModuleById(ModuleConstants.AlertModuleId);
17
+ const statusbarHighlightDuration = adaptableApi.optionsApi.getAlertOptions().statusbarHighlightDuration;
18
18
  /**
19
19
  * Using a selector to so the component updates each time an alert is triggered.
20
20
  */
21
21
  const alerts = (0, react_redux_1.useSelector)((state) => state.System.AdaptableAlerts);
22
22
  const text = alerts.length == 0 ? '0 Alerts' : alerts.length == 1 ? '1 Alert' : alerts.length + ' Alerts';
23
- const handleAction = React.useCallback(() => adaptable.api.alertApi.openAlertSettingsPanel(), []);
23
+ const handleAction = React.useCallback(() => adaptableApi.alertApi.openAlertSettingsPanel(), []);
24
24
  // blinking logic
25
25
  const previousAlerts = React.useRef(alerts);
26
26
  const timeoutId = React.useRef();
@@ -25,13 +25,13 @@ const BaseShowChartButton = (props) => {
25
25
  React.createElement(SimpleButton_1.default, { variant: "raised", tone: "success" }, "Open")));
26
26
  };
27
27
  const ShowAgChartButton = (props) => {
28
- var _a, _b;
29
- const adaptable = (0, AdaptableContext_1.useAdaptable)();
30
- const chartingOptions = (_a = adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.chartingOptions;
28
+ var _a;
29
+ const adaptableApi = (0, AdaptableContext_1.useAdaptable)().api;
30
+ const chartingOptions = adaptableApi.optionsApi.getChartingOptions();
31
31
  const chartContainers = chartingOptions === null || chartingOptions === void 0 ? void 0 : chartingOptions.chartContainers;
32
32
  const { isOpen, showChart, closeChart } = (0, useAgChartState_1.useAgChartState)(props.chartDefinition);
33
33
  const containerOptions = [
34
- Object.assign({ label: (_b = chartingOptions.agGridContainerName) !== null && _b !== void 0 ? _b : GeneralConstants_1.AG_GRID_CHART_WINDOW, onClick: () => {
34
+ Object.assign({ label: (_a = chartingOptions.agGridContainerName) !== null && _a !== void 0 ? _a : GeneralConstants_1.AG_GRID_CHART_WINDOW, onClick: () => {
35
35
  showChart(null);
36
36
  } }, (chartContainers
37
37
  ? chartContainers === null || chartContainers === void 0 ? void 0 : chartContainers.map((contianerDef) => ({
@@ -15,8 +15,9 @@ const ValidationSection_1 = require("./sections/ValidationSection");
15
15
  const DataImportWizard = (props) => {
16
16
  var _a;
17
17
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
18
- const dataImportOptions = adaptable.api.optionsApi.getDataImportOptions();
19
- const module = adaptable.ModuleService.getModuleById('DataImport');
18
+ const adaptableApi = adaptable.api;
19
+ const dataImportOptions = adaptableApi.optionsApi.getDataImportOptions();
20
+ const module = adaptableApi.internalApi.getModuleService().getModuleById('DataImport');
20
21
  const [rowData, setRowData] = React.useState(null);
21
22
  const [file, setFile] = React.useState(null);
22
23
  const [text, setText] = React.useState('');
@@ -24,17 +25,17 @@ const DataImportWizard = (props) => {
24
25
  // - columnsMap changes
25
26
  // - new data is loaded
26
27
  const [importType, setImportType] = React.useState('file');
27
- const primaryKey = adaptable.api.optionsApi.getPrimaryKey();
28
+ const primaryKey = adaptableApi.optionsApi.getPrimaryKey();
28
29
  const hasDynamicallyAddedPrimaryKey = typeof dataImportOptions._getPrimaryKeyValue === 'function';
29
30
  const getPrimaryKeyValue = (rowData) => {
30
31
  if (hasDynamicallyAddedPrimaryKey) {
31
- return dataImportOptions._getPrimaryKeyValue(Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(adaptable.api)), { rowData }));
32
+ return dataImportOptions._getPrimaryKeyValue(Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(adaptableApi)), { rowData }));
32
33
  }
33
34
  return rowData[primaryKey];
34
35
  };
35
36
  const preprocessRowData = (rowData) => {
36
37
  if (typeof (dataImportOptions === null || dataImportOptions === void 0 ? void 0 : dataImportOptions._preprocessRowData) === 'function') {
37
- return dataImportOptions._preprocessRowData(Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(adaptable.api)), { rowData }));
38
+ return dataImportOptions._preprocessRowData(Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(adaptableApi)), { rowData }));
38
39
  }
39
40
  // by default just trim the keys
40
41
  let processedRowData = {};
@@ -79,7 +80,7 @@ const DataImportWizard = (props) => {
79
80
  fields.add(field);
80
81
  });
81
82
  });
82
- const allAbColumns = adaptable.api.columnApi.getColumns();
83
+ const allAbColumns = adaptableApi.columnApi.getColumns();
83
84
  const columnsMap = Array.from(fields).map((field) => {
84
85
  const abColumn = allAbColumns.find((c) => {
85
86
  // exact field match
@@ -132,7 +133,7 @@ const DataImportWizard = (props) => {
132
133
  // ---- FILE HANDLERS ----
133
134
  const fileHandlers = React.useMemo(() => {
134
135
  var _a, _b;
135
- const userDefinedHandlers = (_b = (_a = adaptable.api.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.fileHandlers) !== null && _b !== void 0 ? _b : [];
136
+ const userDefinedHandlers = (_b = (_a = adaptableApi.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.fileHandlers) !== null && _b !== void 0 ? _b : [];
136
137
  return [...userDefinedHandlers, ...systemFileHandlers_1.systemFileHandlers];
137
138
  }, []);
138
139
  const supportedFileFormats = React.useMemo(() => {
@@ -140,11 +141,11 @@ const DataImportWizard = (props) => {
140
141
  }, [fileHandlers]);
141
142
  const readFile = React.useCallback(async (file) => {
142
143
  var _a, _b;
143
- const userDefinedFileHandlers = (_b = (_a = adaptable.api.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.fileHandlers) !== null && _b !== void 0 ? _b : [];
144
+ const userDefinedFileHandlers = (_b = (_a = adaptableApi.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.fileHandlers) !== null && _b !== void 0 ? _b : [];
144
145
  const fileExtension = `.${file.name.split('.').pop()}`;
145
146
  const handler = [...userDefinedFileHandlers, ...systemFileHandlers_1.systemFileHandlers].find((fh) => fh.fileExtension === fileExtension);
146
147
  if (!handler) {
147
- adaptable.api.logError(`No file handler found for file extension ${fileExtension}. Please provide a file handler in Data Import Options.`);
148
+ adaptableApi.logError(`No file handler found for file extension ${fileExtension}. Please provide a file handler in Data Import Options.`);
148
149
  return;
149
150
  }
150
151
  try {
@@ -154,7 +155,7 @@ const DataImportWizard = (props) => {
154
155
  return data;
155
156
  }
156
157
  catch (_c) {
157
- adaptable.api.logError(`Error reading file ${file.name}. Please check the file is valid.`);
158
+ adaptableApi.logError(`Error reading file ${file.name}. Please check the file is valid.`);
158
159
  }
159
160
  }, [adaptable]);
160
161
  const fileMessage = file ? (React.createElement(HelpBlock_1.default, { mb: 2 },
@@ -168,7 +169,7 @@ const DataImportWizard = (props) => {
168
169
  const handleTextChange = React.useCallback(async (text) => {
169
170
  var _a;
170
171
  //
171
- let textHandler = (_a = adaptable.api.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.textHandler;
172
+ let textHandler = (_a = adaptableApi.optionsApi.getDataImportOptions()) === null || _a === void 0 ? void 0 : _a.textHandler;
172
173
  if (!textHandler) {
173
174
  // regex to test for json
174
175
  const jsonRegex = /^\s*[\[{]/;
@@ -212,7 +213,7 @@ const DataImportWizard = (props) => {
212
213
  return null;
213
214
  }
214
215
  return (_a = rowData === null || rowData === void 0 ? void 0 : rowData.reduce) === null || _a === void 0 ? void 0 : _a.call(rowData, (acc, rowData) => {
215
- const error = dataImportOptions.validate(Object.assign({ rowData }, (0, ObjectFactory_1.createBaseContext)(adaptable.api)));
216
+ const error = dataImportOptions.validate(Object.assign({ rowData }, (0, ObjectFactory_1.createBaseContext)(adaptableApi)));
216
217
  const primaryKeyValue = getPrimaryKeyValue(rowData);
217
218
  if (error && primaryKeyValue && error.length) {
218
219
  acc[primaryKeyValue] = error;
@@ -226,7 +227,7 @@ const DataImportWizard = (props) => {
226
227
  const rowErrors = errors[getPrimaryKeyValue(row)];
227
228
  return !rowErrors || rowErrors.length === 0;
228
229
  });
229
- adaptable.api.dataImportApi.internalApi.importData(validData);
230
+ adaptableApi.dataImportApi.internalApi.importData(validData);
230
231
  };
231
232
  return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { data: null, moduleInfo: module.moduleInfo, finishText: "Import", onFinish: () => {
232
233
  handleFinish();
@@ -14,11 +14,12 @@ const filterContainerStyle = {
14
14
  position: 'relative',
15
15
  };
16
16
  const FloatingFilterWrapperFactory = (adaptable) => {
17
+ const adaptableApi = adaptable.api;
17
18
  function getContainerId(colId) {
18
19
  return `floatingFilter_${colId}_${adaptable.adaptableOptions.adaptableId}`;
19
20
  }
20
21
  function getFilterProps(colId) {
21
- const column = adaptable.api.columnApi.getColumnWithColumnId(colId);
22
+ const column = adaptableApi.columnApi.getColumnWithColumnId(colId);
22
23
  const columnFilterProps = {
23
24
  Column: column,
24
25
  Adaptable: adaptable,
@@ -57,7 +58,7 @@ const FloatingFilterWrapperFactory = (adaptable) => {
57
58
  if (adaptable.variant === 'react') {
58
59
  return (0, react_1.forwardRef)(function ReactFloatingFilterWrapper(props, ref) {
59
60
  const colId = props.column.getId();
60
- const column = adaptable.api.columnApi.getColumnWithColumnId(colId);
61
+ const column = adaptableApi.columnApi.getColumnWithColumnId(colId);
61
62
  (0, react_1.useImperativeHandle)(ref, () => {
62
63
  return {
63
64
  onParentModelChanged() { },
@@ -84,7 +85,7 @@ const FloatingFilterWrapperFactory = (adaptable) => {
84
85
  //@ts-ignore
85
86
  this.filterContainer.style[key] = filterContainerStyle[key];
86
87
  });
87
- const column = adaptable.api.columnApi.getColumnWithColumnId(colId);
88
+ const column = adaptableApi.columnApi.getColumnWithColumnId(colId);
88
89
  if (column) {
89
90
  const filterProps = getFilterProps(colId);
90
91
  this.unmountReactRoot = adaptable.renderReactRoot((0, QuickFilterForm_1.QuickFilterFormReact)(filterProps), this.filterContainer);
@@ -15,4 +15,4 @@ export type DatepickerProps = Omit<BoxProps, 'value' | 'onChange' | 'defaultValu
15
15
  showWeekNumber?: boolean;
16
16
  showOutsideDays?: boolean;
17
17
  };
18
- export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "children" | "size" | "name" | "tabIndex" | "color" | "style" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "summary" | "title" | "pattern" | "start" | "hidden" | "content" | "default" | "flex" | "wrap" | "open" | "padding" | "multiple" | "disabled" | "checked" | "download" | "list" | "order" | "target" | "rows" | "src" | "className" | "onTransitionEnd" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "opacity" | "value" | "step" | "sizes" | "variant" | "tx" | "as" | "css" | "key" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "bg" | "backgroundColor" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "sx" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "wmode" | "showClearButton" | "onHide" | "datepickerButtons" | "dateProps" | "showWeekNumber" | "showOutsideDays"> & React.RefAttributes<HTMLInputElement>>;
18
+ export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "children" | "size" | "name" | "tabIndex" | "color" | "style" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "summary" | "title" | "pattern" | "start" | "hidden" | "content" | "default" | "flex" | "wrap" | "open" | "padding" | "multiple" | "disabled" | "checked" | "download" | "list" | "order" | "target" | "rows" | "src" | "className" | "onTransitionEnd" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "opacity" | "value" | "step" | "sizes" | "variant" | "tx" | "as" | "css" | "key" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "bg" | "backgroundColor" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "sx" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "wmode" | "onHide" | "showClearButton" | "datepickerButtons" | "dateProps" | "showWeekNumber" | "showOutsideDays"> & React.RefAttributes<HTMLInputElement>>;
@@ -15,15 +15,15 @@ const AdaptableContext_1 = require("../../View/AdaptableContext");
15
15
  const AdaptableInput_1 = tslib_1.__importDefault(require("../../View/Components/AdaptableInput"));
16
16
  const DataTableEditor = ({ fields, dataFormatter, data: initialData, type = 'column', labels, }) => {
17
17
  var _a, _b;
18
- const adaptable = (0, AdaptableContext_1.useAdaptable)();
18
+ const adaptableApi = (0, AdaptableContext_1.useAdaptable)().api;
19
19
  const [data, setData] = React.useState(initialData);
20
20
  const [showColumnIds, setShowValues] = React.useState(false);
21
21
  const [searchInputValue, setSearchInputValue] = React.useState('');
22
22
  const getColValue = (fieldValue) => {
23
- return adaptable.api.internalApi.getValueUsingField(data, fieldValue);
23
+ return adaptableApi.internalApi.getValueUsingField(data, fieldValue);
24
24
  };
25
25
  const updateColValue = (rowData, fielValue, newValue) => {
26
- const updatedRowData = adaptable.api.internalApi.setValueUsingField(rowData, fielValue, newValue);
26
+ const updatedRowData = adaptableApi.internalApi.setValueUsingField(rowData, fielValue, newValue);
27
27
  return Object.assign({}, updatedRowData);
28
28
  };
29
29
  const getColDateValue = (fieldValue) => {
@@ -6,12 +6,12 @@ const React = tslib_1.__importStar(require("react"));
6
6
  const AdaptableContext_1 = require("../../View/AdaptableContext");
7
7
  const ExpressionPreview = (props) => {
8
8
  var _a;
9
- const adaptable = (0, AdaptableContext_1.useAdaptable)();
10
- const displayColumnFriendlyNames = (_a = adaptable.api.optionsApi.getExpressionOptions()) === null || _a === void 0 ? void 0 : _a.displayColumnFriendlyNamesForExpressions;
9
+ const adaptableApi = (0, AdaptableContext_1.useAdaptable)().api;
10
+ const displayColumnFriendlyNames = (_a = adaptableApi.optionsApi.getExpressionOptions()) === null || _a === void 0 ? void 0 : _a.displayColumnFriendlyNamesForExpressions;
11
11
  if (!displayColumnFriendlyNames) {
12
- return React.createElement(React.Fragment, null, adaptable.api.expressionApi.getAdaptableQueryExpression(props.query));
12
+ return React.createElement(React.Fragment, null, adaptableApi.expressionApi.getAdaptableQueryExpression(props.query));
13
13
  }
14
- const expressionWithFriendlyNames = adaptable.api.expressionApi.getAdaptableQueryExpressionWithColumnFriendlyNames(props.query);
14
+ const expressionWithFriendlyNames = adaptableApi.expressionApi.getAdaptableQueryExpressionWithColumnFriendlyNames(props.query);
15
15
  // '[Column Name] > 2' => ['[Column Name]', '>', '2']
16
16
  // not the prettiest
17
17
  const strWithMarkedGroupes = expressionWithFriendlyNames.replace(/\]/gi, '],').split(',');
package/src/env.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
5
- PUBLISH_TIMESTAMP: 1730460314968 || Date.now(),
6
- VERSION: "19.1.0-canary.0" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1731319587104 || Date.now(),
6
+ VERSION: "19.1.1" || '--current-version--',
7
7
  };