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

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 (135) hide show
  1. package/base.css +31 -31
  2. package/base.css.map +1 -1
  3. package/bundle.cjs.js +155 -155
  4. package/index.css +39 -39
  5. package/index.css.map +1 -1
  6. package/package.json +1 -1
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -1
  10. package/src/AdaptableOptions/ActionRowOptions.d.ts +8 -5
  11. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +6 -2
  12. package/src/AdaptableOptions/FilterOptions.d.ts +1 -0
  13. package/src/AdaptableOptions/FormatColumnOptions.d.ts +7 -7
  14. package/src/AdaptableOptions/GroupingOptions.d.ts +0 -13
  15. package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/TeamSharingOptions.d.ts +5 -0
  17. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +15 -5
  18. package/src/Api/ColumnApi.d.ts +18 -7
  19. package/src/Api/DataChangeHistoryApi.d.ts +6 -0
  20. package/src/Api/EventApi.d.ts +19 -6
  21. package/src/Api/Events/ChexboxColumnClicked.d.ts +1 -0
  22. package/src/Api/Events/ScheduleTriggered.d.ts +11 -0
  23. package/src/Api/Events/ScheduleTriggered.js +2 -0
  24. package/src/Api/Implementation/ActionRowApiImpl.js +7 -5
  25. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
  26. package/src/Api/Implementation/ChartingApiImpl.js +4 -0
  27. package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -1
  28. package/src/Api/Implementation/ColumnApiImpl.js +22 -3
  29. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  30. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +3 -0
  31. package/src/Api/Implementation/PredicateApiImpl.d.ts +5 -5
  32. package/src/Api/Implementation/PredicateApiImpl.js +8 -8
  33. package/src/Api/Implementation/ScheduleApiImpl.d.ts +4 -0
  34. package/src/Api/Implementation/ScheduleApiImpl.js +5 -0
  35. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +0 -3
  36. package/src/Api/Implementation/StyledColumnApiImpl.js +0 -26
  37. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
  38. package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -0
  39. package/src/Api/Internal/AdaptableInternalApi.js +2 -2
  40. package/src/Api/Internal/AlertInternalApi.js +7 -2
  41. package/src/Api/Internal/FilterInternalApi.js +8 -4
  42. package/src/Api/Internal/FormatColumnInternalApi.js +11 -13
  43. package/src/Api/Internal/ScheduleInternalApi.d.ts +8 -0
  44. package/src/Api/Internal/ScheduleInternalApi.js +20 -0
  45. package/src/Api/Internal/StyledColumnInternalApi.d.ts +5 -2
  46. package/src/Api/Internal/StyledColumnInternalApi.js +29 -2
  47. package/src/Api/Internal/UserInterfaceInternalApi.d.ts +5 -0
  48. package/src/Api/Internal/UserInterfaceInternalApi.js +18 -0
  49. package/src/Api/OptionsApi.d.ts +1 -1
  50. package/src/Api/PredicateApi.d.ts +5 -5
  51. package/src/Api/StyledColumnApi.d.ts +0 -14
  52. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
  53. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +7 -7
  54. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +8 -15
  55. package/src/PredefinedConfig/Common/AdaptablePredicate.js +65 -41
  56. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  57. package/src/PredefinedConfig/StyledColumnState.d.ts +3 -2
  58. package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
  59. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  60. package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
  61. package/src/Redux/Store/AdaptableStore.js +1 -2
  62. package/src/Strategy/AdaptableModuleBase.d.ts +6 -6
  63. package/src/Strategy/FlashingCellModule.js +6 -2
  64. package/src/Strategy/Interface/IModule.d.ts +2 -2
  65. package/src/Strategy/ScheduleModule.js +3 -2
  66. package/src/Strategy/StyledColumnModule.js +24 -15
  67. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  68. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -2
  69. package/src/Utilities/MenuItem.d.ts +4 -4
  70. package/src/Utilities/Services/MetamodelService.js +5 -1
  71. package/src/Utilities/Services/ModuleService.js +1 -1
  72. package/src/Utilities/Services/QueryLanguageService.js +1 -1
  73. package/src/Utilities/Services/RowEditService.js +1 -1
  74. package/src/Utilities/Services/TeamSharingService.d.ts +2 -0
  75. package/src/Utilities/Services/TeamSharingService.js +60 -3
  76. package/src/Utilities/Services/ValidationService.js +6 -2
  77. package/src/View/Charting/useChartingElements.js +1 -1
  78. package/src/View/Components/AdaptableButton/index.d.ts +3 -0
  79. package/src/View/Components/AdaptableButton/index.js +18 -0
  80. package/src/View/Components/AdaptableIconComponent/index.d.ts +7 -0
  81. package/src/View/Components/AdaptableIconComponent/index.js +16 -0
  82. package/src/View/Components/AdaptableIconComponent/useCustomIcon.d.ts +2 -0
  83. package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +12 -0
  84. package/src/{components → View/Components}/Badge/index.d.ts +1 -1
  85. package/src/{components → View/Components}/Badge/index.js +1 -1
  86. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  87. package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
  88. package/src/View/Components/FilterForm/QuickFilterForm.js +3 -2
  89. package/src/View/Components/Panels/PanelWithButton.d.ts +2 -2
  90. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
  91. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
  92. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
  93. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  94. package/src/View/Components/PredicateEditor/PredicateEditor.js +4 -4
  95. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -2
  96. package/src/View/Dashboard/Dashboard.js +3 -3
  97. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -0
  98. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +13 -7
  99. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -1
  100. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
  101. package/src/View/DataChangeHistory/buildActionColumnButton.js +9 -2
  102. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  103. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -2
  104. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
  105. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -5
  106. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +2 -9
  107. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -1
  108. package/src/View/UIHelper.d.ts +2 -2
  109. package/src/agGrid/ActionColumnRenderer.d.ts +0 -2
  110. package/src/agGrid/ActionColumnRenderer.js +20 -5
  111. package/src/agGrid/Adaptable.d.ts +5 -2
  112. package/src/agGrid/Adaptable.js +61 -25
  113. package/src/agGrid/BadgeRenderer.js +19 -20
  114. package/src/agGrid/CheckboxRenderer.js +1 -1
  115. package/src/agGrid/agGridHelper.js +2 -0
  116. package/src/agGrid/agGridMenuHelper.js +11 -4
  117. package/src/agGrid/attachAddaptableColumnTypes.d.ts +1 -0
  118. package/src/agGrid/attachAddaptableColumnTypes.js +5 -4
  119. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  120. package/src/components/Icon/index.d.ts +11 -0
  121. package/src/components/{AdaptableIconComponent → Icon}/index.js +10 -10
  122. package/src/components/IconSelector/IconSelector.js +3 -3
  123. package/src/components/SimpleButton/index.js +10 -10
  124. package/src/components/Toggle/Toggle.d.ts +2 -2
  125. package/src/components/Toggle/Toggle.js +2 -2
  126. package/src/components/icons/index.d.ts +4 -4
  127. package/src/components/icons/index.js +6 -6
  128. package/src/metamodel/adaptable.metamodel.d.ts +72 -31
  129. package/src/metamodel/adaptable.metamodel.js +1 -1
  130. package/src/types.d.ts +6 -5
  131. package/version.d.ts +1 -1
  132. package/version.js +1 -1
  133. package/src/View/Components/AdaptableViewIcon/index.d.ts +0 -10
  134. package/src/View/Components/AdaptableViewIcon/index.js +0 -18
  135. package/src/components/AdaptableIconComponent/index.d.ts +0 -11
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
4
- exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_VISUAL_EXPORT_END = exports.SYSTEM_VISUAL_EXPORT_BEGIN = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = void 0;
5
- exports.SystemReducer = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = void 0;
3
+ exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
4
+ exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryClearRow = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_VISUAL_EXPORT_END = exports.SYSTEM_VISUAL_EXPORT_BEGIN = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = void 0;
5
+ exports.SystemReducer = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = void 0;
6
6
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
7
7
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
8
8
  const Helper_1 = require("../../Utilities/Helpers/Helper");
