@adaptabletools/adaptable 11.0.0-canary.2 → 11.0.0-canary.6
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/agGrid.d.ts +1 -1
- package/agGrid.js +3 -3
- package/base.css +138 -68
- package/bundle.cjs.js +131 -127
- package/index.css +140 -68
- package/package.json +33 -33
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +11 -2
- package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
- package/src/AdaptableOptions/AlertOptions.js +2 -0
- package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
- package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
- package/src/AdaptableOptions/QueryLanguageOptions.d.ts +3 -7
- package/src/AdaptableOptions/StateOptions.d.ts +2 -1
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -3
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
- package/src/Api/AdaptableApi.d.ts +6 -0
- package/src/Api/AlertApi.d.ts +2 -3
- package/src/Api/ColumnApi.d.ts +0 -4
- package/src/Api/EventApi.d.ts +8 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +0 -12
- package/src/Api/GridApi.d.ts +5 -4
- package/src/Api/IPushPullApi.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
- package/src/Api/Implementation/AlertApiImpl.js +19 -10
- package/src/Api/Implementation/ApiBase.d.ts +2 -0
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ColumnApiImpl.js +0 -5
- package/src/Api/Implementation/DashboardApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
- package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
- package/src/Api/Implementation/GridApiImpl.js +4 -0
- package/src/Api/Implementation/InternalApiImpl.js +2 -2
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +12 -1
- package/src/Api/Implementation/QueryApiImpl.js +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +1 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +6 -7
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
- package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/Api/OpenFinApi.d.ts +5 -0
- package/src/Api/PluginsApi.d.ts +29 -0
- package/src/Api/QueryLanguageApi.d.ts +10 -10
- package/src/Api/SettingsPanelApi.d.ts +17 -0
- package/src/Api/SettingsPanelApi.js +2 -0
- package/src/Api/UserInterfaceApi.d.ts +5 -2
- package/src/PredefinedConfig/AlertState.d.ts +4 -6
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -4
- package/src/PredefinedConfig/Common/AdaptableQuery.js +3 -3
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +0 -2
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
- package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
- package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
- package/src/PredefinedConfig/FlashingCellState.d.ts +5 -2
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
- package/src/PredefinedConfig/SystemState.d.ts +2 -1
- package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
- package/src/Redux/ActionsReducers/GridRedux.js +3 -1
- package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
- package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
- package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
- package/src/Redux/Store/AdaptableStore.js +18 -6
- package/src/Strategy/AlertModule.js +14 -4
- package/src/Strategy/ConditionalStyleModule.js +4 -0
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.js +34 -18
- package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
- package/src/Strategy/FreeTextColumnModule.js +10 -0
- package/src/Strategy/LayoutModule.js +1 -6
- package/src/Strategy/TeamSharingModule.js +1 -1
- package/src/Strategy/ToolPanelModule.js +5 -3
- package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +0 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -6
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +7 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +42 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
- package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
- package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +36 -0
- package/src/Utilities/ExpressionFunctions/groupingMap.js +104 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
- package/src/Utilities/Extensions/StringExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
- package/src/Utilities/Helpers/CalendarHelper.js +220 -55
- package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
- package/src/Utilities/ObjectFactory.js +5 -2
- package/src/Utilities/Services/AlertService.js +3 -3
- package/src/Utilities/Services/DataService.js +6 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +2 -2
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
- package/src/Utilities/Services/QueryLanguageService.js +21 -16
- package/src/Utilities/Services/ReportService.js +7 -3
- package/src/Utilities/Services/TeamSharingService.js +5 -3
- package/src/View/AdaptablePopover/index.js +6 -1
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
- package/src/View/AdaptableWizardView/helper.js +5 -3
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertWizard.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -5
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +17 -6
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
- package/src/View/Components/EntityRulesEditor/index.js +9 -9
- package/src/View/Components/FilterForm/FilterForm.js +0 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +8 -7
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/ModuleValueSelector/index.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -87
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
- 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.d.ts +1 -3
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
- package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
- package/src/View/Components/ScopeComponent.js +4 -1
- package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -2
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +7 -5
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/Components/ValueSelector/index.d.ts +2 -1
- package/src/View/Components/ValueSelector/index.js +5 -5
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +17 -5
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +17 -5
- package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
- package/src/View/Dashboard/Dashboard.js +5 -5
- package/src/View/Dashboard/DashboardPopup.js +8 -6
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
- package/src/View/Export/Wizard/NewReportWizard.js +13 -3
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -4
- package/src/View/Filter/FilterViewPanel.js +1 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -5
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +11 -6
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +12 -5
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
- package/src/View/Query/ExpandedQueryPopup.js +9 -2
- package/src/View/Query/QueryViewPanel.js +15 -10
- package/src/View/Query/Wizard/NamedQueryWizard.js +6 -4
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
- package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/UIHelper.js +4 -1
- package/src/View/Wizard/AdaptableWizard.js +13 -4
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +6 -2
- package/src/agGrid/Adaptable.d.ts +2 -5
- package/src/agGrid/Adaptable.js +127 -75
- package/src/agGrid/agGridHelper.js +3 -8
- package/src/agGrid/agGridMenuHelper.js +5 -9
- package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
- package/src/components/ApplicationIcon.d.ts +1 -0
- package/src/components/ApplicationIcon.js +2 -2
- package/src/components/Dashboard/Dashboard.js +4 -1
- package/src/components/Dashboard/DashboardManager.d.ts +5 -3
- package/src/components/Dashboard/DashboardManager.js +33 -27
- package/src/components/Dropdown/index.js +8 -1
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
- package/src/components/ExpressionEditor/index.d.ts +1 -1
- package/src/components/ExpressionEditor/index.js +12 -5
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/Overlay.js +1 -1
- package/src/components/SizedContainer/index.js +7 -1
- package/src/components/WindowModal/WindowModal.js +4 -1
- package/src/metamodel/adaptable.metamodel.d.ts +75 -24
- package/src/metamodel/adaptable.metamodel.js +223 -115
- package/src/types.d.ts +6 -3
- package/themes/dark.css +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -8,12 +8,15 @@ export interface AdaptableScalarQuery {
|
|
|
8
8
|
export interface AdaptableObservableQuery {
|
|
9
9
|
ObservableExpression: string;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
12
|
-
|
|
11
|
+
export interface AdaptableAggregatedBooleanQuery {
|
|
12
|
+
AggregatedBooleanExpression: string;
|
|
13
|
+
}
|
|
14
|
+
export interface AdaptableAggregatedScalarQuery {
|
|
15
|
+
AggregatedScalarExpression: string;
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
15
|
-
* An AdaptableQuery can be either a Boolean, Scalar, Observable or
|
|
18
|
+
* An AdaptableQuery can be either a Boolean, Scalar, Observable, AggregatedBoolean, or AggregatedScalar expression
|
|
16
19
|
*/
|
|
17
|
-
export declare type AdaptableQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableScalarQuery, XOR<AdaptableObservableQuery,
|
|
20
|
+
export declare type AdaptableQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableScalarQuery, XOR<AdaptableObservableQuery, XOR<AdaptableAggregatedBooleanQuery, AdaptableAggregatedScalarQuery>>>>;
|
|
18
21
|
export declare const getAdaptableQueryExpression: (query: Partial<AdaptableQuery>) => string | undefined;
|
|
19
22
|
export declare const isReactiveQuery: (query: Partial<AdaptableQuery>) => boolean;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isReactiveQuery = exports.getAdaptableQueryExpression = void 0;
|
|
4
4
|
exports.getAdaptableQueryExpression = (query) => {
|
|
5
|
-
var _a, _b, _c;
|
|
6
|
-
return ((_c = (_b = (_a = query.BooleanExpression) !== null && _a !== void 0 ? _a : query.ScalarExpression) !== null && _b !== void 0 ? _b : query.ObservableExpression) !== null && _c !== void 0 ? _c : query.
|
|
5
|
+
var _a, _b, _c, _d;
|
|
6
|
+
return ((_d = (_c = (_b = (_a = query.BooleanExpression) !== null && _a !== void 0 ? _a : query.ScalarExpression) !== null && _b !== void 0 ? _b : query.ObservableExpression) !== null && _c !== void 0 ? _c : query.AggregatedBooleanExpression) !== null && _d !== void 0 ? _d : query.AggregatedScalarExpression);
|
|
7
7
|
};
|
|
8
8
|
exports.isReactiveQuery = (query) => {
|
|
9
|
-
return !!query.ObservableExpression || !!query.
|
|
9
|
+
return !!query.ObservableExpression || !!query.AggregatedBooleanExpression;
|
|
10
10
|
};
|
|
@@ -15,19 +15,8 @@ export interface CellHighlightInfo {
|
|
|
15
15
|
* Time after which Cell should be unhilighted
|
|
16
16
|
*/
|
|
17
17
|
timeout?: number;
|
|
18
|
-
highlightStyle: AdaptableStyle;
|
|
19
|
-
}
|
|
20
|
-
export interface RowHighlightInfo {
|
|
21
|
-
/**
|
|
22
|
-
* Primary key value for the row to be highlighted
|
|
23
|
-
*/
|
|
24
|
-
primaryKeyValue: any;
|
|
25
|
-
/**
|
|
26
|
-
* Timeout after which the highlight is removed
|
|
27
|
-
*/
|
|
28
|
-
timeout?: number;
|
|
29
18
|
/**
|
|
30
|
-
* Highlight
|
|
19
|
+
* Adaptable Style to use in the Cell Highlight
|
|
31
20
|
*/
|
|
32
21
|
highlightStyle: AdaptableStyle;
|
|
33
22
|
}
|
|
@@ -35,7 +35,7 @@ export interface DataChangedInfo {
|
|
|
35
35
|
/**
|
|
36
36
|
* What triggered the change - user, background change or a reverted change?
|
|
37
37
|
*/
|
|
38
|
-
trigger?: 'edit' | 'tick' | 'undo';
|
|
38
|
+
trigger?: 'edit' | 'tick' | 'undo' | 'aggChange';
|
|
39
39
|
}
|
|
40
40
|
export interface DataChangedScope {
|
|
41
41
|
wholeRow: boolean;
|
|
@@ -6,8 +6,6 @@ var DataType;
|
|
|
6
6
|
(function (DataType) {
|
|
7
7
|
DataType["String"] = "String";
|
|
8
8
|
DataType["Number"] = "Number";
|
|
9
|
-
// FIXME AFL keep it or extend it to support https://www.ag-grid.com/javascript-data-grid/sparklines-data/ ?
|
|
10
|
-
DataType["NumberArray"] = "NumberArray";
|
|
11
9
|
DataType["Boolean"] = "Boolean";
|
|
12
10
|
DataType["Date"] = "Date";
|
|
13
11
|
DataType["Object"] = "Object";
|
|
@@ -22,7 +22,7 @@ export interface FDC3Context {
|
|
|
22
22
|
[key: string]: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
|
-
* @
|
|
25
|
+
* @internal
|
|
26
26
|
* Custom properties and metadata. This can be extended in specific context object.
|
|
27
27
|
*/
|
|
28
28
|
[key: string]: unknown;
|
|
@@ -32,23 +32,15 @@ export interface FDC3Context {
|
|
|
32
32
|
*/
|
|
33
33
|
export interface InstrumentContext extends FDC3Context {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Context type is always 'instrument'
|
|
36
36
|
*/
|
|
37
37
|
type: 'instrument';
|
|
38
38
|
/**
|
|
39
|
-
* Free text name of
|
|
39
|
+
* Free text name of instrument
|
|
40
40
|
*/
|
|
41
41
|
name: string;
|
|
42
42
|
/**
|
|
43
|
-
* The instrument data
|
|
44
|
-
* * `ticker`: a ticker
|
|
45
|
-
* * `ISIN`: [ISIN](https://www.isin.org/isin/)
|
|
46
|
-
* * `CUSIP`: [CUSIP](https://www.cusip.com/cusip/index.htm)
|
|
47
|
-
* * `SEDOL`: [SEDOL](https://www.londonstockexchange.com/products-and-services/reference-data/sedol-master-file/sedol-master-file.htm)
|
|
48
|
-
* * `RIC`: [Reuters Instrument Code (RIC)](https://en.wikipedia.org/wiki/Reuters_Instrument_Code)
|
|
49
|
-
* * `BBG`: [Bloomberg Ticker](https://www.bloomberg.com/professional/product/market-data/)
|
|
50
|
-
* * `PERMID`: [PERMID](https://permid.org/)
|
|
51
|
-
* * `FIGI`: [FIGI](https://www.openfigi.com/about/figi)
|
|
43
|
+
* The instrument data
|
|
52
44
|
*/
|
|
53
45
|
id: {
|
|
54
46
|
[key: string]: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AdaptableStyle } from '../../../types';
|
|
2
|
+
export interface RowHighlightInfo {
|
|
3
|
+
/**
|
|
4
|
+
* Primary key value for the row to be highlighted
|
|
5
|
+
*/
|
|
6
|
+
primaryKeyValue: any;
|
|
7
|
+
/**
|
|
8
|
+
* Timeout after which the highlight is removed
|
|
9
|
+
*/
|
|
10
|
+
timeout?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Highlight style
|
|
13
|
+
*/
|
|
14
|
+
highlightStyle: AdaptableStyle;
|
|
15
|
+
}
|
|
@@ -22,7 +22,7 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
|
|
|
22
22
|
export declare type AdaptableModuleButton = 'Alert' | 'FlashingCell' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
23
23
|
export declare type AdaptableStateKeys = AdaptableStateKey[];
|
|
24
24
|
export declare type AdaptableStateKey = 'Alert' | 'FlashingCell' | 'Application' | 'CalculatedColumn' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'Theme' | 'ToolPanel';
|
|
25
|
-
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
25
|
+
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'CustomSettingsPanelModule';
|
|
26
26
|
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
27
27
|
export declare type TypeHint<Base, Literals> = (Base & {
|
|
28
28
|
__subType?: true;
|
|
@@ -20,10 +20,13 @@ export declare type FlashingCellRule = XOR<{
|
|
|
20
20
|
export interface FlashingCellState extends ConfigState {
|
|
21
21
|
/**
|
|
22
22
|
* Flashing Cell Definitions - will colour cells/rows when rule is met
|
|
23
|
-
* @defaultValue null
|
|
24
23
|
*/
|
|
25
24
|
FlashingCellDefinitions?: FlashingCellDefinition[];
|
|
26
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* What should flash? row, cell or aggregated cell
|
|
28
|
+
*/
|
|
29
|
+
export declare type FlashTargetTypes = 'row' | 'cell' | 'aggFuncCell';
|
|
27
30
|
/**
|
|
28
31
|
* The Flashing Cell Definition
|
|
29
32
|
*/
|
|
@@ -40,7 +43,7 @@ export interface FlashingCellDefinition extends SuspendableObject {
|
|
|
40
43
|
* Should a cell or whole row flash
|
|
41
44
|
* @defaultValue 'cell'
|
|
42
45
|
*/
|
|
43
|
-
FlashTarget?:
|
|
46
|
+
FlashTarget?: FlashTargetTypes | FlashTargetTypes[];
|
|
44
47
|
/**
|
|
45
48
|
* Style for 'Down' value changes
|
|
46
49
|
* @defaultValue Red BackColour
|
|
@@ -39,7 +39,7 @@ export interface FreeTextColumn extends AdaptableObject {
|
|
|
39
39
|
* Whether Column is String, Number, Boolean or Date
|
|
40
40
|
* @defaultValue 'String'
|
|
41
41
|
*/
|
|
42
|
-
DataType
|
|
42
|
+
DataType: 'String' | 'Number' | 'Boolean' | 'Date';
|
|
43
43
|
/**
|
|
44
44
|
* Additional optional properties for Column (e.g. filterable, resizable)
|
|
45
45
|
*/
|
|
@@ -7,12 +7,10 @@ import { ColumnSort } from './Common/ColumnSort';
|
|
|
7
7
|
export interface LayoutState extends ConfigState {
|
|
8
8
|
/**
|
|
9
9
|
* Layout which will be loaded when AdapTable starts - must match `Name` property in Layout
|
|
10
|
-
* @defaultValue ''
|
|
11
10
|
*/
|
|
12
11
|
CurrentLayout?: string;
|
|
13
12
|
/**
|
|
14
13
|
* Collection of Layout objects - listed in Layout toolbar and Tool Panel
|
|
15
|
-
* @defaultValue null
|
|
16
14
|
*/
|
|
17
15
|
Layouts?: Layout[];
|
|
18
16
|
}
|
|
@@ -23,7 +23,7 @@ import { QueryState } from './QueryState';
|
|
|
23
23
|
*/
|
|
24
24
|
export interface PredefinedConfig {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Collection of `AlertDefinitions` which will fire Alerts when the rule is met
|
|
27
27
|
*/
|
|
28
28
|
Alert?: AlertState;
|
|
29
29
|
/**
|
|
@@ -58,6 +58,10 @@ export interface PredefinedConfig {
|
|
|
58
58
|
* Stores Filters in AdapTable - both System and Column (predicate) Filters
|
|
59
59
|
*/
|
|
60
60
|
Filter?: FilterState;
|
|
61
|
+
/***
|
|
62
|
+
* Objects which define which cells flash in response to data changes
|
|
63
|
+
*/
|
|
64
|
+
FlashingCell?: FlashingCellState;
|
|
61
65
|
/**
|
|
62
66
|
* Supplies a collection of *FormatColumn* objects that will style an entire column in a single way (and not subject to a rule like with Conditional Style).
|
|
63
67
|
*/
|
|
@@ -98,5 +102,4 @@ export interface PredefinedConfig {
|
|
|
98
102
|
* Sets the order and visibility of the Tool Panel controls in the AdapTable ToolPanel (on right of grid)
|
|
99
103
|
*/
|
|
100
104
|
ToolPanel?: ToolPanelState;
|
|
101
|
-
FlashingCell?: FlashingCellState;
|
|
102
105
|
}
|
|
@@ -6,7 +6,8 @@ import type { IPushPullState, IPushPullReport, IPushPullDomain } from './IPushPu
|
|
|
6
6
|
import { Glue42State, Glue42Report } from './Glue42State';
|
|
7
7
|
import { OpenFinState, OpenFinReport } from './OpenFinState';
|
|
8
8
|
import { AdaptableAlert } from './Common/AdaptableAlert';
|
|
9
|
-
import { CellHighlightInfo
|
|
9
|
+
import { CellHighlightInfo } from './Common/CellHighlightInfo';
|
|
10
|
+
import { RowHighlightInfo } from './Common/RowHighlightInfo';
|
|
10
11
|
import { SystemStatusMessageInfo } from './Common/SystemStatusMessageInfo';
|
|
11
12
|
import { CachedQuery } from './QueryState';
|
|
12
13
|
import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
|
|
@@ -37,19 +37,25 @@ exports.ApplicationReducer = (state = initialState, action) => {
|
|
|
37
37
|
const actionTypedAdd = action;
|
|
38
38
|
applicationDataEntries = [].concat(state.ApplicationDataEntries);
|
|
39
39
|
applicationDataEntries.push(actionTypedAdd.applicationDataEntry);
|
|
40
|
-
return Object.assign({}, state, {
|
|
40
|
+
return Object.assign({}, state, {
|
|
41
|
+
ApplicationDataEntries: applicationDataEntries,
|
|
42
|
+
});
|
|
41
43
|
case exports.APPLICATION_DATA_ENTRY_EDIT:
|
|
42
44
|
const actionTypedUpdate = action;
|
|
43
45
|
applicationDataEntries = [].concat(state.ApplicationDataEntries);
|
|
44
46
|
index = applicationDataEntries.findIndex((fe) => fe.Key == actionTypedUpdate.applicationDataEntry.Key);
|
|
45
47
|
applicationDataEntries[index] = actionTypedUpdate.applicationDataEntry;
|
|
46
|
-
return Object.assign({}, state, {
|
|
48
|
+
return Object.assign({}, state, {
|
|
49
|
+
ApplicationDataEntries: applicationDataEntries,
|
|
50
|
+
});
|
|
47
51
|
case exports.APPLICATION_DATA_ENTRY_DELETE:
|
|
48
52
|
const actionTypedDelete = action;
|
|
49
53
|
applicationDataEntries = [].concat(state.ApplicationDataEntries);
|
|
50
54
|
index = applicationDataEntries.findIndex((a) => a.Key == actionTypedDelete.applicationDataEntry.Key);
|
|
51
55
|
applicationDataEntries.splice(index, 1);
|
|
52
|
-
return Object.assign({}, state, {
|
|
56
|
+
return Object.assign({}, state, {
|
|
57
|
+
ApplicationDataEntries: applicationDataEntries,
|
|
58
|
+
});
|
|
53
59
|
default:
|
|
54
60
|
return state;
|
|
55
61
|
}
|
|
@@ -64,28 +64,24 @@ exports.FlashingCellReducer = (state = initialState, action) => {
|
|
|
64
64
|
let flashingCellDefinitions;
|
|
65
65
|
switch (action.type) {
|
|
66
66
|
case exports.FLASHING_ALERT_DEFINITION_SET: {
|
|
67
|
-
const actionFlashingCellDefinition = action
|
|
68
|
-
.flashingCellDefinitions;
|
|
67
|
+
const actionFlashingCellDefinition = action.flashingCellDefinitions;
|
|
69
68
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: actionFlashingCellDefinition });
|
|
70
69
|
}
|
|
71
70
|
case exports.FLASHING_ALERT_DEFINITION_ADD: {
|
|
72
|
-
const actionFlashingCellDefinition = action
|
|
73
|
-
.flashingCellDefinition;
|
|
71
|
+
const actionFlashingCellDefinition = action.flashingCellDefinition;
|
|
74
72
|
AdaptableHelper_1.default.addUuidAndSource(actionFlashingCellDefinition);
|
|
75
73
|
flashingCellDefinitions = [].concat(state.FlashingCellDefinitions);
|
|
76
74
|
flashingCellDefinitions.push(actionFlashingCellDefinition);
|
|
77
75
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: flashingCellDefinitions });
|
|
78
76
|
}
|
|
79
77
|
case exports.FLASHING_ALERT_DEFINITION_EDIT: {
|
|
80
|
-
const actionFlashingCellDefinition = action
|
|
81
|
-
.flashingCellDefinition;
|
|
78
|
+
const actionFlashingCellDefinition = action.flashingCellDefinition;
|
|
82
79
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.map((abObject) => abObject.Uuid === actionFlashingCellDefinition.Uuid
|
|
83
80
|
? actionFlashingCellDefinition
|
|
84
81
|
: abObject) });
|
|
85
82
|
}
|
|
86
83
|
case exports.FLASHING_ALERT_DEFINITION_DELETE: {
|
|
87
|
-
const actionFlashingCellDefinition = action
|
|
88
|
-
.flashingCellDefinition;
|
|
84
|
+
const actionFlashingCellDefinition = action.flashingCellDefinition;
|
|
89
85
|
return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.filter((abObject) => abObject.Uuid !== actionFlashingCellDefinition.Uuid) });
|
|
90
86
|
}
|
|
91
87
|
case exports.FLASHING_ALERT_DEFINITION_SUSPEND: {
|
|
@@ -177,7 +177,9 @@ exports.GridReducer = (state = initialState, action) => {
|
|
|
177
177
|
const removeColumn = action.column;
|
|
178
178
|
return Object.assign(Object.assign({}, state), { Columns: state.Columns.filter((abObject) => abObject.Uuid !== removeColumn.Uuid) });
|
|
179
179
|
case exports.GRID_SET_SORT:
|
|
180
|
-
return Object.assign({}, state, {
|
|
180
|
+
return Object.assign({}, state, {
|
|
181
|
+
ColumnSorts: action.columnSorts,
|
|
182
|
+
});
|
|
181
183
|
case exports.GRID_CLEAR_SORT:
|
|
182
184
|
return Object.assign({}, state, { ColumnSorts: undefined });
|
|
183
185
|
case exports.GRID_SET_SELECTED_CELLS:
|
|
@@ -131,6 +131,8 @@ exports.PopupReducer = (state = initialState, action) => {
|
|
|
131
131
|
Header: actionTyped.prompt.Header,
|
|
132
132
|
Message: actionTyped.prompt.Msg,
|
|
133
133
|
ConfirmAction: actionTyped.prompt.ConfirmAction,
|
|
134
|
+
ConfirmActionCreator: actionTyped.prompt.ConfirmActionCreator,
|
|
135
|
+
DefaultValue: actionTyped.prompt.DefaultValue,
|
|
134
136
|
};
|
|
135
137
|
return Object.assign({}, state, { PromptPopup: newPromptPopup });
|
|
136
138
|
}
|
|
@@ -140,6 +142,8 @@ exports.PopupReducer = (state = initialState, action) => {
|
|
|
140
142
|
Header: '',
|
|
141
143
|
Message: '',
|
|
142
144
|
ConfirmAction: null,
|
|
145
|
+
ConfirmActionCreator: null,
|
|
146
|
+
DefaultValue: '',
|
|
143
147
|
};
|
|
144
148
|
return Object.assign({}, state, { PromptPopup: newPromptPopup });
|
|
145
149
|
}
|
|
@@ -167,7 +171,9 @@ exports.PopupReducer = (state = initialState, action) => {
|
|
|
167
171
|
ConfirmationComment: null,
|
|
168
172
|
MessageType: actionTyped.confirmation.MessageType,
|
|
169
173
|
};
|
|
170
|
-
return Object.assign({}, state, {
|
|
174
|
+
return Object.assign({}, state, {
|
|
175
|
+
ConfirmationPopup: newConfirmationPopup,
|
|
176
|
+
});
|
|
171
177
|
}
|
|
172
178
|
case exports.POPUP_CONFIRM_CONFIRMATION: {
|
|
173
179
|
let actionTyped = action;
|
|
@@ -184,7 +190,9 @@ exports.PopupReducer = (state = initialState, action) => {
|
|
|
184
190
|
ConfirmationComment: actionTyped.comment,
|
|
185
191
|
MessageType: null,
|
|
186
192
|
};
|
|
187
|
-
return Object.assign({}, state, {
|
|
193
|
+
return Object.assign({}, state, {
|
|
194
|
+
ConfirmationPopup: newConfirmationPopup,
|
|
195
|
+
});
|
|
188
196
|
}
|
|
189
197
|
case exports.POPUP_CANCEL_CONFIRMATION: {
|
|
190
198
|
//we dispatch the Action of CancelAction in the middelware in order to keep the reducer pure
|
|
@@ -200,7 +208,9 @@ exports.PopupReducer = (state = initialState, action) => {
|
|
|
200
208
|
ConfirmationComment: null,
|
|
201
209
|
MessageType: null,
|
|
202
210
|
};
|
|
203
|
-
return Object.assign({}, state, {
|
|
211
|
+
return Object.assign({}, state, {
|
|
212
|
+
ConfirmationPopup: newConfirmationPopup,
|
|
213
|
+
});
|
|
204
214
|
}
|
|
205
215
|
case exports.POPUP_SHOW_ALERT: {
|
|
206
216
|
let showAlertAction = action;
|
|
@@ -40,7 +40,9 @@ exports.QuickSearchReducer = (state = initialState, action) => {
|
|
|
40
40
|
QuickSearchText: action.quickSearchText,
|
|
41
41
|
});
|
|
42
42
|
case exports.QUICK_SEARCH_SET_STYLE:
|
|
43
|
-
return Object.assign({}, state, {
|
|
43
|
+
return Object.assign({}, state, {
|
|
44
|
+
Style: action.style,
|
|
45
|
+
});
|
|
44
46
|
default:
|
|
45
47
|
return state;
|
|
46
48
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Redux from 'redux';
|
|
2
2
|
import { SystemState } from '../../PredefinedConfig/SystemState';
|
|
3
|
-
import { CellHighlightInfo
|
|
3
|
+
import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
|
|
4
|
+
import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
|
|
4
5
|
import { PreviewInfo } from '../../Utilities/Interface/Preview';
|
|
5
6
|
import { ExportCustomDestinationPopup, Report } from '../../PredefinedConfig/ExportState';
|
|
6
7
|
import { BulkUpdateValidationResult } from '../../Strategy/Interface/IBulkUpdateModule';
|
|
@@ -11,14 +12,14 @@ import { CachedQuery } from '../../PredefinedConfig/QueryState';
|
|
|
11
12
|
import { AdaptableFlashingCell } from '../../PredefinedConfig/Common/AdaptableFlashingCell';
|
|
12
13
|
import { MathOperation, SummaryOperation } from '../../PredefinedConfig/Common/Enums';
|
|
13
14
|
import { DataChangedInfo } from '../../PredefinedConfig/Common/DataChangedInfo';
|
|
14
|
-
export declare const
|
|
15
|
+
export declare const FLASHING_CELL_ROW_KEY = "__ROW";
|
|
15
16
|
export declare const SYSTEM_ALERT_ADD = "SYSTEM_ALERT_ADD";
|
|
16
17
|
export declare const SYSTEM_ALERT_DELETE = "SYSTEM_ALERT_DELETE";
|
|
17
18
|
export declare const SYSTEM_ALERT_DELETE_ALL = "SYSTEM_ALERT_DELETE_ALL";
|
|
18
19
|
export declare const SYSTEM_ALERT_REMOVE_HIGHLIGHT = "SYSTEM_ALERT_REMOVE_HIGHLIGHT";
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
20
|
+
export declare const SYSTEM_FLASHING_CELL_ADD = "SYSTEM_FLASHING_CELL_ADD";
|
|
21
|
+
export declare const SYSTEM_FLASHING_CELL_DELETE = "SYSTEM_FLASHING_CELL_DELETE";
|
|
22
|
+
export declare const SYSTEM_FLASHING_CELL_DELETE_ALL = "SYSTEM_FLASHING_CELL_DELETE_ALL";
|
|
22
23
|
export declare const SYSTEM_STATUS_MESSAGE_INFO_ADD = "SYSTEM_STATUS_MESSAGE_INFO_ADD";
|
|
23
24
|
export declare const SYSTEM_STATUS_MESSAGE_INFO_DELETE = "SYSTEM_STATUS_MESSAGE_INFO_DELETE";
|
|
24
25
|
export declare const SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = "SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemReducer = exports.getSystemExportCustomDestinationPopups = exports.SystemSettingsPanelSet = exports.SystemExportCustomDestinationPopupHide = exports.SystemExportCustomDestinationPopupShow = 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.SystemAlertRemoveHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowDelete = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = 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_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_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_ROW_DELETE = 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.
|
|
3
|
+
exports.SystemReducer = exports.getSystemExportCustomDestinationPopups = exports.SystemSettingsPanelSet = exports.SystemExportCustomDestinationPopupHide = exports.SystemExportCustomDestinationPopupShow = 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.SystemAlertRemoveHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowDelete = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = 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_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_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_ROW_DELETE = 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_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
|
|
4
4
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
5
5
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
6
6
|
/*
|
|
@@ -8,16 +8,16 @@ Bit of a mixed bag of actions but essentially its those that are related to Stra
|
|
|
8
8
|
This allows us to keep the other reducers pure in terms of everything persists
|
|
9
9
|
Not sure if its a good idea or not and perhaps we need 2 stores but I think its better than it was...
|
|
10
10
|
*/
|
|
11
|
-
exports.
|
|
11
|
+
exports.FLASHING_CELL_ROW_KEY = '__ROW';
|
|
12
12
|
// Alerts
|
|
13
13
|
exports.SYSTEM_ALERT_ADD = 'SYSTEM_ALERT_ADD';
|
|
14
14
|
exports.SYSTEM_ALERT_DELETE = 'SYSTEM_ALERT_DELETE';
|
|
15
15
|
exports.SYSTEM_ALERT_DELETE_ALL = 'SYSTEM_ALERT_DELETE_ALL';
|
|
16
16
|
exports.SYSTEM_ALERT_REMOVE_HIGHLIGHT = 'SYSTEM_ALERT_REMOVE_HIGHLIGHT';
|
|
17
17
|
// Flashing Alerts
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
18
|
+
exports.SYSTEM_FLASHING_CELL_ADD = 'SYSTEM_FLASHING_CELL_ADD';
|
|
19
|
+
exports.SYSTEM_FLASHING_CELL_DELETE = 'SYSTEM_FLASHING_CELL_DELETE';
|
|
20
|
+
exports.SYSTEM_FLASHING_CELL_DELETE_ALL = 'SYSTEM_FLASHING_CELL_DELETE_ALL';
|
|
21
21
|
// Status Message
|
|
22
22
|
exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = 'SYSTEM_STATUS_MESSAGE_INFO_ADD';
|
|
23
23
|
exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = 'SYSTEM_STATUS_MESSAGE_INFO_DELETE';
|
|
@@ -113,15 +113,15 @@ exports.SystemAlertRemoveHighlight = (alert) => ({
|
|
|
113
113
|
alert: alert,
|
|
114
114
|
});
|
|
115
115
|
exports.SystemFlashingCellAdd = (flashingCell) => ({
|
|
116
|
-
type: exports.
|
|
116
|
+
type: exports.SYSTEM_FLASHING_CELL_ADD,
|
|
117
117
|
flashingCell: flashingCell,
|
|
118
118
|
});
|
|
119
119
|
exports.SystemFlashingCellDelete = (flashingCell) => ({
|
|
120
|
-
type: exports.
|
|
120
|
+
type: exports.SYSTEM_FLASHING_CELL_DELETE,
|
|
121
121
|
flashingCell: flashingCell,
|
|
122
122
|
});
|
|
123
123
|
exports.SystemFlashingCellDeleteAll = (flashingCells) => ({
|
|
124
|
-
type: exports.
|
|
124
|
+
type: exports.SYSTEM_FLASHING_CELL_DELETE_ALL,
|
|
125
125
|
flashingCells: flashingCells,
|
|
126
126
|
});
|
|
127
127
|
exports.SystemStatusMessageInfoAdd = (SystemStatusMessageInfo, MaxSystemStatusMessagesInStore) => ({
|
|
@@ -305,14 +305,14 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
305
305
|
return abObject;
|
|
306
306
|
}) });
|
|
307
307
|
}
|
|
308
|
-
case exports.
|
|
308
|
+
case exports.SYSTEM_FLASHING_CELL_ADD: {
|
|
309
309
|
const { flashingCell: FlashingCell } = action;
|
|
310
310
|
const { rowPrimaryKey } = FlashingCell;
|
|
311
311
|
const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
|
|
312
312
|
AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
|
|
313
313
|
const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
|
|
314
314
|
if (FlashingCell.flashTarget === 'row') {
|
|
315
|
-
secondaryIds.push(exports.
|
|
315
|
+
secondaryIds.push(exports.FLASHING_CELL_ROW_KEY);
|
|
316
316
|
}
|
|
317
317
|
secondaryIds.forEach((COL_ID) => {
|
|
318
318
|
AdaptableFlashingCells[rowPrimaryKey][COL_ID] = FlashingCell.Uuid;
|
|
@@ -324,7 +324,7 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
324
324
|
AdaptableFlashingCellsMap: AdaptableFlashingCellsMap,
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
|
-
case exports.
|
|
327
|
+
case exports.SYSTEM_FLASHING_CELL_DELETE: {
|
|
328
328
|
const { flashingCell: FlashingCell } = action;
|
|
329
329
|
const { rowPrimaryKey } = FlashingCell;
|
|
330
330
|
const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
|
|
@@ -332,7 +332,7 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
332
332
|
AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
|
|
333
333
|
const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
|
|
334
334
|
if (FlashingCell.flashTarget === 'row') {
|
|
335
|
-
secondaryIds.push(exports.
|
|
335
|
+
secondaryIds.push(exports.FLASHING_CELL_ROW_KEY);
|
|
336
336
|
}
|
|
337
337
|
secondaryIds.forEach((COL_ID) => {
|
|
338
338
|
if (AdaptableFlashingCells[rowPrimaryKey][COL_ID] === FlashingCell.Uuid) {
|
|
@@ -345,7 +345,7 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
345
345
|
delete AdaptableFlashingCellsMap[FlashingCell.Uuid];
|
|
346
346
|
return Object.assign(Object.assign({}, state), { AdaptableFlashingCells: AdaptableFlashingCells, AdaptableFlashingCellsMap: AdaptableFlashingCellsMap });
|
|
347
347
|
}
|
|
348
|
-
case exports.
|
|
348
|
+
case exports.SYSTEM_FLASHING_CELL_DELETE_ALL: {
|
|
349
349
|
return Object.assign({}, state, {
|
|
350
350
|
AdaptableFlashingCells: {},
|
|
351
351
|
AdaptableFlashingCellsMap: {},
|
|
@@ -400,7 +400,9 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
400
400
|
systemStatusMessages.splice(0, 1);
|
|
401
401
|
}
|
|
402
402
|
systemStatusMessages.push(actionTypedAdd.systemStatusMessageInfo);
|
|
403
|
-
return Object.assign({}, state, {
|
|
403
|
+
return Object.assign({}, state, {
|
|
404
|
+
SystemStatusMessages: systemStatusMessages,
|
|
405
|
+
});
|
|
404
406
|
}
|
|
405
407
|
case exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL: {
|
|
406
408
|
return Object.assign({}, state, { SystemStatusMessages: [] });
|
|
@@ -50,7 +50,9 @@ exports.ThemeReducer = (state = initialState, action) => {
|
|
|
50
50
|
UserThemes: action.UserThemes,
|
|
51
51
|
});
|
|
52
52
|
case exports.THEME_SELECT:
|
|
53
|
-
return Object.assign({}, state, {
|
|
53
|
+
return Object.assign({}, state, {
|
|
54
|
+
CurrentTheme: action.Theme,
|
|
55
|
+
});
|
|
54
56
|
default:
|
|
55
57
|
return state;
|
|
56
58
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createEngine = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const isomorphic_fetch_1 = tslib_1.__importDefault(require("isomorphic-fetch"));
|
|
6
|
-
const debounce_1 = tslib_1.__importDefault(require("lodash
|
|
6
|
+
const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
|
|
7
7
|
const AdaptableReduxMerger_1 = require("./AdaptableReduxMerger");
|
|
8
8
|
const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
|
|
9
9
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeReducer = exports.MergeState = exports.MergeStateFunction = exports.AddStateSource = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const mergeWith_1 = tslib_1.__importDefault(require("lodash
|
|
6
|
-
const merge_1 = tslib_1.__importDefault(require("lodash
|
|
7
|
-
const isArray_1 = tslib_1.__importDefault(require("lodash
|
|
8
|
-
const extend_1 = tslib_1.__importDefault(require("lodash
|
|
9
|
-
const isObject_1 = tslib_1.__importDefault(require("lodash
|
|
5
|
+
const mergeWith_1 = tslib_1.__importDefault(require("lodash/mergeWith"));
|
|
6
|
+
const merge_1 = tslib_1.__importDefault(require("lodash/merge"));
|
|
7
|
+
const isArray_1 = tslib_1.__importDefault(require("lodash/isArray"));
|
|
8
|
+
const extend_1 = tslib_1.__importDefault(require("lodash/extend"));
|
|
9
|
+
const isObject_1 = tslib_1.__importDefault(require("lodash/isObject"));
|
|
10
10
|
const isAdaptableObject_1 = require("../../Utilities/isAdaptableObject");
|
|
11
11
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
12
12
|
function customizer(objValue, srcValue) {
|