@adaptabletools/adaptable 11.2.4 → 12.0.0-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +568 -273
- package/bundle.cjs.js +120 -120
- package/index.css +642 -270
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +1 -0
- package/src/AdaptableOptions/{FormatColumnOptions.js → ActionOptions.js} +0 -0
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +5 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -10
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +5 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +14 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +49 -0
- package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.js → ColumnOptions.js} +0 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +2 -7
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +19 -0
- package/src/AdaptableOptions/EditOptions.d.ts +91 -4
- package/src/AdaptableOptions/EntitlementOptions.d.ts +7 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +9 -8
- package/src/AdaptableOptions/FilterOptions.d.ts +6 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +25 -23
- package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.d.ts → MasterDetailPluginOptions.d.ts} +2 -4
- package/src/AdaptableOptions/{SmartEdit.js → MasterDetailPluginOptions.js} +0 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -6
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -49
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +95 -50
- package/src/Api/AdaptableApi.d.ts +6 -3
- package/src/Api/ColumnApi.d.ts +9 -4
- package/src/Api/ConditionalStyleApi.d.ts +10 -0
- package/src/Api/ConfigApi.d.ts +0 -12
- package/src/Api/DashboardApi.d.ts +6 -19
- package/src/Api/DataSetApi.d.ts +40 -0
- package/src/Api/{DataSourceApi.js → DataSetApi.js} +0 -0
- package/src/Api/EventApi.d.ts +29 -1
- package/src/Api/Events/DataSetChanged.d.ts +5 -0
- package/src/{PredefinedConfig/DataSourceState.js → Api/Events/DataSetChanged.js} +0 -0
- package/src/Api/Events/RowFormSubmitted.d.ts +19 -0
- package/src/{PredefinedConfig/FilterState.js → Api/Events/RowFormSubmitted.js} +0 -0
- package/src/Api/Events/SearchChanged.d.ts +4 -5
- package/src/Api/ExportApi.d.ts +2 -2
- package/src/Api/FilterApi.d.ts +28 -36
- package/src/Api/FormatColumnApi.d.ts +6 -0
- package/src/Api/GridApi.d.ts +15 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
- package/src/Api/Implementation/AlertApiImpl.js +5 -1
- package/src/Api/Implementation/ApiBase.d.ts +3 -0
- package/src/Api/Implementation/ApiBase.js +6 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ColumnApiImpl.js +17 -16
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +8 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ConfigApiImpl.js +2 -24
- package/src/Api/Implementation/DashboardApiImpl.d.ts +3 -6
- package/src/Api/Implementation/DashboardApiImpl.js +5 -29
- package/src/Api/Implementation/DataSetApiImpl.d.ts +12 -0
- package/src/Api/Implementation/DataSetApiImpl.js +42 -0
- package/src/Api/Implementation/EventApiImpl.js +1 -0
- package/src/Api/Implementation/ExportApiImpl.d.ts +2 -2
- package/src/Api/Implementation/FilterApiImpl.d.ts +11 -11
- package/src/Api/Implementation/FilterApiImpl.js +59 -72
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -2
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
- package/src/Api/Implementation/GridApiImpl.js +45 -1
- package/src/Api/Implementation/InternalApiImpl.d.ts +7 -2
- package/src/Api/Implementation/InternalApiImpl.js +51 -10
- package/src/Api/Implementation/LayoutApiImpl.d.ts +3 -0
- package/src/Api/Implementation/LayoutApiImpl.js +20 -0
- package/src/Api/Implementation/PredicateApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PredicateApiImpl.js +19 -1
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +5 -2
- package/src/Api/Implementation/SmartEditApiImpl.js +9 -0
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +5 -3
- package/src/Api/Implementation/TeamSharingApiImpl.js +28 -10
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +7 -25
- package/src/Api/InternalApi.d.ts +6 -2
- package/src/Api/LayoutApi.d.ts +16 -0
- package/src/Api/PredicateApi.d.ts +7 -0
- package/src/Api/SmartEditApi.d.ts +14 -3
- package/src/Api/TeamSharingApi.d.ts +18 -5
- package/src/Api/UserInterfaceApi.d.ts +4 -4
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -0
- package/src/PredefinedConfig/Common/AdaptableButton.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +5 -1
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +3 -2
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +1 -3
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +2 -11
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +18 -1
- package/src/PredefinedConfig/Common/BaseContext.d.ts +1 -1
- package/src/PredefinedConfig/{FilterState.d.ts → Common/ColumnFilter.d.ts} +2 -33
- package/src/PredefinedConfig/Common/ColumnFilter.js +2 -0
- package/src/PredefinedConfig/Common/Enums.d.ts +2 -2
- package/src/PredefinedConfig/Common/Enums.js +1 -1
- package/src/PredefinedConfig/Common/FormContext.d.ts +8 -0
- package/src/PredefinedConfig/Common/FormContext.js +2 -0
- package/src/PredefinedConfig/Common/Types.d.ts +6 -5
- package/src/PredefinedConfig/Common/Types.js +2 -3
- package/src/PredefinedConfig/LayoutState.d.ts +5 -0
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
- package/src/PredefinedConfig/StatusBarState.d.ts +1 -2
- package/src/PredefinedConfig/SystemState.d.ts +4 -2
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +47 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +134 -1
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +3 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +39 -1
- package/src/Redux/Store/AdaptableStore.js +37 -39
- package/src/Strategy/AdaptableModuleBase.js +1 -2
- package/src/Strategy/AlertModule.d.ts +11 -0
- package/src/Strategy/AlertModule.js +14 -0
- package/src/Strategy/BulkUpdateModule.js +3 -4
- package/src/Strategy/CellSummaryModule.d.ts +3 -0
- package/src/Strategy/CellSummaryModule.js +29 -16
- package/src/Strategy/DataSetModule.d.ts +25 -0
- package/src/Strategy/DataSetModule.js +65 -0
- package/src/Strategy/ExportModule.js +6 -1
- package/src/Strategy/FilterModule.d.ts +7 -11
- package/src/Strategy/FilterModule.js +26 -20
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Strategy/Interface/IModule.d.ts +3 -1
- package/src/Strategy/LayoutModule.js +25 -2
- package/src/Strategy/PlusMinusModule.js +1 -4
- package/src/Strategy/SmartEditModule.d.ts +1 -1
- package/src/Strategy/SmartEditModule.js +7 -8
- package/src/Strategy/StatusBarModule.js +1 -3
- package/src/Strategy/TeamSharingModule.js +1 -1
- package/src/Strategy/ToolPanelModule.js +1 -4
- package/src/Utilities/Constants/GeneralConstants.d.ts +8 -2
- package/src/Utilities/Constants/GeneralConstants.js +8 -2
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -1
- package/src/Utilities/Constants/ModuleConstants.js +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +24 -13
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +4 -1
- package/src/Utilities/ObjectFactory.d.ts +3 -6
- package/src/Utilities/ObjectFactory.js +3 -7
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +6 -7
- package/src/Utilities/Services/EntitlementService.js +7 -1
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +8 -0
- package/src/Utilities/Services/Interface/IRowEditService.js +2 -0
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/ReportService.js +2 -3
- package/src/Utilities/Services/RowEditService.d.ts +26 -0
- package/src/Utilities/Services/RowEditService.js +197 -0
- package/src/Utilities/Services/TeamSharingService.js +4 -4
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +5 -6
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/Alert/ActiveAlertsPanel.d.ts +2 -0
- package/src/View/Alert/ActiveAlertsPanel.js +15 -0
- package/src/View/Alert/AlertStatusSubPanel.js +3 -8
- package/src/View/Alert/AlertViewPanel.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -3
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +13 -7
- package/src/View/CellSummary/CellSummaryDetails.js +4 -4
- package/src/View/CellSummary/CellSummaryPopover.d.ts +2 -4
- package/src/View/CellSummary/CellSummaryPopover.js +3 -6
- package/src/View/CellSummary/CellSummaryPopup.js +8 -0
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +18 -8
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -2
- package/src/View/Components/ExternalRenderer.d.ts +3 -6
- package/src/View/Components/ExternalRenderer.js +5 -5
- package/src/View/Components/FilterForm/FilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +10 -8
- package/src/View/Components/FilterForm/QuickFilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +0 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +13 -11
- package/src/View/Components/Popups/AdaptableToaster.js +29 -9
- package/src/View/Components/Popups/FormPopups/FormPopups.js +2 -2
- package/src/View/Components/PreviewResultsPanel.js +3 -3
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -2
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -9
- package/src/View/Components/WizardSummaryPage.js +2 -2
- package/src/View/Dashboard/CustomDashboardButton.d.ts +11 -0
- package/src/View/Dashboard/CustomDashboardButton.js +47 -0
- package/src/View/Dashboard/CustomToolbarWrapper.d.ts +1 -0
- package/src/View/Dashboard/CustomToolbarWrapper.js +30 -11
- package/src/View/Dashboard/Dashboard.d.ts +1 -0
- package/src/View/Dashboard/Dashboard.js +8 -34
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +19 -36
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +3 -0
- package/src/View/DataChangeHistory/buildActionColumnButton.js +70 -0
- package/src/View/DataSet/DataSetSelector.d.ts +7 -0
- package/src/View/DataSet/DataSetSelector.js +18 -0
- package/src/View/DataSet/DataSetStatusPanelPopover.d.ts +2 -0
- package/src/View/DataSet/DataSetStatusPanelPopover.js +19 -0
- package/src/View/DataSet/DataSetViewPanel.d.ts +19 -0
- package/src/View/DataSet/DataSetViewPanel.js +58 -0
- package/src/View/Filter/ActiveFiltersPanel.js +1 -1
- package/src/View/Filter/FilterSummary.d.ts +5 -5
- package/src/View/Filter/FilterSummary.js +5 -4
- package/src/View/Filter/FilterViewPanel.d.ts +4 -4
- package/src/View/Filter/FilterViewPanel.js +10 -13
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +5 -7
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +4 -5
- package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -24
- package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +2 -1
- package/src/View/SmartEdit/SmartEditPopup.d.ts +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +3 -4
- package/src/View/SmartEdit/SmartEditViewPanel.d.ts +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +3 -4
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +1 -1
- package/src/View/StatusBar/StatusBarPanel.d.ts +1 -0
- package/src/View/StatusBar/StatusBarPanel.js +5 -4
- package/src/View/Theme/ThemeStatusPanelPopover.js +5 -25
- package/src/View/UIHelper.d.ts +4 -4
- package/src/View/UIHelper.js +10 -10
- package/src/agGrid/ActionColumnRenderer.d.ts +6 -1
- package/src/agGrid/ActionColumnRenderer.js +9 -6
- package/src/agGrid/Adaptable.d.ts +7 -2
- package/src/agGrid/Adaptable.js +213 -69
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/agGridHelper.d.ts +7 -8
- package/src/agGrid/agGridHelper.js +68 -86
- package/src/agGrid/agGridMenuHelper.js +4 -1
- package/src/agGrid/rowEditIcons.d.ts +5 -0
- package/src/agGrid/rowEditIcons.js +10 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +9 -18
- package/src/components/Dashboard/DashboardToolbar.js +2 -2
- package/src/components/Datepicker/index.js +19 -18
- package/src/components/InfiniteTable/index.js +1 -0
- package/src/components/List/GridList/index.js +1 -1
- package/src/components/SelectList.d.ts +10 -0
- package/src/components/SelectList.js +9 -0
- package/src/components/WindowModal/WindowModal.d.ts +2 -0
- package/src/components/WindowModal/WindowModal.js +1 -1
- package/src/components/icons/{data-source.d.ts → add-row.d.ts} +0 -0
- package/src/components/icons/add-row.js +7 -0
- package/src/components/icons/data-set.d.ts +3 -0
- package/src/components/icons/{data-source.js → data-set.js} +0 -0
- package/src/components/icons/index.js +4 -2
- package/src/metamodel/adaptable.metamodel.d.ts +226 -69
- package/src/metamodel/adaptable.metamodel.js +532 -311
- package/src/types.d.ts +18 -13
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +0 -9
- package/src/AdaptableOptions/SmartEdit.d.ts +0 -34
- package/src/Api/DataSourceApi.d.ts +0 -58
- package/src/Api/Implementation/DataSourceApiImpl.d.ts +0 -15
- package/src/Api/Implementation/DataSourceApiImpl.js +0 -51
- package/src/PredefinedConfig/DataSourceState.d.ts +0 -34
- package/src/Redux/ActionsReducers/DataSourceRedux.d.ts +0 -42
- package/src/Redux/ActionsReducers/DataSourceRedux.js +0 -76
- package/src/Redux/ActionsReducers/FilterRedux.d.ts +0 -70
- package/src/Redux/ActionsReducers/FilterRedux.js +0 -126
- package/src/Strategy/DataSourceModule.d.ts +0 -20
- package/src/Strategy/DataSourceModule.js +0 -56
- package/src/View/Components/Forms/AdaptableForm.d.ts +0 -6
- package/src/View/Components/Forms/AdaptableForm.js +0 -21
- package/src/View/DataSource/DataSourceViewPanel.d.ts +0 -19
- package/src/View/DataSource/DataSourceViewPanel.js +0 -69
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.d.ts +0 -2
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +0 -17
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.d.ts +0 -8
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +0 -42
- package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +0 -8
- package/src/View/DataSource/Wizard/DataSourceWizard.js +0 -53
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { FilterState } from './FilterState';
|
|
2
1
|
import { ApplicationState } from './ApplicationState';
|
|
3
2
|
import { AlertState } from './AlertState';
|
|
4
3
|
import { CalculatedColumnState } from './CalculatedColumnState';
|
|
5
4
|
import { ConditionalStyleState } from './ConditionalStyleState';
|
|
6
5
|
import { CustomSortState } from './CustomSortState';
|
|
7
6
|
import { DashboardState } from './DashboardState';
|
|
8
|
-
import { DataSourceState } from './DataSourceState';
|
|
9
7
|
import { ExportState } from './ExportState';
|
|
10
8
|
import { FlashingCellState } from './FlashingCellState';
|
|
11
9
|
import { FormatColumnState } from './FormatColumnState';
|
|
@@ -47,18 +45,10 @@ export interface PredefinedConfig {
|
|
|
47
45
|
* Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons
|
|
48
46
|
*/
|
|
49
47
|
Dashboard?: DashboardState;
|
|
50
|
-
/**
|
|
51
|
-
* Supplies a collection of *DataSource* objects to facilitate replacing the DataSource in the Grid with an alternate set of data (e.g. a Book or Stored Proc name)
|
|
52
|
-
*/
|
|
53
|
-
DataSource?: DataSourceState;
|
|
54
48
|
/**
|
|
55
49
|
* Supplies a collection of *Report* objects, together with name of the Current Report, as part of AdapTable export Module
|
|
56
50
|
*/
|
|
57
51
|
Export?: ExportState;
|
|
58
|
-
/**
|
|
59
|
-
* Stores Filters in AdapTable - both System and Column (predicate) Filters
|
|
60
|
-
*/
|
|
61
|
-
Filter?: FilterState;
|
|
62
52
|
/***
|
|
63
53
|
* Objects which define which cells flash in response to data changes
|
|
64
54
|
*/
|
|
@@ -16,8 +16,7 @@ export interface StatusBarState extends ConfigState {
|
|
|
16
16
|
export declare const ADAPTABLE_STATUS_PANEL = "AdaptableStatusPanel";
|
|
17
17
|
export interface AdaptableStatusBar {
|
|
18
18
|
/**
|
|
19
|
-
* Key of status panel defined in AG Grid
|
|
20
|
-
* Note: AG Grid statusPanel has a lowercase 'key'
|
|
19
|
+
* Key of status panel defined in AG Grid GridOptions - ensure keys are the same (Note: AG Grid statusPanel has a lowercase 'key')
|
|
21
20
|
*/
|
|
22
21
|
Key: string;
|
|
23
22
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PreviewInfo } from '../Utilities/Interface/Preview';
|
|
2
2
|
import { InternalState } from './InternalState';
|
|
3
3
|
import { BulkUpdateValidationResult } from '../Strategy/Interface/IBulkUpdateModule';
|
|
4
|
-
import { CellDataChangedInfo, GridCell } from '../types';
|
|
4
|
+
import { CellDataChangedInfo, GridCell, SmartEditOperation } from '../types';
|
|
5
5
|
import type { IPushPullState, IPushPullReport, IPushPullDomain } from './IPushPullState';
|
|
6
6
|
import { Glue42State, Glue42Report } from './Glue42State';
|
|
7
7
|
import { OpenFinState, OpenFinReport } from './OpenFinState';
|
|
@@ -13,7 +13,6 @@ import { CachedQuery } from './QueryState';
|
|
|
13
13
|
import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
|
|
14
14
|
import { TypeUuid } from './Uuid';
|
|
15
15
|
import { SummaryOperation } from './Common/Enums';
|
|
16
|
-
import { SmartEditOperation } from '../AdaptableOptions/SmartEdit';
|
|
17
16
|
export type { IPushPullReport, IPushPullDomain };
|
|
18
17
|
export type { Glue42Report };
|
|
19
18
|
export type { OpenFinReport };
|
|
@@ -69,6 +68,9 @@ export interface SystemState extends InternalState, IPushPullState, Glue42State,
|
|
|
69
68
|
};
|
|
70
69
|
};
|
|
71
70
|
ShowLayoutNotAssociatedObjects: boolean;
|
|
71
|
+
DashboardRevision: number;
|
|
72
|
+
IsQuickFilterVisible: boolean;
|
|
73
|
+
CurrentDataSet: string;
|
|
72
74
|
}
|
|
73
75
|
export interface ProgressIndicator {
|
|
74
76
|
active: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as Redux from 'redux';
|
|
2
|
+
import { AdaptableState } from '../../../types';
|
|
2
3
|
import { LayoutState, Layout } from '../../PredefinedConfig/LayoutState';
|
|
4
|
+
import { ColumnFilter } from '../../types';
|
|
3
5
|
/**
|
|
4
6
|
* @ReduxAction A Layout has been added
|
|
5
7
|
*/
|
|
@@ -20,6 +22,45 @@ export declare const LAYOUT_SELECT = "LAYOUT_SELECT";
|
|
|
20
22
|
* @ReduxAction A Layout has been (auto)saved
|
|
21
23
|
*/
|
|
22
24
|
export declare const LAYOUT_SAVE = "LAYOUT_SAVE";
|
|
25
|
+
export declare const LAYOUT_REMOVE_COLUMN = "LAYOUT_REMOVE_COLUMN";
|
|
26
|
+
/**
|
|
27
|
+
* @ReduxAction A Column Filter has been added
|
|
28
|
+
*/
|
|
29
|
+
export declare const LAYOUT_COLUMN_FILTER_ADD = "LAYOUT_COLUMN_FILTER_ADD";
|
|
30
|
+
/**
|
|
31
|
+
* @ReduxAction A Column Filter has been edited
|
|
32
|
+
*/
|
|
33
|
+
export declare const LAYOUT_COLUMN_FILTER_EDIT = "LAYOUT_COLUMN_FILTER_EDIT";
|
|
34
|
+
/**
|
|
35
|
+
* @ReduxAction Column Filters have been set
|
|
36
|
+
*/
|
|
37
|
+
export declare const LAYOUT_COLUMN_FILTER_SET = "LAYOUT_COLUMN_FILTER_SET";
|
|
38
|
+
/**
|
|
39
|
+
* @ReduxAction All Column Filters have been cleared
|
|
40
|
+
*/
|
|
41
|
+
export declare const LAYOUT_COLUMN_FILTER_CLEAR_ALL = "LAYOUT_COLUMN_FILTER_CLEAR_ALL";
|
|
42
|
+
/**
|
|
43
|
+
* @ReduxAction A Column Filter has been cleared
|
|
44
|
+
*/
|
|
45
|
+
export declare const LAYOUT_COLUMN_FILTER_CLEAR = "LAYOUT_COLUMN_FILTER_CLEAR";
|
|
46
|
+
export interface LayoutColumnFilterAction extends Redux.Action {
|
|
47
|
+
columnFilter: ColumnFilter;
|
|
48
|
+
}
|
|
49
|
+
export interface LayoutColumnFilterAddAction extends LayoutColumnFilterAction {
|
|
50
|
+
}
|
|
51
|
+
export interface LayoutColumnFilterEditAction extends LayoutColumnFilterAction {
|
|
52
|
+
}
|
|
53
|
+
export interface LayoutFilterSetAction extends LayoutColumnFilterAction {
|
|
54
|
+
}
|
|
55
|
+
export interface LayoutFilterClearAction extends LayoutColumnFilterAction {
|
|
56
|
+
}
|
|
57
|
+
export interface LayoutFilterClearAllAction extends Redux.Action {
|
|
58
|
+
}
|
|
59
|
+
export declare const LayoutColumnFilterAdd: (columnFilter: ColumnFilter) => LayoutColumnFilterAddAction;
|
|
60
|
+
export declare const LayoutColumnFilterEdit: (columnFilter: ColumnFilter) => LayoutColumnFilterEditAction;
|
|
61
|
+
export declare const LayoutColumnFilterSet: (columnFilter: ColumnFilter) => LayoutFilterSetAction;
|
|
62
|
+
export declare const LayoutColumnFilterClearAll: () => LayoutFilterClearAllAction;
|
|
63
|
+
export declare const LayoutColumnFilterClear: (columnFilter: ColumnFilter) => LayoutFilterClearAction;
|
|
23
64
|
/**
|
|
24
65
|
* @ReduxAction A new caption / header has been set for a Column in the Layout
|
|
25
66
|
*/
|
|
@@ -45,6 +86,10 @@ export interface LayoutSetColumnCaptionAction extends Redux.Action {
|
|
|
45
86
|
columnId: string;
|
|
46
87
|
caption: string;
|
|
47
88
|
}
|
|
89
|
+
export interface LayoutRemoveColumnAction extends Redux.Action {
|
|
90
|
+
layoutName: string;
|
|
91
|
+
columnId: string;
|
|
92
|
+
}
|
|
48
93
|
export interface LayoutUpdateCurrentDraftAction extends LayoutAction {
|
|
49
94
|
}
|
|
50
95
|
export interface LayoutSelectAction extends Redux.Action {
|
|
@@ -61,7 +106,9 @@ export declare const LayoutAdd: (layout: Layout) => LayoutAddAction;
|
|
|
61
106
|
export declare const LayoutDelete: (layout: Layout) => LayoutDeleteAction;
|
|
62
107
|
export declare const LayoutSave: (layout: Layout) => LayoutSaveAction;
|
|
63
108
|
export declare const LayoutSetColumnCaption: (layoutName: string, columnId: string, caption: string) => LayoutSetColumnCaptionAction;
|
|
109
|
+
export declare const LayouRemoveColumn: (layoutName: string, columnId: string) => LayoutRemoveColumnAction;
|
|
64
110
|
export declare const LayoutSelect: (layoutName: string) => LayoutSelectAction;
|
|
65
111
|
export declare const LayoutUpdateCurrentDraft: (layout: Layout) => LayoutUpdateCurrentDraftAction;
|
|
66
112
|
export declare const LayoutReady: (layoutState: LayoutState) => LayoutReadyAction;
|
|
113
|
+
export declare const getColumnFilterSelector: (state: AdaptableState) => ColumnFilter[];
|
|
67
114
|
export declare const LayoutReducer: Redux.Reducer<LayoutState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LayoutReducer = exports.LayoutReady = exports.LayoutUpdateCurrentDraft = exports.LayoutSelect = exports.LayoutSetColumnCaption = exports.LayoutSave = exports.LayoutDelete = exports.LayoutAdd = exports.LAYOUT_READY = exports.LAYOUT_UPDATE_CURRENT_DRAFT = exports.LAYOUT_SET_COLUMN_CAPTION = exports.LAYOUT_SAVE = exports.LAYOUT_SELECT = exports.LAYOUT_DELETE = exports.LAYOUT_EDIT = exports.LAYOUT_ADD = void 0;
|
|
3
|
+
exports.LayoutReducer = exports.getColumnFilterSelector = exports.LayoutReady = exports.LayoutUpdateCurrentDraft = exports.LayoutSelect = exports.LayouRemoveColumn = exports.LayoutSetColumnCaption = exports.LayoutSave = exports.LayoutDelete = exports.LayoutAdd = exports.LAYOUT_READY = exports.LAYOUT_UPDATE_CURRENT_DRAFT = exports.LAYOUT_SET_COLUMN_CAPTION = exports.LayoutColumnFilterClear = exports.LayoutColumnFilterClearAll = exports.LayoutColumnFilterSet = exports.LayoutColumnFilterEdit = exports.LayoutColumnFilterAdd = exports.LAYOUT_COLUMN_FILTER_CLEAR = exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_COLUMN_FILTER_SET = exports.LAYOUT_COLUMN_FILTER_EDIT = exports.LAYOUT_COLUMN_FILTER_ADD = exports.LAYOUT_REMOVE_COLUMN = exports.LAYOUT_SAVE = exports.LAYOUT_SELECT = exports.LAYOUT_DELETE = exports.LAYOUT_EDIT = exports.LAYOUT_ADD = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -24,6 +24,47 @@ exports.LAYOUT_SELECT = 'LAYOUT_SELECT';
|
|
|
24
24
|
* @ReduxAction A Layout has been (auto)saved
|
|
25
25
|
*/
|
|
26
26
|
exports.LAYOUT_SAVE = 'LAYOUT_SAVE';
|
|
27
|
+
exports.LAYOUT_REMOVE_COLUMN = 'LAYOUT_REMOVE_COLUMN';
|
|
28
|
+
/**
|
|
29
|
+
* @ReduxAction A Column Filter has been added
|
|
30
|
+
*/
|
|
31
|
+
exports.LAYOUT_COLUMN_FILTER_ADD = 'LAYOUT_COLUMN_FILTER_ADD';
|
|
32
|
+
/**
|
|
33
|
+
* @ReduxAction A Column Filter has been edited
|
|
34
|
+
*/
|
|
35
|
+
exports.LAYOUT_COLUMN_FILTER_EDIT = 'LAYOUT_COLUMN_FILTER_EDIT';
|
|
36
|
+
/**
|
|
37
|
+
* @ReduxAction Column Filters have been set
|
|
38
|
+
*/
|
|
39
|
+
exports.LAYOUT_COLUMN_FILTER_SET = 'LAYOUT_COLUMN_FILTER_SET';
|
|
40
|
+
/**
|
|
41
|
+
* @ReduxAction All Column Filters have been cleared
|
|
42
|
+
*/
|
|
43
|
+
exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL = 'LAYOUT_COLUMN_FILTER_CLEAR_ALL';
|
|
44
|
+
/**
|
|
45
|
+
* @ReduxAction A Column Filter has been cleared
|
|
46
|
+
*/
|
|
47
|
+
exports.LAYOUT_COLUMN_FILTER_CLEAR = 'LAYOUT_COLUMN_FILTER_CLEAR';
|
|
48
|
+
// Column Filter Methods
|
|
49
|
+
exports.LayoutColumnFilterAdd = (columnFilter) => ({
|
|
50
|
+
type: exports.LAYOUT_COLUMN_FILTER_ADD,
|
|
51
|
+
columnFilter,
|
|
52
|
+
});
|
|
53
|
+
exports.LayoutColumnFilterEdit = (columnFilter) => ({
|
|
54
|
+
type: exports.LAYOUT_COLUMN_FILTER_EDIT,
|
|
55
|
+
columnFilter,
|
|
56
|
+
});
|
|
57
|
+
exports.LayoutColumnFilterSet = (columnFilter) => ({
|
|
58
|
+
type: exports.LAYOUT_COLUMN_FILTER_SET,
|
|
59
|
+
columnFilter,
|
|
60
|
+
});
|
|
61
|
+
exports.LayoutColumnFilterClearAll = () => ({
|
|
62
|
+
type: exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL,
|
|
63
|
+
});
|
|
64
|
+
exports.LayoutColumnFilterClear = (columnFilter) => ({
|
|
65
|
+
type: exports.LAYOUT_COLUMN_FILTER_CLEAR,
|
|
66
|
+
columnFilter,
|
|
67
|
+
});
|
|
27
68
|
/**
|
|
28
69
|
* @ReduxAction A new caption / header has been set for a Column in the Layout
|
|
29
70
|
*/
|
|
@@ -51,6 +92,11 @@ exports.LayoutSetColumnCaption = (layoutName, columnId, caption) => ({
|
|
|
51
92
|
columnId,
|
|
52
93
|
caption,
|
|
53
94
|
});
|
|
95
|
+
exports.LayouRemoveColumn = (layoutName, columnId) => ({
|
|
96
|
+
type: exports.LAYOUT_REMOVE_COLUMN,
|
|
97
|
+
layoutName,
|
|
98
|
+
columnId,
|
|
99
|
+
});
|
|
54
100
|
exports.LayoutSelect = (layoutName) => ({
|
|
55
101
|
type: exports.LAYOUT_SELECT,
|
|
56
102
|
layoutName,
|
|
@@ -63,12 +109,19 @@ exports.LayoutReady = (layoutState) => ({
|
|
|
63
109
|
type: exports.LAYOUT_READY,
|
|
64
110
|
layoutState,
|
|
65
111
|
});
|
|
112
|
+
exports.getColumnFilterSelector = (state) => {
|
|
113
|
+
var _a, _b, _c, _d;
|
|
114
|
+
const currentLayout = (_c = (_b = (_a = state.Layout) === null || _a === void 0 ? void 0 : _a.Layouts) === null || _b === void 0 ? void 0 : _b.find) === null || _c === void 0 ? void 0 : _c.call(_b, (layout) => layout.Name === state.Layout.CurrentLayout);
|
|
115
|
+
return (_d = currentLayout === null || currentLayout === void 0 ? void 0 : currentLayout.ColumnFilters) !== null && _d !== void 0 ? _d : [];
|
|
116
|
+
};
|
|
66
117
|
const initialState = {
|
|
67
118
|
CurrentLayout: GeneralConstants_1.EMPTY_STRING,
|
|
68
119
|
Layouts: GeneralConstants_1.EMPTY_ARRAY,
|
|
69
120
|
};
|
|
70
121
|
exports.LayoutReducer = (state = initialState, action) => {
|
|
122
|
+
var _a, _b, _c, _d;
|
|
71
123
|
let layouts;
|
|
124
|
+
const currentLayout = state.Layouts.find((layout) => layout.Name === state.CurrentLayout);
|
|
72
125
|
switch (action.type) {
|
|
73
126
|
case exports.LAYOUT_SELECT: {
|
|
74
127
|
const newCurrentLayout = action.layoutName;
|
|
@@ -106,6 +159,86 @@ exports.LayoutReducer = (state = initialState, action) => {
|
|
|
106
159
|
}
|
|
107
160
|
return state;
|
|
108
161
|
}
|
|
162
|
+
case exports.LAYOUT_REMOVE_COLUMN: {
|
|
163
|
+
const removeColumnAction = action;
|
|
164
|
+
const layoutname = removeColumnAction.layoutName;
|
|
165
|
+
const colToRemove = removeColumnAction.columnId;
|
|
166
|
+
let layoutToUpdate = state.Layouts.find((l) => l.Name === layoutname);
|
|
167
|
+
if (layoutToUpdate) {
|
|
168
|
+
layoutToUpdate.Columns = layoutToUpdate.Columns.filter((col) => {
|
|
169
|
+
return col !== colToRemove;
|
|
170
|
+
});
|
|
171
|
+
return Object.assign(Object.assign({}, state), { Layouts: state.Layouts.map((abObject) => abObject.Uuid === layoutToUpdate.Uuid ? layoutToUpdate : abObject) });
|
|
172
|
+
}
|
|
173
|
+
return state;
|
|
174
|
+
}
|
|
175
|
+
case exports.LAYOUT_COLUMN_FILTER_SET: {
|
|
176
|
+
let columnFilters = (_a = currentLayout.ColumnFilters) !== null && _a !== void 0 ? _a : [];
|
|
177
|
+
const columnFilterAction = action.columnFilter;
|
|
178
|
+
AdaptableHelper_1.default.addUuidAndSource(columnFilterAction);
|
|
179
|
+
columnFilters = columnFilters
|
|
180
|
+
.filter((colFilter) => {
|
|
181
|
+
return colFilter.ColumnId !== columnFilterAction.ColumnId;
|
|
182
|
+
})
|
|
183
|
+
.concat(columnFilterAction);
|
|
184
|
+
const Layouts = state.Layouts.map((layout) => {
|
|
185
|
+
if (layout.Name === currentLayout.Name) {
|
|
186
|
+
return Object.assign(Object.assign({}, layout), { ColumnFilters: columnFilters });
|
|
187
|
+
}
|
|
188
|
+
return layout;
|
|
189
|
+
});
|
|
190
|
+
return Object.assign(Object.assign({}, state), { Layouts });
|
|
191
|
+
}
|
|
192
|
+
case exports.LAYOUT_COLUMN_FILTER_ADD: {
|
|
193
|
+
let columnFilters = [...((_b = currentLayout.ColumnFilters) !== null && _b !== void 0 ? _b : [])];
|
|
194
|
+
const columnFilterAction = action.columnFilter;
|
|
195
|
+
AdaptableHelper_1.default.addUuidAndSource(columnFilterAction);
|
|
196
|
+
columnFilters.push(columnFilterAction);
|
|
197
|
+
const Layouts = state.Layouts.map((layout) => {
|
|
198
|
+
if (layout.Name === currentLayout.Name) {
|
|
199
|
+
return Object.assign(Object.assign({}, layout), { ColumnFilters: columnFilters });
|
|
200
|
+
}
|
|
201
|
+
return layout;
|
|
202
|
+
});
|
|
203
|
+
return Object.assign(Object.assign({}, state), { Layouts });
|
|
204
|
+
}
|
|
205
|
+
case exports.LAYOUT_COLUMN_FILTER_EDIT: {
|
|
206
|
+
const columnFilterAction = action.columnFilter;
|
|
207
|
+
let columnFilters = ((_c = currentLayout.ColumnFilters) !== null && _c !== void 0 ? _c : []).map((abObject) => abObject.Uuid === columnFilterAction.Uuid ? columnFilterAction : abObject);
|
|
208
|
+
const Layouts = state.Layouts.map((layout) => {
|
|
209
|
+
if (layout.Name === currentLayout.Name) {
|
|
210
|
+
return Object.assign(Object.assign({}, layout), { ColumnFilters: columnFilters });
|
|
211
|
+
}
|
|
212
|
+
return layout;
|
|
213
|
+
});
|
|
214
|
+
return Object.assign(Object.assign({}, state), { Layouts });
|
|
215
|
+
}
|
|
216
|
+
case exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL: {
|
|
217
|
+
const Layouts = state.Layouts.map((layout) => {
|
|
218
|
+
if (layout.Name === currentLayout.Name) {
|
|
219
|
+
return Object.assign(Object.assign({}, layout), { ColumnFilters: [] });
|
|
220
|
+
}
|
|
221
|
+
return layout;
|
|
222
|
+
});
|
|
223
|
+
return Object.assign(Object.assign({}, state), { Layouts });
|
|
224
|
+
}
|
|
225
|
+
case exports.LAYOUT_COLUMN_FILTER_CLEAR: {
|
|
226
|
+
let columnFilters = [...((_d = currentLayout.ColumnFilters) !== null && _d !== void 0 ? _d : [])];
|
|
227
|
+
const actionTypedDelete = action;
|
|
228
|
+
const index = actionTypedDelete.columnFilter
|
|
229
|
+
? columnFilters.findIndex((i) => i.Uuid == actionTypedDelete.columnFilter.Uuid)
|
|
230
|
+
: -1;
|
|
231
|
+
if (index != -1) {
|
|
232
|
+
columnFilters.splice(index, 1);
|
|
233
|
+
}
|
|
234
|
+
const Layouts = state.Layouts.map((layout) => {
|
|
235
|
+
if (layout.Name === currentLayout.Name) {
|
|
236
|
+
return Object.assign(Object.assign({}, layout), { ColumnFilters: columnFilters });
|
|
237
|
+
}
|
|
238
|
+
return layout;
|
|
239
|
+
});
|
|
240
|
+
return Object.assign(Object.assign({}, state), { Layouts });
|
|
241
|
+
}
|
|
109
242
|
default:
|
|
110
243
|
return state;
|
|
111
244
|
}
|
|
@@ -5,6 +5,7 @@ import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupP
|
|
|
5
5
|
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
6
6
|
import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
|
|
7
7
|
import { AdaptableForm, BaseContext } from '../../types';
|
|
8
|
+
import { FormContext } from '../../PredefinedConfig/Common/FormContext';
|
|
8
9
|
export declare const POPUP_SHOW_SCREEN = "POPUP_SHOW_SCREEN";
|
|
9
10
|
export declare const POPUP_HIDE_SCREEN = "POPUP_HIDE_SCREEN";
|
|
10
11
|
export declare const POPUP_SHOW_LOADING = "POPUP_SHOW_LOADING";
|
|
@@ -89,9 +90,9 @@ export declare const PopupShowWindow: (config: {
|
|
|
89
90
|
export declare const PopupHideWindow: (id: string) => PopupHideWindowAction;
|
|
90
91
|
export declare const PopupShowForm: (config: {
|
|
91
92
|
Id: string;
|
|
92
|
-
Form: AdaptableForm<
|
|
93
|
+
Form: AdaptableForm<FormContext>;
|
|
93
94
|
FormProps?: any;
|
|
94
|
-
prepareContext?: (context:
|
|
95
|
+
prepareContext?: (context: FormContext) => Promise<FormContext> | FormContext;
|
|
95
96
|
}) => PopupShowFormAction;
|
|
96
97
|
export declare const PopupHideForm: (id: string) => PopupHideFormAction;
|
|
97
98
|
export declare const PopupShowAlert: (alert: AdaptableAlert) => PopupShowAlertAction;
|
|
@@ -13,7 +13,8 @@ import { AdaptableFlashingCell } from '../../PredefinedConfig/Common/AdaptableFl
|
|
|
13
13
|
import { SummaryOperation } from '../../PredefinedConfig/Common/Enums';
|
|
14
14
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
15
15
|
import { RowsHighlightInfo } from '../../PredefinedConfig/Common/RowsHighlightInfo';
|
|
16
|
-
import { SmartEditOperation } from '../../AdaptableOptions/
|
|
16
|
+
import { SmartEditOperation } from '../../AdaptableOptions/EditOptions';
|
|
17
|
+
import { DataSet } from '../../types';
|
|
17
18
|
export declare const FLASHING_CELL_ROW_KEY = "__ROW";
|
|
18
19
|
export declare const SYSTEM_ALERT_ADD = "SYSTEM_ALERT_ADD";
|
|
19
20
|
export declare const SYSTEM_ALERT_DELETE = "SYSTEM_ALERT_DELETE";
|
|
@@ -59,7 +60,12 @@ export declare const SYSTEM_DATA_CHANGE_HISTORY_DISABLE = "SYSTEM_DATA_CHANGE_HI
|
|
|
59
60
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = "SYSTEM_DATA_CHANGE_HISTORY_SUSPEND";
|
|
60
61
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_RESUME = "SYSTEM_DATA_CHANGE_HISTORY_RESUME";
|
|
61
62
|
export declare const SYSTEM_SETTINGS_PANEL_SET = "SYSTEM_SETTINGS_PANEL_SET";
|
|
63
|
+
export declare const SYSTEM_QUICK_FILTER_BAR_SHOW = "SYSTEM_QUICK_FILTER_BAR_SHOW";
|
|
64
|
+
export declare const SYSTEM_QUICK_FILTER_BAR_HIDE = "SYSTEM_QUICK_FILTER_BAR_HIDE";
|
|
65
|
+
export declare const SYSTEM_FILTER_FORM_HIDE = "SYSTEM_FILTER_FORM_HIDE";
|
|
62
66
|
export declare const SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = "SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS";
|
|
67
|
+
export declare const DASHBOARD_REFRESH = "DASHBOARD_REFRESH";
|
|
68
|
+
export declare const SYSTEM_DATA_SET_SELECT = "SYSTEM_DATA_SET_SELECT";
|
|
63
69
|
export interface SystemHighlightCellAddAction extends Redux.Action {
|
|
64
70
|
cellHighlightInfo: CellHighlightInfo;
|
|
65
71
|
}
|
|
@@ -202,13 +208,24 @@ export interface SystemDataChangeHistorySuspendAction extends Redux.Action {
|
|
|
202
208
|
}
|
|
203
209
|
export interface SystemDataChangeHistoryResumeAction extends Redux.Action {
|
|
204
210
|
}
|
|
211
|
+
export interface SystemDashboardRefreshAction extends Redux.Action {
|
|
212
|
+
}
|
|
205
213
|
export interface SystemSettingsPanelSetAction extends Redux.Action {
|
|
206
214
|
name: string;
|
|
207
215
|
settings: SystemState['SettingsPanel']['0'];
|
|
208
216
|
}
|
|
217
|
+
export interface SystemQuickFilterBarShowAction extends Redux.Action {
|
|
218
|
+
}
|
|
219
|
+
export interface SystemQuickFilterBarHideAction extends Redux.Action {
|
|
220
|
+
}
|
|
221
|
+
export interface SystemFilterFormHideAction extends Redux.Action {
|
|
222
|
+
}
|
|
209
223
|
export interface SystemLayoutShowNotAssociatedObjectsAction extends Redux.Action {
|
|
210
224
|
showNotAssociatedObjects: boolean;
|
|
211
225
|
}
|
|
226
|
+
export interface SystemDataSetSelectAction extends Redux.Action {
|
|
227
|
+
dataSet: DataSet;
|
|
228
|
+
}
|
|
212
229
|
export declare const SystemHighlightCellAdd: (cellHighlightInfo: CellHighlightInfo) => SystemHighlightCellAddAction;
|
|
213
230
|
export declare const SystemHighlightCellDelete: (primaryKeyValue: CellHighlightInfo['primaryKeyValue'], columnId: CellHighlightInfo['columnId']) => SystemHighlightCellDeleteAction;
|
|
214
231
|
export declare const SystemHighlightCellDeleteAll: () => SystemHighlightCellDeleteAllAction;
|
|
@@ -252,5 +269,10 @@ export declare const SystemDataChangeHistoryDisable: () => SystemDataChangeHisto
|
|
|
252
269
|
export declare const SystemDataChangeHistorySuspend: () => SystemDataChangeHistorySuspendAction;
|
|
253
270
|
export declare const SystemDataChangeHistoryResume: () => SystemDataChangeHistoryResumeAction;
|
|
254
271
|
export declare const SystemSettingsPanelSet: (name: string, settings: SystemState['SettingsPanel']['0']) => SystemSettingsPanelSetAction;
|
|
272
|
+
export declare const SystemQuickFilterBarShow: () => SystemQuickFilterBarShowAction;
|
|
273
|
+
export declare const SystemQuickFilterBarHide: () => SystemQuickFilterBarHideAction;
|
|
274
|
+
export declare const SystemFilterFormHide: () => SystemFilterFormHideAction;
|
|
255
275
|
export declare const SystemLayoutShowNotAssociatedObjects: (showNotAssociatedObjects: boolean) => SystemLayoutShowNotAssociatedObjectsAction;
|
|
276
|
+
export declare const SystemDashboardRefresh: () => SystemDashboardRefreshAction;
|
|
277
|
+
export declare const SystemDataSetSelect: (dataSet: DataSet) => SystemDataSetSelectAction;
|
|
256
278
|
export declare const SystemReducer: Redux.Reducer<SystemState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemReducer = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
|
|
3
|
+
exports.SystemReducer = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
|
|
4
4
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
5
5
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
6
6
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
@@ -68,7 +68,15 @@ exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = 'SYSTEM_DATA_CHANGE_HISTORY_SUSPEND
|
|
|
68
68
|
exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = 'SYSTEM_DATA_CHANGE_HISTORY_RESUME';
|
|
69
69
|
// Settings panel
|
|
70
70
|
exports.SYSTEM_SETTINGS_PANEL_SET = 'SYSTEM_SETTINGS_PANEL_SET';
|
|
71
|
+
// Quick Filter
|
|
72
|
+
exports.SYSTEM_QUICK_FILTER_BAR_SHOW = 'SYSTEM_QUICK_FILTER_BAR_SHOW';
|
|
73
|
+
exports.SYSTEM_QUICK_FILTER_BAR_HIDE = 'SYSTEM_QUICK_FILTER_BAR_HIDE';
|
|
74
|
+
exports.SYSTEM_FILTER_FORM_HIDE = 'SYSTEM_FILTER_FORM_HIDE';
|
|
75
|
+
// Layout
|
|
71
76
|
exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = 'SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS';
|
|
77
|
+
exports.DASHBOARD_REFRESH = 'DASHBOARD_REFRESH';
|
|
78
|
+
// DataSet
|
|
79
|
+
exports.SYSTEM_DATA_SET_SELECT = 'SYSTEM_DATA_SET_SELECT';
|
|
72
80
|
exports.SystemHighlightCellAdd = (cellHighlightInfo) => ({
|
|
73
81
|
type: exports.SYSTEM_HIGHLIGHT_CELL_ADD,
|
|
74
82
|
cellHighlightInfo: cellHighlightInfo,
|
|
@@ -234,10 +242,26 @@ exports.SystemSettingsPanelSet = (name, settings) => ({
|
|
|
234
242
|
name,
|
|
235
243
|
settings,
|
|
236
244
|
});
|
|
245
|
+
exports.SystemQuickFilterBarShow = () => ({
|
|
246
|
+
type: exports.SYSTEM_QUICK_FILTER_BAR_SHOW,
|
|
247
|
+
});
|
|
248
|
+
exports.SystemQuickFilterBarHide = () => ({
|
|
249
|
+
type: exports.SYSTEM_QUICK_FILTER_BAR_HIDE,
|
|
250
|
+
});
|
|
251
|
+
exports.SystemFilterFormHide = () => ({
|
|
252
|
+
type: exports.SYSTEM_FILTER_FORM_HIDE,
|
|
253
|
+
});
|
|
237
254
|
exports.SystemLayoutShowNotAssociatedObjects = (showNotAssociatedObjects) => ({
|
|
238
255
|
type: exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS,
|
|
239
256
|
showNotAssociatedObjects,
|
|
240
257
|
});
|
|
258
|
+
exports.SystemDashboardRefresh = () => ({
|
|
259
|
+
type: exports.DASHBOARD_REFRESH,
|
|
260
|
+
});
|
|
261
|
+
exports.SystemDataSetSelect = (dataSet) => ({
|
|
262
|
+
type: exports.SYSTEM_DATA_SET_SELECT,
|
|
263
|
+
dataSet: dataSet,
|
|
264
|
+
});
|
|
241
265
|
const initialState = {
|
|
242
266
|
AdaptableAlerts: GeneralConstants_1.EMPTY_ARRAY,
|
|
243
267
|
AdaptableFlashingCells: {},
|
|
@@ -270,6 +294,9 @@ const initialState = {
|
|
|
270
294
|
},
|
|
271
295
|
SettingsPanel: {},
|
|
272
296
|
ShowLayoutNotAssociatedObjects: false,
|
|
297
|
+
DashboardRevision: 1,
|
|
298
|
+
IsQuickFilterVisible: true,
|
|
299
|
+
CurrentDataSet: GeneralConstants_1.EMPTY_STRING,
|
|
273
300
|
};
|
|
274
301
|
exports.SystemReducer = (state = initialState, action) => {
|
|
275
302
|
let alerts;
|
|
@@ -554,10 +581,21 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
554
581
|
const setSettingsAction = action;
|
|
555
582
|
return Object.assign(Object.assign({}, state), { SettingsPanel: Object.assign(Object.assign({}, state === null || state === void 0 ? void 0 : state.SettingsPanel), { [setSettingsAction.name]: setSettingsAction.settings }) });
|
|
556
583
|
}
|
|
584
|
+
case exports.SYSTEM_QUICK_FILTER_BAR_SHOW:
|
|
585
|
+
return Object.assign({}, state, { IsQuickFilterVisible: true });
|
|
586
|
+
case exports.SYSTEM_QUICK_FILTER_BAR_HIDE:
|
|
587
|
+
return Object.assign({}, state, { IsQuickFilterVisible: false });
|
|
557
588
|
case exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS: {
|
|
558
589
|
const typedAction = action;
|
|
559
590
|
return Object.assign(Object.assign({}, state), { ShowLayoutNotAssociatedObjects: typedAction.showNotAssociatedObjects });
|
|
560
591
|
}
|
|
592
|
+
case exports.SYSTEM_DATA_SET_SELECT:
|
|
593
|
+
return Object.assign({}, state, {
|
|
594
|
+
CurrentDataSet: action.dataSet.name,
|
|
595
|
+
});
|
|
596
|
+
case exports.DASHBOARD_REFRESH: {
|
|
597
|
+
return Object.assign(Object.assign({}, state), { DashboardRevision: state.DashboardRevision + 1 });
|
|
598
|
+
}
|
|
561
599
|
default:
|
|
562
600
|
return state;
|
|
563
601
|
}
|