@@ -64,6 +64,7 @@ exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = 'SYSTEM_LICENSE_DISABLE_PERSISTENCE
64
64
  // Change History
65
65
  exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = 'SYSTEM_DATA_CHANGE_HISTORY_ADD';
66
66
  exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = 'SYSTEM_DATA_CHANGE_HISTORY_UNDO';
67
+ exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW = 'SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW';
67
68
  exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = 'SYSTEM_DATA_CHANGE_HISTORY_ENABLE';
68
69
  exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = 'SYSTEM_DATA_CHANGE_HISTORY_DISABLE';
69
70
  exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = 'SYSTEM_DATA_CHANGE_HISTORY_SUSPEND';
@@ -273,6 +274,11 @@ const SystemDataChangeHistoryUndo = (changeInfo) => ({
273
274
  changeInfo,
274
275
  });
275
276
  exports.SystemDataChangeHistoryUndo = SystemDataChangeHistoryUndo;
277
+ const SystemDataChangeHistoryClearRow = (changeInfo) => ({
278
+ type: exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW,
279
+ changeInfo,
280
+ });
281
+ exports.SystemDataChangeHistoryClearRow = SystemDataChangeHistoryClearRow;
276
282
  const SystemDataChangeHistoryEnable = () => ({
277
283
  type: exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE,
278
284
  });
@@ -670,6 +676,14 @@ const SystemReducer = (state = initialState, action) => {
670
676
  delete updatedDataChangeHistoryLogs[uniqueKey];
671
677
  return Object.assign(Object.assign({}, state), { DataChangeHistory: Object.assign(Object.assign({}, state.DataChangeHistory), { logs: updatedDataChangeHistoryLogs }) });
672
678
  }
679
+ case exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW: {
680
+ const actionTypedUndo = action;
681
+ const cellDataChangedInfo = actionTypedUndo.changeInfo;
682
+ const uniqueKey = getDataChangeHistoryKey(cellDataChangedInfo);
683
+ const updatedDataChangeHistoryLogs = Object.assign({}, state.DataChangeHistory.logs);
684
+ delete updatedDataChangeHistoryLogs[uniqueKey];
685
+ return Object.assign(Object.assign({}, state), { DataChangeHistory: Object.assign(Object.assign({}, state.DataChangeHistory), { logs: updatedDataChangeHistoryLogs }) });
686
+ }
673
687
  case exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE: {
674
688
  return Object.assign(Object.assign({}, state), { DataChangeHistory: Object.assign(Object.assign({}, state.DataChangeHistory), { currentMode: 'ACTIVE', enableTime: new Date(), suspendTime: null }) });
675
689
  }
