@adaptabletools/adaptable 10.0.4-canary.5 → 11.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.
- package/base.css +19 -15
- package/bundle.cjs.js +121 -115
- package/index.css +20 -17
- package/package.json +32 -32
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +9 -4
- package/src/AdaptableOptions/AdaptableOptions.d.ts +13 -2
- package/src/AdaptableOptions/ContainerOptions.d.ts +0 -7
- package/src/AdaptableOptions/DashboardOptions.d.ts +7 -9
- package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +31 -0
- package/src/AdaptableOptions/{ChartPluginOptions.js → FlashingCellOptions.js} +0 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +2 -2
- package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -7
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +14 -2
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +1 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -15
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -0
- package/src/Api/AdaptableApi.d.ts +6 -6
- package/src/Api/ChartingApi.d.ts +9 -0
- package/src/Api/{ChartApi.js → ChartingApi.js} +0 -0
- package/src/Api/ColumnApi.d.ts +11 -1
- package/src/Api/ConfigApi.d.ts +0 -12
- package/src/Api/EventApi.d.ts +3 -3
- package/src/Api/Events/AdaptableReady.d.ts +1 -1
- package/src/Api/Events/FlashingCellDisplayed.d.ts +2 -2
- package/src/Api/Events/SearchChanged.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +35 -24
- package/src/Api/GridApi.d.ts +3 -3
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +5 -0
- package/src/Api/Implementation/ChartingApiImpl.js +10 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ColumnApiImpl.js +9 -3
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ConfigApiImpl.js +0 -16
- package/src/Api/Implementation/DashboardApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -4
- package/src/Api/Implementation/FlashingCellApiImpl.js +42 -29
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
- package/src/Api/Implementation/GridApiImpl.js +5 -1
- package/src/Api/Implementation/InternalApiImpl.d.ts +0 -5
- package/src/Api/Implementation/InternalApiImpl.js +1 -15
- package/src/Api/Implementation/LayoutApiImpl.js +1 -1
- package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
- package/src/Api/Implementation/PluginsApiImpl.js +0 -6
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/QueryApiImpl.js +1 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/InternalApi.d.ts +0 -5
- package/src/Api/PluginsApi.d.ts +0 -2
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -38
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +15 -19
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +0 -2
- package/src/PredefinedConfig/DashboardState.d.ts +4 -4
- package/src/PredefinedConfig/FlashingCellState.d.ts +16 -20
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
- package/src/PredefinedConfig/SystemState.d.ts +0 -4
- package/src/PredefinedConfig/ThemeState.d.ts +2 -1
- package/src/Redux/ActionsReducers/DashboardRedux.d.ts +0 -7
- package/src/Redux/ActionsReducers/DashboardRedux.js +2 -12
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +0 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +0 -12
- package/src/Redux/ActionsReducers/SystemRedux.js +1 -21
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +1 -2
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
- package/src/Redux/Store/AdaptableStore.js +21 -21
- package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.js +0 -3
- package/src/Strategy/AlertModule.js +2 -2
- package/src/Strategy/CalculatedColumnModule.js +17 -12
- package/src/Strategy/ChartingModule.d.ts +7 -0
- package/src/Strategy/ChartingModule.js +15 -0
- package/src/Strategy/ConditionalStyleModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/FilterModule.js +3 -2
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.js +35 -19
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/Interface/IModule.d.ts +0 -1
- package/src/Strategy/LayoutModule.js +15 -3
- package/src/Strategy/QueryModule.d.ts +1 -1
- package/src/Strategy/QueryModule.js +1 -3
- package/src/Strategy/SetingsPanelModule.d.ts +1 -0
- package/src/Strategy/SetingsPanelModule.js +7 -1
- package/src/Strategy/TeamSharingModule.js +1 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +11 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +10 -0
- package/src/Utilities/Constants/ConfigConstants.d.ts +0 -1
- package/src/Utilities/Constants/ConfigConstants.js +1 -2
- package/src/Utilities/Constants/GeneralConstants.d.ts +0 -9
- package/src/Utilities/Constants/GeneralConstants.js +1 -12
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -2
- package/src/Utilities/Constants/ModuleConstants.js +2 -3
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +19 -18
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +2 -1
- package/src/Utilities/ExpressionFunctions/aggregationExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +1 -1
- package/src/Utilities/Extensions/StringExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +4 -4
- package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
- package/src/Utilities/ObjectFactory.d.ts +0 -10
- package/src/Utilities/ObjectFactory.js +6 -67
- package/src/Utilities/Services/EntitlementService.js +1 -1
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/ModuleService.js +7 -11
- package/src/Utilities/Services/ReportService.js +1 -1
- package/src/View/AdaptableView.js +2 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +4 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +3 -3
- package/src/View/AdaptableWizardView/index.js +1 -1
- package/src/View/Alert/AlertEmptyView.js +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertWizard.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +0 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +11 -24
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +16 -4
- package/src/View/Components/FilterForm/QuickFilterForm.js +2 -2
- package/src/View/Components/ModuleValueSelector/index.d.ts +3 -1
- package/src/View/Components/ModuleValueSelector/index.js +1 -1
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +9 -7
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
- package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +46 -81
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +11 -4
- package/src/View/Components/ValueSelector/index.d.ts +2 -0
- package/src/View/Components/ValueSelector/index.js +5 -5
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +10 -5
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +16 -4
- package/src/View/Dashboard/Dashboard.js +14 -36
- package/src/View/Dashboard/DashboardPopup.js +24 -16
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -2
- package/src/View/Export/Wizard/NewReportWizard.js +13 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
- package/src/View/FlashingCell/Wizard/{FlashingCellDurationWizardSection.d.ts → FlashingCellSettingsWizardSection.d.ts} +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +81 -0
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +6 -8
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +10 -5
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +8 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +13 -5
- package/src/View/GridInfo/GridInfoPopup.js +3 -2
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
- package/src/View/Query/QueryViewPanel.js +12 -9
- package/src/View/Query/Wizard/NamedQueryWizard.js +13 -8
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
- package/src/View/Shortcut/shortcutKeys.js +0 -1
- package/src/View/SpecialColumnSettingsWizardStep.d.ts +9 -0
- package/src/View/SpecialColumnSettingsWizardStep.js +63 -0
- package/src/View/UIHelper.d.ts +0 -4
- package/src/View/UIHelper.js +1 -34
- package/src/View/Wizard/AdaptableWizard.js +1 -1
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +1 -1
- package/src/agGrid/Adaptable.d.ts +10 -7
- package/src/agGrid/Adaptable.js +80 -57
- package/src/agGrid/agGridHelper.d.ts +1 -2
- package/src/agGrid/agGridHelper.js +8 -5
- package/src/agGrid/agGridMenuHelper.js +12 -8
- package/src/components/ApplicationIcon.d.ts +1 -1
- package/src/components/Dashboard/Dashboard.js +1 -1
- package/src/components/Dashboard/DashboardManager.d.ts +5 -3
- package/src/components/Dashboard/DashboardManager.js +33 -27
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/Overlay.js +1 -1
- package/src/components/WindowModal/WindowModal.js +17 -2
- package/src/components/icons/column-add.d.ts +3 -0
- package/src/components/icons/column-add.js +10 -0
- package/src/components/icons/index.js +2 -0
- package/src/components/utils/useDraggable.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +58 -91
- package/src/metamodel/adaptable.metamodel.js +248 -297
- package/src/types.d.ts +4 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/ChartPluginOptions.d.ts +0 -20
- package/src/Api/ChartApi.d.ts +0 -20
- package/src/Api/Implementation/SparklineColumnApiImpl.d.ts +0 -9
- package/src/Api/Implementation/SparklineColumnApiImpl.js +0 -24
- package/src/Api/SparklineColumnApi.d.ts +0 -23
- package/src/Api/SparklineColumnApi.js +0 -2
- package/src/PredefinedConfig/ChartState.d.ts +0 -144
- package/src/PredefinedConfig/ChartState.js +0 -2
- package/src/PredefinedConfig/Common/ChartEnums.d.ts +0 -123
- package/src/PredefinedConfig/Common/ChartEnums.js +0 -152
- package/src/PredefinedConfig/SparklineColumnState.d.ts +0 -40
- package/src/PredefinedConfig/SparklineColumnState.js +0 -2
- package/src/Redux/ActionsReducers/SparklineColumnRedux.d.ts +0 -35
- package/src/Redux/ActionsReducers/SparklineColumnRedux.js +0 -70
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.js +0 -56
- package/src/Utilities/Defaults/DefaultPieChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultPieChartProperties.js +0 -13
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.js +0 -25
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.d.ts +0 -11
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.js +0 -28
- package/src/View/Components/Popups/AdaptableChart.d.ts +0 -18
- package/src/View/Components/Popups/AdaptableChart.js +0 -40
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.d.ts +0 -7
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.js +0 -2
- package/src/View/FlashingCell/Wizard/FlashingCellDurationWizardSection.js +0 -60
- package/src/components/ChartContainer/index.d.ts +0 -15
- package/src/components/ChartContainer/index.js +0 -22
|
@@ -8,7 +8,7 @@ import { BaseEventInfo } from './BaseEventInfo';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface SearchChangedInfo extends BaseEventInfo {
|
|
10
10
|
/**
|
|
11
|
-
* What
|
|
11
|
+
* What search-related change caused the event to fire
|
|
12
12
|
*/
|
|
13
13
|
searchChangedTrigger: 'DataSource' | 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort';
|
|
14
14
|
/**
|
|
@@ -1,78 +1,89 @@
|
|
|
1
1
|
import { AdaptableFlashingCell } from '../PredefinedConfig/Common/AdaptableFlashingCell';
|
|
2
|
+
import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
|
|
3
|
+
import { AdaptableScope } from '../PredefinedConfig/Common/AdaptableScope';
|
|
2
4
|
import { FlashingCellDefinition, FlashingCellState } from '../PredefinedConfig/FlashingCellState';
|
|
3
5
|
/**
|
|
4
|
-
* Provides run-time access to
|
|
6
|
+
* Provides run-time access to Flashing Cell functionality and associated State
|
|
5
7
|
*/
|
|
6
8
|
export interface FlashingCellApi {
|
|
7
9
|
/**
|
|
8
|
-
* Retrieves
|
|
9
|
-
* @returns
|
|
10
|
+
* Retrieves Flashing Cell section from Adaptable State
|
|
11
|
+
* @returns Flashing Cell state
|
|
10
12
|
*/
|
|
11
13
|
getFlashingCellState(): FlashingCellState;
|
|
12
14
|
/**
|
|
13
|
-
* Retrieves all Flashing cell Definitions in
|
|
15
|
+
* Retrieves all Flashing cell Definitions in Flashing Cell State
|
|
14
16
|
*/
|
|
15
17
|
getFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
16
18
|
/**
|
|
17
19
|
* Retrieves Flashing cell Definition By Id
|
|
18
|
-
* @param id Flashing
|
|
20
|
+
* @param id Flashing Cell Definition Id
|
|
19
21
|
* @returns flashing cell definition
|
|
20
22
|
*/
|
|
21
23
|
getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid']): FlashingCellDefinition;
|
|
22
24
|
/**
|
|
23
|
-
* Retrieves all cell Definitions in
|
|
25
|
+
* Retrieves all active (non-suspended) cell Definitions in Flashing Cell State
|
|
24
26
|
* @returns flashing cell definitions
|
|
25
27
|
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves all active (non-suspended) cell Definitions in Alert State which are NOT Reactive (BooleanQuery)
|
|
29
|
-
* @returns flashing cell definitions
|
|
30
|
-
*/
|
|
31
|
-
getActiveNonReactiveFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
28
|
+
getActiveFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
32
29
|
/**
|
|
33
30
|
* Returns where a Flashing cell Definition will flash a single cell or a whole row
|
|
34
31
|
* @param flashingCellDefinition Flashing cell Definition to check
|
|
35
32
|
*/
|
|
36
33
|
getFlashingCellFlashTarget(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition['FlashTarget'];
|
|
37
34
|
/**
|
|
38
|
-
* Displays a Flashing
|
|
39
|
-
* @param flashingCellToShow Flashing
|
|
35
|
+
* Displays a Flashing Cell Definition
|
|
36
|
+
* @param flashingCellToShow Flashing Cell Definition to show
|
|
40
37
|
*/
|
|
41
38
|
showFlashingCell(flashingCellToShow: AdaptableFlashingCell): void;
|
|
42
39
|
/**
|
|
43
|
-
* Edits Flashing
|
|
44
|
-
* @param flashingCellDefinition Flashing
|
|
45
|
-
* @returns
|
|
40
|
+
* Edits Flashing Cell Definition in State with given one
|
|
41
|
+
* @param flashingCellDefinition Flashing Cell Definition to Edit
|
|
42
|
+
* @returns flashing definition
|
|
46
43
|
*/
|
|
47
44
|
editFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
48
45
|
/**
|
|
49
46
|
* Edits provided Flashing cell Definitions
|
|
50
|
-
* @param flashingCellDefinitions Flashing
|
|
51
|
-
* @returns flashing
|
|
47
|
+
* @param flashingCellDefinitions Flashing Cell Definitions to Edit
|
|
48
|
+
* @returns flashing cell definitions
|
|
52
49
|
*/
|
|
53
50
|
editFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
|
|
54
51
|
/**
|
|
55
52
|
* Adds a Flashing cell Definition to State
|
|
56
|
-
* @param flashingCellDefinition Flashing
|
|
53
|
+
* @param flashingCellDefinition Flashing Cell Definition to Add
|
|
57
54
|
*/
|
|
58
55
|
addFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
59
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Sets a collection of Flashing Cell Definitions into State
|
|
58
|
+
* @param flashingCellDefinitions Flashing Cell Definitions to Add to State
|
|
59
|
+
*/
|
|
60
|
+
setFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): void;
|
|
61
|
+
mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
60
62
|
/**
|
|
61
63
|
* Adds provided Flashing cell Definitions
|
|
62
|
-
* @param flashingCellDefinitions Flashing
|
|
64
|
+
* @param flashingCellDefinitions Flashing Cell Definition to Add
|
|
63
65
|
* @returns flashing cell definition
|
|
64
66
|
*/
|
|
65
67
|
addFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
|
|
66
68
|
/**
|
|
67
69
|
* Suspends a Flashing cell Definition
|
|
68
|
-
* @param flashingCellDefinition
|
|
70
|
+
* @param flashingCellDefinition Flashing Cell Definition to Suspend
|
|
69
71
|
* @returns flashing cell definition
|
|
70
72
|
*/
|
|
71
73
|
suspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
72
74
|
/**
|
|
73
75
|
* Activates a suspended Flashing cell Definition
|
|
74
|
-
* @param flashingCellDefinition Flashing
|
|
76
|
+
* @param flashingCellDefinition Flashing Cell Definition to Un-Suspend (activate)
|
|
75
77
|
* @returns flashing cell definition
|
|
76
78
|
*/
|
|
77
79
|
unSuspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
80
|
+
/**
|
|
81
|
+
* Retrieves all Predicate Defs with Module Scope of Flashing Cell
|
|
82
|
+
*/
|
|
83
|
+
getFlashingCellPredicateDefs(): AdaptablePredicateDef[];
|
|
84
|
+
/**
|
|
85
|
+
* Retrieves all Predicate Defs that match given Scope
|
|
86
|
+
* @param scope the Scope to check
|
|
87
|
+
*/
|
|
88
|
+
getFlashingCellPredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
78
89
|
}
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -41,19 +41,19 @@ export interface GridApi {
|
|
|
41
41
|
* @param dataRows rows which have been updated - send whole row and Adaptable will take care of the rest
|
|
42
42
|
* @param config batch option and callback function to run post update
|
|
43
43
|
*/
|
|
44
|
-
updateGridData(dataRows: any[], config?: DataUpdateConfig):
|
|
44
|
+
updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
|
|
45
45
|
/**
|
|
46
46
|
* Adds rows to Adaptable (and AG Grid)
|
|
47
47
|
* @param dataRows rows to add; ensure all 'mandatory' fields are included and Primary Key is unique
|
|
48
48
|
* @param config batch option and callback function to run post addition
|
|
49
49
|
*/
|
|
50
|
-
addGridData(dataRows: any[], config?: DataUpdateConfig):
|
|
50
|
+
addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
|
|
51
51
|
/**
|
|
52
52
|
* Deletes rows from Adaptable (and AG Grid)
|
|
53
53
|
* @param dataRows rows which should be deleted
|
|
54
54
|
* @param config batch option and callback function to run post deletion
|
|
55
55
|
*/
|
|
56
|
-
deleteGridData(dataRows: any[], config?: DataUpdateConfig):
|
|
56
|
+
deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
|
|
57
57
|
/**
|
|
58
58
|
* Updates cell in Adaptable (first performs Cell & Server Validation)
|
|
59
59
|
* @param columnId column to update
|
|
@@ -21,7 +21,6 @@ import { PlusMinusApi } from '../PlusMinusApi';
|
|
|
21
21
|
import { QuickSearchApi } from '../QuickSearchApi';
|
|
22
22
|
import { ShortcutApi } from '../ShortcutApi';
|
|
23
23
|
import { SmartEditApi } from '../SmartEditApi';
|
|
24
|
-
import { SparklineColumnApi } from '../SparklineColumnApi';
|
|
25
24
|
import { FilterApi } from '../FilterApi';
|
|
26
25
|
import { SystemStatusApi } from '../SystemStatusApi';
|
|
27
26
|
import { UserInterfaceApi } from '../UserInterfaceApi';
|
|
@@ -37,6 +36,7 @@ import { ScopeApi } from '../ScopeApi';
|
|
|
37
36
|
import { PredicateApi } from '../PredicateApi';
|
|
38
37
|
import { DataChangeHistoryApi } from '../DataChangeHistoryApi';
|
|
39
38
|
import { FlashingCellApi } from '../FlashingCellApi';
|
|
39
|
+
import { ChartingApi } from '../ChartingApi';
|
|
40
40
|
export declare class AdaptableApiImpl implements AdaptableApi {
|
|
41
41
|
protected adaptable: IAdaptable;
|
|
42
42
|
applicationApi: ApplicationApi;
|
|
@@ -64,7 +64,6 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
64
64
|
scheduleApi: ScheduleApi;
|
|
65
65
|
shortcutApi: ShortcutApi;
|
|
66
66
|
smartEditApi: SmartEditApi;
|
|
67
|
-
sparklineColumnApi: SparklineColumnApi;
|
|
68
67
|
filterApi: FilterApi;
|
|
69
68
|
systemStatusApi: SystemStatusApi;
|
|
70
69
|
pluginsApi: PluginsApi;
|
|
@@ -76,6 +75,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
76
75
|
teamSharingApi: TeamSharingApi;
|
|
77
76
|
scopeApi: ScopeApi;
|
|
78
77
|
dataChangeHistoryApi: DataChangeHistoryApi;
|
|
78
|
+
chartingApi: ChartingApi;
|
|
79
79
|
constructor(adaptable: IAdaptable);
|
|
80
80
|
destroy(config?: {
|
|
81
81
|
unmount: boolean;
|
|
@@ -23,7 +23,6 @@ const PlusMinusApiImpl_1 = require("./PlusMinusApiImpl");
|
|
|
23
23
|
const QuickSearchApiImpl_1 = require("./QuickSearchApiImpl");
|
|
24
24
|
const ShortcutApiImpl_1 = require("./ShortcutApiImpl");
|
|
25
25
|
const SmartEditApiImpl_1 = require("./SmartEditApiImpl");
|
|
26
|
-
const SparklineColumnApiImpl_1 = require("./SparklineColumnApiImpl");
|
|
27
26
|
const FilterApiImpl_1 = require("./FilterApiImpl");
|
|
28
27
|
const SystemStatusApiImpl_1 = require("./SystemStatusApiImpl");
|
|
29
28
|
const ThemeApiImpl_1 = require("./ThemeApiImpl");
|
|
@@ -38,6 +37,7 @@ const ScopeApiImpl_1 = require("./ScopeApiImpl");
|
|
|
38
37
|
const DataChangeHistoryApiImpl_1 = require("./DataChangeHistoryApiImpl");
|
|
39
38
|
const QueryLanguageApiImpl_1 = require("./QueryLanguageApiImpl");
|
|
40
39
|
const FlashingCellApiImpl_1 = require("./FlashingCellApiImpl");
|
|
40
|
+
const ChartingApiImpl_1 = require("./ChartingApiImpl");
|
|
41
41
|
class AdaptableApiImpl {
|
|
42
42
|
constructor(adaptable) {
|
|
43
43
|
this.adaptable = adaptable;
|
|
@@ -67,7 +67,6 @@ class AdaptableApiImpl {
|
|
|
67
67
|
this.scheduleApi = new ScheduleApiImpl_1.ScheduleApiImpl(adaptable);
|
|
68
68
|
this.shortcutApi = new ShortcutApiImpl_1.ShortcutApiImpl(adaptable);
|
|
69
69
|
this.smartEditApi = new SmartEditApiImpl_1.SmartEditApiImpl(adaptable);
|
|
70
|
-
this.sparklineColumnApi = new SparklineColumnApiImpl_1.SparklineColumnApiImpl(adaptable);
|
|
71
70
|
this.filterApi = new FilterApiImpl_1.FilterApiImpl(adaptable);
|
|
72
71
|
this.systemStatusApi = new SystemStatusApiImpl_1.SystemStatusApiImpl(adaptable);
|
|
73
72
|
this.themeApi = new ThemeApiImpl_1.ThemeApiImpl(adaptable);
|
|
@@ -78,6 +77,7 @@ class AdaptableApiImpl {
|
|
|
78
77
|
this.teamSharingApi = new TeamSharingApiImpl_1.TeamSharingApiImpl(adaptable);
|
|
79
78
|
this.scopeApi = new ScopeApiImpl_1.ScopeApiImpl(adaptable);
|
|
80
79
|
this.dataChangeHistoryApi = new DataChangeHistoryApiImpl_1.DataChangeHistoryApiImpl(adaptable);
|
|
80
|
+
this.chartingApi = new ChartingApiImpl_1.ChartingApiImpl(adaptable);
|
|
81
81
|
this.internalApi = new InternalApiImpl_1.InternalApiImpl(adaptable);
|
|
82
82
|
}
|
|
83
83
|
destroy(config) {
|
|
@@ -51,7 +51,7 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
51
|
}
|
|
52
52
|
getCalculatedColumnModuleReferences(calculatedColumn) {
|
|
53
53
|
const references = [];
|
|
54
|
-
this.adaptable.
|
|
54
|
+
this.adaptable.adaptableModules.forEach((module) => {
|
|
55
55
|
if (module
|
|
56
56
|
.getModuleCalculatedColumnReferences()
|
|
57
57
|
.some((moduleReference) => moduleReference.Uuid === calculatedColumn.Uuid)) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChartingApiImpl = void 0;
|
|
4
|
+
const ApiBase_1 = require("./ApiBase");
|
|
5
|
+
class ChartingApiImpl extends ApiBase_1.ApiBase {
|
|
6
|
+
isChartingEnabled() {
|
|
7
|
+
return this.adaptable.canGenerateCharts();
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ChartingApiImpl = ChartingApiImpl;
|
|
@@ -8,11 +8,13 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
8
8
|
getColumns(): AdaptableColumn[];
|
|
9
9
|
getVisibleColumns(): AdaptableColumn[];
|
|
10
10
|
selectColumn(columnId: string): void;
|
|
11
|
+
selectColumns(columnIds: string[]): void;
|
|
12
|
+
addColumnToSelection(columnId: string): void;
|
|
13
|
+
addColumnsToSelection(columnIds: string[]): void;
|
|
11
14
|
selectAllColumns(): void;
|
|
12
15
|
autosizeColumn(columnId: string): void;
|
|
13
16
|
autosizeColumns(columnIds: string[]): void;
|
|
14
17
|
autosizeAllColumns(): void;
|
|
15
|
-
selectColumns(columnIds: string[]): void;
|
|
16
18
|
hideColumn(columnId: string): void;
|
|
17
19
|
showColumn(columnId: string): void;
|
|
18
20
|
getAgGridColumnType(columnId: string): string | string[];
|
|
@@ -23,6 +23,15 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
23
23
|
selectColumn(columnId) {
|
|
24
24
|
this.adaptable.selectColumn(columnId);
|
|
25
25
|
}
|
|
26
|
+
selectColumns(columnIds) {
|
|
27
|
+
this.adaptable.selectColumns(columnIds);
|
|
28
|
+
}
|
|
29
|
+
addColumnToSelection(columnId) {
|
|
30
|
+
this.adaptable.selectColumn(columnId, { keepExistingSelection: true });
|
|
31
|
+
}
|
|
32
|
+
addColumnsToSelection(columnIds) {
|
|
33
|
+
this.adaptable.selectColumns(columnIds, { keepExistingSelection: true });
|
|
34
|
+
}
|
|
26
35
|
selectAllColumns() {
|
|
27
36
|
this.adaptable.selectAll();
|
|
28
37
|
}
|
|
@@ -35,9 +44,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
35
44
|
autosizeAllColumns() {
|
|
36
45
|
this.adaptable.autoSizeAllColumns();
|
|
37
46
|
}
|
|
38
|
-
selectColumns(columnIds) {
|
|
39
|
-
this.adaptable.selectColumns(columnIds);
|
|
40
|
-
}
|
|
41
47
|
hideColumn(columnId) {
|
|
42
48
|
this.adaptable.hideColumn(columnId);
|
|
43
49
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ChartState } from '../../PredefinedConfig/ChartState';
|
|
2
1
|
import { ThemeState } from '../../PredefinedConfig/ThemeState';
|
|
3
2
|
import { ShortcutState } from '../../PredefinedConfig/ShortcutState';
|
|
4
3
|
import { QuickSearchState } from '../../PredefinedConfig/QuickSearchState';
|
|
@@ -16,7 +15,6 @@ import { ConfigState } from '../../PredefinedConfig/ConfigState';
|
|
|
16
15
|
import { AdaptableState } from '../../PredefinedConfig/AdaptableState';
|
|
17
16
|
import { ApiBase } from './ApiBase';
|
|
18
17
|
import { ApplicationState } from '../../PredefinedConfig/ApplicationState';
|
|
19
|
-
import { SparklineColumnState } from '../../PredefinedConfig/SparklineColumnState';
|
|
20
18
|
import { FreeTextColumnState } from '../../PredefinedConfig/FreeTextColumnState';
|
|
21
19
|
import { FilterState } from '../../PredefinedConfig/FilterState';
|
|
22
20
|
import { ToolPanelState } from '../../PredefinedConfig/ToolPanelState';
|
|
@@ -51,7 +49,6 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
51
49
|
getAlertState(returnJson?: boolean): AlertState;
|
|
52
50
|
getApplicationState(returnJson?: boolean): ApplicationState;
|
|
53
51
|
getCalculatedColumnState(returnJson?: boolean): CalculatedColumnState;
|
|
54
|
-
getChartState(returnJson?: boolean): ChartState;
|
|
55
52
|
getConditionalStyleState(returnJson?: boolean): ConditionalStyleState;
|
|
56
53
|
getCustomSortState(returnJson?: boolean): CustomSortState;
|
|
57
54
|
getDashboardState(returnJson?: boolean): DashboardState;
|
|
@@ -66,7 +63,6 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
66
63
|
getQuickSearchState(returnJson?: boolean): QuickSearchState;
|
|
67
64
|
getScheduleState(returnJson?: boolean): ScheduleState;
|
|
68
65
|
getShortcutState(returnJson?: boolean): ShortcutState;
|
|
69
|
-
getSparklineColumnState(returnJson?: boolean): SparklineColumnState;
|
|
70
66
|
getThemeState(returnJson?: boolean): ThemeState;
|
|
71
67
|
getToolPanelState(returnJson?: boolean): ToolPanelState;
|
|
72
68
|
dispatchStateReadyAction(module: AdaptableModule): void;
|
|
@@ -77,7 +77,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
77
77
|
'Alert',
|
|
78
78
|
'Application',
|
|
79
79
|
'CalculatedColumn',
|
|
80
|
-
'Chart',
|
|
81
80
|
'ConditionalStyle',
|
|
82
81
|
'CustomSort',
|
|
83
82
|
'Dashboard',
|
|
@@ -92,7 +91,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
92
91
|
'Query',
|
|
93
92
|
'QuickSearch',
|
|
94
93
|
'Shortcut',
|
|
95
|
-
'SparklineColumn',
|
|
96
94
|
'Theme',
|
|
97
95
|
'ToolPanel',
|
|
98
96
|
];
|
|
@@ -178,10 +176,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
178
176
|
return returnJson
|
|
179
177
|
? JSON.stringify(this.getAdaptableState().CalculatedColumn)
|
|
180
178
|
: this.getAdaptableState().CalculatedColumn;
|
|
181
|
-
case 'Chart':
|
|
182
|
-
return returnJson
|
|
183
|
-
? JSON.stringify(this.getAdaptableState().Chart)
|
|
184
|
-
: this.getAdaptableState().Chart;
|
|
185
179
|
case 'ConditionalStyle':
|
|
186
180
|
return returnJson
|
|
187
181
|
? JSON.stringify(this.getAdaptableState().ConditionalStyle)
|
|
@@ -238,10 +232,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
238
232
|
return returnJson
|
|
239
233
|
? JSON.stringify(this.getAdaptableState().Shortcut)
|
|
240
234
|
: this.getAdaptableState().Shortcut;
|
|
241
|
-
case 'SparklineColumn':
|
|
242
|
-
return returnJson
|
|
243
|
-
? JSON.stringify(this.getAdaptableState().SparklineColumn)
|
|
244
|
-
: this.getAdaptableState().SparklineColumn;
|
|
245
235
|
case 'Theme':
|
|
246
236
|
return returnJson
|
|
247
237
|
? JSON.stringify(this.getAdaptableState().Theme)
|
|
@@ -266,9 +256,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
266
256
|
getCalculatedColumnState(returnJson = false) {
|
|
267
257
|
return this.getUserStateByStateKey('CalculatedColumn', returnJson);
|
|
268
258
|
}
|
|
269
|
-
getChartState(returnJson = false) {
|
|
270
|
-
return this.getUserStateByStateKey('Chart', returnJson);
|
|
271
|
-
}
|
|
272
259
|
getConditionalStyleState(returnJson = false) {
|
|
273
260
|
return this.getUserStateByStateKey('ConditionalStyle', returnJson);
|
|
274
261
|
}
|
|
@@ -311,9 +298,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
311
298
|
getShortcutState(returnJson = false) {
|
|
312
299
|
return this.getUserStateByStateKey('Shortcut', returnJson);
|
|
313
300
|
}
|
|
314
|
-
getSparklineColumnState(returnJson = false) {
|
|
315
|
-
return this.getUserStateByStateKey('SparklineColumn', returnJson);
|
|
316
|
-
}
|
|
317
301
|
getThemeState(returnJson = false) {
|
|
318
302
|
return this.getUserStateByStateKey('Theme', returnJson);
|
|
319
303
|
}
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DashboardRedux"));
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
|
-
const isEqual_1 = tslib_1.__importDefault(require("lodash
|
|
8
|
+
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
9
9
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
10
10
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
11
11
|
const react_dom_1 = tslib_1.__importDefault(require("react-dom"));
|
|
@@ -2,19 +2,23 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import { AdaptableFlashingCell } from '../../PredefinedConfig/Common/AdaptableFlashingCell';
|
|
3
3
|
import { FlashingCellApi } from '../FlashingCellApi';
|
|
4
4
|
import { FlashingCellDefinition, FlashingCellState } from '../../PredefinedConfig/FlashingCellState';
|
|
5
|
+
import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
|
|
6
|
+
import { AdaptableScope } from '../../PredefinedConfig/Common/AdaptableScope';
|
|
5
7
|
export declare class FlashingCellApiImpl extends ApiBase implements FlashingCellApi {
|
|
6
8
|
getFlashingCellState(): FlashingCellState;
|
|
9
|
+
mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
7
10
|
getFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
8
11
|
getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid']): FlashingCellDefinition;
|
|
9
|
-
|
|
10
|
-
getActiveNonReactiveFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
12
|
+
getActiveFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
11
13
|
getFlashingCellFlashTarget(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition['FlashTarget'];
|
|
12
|
-
showFlashingCell(
|
|
14
|
+
showFlashingCell(flashingCellToShow: AdaptableFlashingCell): void;
|
|
13
15
|
addFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
14
|
-
|
|
16
|
+
setFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): void;
|
|
15
17
|
editFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
16
18
|
suspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
17
19
|
unSuspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
18
20
|
addFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
|
|
19
21
|
editFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
|
|
22
|
+
getFlashingCellPredicateDefs(): AdaptablePredicateDef[];
|
|
23
|
+
getFlashingCellPredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
20
24
|
}
|
|
@@ -5,58 +5,65 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
6
6
|
const FlashingCellRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FlashingCellRedux"));
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
|
-
const AdaptableQuery_1 = require("../../PredefinedConfig/Common/AdaptableQuery");
|
|
9
8
|
class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
10
9
|
getFlashingCellState() {
|
|
11
10
|
return this.getAdaptableState().FlashingCell;
|
|
12
11
|
}
|
|
12
|
+
mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition) {
|
|
13
|
+
const flashingDefaults = this.adaptable.adaptableOptions.flashingCellOptions;
|
|
14
|
+
if (!flashingDefaults) {
|
|
15
|
+
return flashingCellDefinition;
|
|
16
|
+
}
|
|
17
|
+
if (!flashingCellDefinition.DownChangeStyle && flashingDefaults.defaultDownChangeStyle) {
|
|
18
|
+
flashingCellDefinition.DownChangeStyle = flashingDefaults.defaultDownChangeStyle;
|
|
19
|
+
}
|
|
20
|
+
if (!flashingCellDefinition.UpChangeStyle && flashingDefaults.defaultUpChangeStyle) {
|
|
21
|
+
flashingCellDefinition.UpChangeStyle = flashingDefaults.defaultUpChangeStyle;
|
|
22
|
+
}
|
|
23
|
+
if (!flashingCellDefinition.NeutralChangeStyle && flashingDefaults.defaultNeutralChangeStyle) {
|
|
24
|
+
flashingCellDefinition.NeutralChangeStyle = flashingDefaults.defaultNeutralChangeStyle;
|
|
25
|
+
}
|
|
26
|
+
if (!flashingCellDefinition.FlashDuration && flashingDefaults.defaultFlashDuration) {
|
|
27
|
+
flashingCellDefinition.FlashDuration = flashingDefaults.defaultFlashDuration;
|
|
28
|
+
}
|
|
29
|
+
if (!flashingCellDefinition.FlashTarget && flashingDefaults.defaultFlashTarget) {
|
|
30
|
+
flashingCellDefinition.FlashTarget = flashingDefaults.defaultFlashTarget;
|
|
31
|
+
}
|
|
32
|
+
return flashingCellDefinition;
|
|
33
|
+
}
|
|
13
34
|
getFlashingCellDefinitions() {
|
|
14
|
-
var _a, _b;
|
|
15
35
|
const flashingCellDefinitions = this.getFlashingCellState().FlashingCellDefinitions;
|
|
16
|
-
const flashingDefaults = (_b = (_a = this.adaptable.adaptableOptions.notificationsOptions) === null || _a === void 0 ? void 0 : _a.flashingCellDefaultProperties) !== null && _b !== void 0 ? _b : {};
|
|
17
36
|
return flashingCellDefinitions.map((flashingCellDefinition) => {
|
|
18
|
-
return
|
|
37
|
+
return this.mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition);
|
|
19
38
|
});
|
|
20
39
|
}
|
|
21
40
|
getFlashingCellDefinitionById(id) {
|
|
22
41
|
var _a;
|
|
23
|
-
return (_a = this.getFlashingCellDefinitions()) === null || _a === void 0 ? void 0 : _a.find((
|
|
42
|
+
return (_a = this.getFlashingCellDefinitions()) === null || _a === void 0 ? void 0 : _a.find((fc) => (fc === null || fc === void 0 ? void 0 : fc.Uuid) === id);
|
|
24
43
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const flashingCellDefinitions = this.getFlashingCellState().FlashingCellDefinitions.filter((alertDef) => !AdaptableQuery_1.isReactiveQuery(alertDef.Rule));
|
|
28
|
-
const flashingDefaults = (_b = (_a = this.adaptable.adaptableOptions.notificationsOptions) === null || _a === void 0 ? void 0 : _a.flashingCellDefaultProperties) !== null && _b !== void 0 ? _b : {};
|
|
29
|
-
return flashingCellDefinitions.map((flashingCellDefinition) => {
|
|
30
|
-
return Object.assign(Object.assign({}, flashingDefaults), flashingCellDefinition);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
getActiveNonReactiveFlashingCellDefinitions() {
|
|
34
|
-
return this.getNonReactiveFlashingCellDefinitions().filter((alertDef) => !alertDef.IsSuspended);
|
|
44
|
+
getActiveFlashingCellDefinitions() {
|
|
45
|
+
return this.getFlashingCellDefinitions().filter((fc) => !fc.IsSuspended);
|
|
35
46
|
}
|
|
36
47
|
getFlashingCellFlashTarget(flashingCellDefinition) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return flashTarget;
|
|
43
|
-
}
|
|
44
|
-
showFlashingCell(alertToShow) {
|
|
45
|
-
this.addUidToAdaptableObject(alertToShow);
|
|
48
|
+
var _a;
|
|
49
|
+
return (_a = flashingCellDefinition.FlashTarget) !== null && _a !== void 0 ? _a : 'cell';
|
|
50
|
+
}
|
|
51
|
+
showFlashingCell(flashingCellToShow) {
|
|
52
|
+
this.addUidToAdaptableObject(flashingCellToShow);
|
|
46
53
|
const flashingCellFiredInfo = {
|
|
47
54
|
adaptableApi: this.adaptable.api,
|
|
48
|
-
flashingCell:
|
|
55
|
+
flashingCell: flashingCellToShow,
|
|
49
56
|
};
|
|
50
57
|
const results = this.adaptable.api.eventApi.emitSync('FlashingCellDisplayed', flashingCellFiredInfo);
|
|
51
58
|
const shouldShow = results.reduce((endResult, aResult) => {
|
|
52
59
|
return endResult && aResult !== false;
|
|
53
60
|
}, true);
|
|
54
61
|
if (shouldShow) {
|
|
55
|
-
this.dispatchAction(SystemRedux.SystemFlashingCellAdd(
|
|
56
|
-
const { FlashDuration } =
|
|
62
|
+
this.dispatchAction(SystemRedux.SystemFlashingCellAdd(flashingCellToShow));
|
|
63
|
+
const { FlashDuration: FlashDuration } = flashingCellToShow.flashingCellDefinition;
|
|
57
64
|
if (FlashDuration && FlashDuration !== 'always') {
|
|
58
65
|
setTimeout(() => {
|
|
59
|
-
this.dispatchAction(SystemRedux.SystemFlashingCellDelete(
|
|
66
|
+
this.dispatchAction(SystemRedux.SystemFlashingCellDelete(flashingCellToShow));
|
|
60
67
|
}, FlashDuration);
|
|
61
68
|
}
|
|
62
69
|
}
|
|
@@ -65,7 +72,7 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
65
72
|
this.dispatchAction(FlashingCellRedux.FlashingCellDefinitionAdd(flashingCellDefinition));
|
|
66
73
|
return this.getFlashingCellDefinitionById(flashingCellDefinition.Uuid);
|
|
67
74
|
}
|
|
68
|
-
|
|
75
|
+
setFlashingCellDefinitions(flashingCellDefinitions) {
|
|
69
76
|
this.dispatchAction(FlashingCellRedux.FlashingCellDefinitionSet(flashingCellDefinitions));
|
|
70
77
|
}
|
|
71
78
|
editFlashingCellDefinition(flashingCellDefinition) {
|
|
@@ -92,5 +99,11 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
92
99
|
});
|
|
93
100
|
return flashingCellDefinitions === null || flashingCellDefinitions === void 0 ? void 0 : flashingCellDefinitions.map((flashingCell) => this.getFlashingCellDefinitionById(flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.Uuid));
|
|
94
101
|
}
|
|
102
|
+
getFlashingCellPredicateDefs() {
|
|
103
|
+
return this.adaptable.api.predicateApi.getPredicateDefsByModuleScope('flashingcell');
|
|
104
|
+
}
|
|
105
|
+
getFlashingCellPredicateDefsForScope(scope) {
|
|
106
|
+
return this.getFlashingCellPredicateDefs().filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
|
|
107
|
+
}
|
|
95
108
|
}
|
|
96
109
|
exports.FlashingCellApiImpl = FlashingCellApiImpl;
|
|
@@ -121,7 +121,7 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
121
121
|
}
|
|
122
122
|
getFreeTextColumnModuleReferences(freeTextColumn) {
|
|
123
123
|
const references = [];
|
|
124
|
-
this.adaptable.
|
|
124
|
+
this.adaptable.adaptableModules.forEach((module) => {
|
|
125
125
|
if (module
|
|
126
126
|
.getModuleFreeTextColumnReferences()
|
|
127
127
|
.some((moduleReference) => moduleReference.Uuid === freeTextColumn.Uuid)) {
|
|
@@ -16,10 +16,10 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
16
16
|
getGridData(): any[];
|
|
17
17
|
getFilteredData(): any[];
|
|
18
18
|
loadGridData(dataSource: any): void;
|
|
19
|
-
updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
20
|
-
addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
19
|
+
updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
|
|
20
|
+
addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
|
|
21
21
|
undoCellEdit(dataChangedInfo: DataChangedInfo): boolean;
|
|
22
|
-
deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
22
|
+
deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
|
|
23
23
|
setCellValue(columnId: string, newValue: any, primaryKeyValue: any): void;
|
|
24
24
|
setCellsValue(gridCells: {
|
|
25
25
|
columnId: any;
|
|
@@ -25,10 +25,12 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
25
25
|
async updateGridData(dataRows, dataUpdateConfig) {
|
|
26
26
|
const rowNodes = await this.adaptable.updateRows(dataRows, dataUpdateConfig);
|
|
27
27
|
this.fireGridDataChangedEvent(dataRows, rowNodes, 'Edit');
|
|
28
|
+
return rowNodes;
|
|
28
29
|
}
|
|
29
30
|
async addGridData(dataRows, dataUpdateConfig) {
|
|
30
31
|
const rowNodes = await this.adaptable.addRows(dataRows, dataUpdateConfig);
|
|
31
32
|
this.fireGridDataChangedEvent(dataRows, rowNodes, 'Add');
|
|
33
|
+
return rowNodes;
|
|
32
34
|
}
|
|
33
35
|
undoCellEdit(dataChangedInfo) {
|
|
34
36
|
// for the reason of this hacky solution see the comments in DataService
|
|
@@ -40,7 +42,9 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
40
42
|
if (this.checkArrayExists(dataRows)) {
|
|
41
43
|
const rowNodes = await this.adaptable.deleteRows(dataRows, dataUpdateConfig);
|
|
42
44
|
this.fireGridDataChangedEvent(dataRows, rowNodes, 'Delete');
|
|
45
|
+
return rowNodes;
|
|
43
46
|
}
|
|
47
|
+
return [];
|
|
44
48
|
}
|
|
45
49
|
setCellValue(columnId, newValue, primaryKeyValue) {
|
|
46
50
|
const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
|
|
@@ -89,7 +93,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
89
93
|
this.adaptable.api.filterApi.clearAllColumnFilter();
|
|
90
94
|
}
|
|
91
95
|
getAgGridInstance() {
|
|
92
|
-
return this.adaptable.adaptableOptions.
|
|
96
|
+
return this.adaptable.adaptableOptions.gridOptions;
|
|
93
97
|
}
|
|
94
98
|
getColumnSorts() {
|
|
95
99
|
return this.getAdaptableState().Grid.ColumnSorts;
|
|
@@ -2,8 +2,6 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import { InternalApi } from '../InternalApi';
|
|
3
3
|
import { UIConfirmation } from '../../Utilities/Interface/MessagePopups';
|
|
4
4
|
import { SystemState } from '../../PredefinedConfig/SystemState';
|
|
5
|
-
import { ChartData } from '../../PredefinedConfig/ChartState';
|
|
6
|
-
import { ChartVisibility } from '../../PredefinedConfig/Common/ChartEnums';
|
|
7
5
|
import { Action } from 'redux';
|
|
8
6
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
9
7
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
@@ -37,13 +35,11 @@ import { AdaptableFrameworkComponent } from '../../AdaptableOptions/AdaptableFra
|
|
|
37
35
|
import { IMetamodelService } from '../../Utilities/Services/Interface/IMetamodelService';
|
|
38
36
|
export declare class InternalApiImpl extends ApiBase implements InternalApi {
|
|
39
37
|
getSystemState(): SystemState;
|
|
40
|
-
setChartData(chartData: ChartData): void;
|
|
41
38
|
getAdaptableFormFromAlertForm(alertForm: string | AlertButtonForm, context: any, defaultMessageType?: AdaptableMessageType): (Omit<AdaptableForm<AlertButtonContext>, 'buttons'> & {
|
|
42
39
|
buttons?: (Omit<AdaptableButton<AlertButtonContext>, 'buttonStyle'> & {
|
|
43
40
|
buttonStyle?: ButtonStyle;
|
|
44
41
|
})[];
|
|
45
42
|
}) | undefined;
|
|
46
|
-
setChartVisibility(chartVisbility: ChartVisibility): void;
|
|
47
43
|
getAdaptableAlerts(): AdaptableAlert[];
|
|
48
44
|
getAdaptableFlashingCellFor(primaryKey: string, columnId?: string): AdaptableFlashingCell | null;
|
|
49
45
|
addSystemStatusMessageInfo(systemStatusMessageInfo: SystemStatusMessageInfo): void;
|
|
@@ -77,7 +73,6 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
|
|
|
77
73
|
private createDataChangedInfoFromGridCell;
|
|
78
74
|
setLastAppliedShortCut(gridCell: GridCell | undefined): void;
|
|
79
75
|
updateCurrentDraftLayout(layout: Layout): void;
|
|
80
|
-
setDefaultDashboardTab(): void;
|
|
81
76
|
getPrimaryKey(): any;
|
|
82
77
|
getAdaptableInstance(): IAdaptable;
|
|
83
78
|
getAgGridInstance(): any;
|