@@ -332,7 +332,6 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
332
332
  /**
333
333
  * Use Case: Query has changed
334
334
  * Action: Filter the Grid and fire Query Run Event
335
- * Also run SearchChangedEvent (to be removed in AdapTable 13)
336
335
  */
337
336
  case QueryRedux.QUERY_RUN: {
338
337
  let ret = next(action);
@@ -702,7 +701,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
702
701
  /**
703
702
  * Use Case: User has run a Quick Search
704
703
  * Action1: Call Adaptable to redraw body so cells can be highlighted
705
- * Action2: Run Query using Quick Search text it set in Search Options
704
+ * Action2: Run Query using Quick Search text
706
705
  */
707
706
  case QuickSearchRedux.QUICK_SEARCH_RUN: {
708
707
  let returnAction = next(action);
@@ -11,7 +11,7 @@ import { AdaptableApi } from '../Api/AdaptableApi';
11
11
  import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
12
12
  import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
13
13
  import { FreeTextColumn } from '../PredefinedConfig/FreeTextColumnState';
14
- import { AdaptableInternalIconName } from '../PredefinedConfig/Common/AdaptableIcon';
14
+ import { AdaptableSystemIconName } from '../PredefinedConfig/Common/AdaptableIcon';
15
15
  import { AdaptableStateReloadedInfo } from '../Api/Events/AdaptableStateReloaded';
16
16
  /**
17
17
  * Base class for all strategies and does most of the work of creating menus
@@ -20,7 +20,7 @@ export declare abstract class AdaptableModuleBase implements IModule {
20
20
  protected api: AdaptableApi;
21
21
  moduleInfo: ModuleInfo;
22
22
  AccessLevel: AccessLevel;
23
- constructor(module: AdaptableModule, friendlyName: string, glyph: AdaptableInternalIconName, popup: string, description: string, api: AdaptableApi);
23
+ constructor(module: AdaptableModule, friendlyName: string, glyph: AdaptableSystemIconName, popup: string, description: string, api: AdaptableApi);
24
24
  protected getViewAccessLevel(): AccessLevel;
25
25
  protected getEditAccessLevel(): AccessLevel;
26
26
  isModuleAvailable(): boolean;
@@ -44,12 +44,12 @@ export declare abstract class AdaptableModuleBase implements IModule {
44
44
  createMainMenuItemShowPopup({ Label, ComponentName, Icon, PopupParams, }: {
45
45
  Label: string;
46
46
  ComponentName: string;
47
- Icon: AdaptableInternalIconName;
47
+ Icon: AdaptableSystemIconName;
48
48
  PopupParams?: ModuleParams;
49
49
  }): MenuItemShowPopup;
50
- createColumnMenuItemClickFunction(Label: string, Icon: AdaptableInternalIconName, ClickFunction: () => void): MenuItemDoClickFunction;
51
- createColumnMenuItemReduxAction(Label: string, Icon: AdaptableInternalIconName, Action: Action): MenuItemDoReduxAction;
52
- createColumnMenuItemShowPopup(Label: string, ComponentName: string, Icon: AdaptableInternalIconName, PopupParams?: ModuleParams): MenuItemShowPopup;
50
+ createColumnMenuItemClickFunction(Label: string, Icon: AdaptableSystemIconName, ClickFunction: () => void): MenuItemDoClickFunction;
51
+ createColumnMenuItemReduxAction(Label: string, Icon: AdaptableSystemIconName, Action: Action): MenuItemDoReduxAction;
52
+ createColumnMenuItemShowPopup(Label: string, ComponentName: string, Icon: AdaptableSystemIconName, PopupParams?: ModuleParams): MenuItemShowPopup;
53
53
  canCreateColumnMenuItem(column: AdaptableColumn, minimumAccessLevel: AccessLevel, functionType?: 'sort' | 'editable' | 'style' | 'filter' | 'quickfilter' | 'numeric'): boolean;
54
54
  getTeamSharingAction(): TeamSharingImportInfo<AdaptableObject> | undefined;
55
55
  getModuleNamedQueryReferences(): string[];
@@ -216,14 +216,18 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
216
216
  }
217
217
  isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
218
218
  var _a;
219
- return this.api.predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, {
219
+ const predicateDefHandlerContext = {
220
220
  value: dataChangedEvent.newValue,
221
221
  oldValue: dataChangedEvent.oldValue,
222
222
  // TODO send real display value
223
223
  displayValue: null,
224
224
  node: dataChangedEvent.rowNode,
225
225
  column: dataChangedEvent.column,
226
- }, defaultNoPredicateReturn);
226
+ adaptableApi: this.api,
227
+ userName: this.api.optionsApi.getUserName(),
228
+ adaptableId: this.api.optionsApi.getAdaptableId(),
229
+ };
230
+ return this.api.predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, predicateDefHandlerContext, defaultNoPredicateReturn);
227
231
  }
228
232
  getTeamSharingAction() {
229
233
  return {
@@ -9,13 +9,13 @@ import { CalculatedColumn } from '../../PredefinedConfig/CalculatedColumnState';
9
9
  import { FreeTextColumn } from '../../PredefinedConfig/FreeTextColumnState';
10
10
  import { AdaptableOnePageWizardProps } from '../../View/Wizard/Interface/IAdaptableWizard';
11
11
  import * as Redux from 'redux';
12
- import { AdaptableInternalIconName, SuspendableObject } from '../../../types';
12
+ import { AdaptableSystemIconName, SuspendableObject } from '../../../types';
13
13
  import { StatusBarPanelProps } from '../../View/StatusBar/StatusBarPanel';
14
14
  import { StrictExtract } from '../../Utilities/Extensions/TypeExtensions';
15
15
  export interface ModuleInfo {
16
16
  ModuleName: AdaptableModule;
17
17
  FriendlyName: string;
18
- Glyph: AdaptableInternalIconName;
18
+ Glyph: AdaptableSystemIconName;
19
19
  Popup: string;
20
20
  Description: string;
21
21
  HelpPage: string;
@@ -13,13 +13,14 @@ const ScheduleRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/Sch
13
13
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
14
14
  const dateTimeouts = {};
15
15
  const NodeSchedule = {
16
- scheduleJob: (date, fn) => {
16
+ scheduleJob: (date, schedule, api, fn) => {
17
17
  const timestamp = +date;
18
18
  const now = Date.now();
19
19
  const timeUntilDate = timestamp - now;
20
20
  if (timeUntilDate > 0) {
21
21
  const timeoutId = +setTimeout(() => {
22
22
  fn();
23
+ api.scheduleApi.internalApi.fireScheduleTriggeredEvent(schedule);
23
24
  }, timeUntilDate);
24
25
  dateTimeouts[timestamp] = timeoutId;
25
26
  }
@@ -70,7 +71,7 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
70
71
  addSchedule(schedule, scheduleType) {
71
72
  const date = this.getDateFromSchedule(schedule.Schedule);
72
73
  if (date != null) {
73
- const alertJob = NodeSchedule.scheduleJob(date, () => {
74
+ const alertJob = NodeSchedule.scheduleJob(date, schedule, this.api, () => {
74
75
  this.api.scheduleApi.applySchedule(schedule, scheduleType);
75
76
  });
76
77
  this.scheduleJobs.push(alertJob);
@@ -24,7 +24,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
24
24
  const activeCheckboxColumnIds = this.api.columnApi
25
25
  .getColumns()
26
26
  .filter((aColumn) => {
27
- const checkboxColumn = this.api.styledColumnApi.getCheckBoxStyleStyledColumn(aColumn);
27
+ const checkboxColumn = this.api.styledColumnApi.internalApi.getCheckBoxStyleStyledColumn(aColumn);
28
28
  return checkboxColumn && !checkboxColumn.IsSuspended;
29
29
  })
30
30
  .map((aColumn) => aColumn.columnId);
@@ -77,7 +77,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
77
77
  if (column && this.isModuleEditable()) {
78
78
  let styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(column.columnId);
79
79
  // First look at Sparkline Columns - needs to be editable array type
80
- if (this.api.columnApi.hasArrayDataType(column.columnId) &&
80
+ if (this.api.columnApi.hasNumericArrayDataType(column.columnId) &&
81
81
  column.IsReadOnly !== true &&
82
82
  this.api.styledColumnApi.canDisplaySparklines()) {
83
83
  let sparklineColumnExists = column.isSparkline && Boolean(styledColumn);
@@ -171,21 +171,30 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
171
171
  break;
172
172
  }
173
173
  }
174
- // Then do Checkbox
174
+ // Then do Checkbox - now removed as AG Grid 30 offers this
175
+ /*
175
176
  if (column.dataType == 'Boolean' && !this.api.columnApi.isFreeTextColumn(column.columnId)) {
176
- const hasCheckBox = styledColumn && (styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.CheckBoxStyle);
177
- if (hasCheckBox) {
178
- returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Remove Checkbox', 'unchecked', () => {
179
- this.api.styledColumnApi.deleteStyledColumn(styledColumn);
180
- }));
181
- }
182
- else {
183
- returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Show as Checkbox', 'checked', () => {
184
- const styledColumn = ObjectFactory_1.default.CreateEmptyStyledColumn();
185
- this.api.styledColumnApi.addStyledColumn(Object.assign(Object.assign({}, styledColumn), { ColumnId: column.columnId, CheckBoxStyle: true }));
186
- }));
187
- }
177
+ const hasCheckBox: boolean = styledColumn && styledColumn?.CheckBoxStyle;
178
+ if (hasCheckBox) {
179
+ returnColumnMenuItems.push(
180
+ this.createColumnMenuItemClickFunction('Remove Checkbox', 'unchecked', () => {
181
+ this.api.styledColumnApi.deleteStyledColumn(styledColumn);
182
+ })
183
+ );
184
+ } else {
185
+ returnColumnMenuItems.push(
186
+ this.createColumnMenuItemClickFunction('Show as Checkbox', 'checked', () => {
187
+ const styledColumn = ObjectFactory.CreateEmptyStyledColumn();
188
+ this.api.styledColumnApi.addStyledColumn({
189
+ ...styledColumn,
190
+ ColumnId: column.columnId,
191
+ CheckBoxStyle: true,
192
+ });
193
+ })
194
+ );
195
+ }
188
196
  }
197
+ */
189
198
  }
190
199
  }
191
200
  return returnColumnMenuItems;
@@ -11,7 +11,7 @@ exports.AggregatedBooleanQueryDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptab
11
11
  exports.AggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptable-ql-expression-aggregation-scalar`;
12
12
  exports.CumulativeAggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptable-ql-expression-aggregation-scalar#cumulative-aggregation`;
13
13
  exports.PredicateDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptable-ql-predicate`;
14
- exports.PrimaryKeyDocsLink = `${exports.HOST_URL_DOCS}/guide/dev-guide-tutorial-primary-key`;
14
+ exports.PrimaryKeyDocsLink = `${exports.HOST_URL_DOCS}/guide/getting-started-primary-key`;
15
15
  exports.LicenseDocsLink = `${exports.HOST_URL_DOCS}/guide/licensing`;
16
16
  exports.AdaptableOptionsDocsLink = `${exports.HOST_URL_DOCS}/guide/reference-options-overview`;
17
17
  exports.AgGridModulesDocsLink = `${exports.HOST_URL_DOCS}/TODO_TODO_TODO`;
@@ -107,10 +107,10 @@ exports.DefaultAdaptableOptions = {
107
107
  actionRowButtons: undefined,
108
108
  autoHandle: true,
109
109
  disableInlineEditing: false,
110
+ setPrimaryKeyValue: undefined,
110
111
  actionRowButtonOptions: {
111
112
  customConfiguration: undefined,
112
113
  position: 'pinnedLeft',
113
- setPrimaryKeyValue: undefined,
114
114
  },
115
115
  actionRowFormOptions: {
116
116
  formTitle: undefined,
@@ -159,7 +159,7 @@ exports.DefaultAdaptableOptions = {
159
159
  restoreUngroupedColumns: false,
160
160
  },
161
161
  formatColumnOptions: {
162
- customDisplayFormatters: undefined
162
+ customDisplayFormatters: undefined,
163
163
  },
164
164
  layoutOptions: {
165
165
  displayRowGroups: 'closed',
@@ -212,6 +212,7 @@ exports.DefaultAdaptableOptions = {
212
212
  defaultDateColumnFilter: 'On',
213
213
  defaultFilterFormTab: 'Values',
214
214
  enableFilterOnSpecialColumns: true,
215
+ filterUsingTime: false,
215
216
  maxFilterValuesToDisplay: 2000,
216
217
  showQuickFilter: true,
217
218
  showDistinctFilteredValuesOnly: false,
@@ -245,6 +246,7 @@ exports.DefaultAdaptableOptions = {
245
246
  updateInterval: 0,
246
247
  updateNotification: undefined,
247
248
  suppressOverrideConfigWarning: false,
249
+ showUpdateNotificationOncePerUpdate: false,
248
250
  },
249
251
  userInterfaceOptions: {
250
252
  alternativeModuleNames: undefined,
@@ -2,9 +2,9 @@ import * as Redux from 'redux';
2
2
  import { ModuleParams } from '../View/Components/SharedProps/ModuleViewPopupProps';
3
3
  import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
4
4
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
5
- import { AdaptableIcon, AdaptableInternalIconName } from '../PredefinedConfig/Common/AdaptableIcon';
5
+ import { AdaptableIcon, AdaptableSystemIconName } from '../PredefinedConfig/Common/AdaptableIcon';
6
6
  export declare class MenuItemDoReduxAction implements AdaptableMenuItem {
7
- constructor(label: string, module: AdaptableModule, reduxAction: Redux.Action, icon: AdaptableInternalIconName, isVisible: boolean);
7
+ constructor(label: string, module: AdaptableModule, reduxAction: Redux.Action, icon: AdaptableSystemIconName, isVisible: boolean);
8
8
  reduxAction: Redux.Action;
9
9
  label: string;
10
10
  module: AdaptableModule;
@@ -12,7 +12,7 @@ export declare class MenuItemDoReduxAction implements AdaptableMenuItem {
12
12
  icon: AdaptableIcon;
13
13
  }
14
14
  export declare class MenuItemDoClickFunction implements AdaptableMenuItem {
15
- constructor(label: string, module: AdaptableModule, clickFunction: () => void, icon: AdaptableInternalIconName, isVisible: boolean);
15
+ constructor(label: string, module: AdaptableModule, clickFunction: () => void, icon: AdaptableSystemIconName, isVisible: boolean);
16
16
  onClick: () => void;
17
17
  label: string;
18
18
  module: AdaptableModule;
@@ -20,7 +20,7 @@ export declare class MenuItemDoClickFunction implements AdaptableMenuItem {
20
20
  icon: AdaptableIcon;
21
21
  }
22
22
  export declare class MenuItemShowPopup implements AdaptableMenuItem {
23
- constructor(label: string, module: AdaptableModule, componentName: string, icon: AdaptableInternalIconName, isVisible: boolean, popupParams?: ModuleParams);
23
+ constructor(label: string, module: AdaptableModule, componentName: string, icon: AdaptableSystemIconName, isVisible: boolean, popupParams?: ModuleParams);
24
24
  reduxAction: Redux.Action;
25
25
  label: string;
26
26
  module: AdaptableModule;
@@ -50,7 +50,11 @@ class MetamodelService {
50
50
  Object.entries(optionsObject).forEach(([optionKey, optionValue]) => {
51
51
  var _a;
52
52
  if (optionKey === 'gridOptions') {
53
- // gridOptions is aspecial case as it's NOT a public property, but we set and use it internally
53
+ validationErrors.push('gridOptions was removed from AdapTable Options in Version 16 and is no longer used');
54
+ return;
55
+ }
56
+ if (optionKey === '_gridOptions') {
57
+ // gridOptions is a special case as it's NOT a public property, but we set and use it internally
54
58
  return;
55
59
  }
56
60
  const optionMetamodel = (_a = optionsObjectMetamodel === null || optionsObjectMetamodel === void 0 ? void 0 : optionsObjectMetamodel.props) === null || _a === void 0 ? void 0 : _a.find((metamodelProperty) => metamodelProperty.name === optionKey);
@@ -140,7 +140,7 @@ class ModuleService {
140
140
  case 'OpenFin':
141
141
  return learnUrl + 'integrations-openfin';
142
142
  case 'StyledColumn':
143
- return learnUrl + 'handbook-styled-column-overview';
143
+ return learnUrl + 'handbook-column-formatting#styled-columns';
144
144
  case 'Charting':
145
145
  return learnUrl + 'handbook-charts';
146
146
  default:
@@ -92,7 +92,7 @@ class QueryLanguageService {
92
92
  return result;
93
93
  }
94
94
  const force = (_a = config === null || config === void 0 ? void 0 : config.force) !== null && _a !== void 0 ? _a : false;
95
- // get searchOptions to see if validation should be performed
95
+ // see if validation should be performed
96
96
  if (!this.adaptableApi.optionsApi.getAdaptableQLOptions().expressionOptions
97
97
  .performExpressionValidation &&
98
98
  !force) {
@@ -25,7 +25,7 @@ class RowEditService {
25
25
  if (actionRowSubmittedInfo.type === 'rowCreated') {
26
26
  const { formData } = actionRowSubmittedInfo;
27
27
  const setPrimaryKeyValueFunction = adaptableApi.internalApi.getAdaptableInstance().adaptableOptions.actionRowOptions
28
- .actionRowButtonOptions.setPrimaryKeyValue;
28
+ .setPrimaryKeyValue;
29
29
  const newRowData = typeof setPrimaryKeyValueFunction === 'function'
30
30
  ? setPrimaryKeyValueFunction({
31
31
  rowData: formData,
@@ -6,6 +6,7 @@ import { TypeUuid } from '../../PredefinedConfig/Uuid';
6
6
  import { AdaptableApi } from '../../../types';
7
7
  export declare class TeamSharingService implements ITeamSharingService {
8
8
  private adaptableApi;
9
+ private dismissedNotifications;
9
10
  private updateCheckTimerId;
10
11
  constructor(adaptableApi: AdaptableApi);
11
12
  buildCustomSharedEntity(Entity: any, Configuration: CustomSharedEntityConfig): CustomSharedEntity;
@@ -16,6 +17,7 @@ export declare class TeamSharingService implements ITeamSharingService {
16
17
  getSharedEntityLocalAndRemoteRevisions(changedAdaptableObjectId: TypeUuid, remoteSharedEntities: AdaptableSharedEntity[]): [number, number];
17
18
  getStaleActiveSharedEntities(): SharedEntityActiveStatus;
18
19
  showUpdateNotifications(): void;
20
+ private showUpdateNotificationAlert;
19
21
  destroy(): void;
20
22
  private createSharedEntity;
21
23
  private getSharedEntityDependencyTree;
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TeamSharingService = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  const Uuid_1 = require("../../PredefinedConfig/Uuid");
6
+ const ObjectFactory_1 = tslib_1.__importDefault(require("../ObjectFactory"));
5
7
  class TeamSharingService {
6
8
  constructor(adaptableApi) {
7
9
  this.adaptableApi = adaptableApi;
10
+ this.dismissedNotifications = [];
8
11
  const teamSharingOptions = adaptableApi.optionsApi.getTeamSharingOptions();
9
12
  if (teamSharingOptions.updateInterval > 0) {
10
13
  // convert minutes to millis
@@ -132,9 +135,7 @@ class TeamSharingService {
132
135
  Object.values(this.getStaleActiveSharedEntities()).forEach((sharedEntityActiveInfo) => {
133
136
  const notificationMessage = `Active share ${sharedEntityActiveInfo.sharedEntity.Module} has a new Revision: ${sharedEntityActiveInfo.sharedEntity.Revision}`;
134
137
  if (updateNotification === 'Alert' || updateNotification === 'AlertWithNotification') {
135
- this.adaptableApi.alertApi.showAlert('TeamSharing', notificationMessage, 'Info', {
136
- DisplayNotification: updateNotification === 'AlertWithNotification',
137
- });
138
+ this.showUpdateNotificationAlert(sharedEntityActiveInfo, notificationMessage);
138
139
  }
139
140
  if (updateNotification === 'SystemStatus') {
140
141
  this.adaptableApi.systemStatusApi.setInfoSystemStatus(`TeamSharing: ${notificationMessage}`);
@@ -142,6 +143,62 @@ class TeamSharingService {
142
143
  this.adaptableApi.teamSharingApi.internalApi.fireTeamSharingEntityChangedEvent(sharedEntityActiveInfo.sharedEntity);
143
144
  });
144
145
  }
146
+ showUpdateNotificationAlert(sharedEntityActiveInfo, message) {
147
+ const { updateNotification, showUpdateNotificationOncePerUpdate } = this.adaptableApi.optionsApi.getTeamSharingOptions();
148
+ if (this.dismissedNotifications.some((notification) => notification.entityUuid === sharedEntityActiveInfo.sharedEntity.Uuid)) {
149
+ return;
150
+ }
151
+ const buttons = [
152
+ {
153
+ Label: 'Ok',
154
+ ButtonStyle: {
155
+ tone: 'neutral',
156
+ variant: 'raised',
157
+ },
158
+ },
159
+ {
160
+ Label: 'Import',
161
+ Action: (context) => {
162
+ this.adaptableApi.teamSharingApi.importSharedEntry(sharedEntityActiveInfo.sharedEntity);
163
+ },
164
+ ButtonStyle: {
165
+ tone: 'info',
166
+ variant: 'raised',
167
+ },
168
+ },
169
+ ];
170
+ if (!showUpdateNotificationOncePerUpdate) {
171
+ buttons.push({
172
+ Label: 'Dismiss',
173
+ ButtonStyle: {
174
+ tone: 'error',
175
+ variant: 'raised',
176
+ },
177
+ Action: () => {
178
+ this.dismissedNotifications.push({
179
+ entityUuid: sharedEntityActiveInfo.sharedEntity.Uuid,
180
+ });
181
+ },
182
+ });
183
+ }
184
+ const alert = {
185
+ alertType: 'generic',
186
+ header: 'Team Sharing Update',
187
+ message: message,
188
+ alertDefinition: Object.assign(Object.assign({}, ObjectFactory_1.default.CreateEmptyAlertDefinition()), { MessageType: 'Info', AlertProperties: {
189
+ DisplayNotification: updateNotification === 'AlertWithNotification',
190
+ NotificationDuration: 'always',
191
+ }, AlertForm: {
192
+ Buttons: buttons,
193
+ } }),
194
+ };
195
+ this.adaptableApi.alertApi.showAdaptableAlert(alert);
196
+ if (showUpdateNotificationOncePerUpdate) {
197
+ this.dismissedNotifications.push({
198
+ entityUuid: sharedEntityActiveInfo.sharedEntity.Uuid,
199
+ });
200
+ }
201
+ }
145
202
  destroy() {
146
203
  clearTimeout(this.updateCheckTimerId);
147
204
  }
@@ -64,13 +64,17 @@ class ValidationService {
64
64
  IsAlertDefinitionTriggered(alertDefinition, dataChangedEvent) {
65
65
  var _a;
66
66
  const displayValue = this.adaptableApi.gridApi.getDisplayValueFromRowNode(dataChangedEvent.rowNode, dataChangedEvent.column.columnId);
67
- return this.adaptableApi.predicateApi.handlePredicates((_a = alertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, {
67
+ const predicateDefHandlerContext = {
68
68
  value: dataChangedEvent.newValue,
69
69
  oldValue: dataChangedEvent.oldValue,
70
70
  displayValue,
71
71
  node: dataChangedEvent.rowNode,
72
72
  column: dataChangedEvent.column,
73
- }, false);
73
+ adaptableApi: this.adaptableApi,
74
+ userName: this.adaptableApi.optionsApi.getUserName(),
75
+ adaptableId: this.adaptableApi.optionsApi.getAdaptableId(),
76
+ };
77
+ return this.adaptableApi.predicateApi.handlePredicates((_a = alertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, predicateDefHandlerContext, false);
74
78
  }
75
79
  performServerValidation(cellDataChangedInfo, config) {
76
80
  const serverValidationContext = {
@@ -77,7 +77,7 @@ const useChartingElements = ({ elementType, accessLevel, size = 'normal', }) =>
77
77
  }
78
78
  const chartSelector = (React.createElement(DropdownButton_1.default, { style: style, width: "100%", columns: ['label'], className: `ab-${elementType}__Chart__select`, items: options, disabled: !hasCharts }, content));
79
79
  const containerSelector = Boolean(chartContainers === null || chartContainers === void 0 ? void 0 : chartContainers.length) && (React.createElement(DropdownButton_1.default, { style: style, width: "100%", columns: ['label'], items: containerOptions, disabled: !isSelectedChart }, (selectedContainer === null || selectedContainer === void 0 ? void 0 : selectedContainer.name) || chartingOptions.agGridContainerName || GeneralConstants_1.AG_GRID_CHART_WINDOW));
80
- const chartButton = (React.createElement(SimpleButton_1.default, { style: style, mr: 1, onClick: () => (isOpen ? closeChart() : showChart(selectedContainer)), disabled: !Boolean(selectedChart), variant: 'text', tone: 'neutral', icon: isOpen ? 'visibility-off' : 'visibility', tooltip: isOpen ? 'Hide Chart' : 'Show Chart' }));
80
+ const chartButton = (React.createElement(SimpleButton_1.default, { style: style, mr: 1, onClick: () => (isOpen ? closeChart() : showChart(selectedContainer)), disabled: !Boolean(selectedChart), variant: 'text', tone: 'neutral', icon: isOpen ? 'visibility-off' : 'visibility-on', tooltip: isOpen ? 'Hide Chart' : 'Show Chart' }));
81
81
  const deleteButton = (React.createElement(DeleteChartButton_1.DeleteChartButton, { iconSize: iconSize, chart: selectedChart, accessLevel: chartAccessLevel }));
82
82
  const editButton = (React.createElement(EditChartButton_1.EditChartButton, { iconSize: iconSize, chart: selectedChart, accessLevel: chartAccessLevel, isOpen: isOpen }));
83
83
  return {
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { SimpleButtonProps } from '../../../components/SimpleButton';
3
+ export declare const AdaptableButtonComponent: React.FunctionComponent<SimpleButtonProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdaptableButtonComponent = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const Icon_1 = require("../../../components/Icon");
7
+ const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
8
+ const AdaptableContext_1 = require("../../AdaptableContext");
9
+ // This component is connected to adaptable and know about custom icons
10
+ const AdaptableButtonComponent = (props) => {
11
+ let icon = props.icon;
12
+ const adaptable = (0, AdaptableContext_1.useAdaptable)();
13
+ if ((0, Icon_1.isAdaptableSystemIcon)(icon)) {
14
+ icon = adaptable.api.userInterfaceApi.internalApi.prepareAdaptableIconDef(icon);
15
+ }
16
+ return React.createElement(SimpleButton_1.default, Object.assign({}, props, { icon: icon }));
17
+ };
18
+ exports.AdaptableButtonComponent = AdaptableButtonComponent;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { IconComponentProps } from '../../../components/Icon';
3
+ /**
4
+ * This is a connected componnet.
5
+ * It needs to be used only inside adaptable context.
6
+ */
7
+ export declare const AdaptableIconComponent: React.FunctionComponent<IconComponentProps>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdaptableIconComponent = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const Icon_1 = require("../../../components/Icon");
7
+ const useCustomIcon_1 = require("./useCustomIcon");
8
+ /**
9
+ * This is a connected componnet.
10
+ * It needs to be used only inside adaptable context.
11
+ */
12
+ const AdaptableIconComponent = (props) => {
13
+ const icon = (0, useCustomIcon_1.useCustomIcon)(props.icon);
14
+ return React.createElement(Icon_1.IconComponent, Object.assign({}, props, { icon: icon }));
15
+ };
16
+ exports.AdaptableIconComponent = AdaptableIconComponent;
@@ -0,0 +1,2 @@
1
+ import { AdaptableIcon } from '../../../types';
2
+ export declare const useCustomIcon: (icon: AdaptableIcon) => AdaptableIcon;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useCustomIcon = void 0;
4
+ const AdaptableContext_1 = require("../../AdaptableContext");
5
+ const useCustomIcon = (icon) => {
6
+ const adaptable = (0, AdaptableContext_1.useAdaptable)();
7
+ if (!icon) {
8
+ return icon;
9
+ }
10
+ return adaptable.api.userInterfaceApi.internalApi.prepareAdaptableIconDef(icon);
11
+ };
12
+ exports.useCustomIcon = useCustomIcon;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { AdaptableIcon, AdaptableStyle } from '../../types';
2
+ import { AdaptableIcon, AdaptableStyle } from '../../../types';
3
3
  export interface BadgeProps {
4
4
  adaptableStyle: AdaptableStyle;
5
5
  icon?: AdaptableIcon;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Badge = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
- const StyleHelper_1 = require("../../Utilities/Helpers/StyleHelper");
6
+ const StyleHelper_1 = require("../../../Utilities/Helpers/StyleHelper");
7
7
  const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
8
8
  const Badge = (props) => {
9
9
  const { iconPosition = 'start', icon: iconProps } = props;
@@ -125,7 +125,7 @@ class FilterFormComponent extends React.Component {
125
125
  const filterOptions = this.props.api.optionsApi.getFilterOptions();
126
126
  const predicateDefs = this.props.api.filterApi
127
127
  .getFilterPredicateDefsForColumn(this.props.currentColumn)
128
- .filter((predicate) => !predicate.onlyQuickFilter);
128
+ .filter((predicate) => predicate.id !== 'BooleanToggle');
129
129
  let uiSelectedColumnValues = ((_b = (_a = this.state.editedColumnFilter) === null || _a === void 0 ? void 0 : _a.Predicate) === null || _b === void 0 ? void 0 : _b.PredicateId) === 'Values'
130
130
  ? this.state.editedColumnFilter.Predicate.Inputs
131
131
  : [];
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const ListGroupItem_1 = tslib_1.__importDefault(require("../../../components/List/ListGroupItem"));
7
7
  const ListGroup_1 = tslib_1.__importDefault(require("../../../components/List/ListGroup"));
8
- const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
8
+ const Icon_1 = require("../../../components/Icon");
9
9
  class ListBoxMenu extends React.Component {
10
10
  constructor(props) {
11
11
  super(props);
@@ -14,7 +14,7 @@ class ListBoxMenu extends React.Component {
14
14
  render() {
15
15
  let menuItems = this.props.MenuItems.map((menuItem, index) => {
16
16
  return (React.createElement(ListGroupItem_1.default, { key: index, onClick: () => this.onClick(menuItem) },
17
- menuItem.icon && React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: menuItem.icon }),
17
+ menuItem.icon && React.createElement(Icon_1.IconComponent, { icon: menuItem.icon }),
18
18
  menuItem.label));
19
19
  });
20
20
  return (React.createElement("div", { style: divStyle },