@adaptabletools/adaptable 10.0.3 → 10.0.4-canary.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/base.css +16 -6
- package/bundle.cjs.js +350 -0
- package/index.css +20 -6
- package/package.json +1 -5
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +14 -12
- package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -3
- package/src/AdaptableOptions/ContainerOptions.d.ts +4 -5
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
- package/src/AdaptableOptions/DateInputOptions.d.ts +5 -1
- package/src/AdaptableOptions/EditOptions.d.ts +2 -3
- package/src/AdaptableOptions/FilterOptions.d.ts +8 -8
- package/src/AdaptableOptions/GeneralOptions.d.ts +3 -2
- package/src/AdaptableOptions/MenuOptions.d.ts +11 -11
- package/src/AdaptableOptions/NotificationsOptions.d.ts +11 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +29 -12
- package/src/Api/AdaptableApi.d.ts +12 -12
- package/src/Api/CalculatedColumnApi.d.ts +15 -0
- package/src/Api/ColumnApi.d.ts +16 -5
- package/src/Api/EventApi.d.ts +1 -1
- package/src/Api/Events/AdaptableReady.d.ts +5 -8
- package/src/Api/Events/AdaptableStateChanged.d.ts +2 -1
- package/src/Api/Events/AlertFired.d.ts +2 -1
- package/src/Api/Events/BaseEventInfo.d.ts +10 -0
- package/src/Api/Events/BaseEventInfo.js +2 -0
- package/src/Api/Events/CellChanged.d.ts +2 -1
- package/src/Api/Events/ChexboxColumnClicked.d.ts +2 -1
- package/src/Api/Events/CustomToolbarConfigured.d.ts +2 -1
- package/src/Api/Events/DashboardChanged.d.ts +2 -1
- package/src/Api/Events/FlashingAlertFired.d.ts +2 -1
- package/src/Api/Events/GridDataChanged.d.ts +2 -1
- package/src/Api/Events/LayoutChanged.d.ts +2 -1
- package/src/Api/Events/LiveDataChanged.d.ts +2 -1
- package/src/Api/Events/SearchChanged.d.ts +2 -1
- package/src/Api/Events/SelectionChanged.d.ts +2 -1
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +2 -1
- package/src/Api/Events/TeamSharingEntityChanged.d.ts +2 -1
- package/src/Api/Events/ThemeChanged.d.ts +2 -1
- package/src/Api/GridApi.d.ts +10 -10
- package/src/Api/Implementation/AlertApiImpl.js +17 -17
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +3 -0
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +23 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +5 -3
- package/src/Api/Implementation/ColumnApiImpl.js +43 -44
- package/src/Api/Implementation/ConfigApiImpl.js +0 -24
- package/src/Api/Implementation/DashboardApiImpl.js +2 -1
- package/src/Api/Implementation/ExportApiImpl.js +4 -4
- package/src/Api/Implementation/FormatColumnApiImpl.js +2 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +7 -2
- package/src/Api/Implementation/GridApiImpl.d.ts +2 -2
- package/src/Api/Implementation/GridApiImpl.js +14 -13
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -2
- package/src/Api/Implementation/InternalApiImpl.js +5 -5
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +19 -3
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -2
- package/src/Api/Implementation/PluginsApiImpl.js +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
- package/src/Api/Implementation/ScopeApiImpl.js +11 -11
- package/src/Api/Implementation/SystemStatusApiImpl.js +1 -0
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +1 -0
- package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
- package/src/Api/Implementation/UserInterfaceApiImpl.js +18 -13
- package/src/Api/InternalApi.d.ts +2 -2
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/Api/PluginsApi.d.ts +1 -7
- package/src/Api/TeamSharingApi.d.ts +1 -1
- package/src/Api/ThemeApi.d.ts +2 -2
- package/src/Api/UserInterfaceApi.d.ts +6 -5
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -10
- package/src/PredefinedConfig/AlertState.d.ts +2 -3
- package/src/PredefinedConfig/ApplicationState.d.ts +1 -1
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableButton.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +36 -36
- package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -5
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +3 -3
- package/src/PredefinedConfig/Common/AdaptableStyle.d.ts +7 -7
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +4 -3
- package/src/PredefinedConfig/Common/Menu.d.ts +40 -17
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +9 -7
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +1 -1
- package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
- package/src/PredefinedConfig/DataSourceState.d.ts +1 -1
- package/src/PredefinedConfig/ExportState.d.ts +3 -3
- package/src/PredefinedConfig/FilterState.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -40
- package/src/PredefinedConfig/QuickSearchState.d.ts +3 -3
- package/src/PredefinedConfig/ScheduleState.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -1
- package/src/PredefinedConfig/ThemeState.d.ts +5 -1
- package/src/Redux/ActionsReducers/DashboardRedux.js +2 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -2
- package/src/Redux/ActionsReducers/GridRedux.js +2 -2
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +12 -2
- package/src/Redux/ActionsReducers/LayoutRedux.js +24 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
- package/src/Redux/DeadRedux.d.ts +4 -8
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -1
- package/src/Redux/Store/AdaptableStore.d.ts +3 -3
- package/src/Redux/Store/AdaptableStore.js +21 -16
- package/src/Strategy/AdaptableModuleBase.d.ts +2 -2
- package/src/Strategy/AdaptableModuleBase.js +8 -8
- package/src/Strategy/AlertModule.d.ts +2 -2
- package/src/Strategy/AlertModule.js +13 -105
- package/src/Strategy/BulkUpdateModule.d.ts +2 -2
- package/src/Strategy/BulkUpdateModule.js +7 -7
- package/src/Strategy/CalculatedColumnModule.js +1 -1
- package/src/Strategy/CellSummaryModule.d.ts +2 -2
- package/src/Strategy/CellSummaryModule.js +3 -3
- package/src/Strategy/ConditionalStyleModule.js +3 -3
- package/src/Strategy/CustomSortModule.js +2 -2
- package/src/Strategy/DashboardModule.d.ts +2 -2
- package/src/Strategy/DataChangeHistoryModule.js +2 -2
- package/src/Strategy/ExportModule.d.ts +2 -2
- package/src/Strategy/ExportModule.js +1 -1
- package/src/Strategy/FilterModule.d.ts +2 -2
- package/src/Strategy/FilterModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +6 -6
- package/src/Strategy/FreeTextColumnModule.js +1 -1
- package/src/Strategy/GridInfoModule.d.ts +2 -2
- package/src/Strategy/Interface/IModule.d.ts +2 -2
- package/src/Strategy/LayoutModule.d.ts +2 -2
- package/src/Strategy/LayoutModule.js +22 -9
- package/src/Strategy/PlusMinusModule.js +8 -9
- package/src/Strategy/SmartEditModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.js +8 -9
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +2 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
- package/src/Utilities/Constants/ModuleConstants.js +7 -7
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -7
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -2
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
- package/src/Utilities/Helpers/PreviewHelper.js +2 -2
- package/src/Utilities/Interface/Preview.d.ts +2 -1
- package/src/Utilities/ObjectFactory.js +1 -1
- package/src/Utilities/Services/DataService.js +5 -5
- package/src/Utilities/Services/LicenseService.js +16 -2
- package/src/Utilities/Services/MetamodelService.js +0 -1
- package/src/Utilities/Services/ReportService.js +12 -11
- package/src/Utilities/Services/ValidationService.js +4 -5
- package/src/View/AdaptableViewFactory.d.ts +2 -1
- package/src/View/AdaptableViewFactory.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +7 -7
- package/src/View/Alert/AlertPopup.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnPopup.js +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +2 -2
- package/src/View/Components/ColumnSelector/index.js +2 -2
- package/src/View/Components/FilterForm/FilterForm.js +18 -20
- package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +7 -7
- package/src/View/Components/FilterForm/QuickFilterForm.js +15 -17
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/Panels/FilterFormPanel.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +423 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +23 -10
- package/src/View/Components/PreviewResultsPanel.js +1 -1
- package/src/View/Components/RangesComponent.js +2 -2
- package/src/View/Components/Selectors/ColumnSelector.js +5 -5
- package/src/View/Components/Selectors/ColumnValueSelector.js +4 -4
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +10 -11
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -3
- package/src/View/ConditionalStyle/ConditionalStylePopup.js +1 -1
- package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
- package/src/View/CustomSort/CustomSortEntityRow.d.ts +3 -1
- package/src/View/CustomSort/CustomSortEntityRow.js +3 -3
- package/src/View/CustomSort/CustomSortPopup.js +2 -2
- package/src/View/CustomSort/CustomSortSummary.js +3 -3
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +4 -4
- package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
- package/src/View/Dashboard/Dashboard.js +2 -3
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +11 -10
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +6 -6
- package/src/View/Export/ExportCustomDestinationDialog.js +1 -1
- package/src/View/Export/ExportViewPanel.js +6 -6
- package/src/View/Filter/FilterSummary.js +2 -2
- package/src/View/FormatColumn/FormatColumnPopup.js +1 -1
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnPopup.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +2 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
- package/src/View/GridInfo/ColumnInfoComponent.js +16 -16
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +6 -6
- package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -2
- package/src/View/Layout/Wizard/LayoutEditor/index.js +41 -41
- package/src/View/PlusMinus/PlusMinusPopup.js +1 -1
- package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
- package/src/View/Query/QueryViewPanel.js +3 -3
- package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -3
- package/src/View/Schedule/SchedulePopup.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/StateManagement/StateManagementPopup.d.ts +2 -12
- package/src/View/StateManagement/StateManagementPopup.js +21 -114
- package/src/View/StateManagement/StateManagementViewPanel.d.ts +5 -0
- package/src/View/StateManagement/StateManagementViewPanel.js +22 -0
- package/src/View/StateManagement/components/ClearButton.d.ts +6 -0
- package/src/View/StateManagement/components/ClearButton.js +9 -0
- package/src/View/StateManagement/components/ExportDropdown.d.ts +8 -0
- package/src/View/StateManagement/components/ExportDropdown.js +43 -0
- package/src/View/StateManagement/components/LoadButton.d.ts +7 -0
- package/src/View/StateManagement/components/LoadButton.js +38 -0
- package/src/View/StateManagement/handleExportState.d.ts +1 -0
- package/src/View/StateManagement/handleExportState.js +22 -0
- package/src/View/Theme/ThemeViewPanel.js +1 -1
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.d.ts +9 -8
- package/src/agGrid/Adaptable.js +174 -132
- package/src/agGrid/agGridHelper.d.ts +4 -4
- package/src/agGrid/agGridHelper.js +46 -46
- package/src/agGrid/agGridMenuHelper.d.ts +15 -13
- package/src/agGrid/agGridMenuHelper.js +55 -47
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +11 -6
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -2
- package/src/agGrid/editors/AdaptableDateEditor/index.js +16 -6
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +7 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -3
- package/src/components/Datepicker/DatepickerContext.d.ts +2 -2
- package/src/components/Datepicker/index.js +9 -5
- package/src/components/ExpressionEditor/index.js +7 -7
- package/src/components/Modal/index.d.ts +1 -1
- package/src/components/OverlayTrigger/index.js +3 -3
- package/src/components/OverlayTrigger/useAgGridClassName.d.ts +2 -0
- package/src/components/OverlayTrigger/{useVendorClassName.js → useAgGridClassName.js} +3 -3
- package/src/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/upload.d.ts +3 -0
- package/src/components/icons/upload.js +8 -0
- package/src/metamodel/adaptable.metamodel.d.ts +104 -50
- package/src/metamodel/adaptable.metamodel.js +358 -300
- package/src/types.d.ts +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/PredefinedConfig/DeprecatedState.d.ts +0 -82
- package/src/PredefinedConfig/DeprecatedState.js +0 -5
- package/src/components/OverlayTrigger/useVendorClassName.d.ts +0 -2
|
@@ -3,120 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StateManagementPopup = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_redux_1 = require("react-redux");
|
|
7
6
|
const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
|
|
8
|
-
const UIHelper_1 = require("../UIHelper");
|
|
9
7
|
const rebass_1 = require("rebass");
|
|
10
|
-
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
11
8
|
const HelpBlock_1 = tslib_1.__importDefault(require("../../components/HelpBlock"));
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
value: 'JSON',
|
|
34
|
-
label: 'JSON',
|
|
35
|
-
},
|
|
36
|
-
];
|
|
37
|
-
let clearButton = (React.createElement(SimpleButton_1.default, { onClick: () => this.onClearLocalStorage(), tooltip: "Clear User State", tone: "error", variant: "raised", marginTop: 2, accessLevel: this.props.accessLevel }, "Clear User State"));
|
|
38
|
-
let loadButton = (React.createElement(SimpleButton_1.default, { marginTop: 2, tone: "info", variant: "raised", accessLevel: this.props.accessLevel },
|
|
39
|
-
React.createElement("input", { type: "file", onChange: (json) => this.onLoadPredefinedConfig(json), accept: '.json', style: {
|
|
40
|
-
opacity: 0,
|
|
41
|
-
position: 'absolute',
|
|
42
|
-
cursor: 'pointer',
|
|
43
|
-
fontSize: 0,
|
|
44
|
-
lineHeight: 0,
|
|
45
|
-
top: 0,
|
|
46
|
-
left: 0,
|
|
47
|
-
width: '100%',
|
|
48
|
-
height: '100%',
|
|
49
|
-
zIndex: 1,
|
|
50
|
-
} }),
|
|
51
|
-
' ',
|
|
52
|
-
"Load Predefined Config"));
|
|
53
|
-
return (React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "column" },
|
|
54
|
-
React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, button: null, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
55
|
-
React.createElement(rebass_1.Box, null,
|
|
56
|
-
React.createElement(HelpBlock_1.default, null, 'Clear all current user state that has been applied. When you restart / refresh Adaptable any state that you have previously created will be lost. However your Predefined Config will then be re-applied.'),
|
|
57
|
-
clearButton,
|
|
58
|
-
React.createElement(HelpBlock_1.default, { marginTop: 3 }, 'Load Predefined Config (from a .json file). This will cause this window to close.'),
|
|
59
|
-
' ',
|
|
60
|
-
loadButton,
|
|
61
|
-
React.createElement(HelpBlock_1.default, { marginTop: 3, marginBottom: 2 }, 'Export All Adaptable State'),
|
|
62
|
-
React.createElement(Dropdown_1.default, { key: 'exportAllState', placeholder: "Select Export Destination", style: { flex: 1, maxWidth: 'none' }, value: undefined, onChange: (x) => this.onExportAllState(x), marginRight: 3, options: destinationOptions }),
|
|
63
|
-
React.createElement(HelpBlock_1.default, { marginTop: 3, marginBottom: 2 }, 'Export User State'),
|
|
64
|
-
' ',
|
|
65
|
-
React.createElement(Dropdown_1.default, { key: 'exportUserState', placeholder: "Select Export Destination", style: { flex: 1, maxWidth: 'none' }, value: undefined, onChange: (x) => this.onExportUserState(x), marginRight: 3, options: destinationOptions }),
|
|
66
|
-
React.createElement(HelpBlock_1.default, { marginTop: 3, marginBottom: 2 }, 'Export Initial Predefined Config'),
|
|
67
|
-
' ',
|
|
68
|
-
React.createElement(Dropdown_1.default, { key: 'exportPredefinedConfig', placeholder: "Select Export Destination", style: { flex: 1, maxWidth: 'none' }, value: undefined, onChange: (x) => this.onExportPredefinedConfig(x), marginRight: 3, options: destinationOptions })))));
|
|
69
|
-
}
|
|
70
|
-
onClearLocalStorage() {
|
|
71
|
-
this.props.api.configApi.reloadPredefinedConfig();
|
|
72
|
-
}
|
|
73
|
-
onLoadPredefinedConfig(e) {
|
|
74
|
-
let nativeEvent = e.nativeEvent;
|
|
75
|
-
let files;
|
|
76
|
-
if (nativeEvent && nativeEvent.dataTransfer) {
|
|
77
|
-
files = nativeEvent.dataTransfer.files;
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
files = e.target.files;
|
|
81
|
-
}
|
|
82
|
-
const file = files[0];
|
|
83
|
-
FileDroppable_1.readJSONFile(file).then((json) => {
|
|
84
|
-
this.props.api.configApi.reloadPredefinedConfig(json);
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
onExportAllState(type) {
|
|
88
|
-
let allState = this.props.api.configApi.getAllState();
|
|
89
|
-
this.onExportState(type, 'allState', allState);
|
|
90
|
-
}
|
|
91
|
-
onExportUserState(type) {
|
|
92
|
-
let userState = this.props.api.configApi.getAllUserState();
|
|
93
|
-
this.onExportState(type, 'userState', userState);
|
|
94
|
-
}
|
|
95
|
-
onExportPredefinedConfig(type) {
|
|
96
|
-
let predefinedConfig = this.props.api.configApi.getPredefinedConfig();
|
|
97
|
-
this.onExportState(type, 'predefinedConfig', predefinedConfig);
|
|
98
|
-
}
|
|
99
|
-
onExportState(type, name, state) {
|
|
100
|
-
switch (type) {
|
|
101
|
-
case 'Clipboard':
|
|
102
|
-
let stringifiedState = JSON.stringify(state);
|
|
103
|
-
Helper_1.default.copyToClipboard(stringifiedState);
|
|
104
|
-
break;
|
|
105
|
-
case 'Console':
|
|
106
|
-
LoggingHelper_1.ConsoleLog(state);
|
|
107
|
-
break;
|
|
108
|
-
case 'JSON':
|
|
109
|
-
const jsonFileName = name + '.json';
|
|
110
|
-
const jsonContent = JSON.stringify(state);
|
|
111
|
-
Helper_1.default.createDownloadedFile(jsonContent, jsonFileName, 'application/json');
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function mapStateToProps(state, ownProps) {
|
|
117
|
-
return {};
|
|
118
|
-
}
|
|
119
|
-
function mapDispatchToProps(dispatch) {
|
|
120
|
-
return {};
|
|
121
|
-
}
|
|
122
|
-
exports.StateManagementPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(StateManagementPopupComponent);
|
|
9
|
+
const LoadButton_1 = require("./components/LoadButton");
|
|
10
|
+
const ClearButton_1 = require("./components/ClearButton");
|
|
11
|
+
const ExportDropdown_1 = require("./components/ExportDropdown");
|
|
12
|
+
exports.StateManagementPopup = (props) => {
|
|
13
|
+
return (React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "column" },
|
|
14
|
+
React.createElement(PanelWithButton_1.PanelWithButton, { headerText: props.moduleInfo.FriendlyName, button: null, glyphicon: props.moduleInfo.Glyph, infoLink: props.moduleInfo.HelpPage, infoLinkDisabled: !props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
15
|
+
React.createElement(rebass_1.Box, null,
|
|
16
|
+
React.createElement(HelpBlock_1.default, null, 'Clear all current user state that has been applied. When you restart / refresh Adaptable any state that you have previously created will be lost. However your Predefined Config will then be re-applied.'),
|
|
17
|
+
React.createElement(ClearButton_1.ClearButton, { tone: "error", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onClick: () => props.api.configApi.reloadPredefinedConfig() }, "Clear User State"),
|
|
18
|
+
React.createElement(HelpBlock_1.default, { marginTop: 3 }, 'Load Predefined Config (from a .json file). This will cause this window to close.'),
|
|
19
|
+
' ',
|
|
20
|
+
React.createElement(LoadButton_1.LoadButton, { tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onLoad: (json) => props.api.configApi.reloadPredefinedConfig(json) }, "Load Predefined Config"),
|
|
21
|
+
React.createElement(HelpBlock_1.default, { marginTop: 3, marginBottom: 2 }, 'Export All Adaptable State'),
|
|
22
|
+
React.createElement(ExportDropdown_1.ExportDropdown, { api: props.api, type: "allState", marginRight: 3, style: { flex: 1, maxWidth: 'none' } }, "Select Export Destination"),
|
|
23
|
+
React.createElement(HelpBlock_1.default, { marginTop: 3, marginBottom: 2 }, 'Export User State'),
|
|
24
|
+
' ',
|
|
25
|
+
React.createElement(ExportDropdown_1.ExportDropdown, { api: props.api, type: "userState", marginRight: 3, style: { flex: 1, maxWidth: 'none' } }, "Select Export Destination"),
|
|
26
|
+
React.createElement(HelpBlock_1.default, { marginTop: 3, marginBottom: 2 }, 'Export Initial Predefined Config'),
|
|
27
|
+
' ',
|
|
28
|
+
React.createElement(ExportDropdown_1.ExportDropdown, { api: props.api, type: "predefinedConfig", marginRight: 3, style: { flex: 1, maxWidth: 'none' } }, "Select Export Destination")))));
|
|
29
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ViewPanelProps } from '../Components/SharedProps/ViewPanelProps';
|
|
3
|
+
export interface ThemeViewPanelComponentProps extends ViewPanelProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const StateManagementViewPanel: React.FunctionComponent<ThemeViewPanelComponentProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StateManagementViewPanel = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const join_1 = tslib_1.__importDefault(require("../../components/utils/join"));
|
|
7
|
+
const GeneralConstants = tslib_1.__importStar(require("../../Utilities/Constants/GeneralConstants"));
|
|
8
|
+
const LoadButton_1 = require("./components/LoadButton");
|
|
9
|
+
const ClearButton_1 = require("./components/ClearButton");
|
|
10
|
+
const rebass_1 = require("rebass");
|
|
11
|
+
const ExportDropdown_1 = require("./components/ExportDropdown");
|
|
12
|
+
exports.StateManagementViewPanel = (props) => {
|
|
13
|
+
const isToolbar = props.viewType === 'Toolbar';
|
|
14
|
+
const elementType = isToolbar ? 'DashboardToolbar' : 'ToolPanel';
|
|
15
|
+
return (React.createElement(rebass_1.Flex, { flexDirection: isToolbar ? 'row' : 'column', className: join_1.default(props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__StateManagement__wrap`) },
|
|
16
|
+
React.createElement(rebass_1.Flex, { flexDirection: "row" },
|
|
17
|
+
React.createElement(LoadButton_1.LoadButton, { tooltip: "Load Predefined Config", variant: "text", icon: "upload", onLoad: (json) => props.api.configApi.reloadPredefinedConfig(json), accessLevel: props.accessLevel }, !isToolbar && 'Load'),
|
|
18
|
+
React.createElement(ClearButton_1.ClearButton, { icon: "trash", tooltip: "Clear User State", variant: "text", onClick: () => props.api.configApi.reloadPredefinedConfig(), accessLevel: props.accessLevel }, !isToolbar && 'Clear')),
|
|
19
|
+
React.createElement(ExportDropdown_1.ExportDropdown, { api: props.api, type: "allState" }, "All State"),
|
|
20
|
+
React.createElement(ExportDropdown_1.ExportDropdown, { api: props.api, type: "userState" }, "User State"),
|
|
21
|
+
React.createElement(ExportDropdown_1.ExportDropdown, { api: props.api, type: "predefinedConfig" }, "Predefined Config")));
|
|
22
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClearButton = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
7
|
+
exports.ClearButton = (props) => {
|
|
8
|
+
return (React.createElement(SimpleButton_1.default, Object.assign({}, props, { className: "ab-StateManagement__Clear-Button", tooltip: "Clear User State" }), props.children));
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AdaptableApi } from '../../../../types';
|
|
3
|
+
import { DropdownButtonProps } from '../../../components/DropdownButton';
|
|
4
|
+
export interface ExportDropdownProps extends Omit<DropdownButtonProps, 'options' | 'value'> {
|
|
5
|
+
api: AdaptableApi;
|
|
6
|
+
type: 'allState' | 'userState' | 'predefinedConfig';
|
|
7
|
+
}
|
|
8
|
+
export declare const ExportDropdown: React.FunctionComponent<ExportDropdownProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExportDropdown = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
|
|
7
|
+
const handleExportState_1 = require("../handleExportState");
|
|
8
|
+
exports.ExportDropdown = (props) => {
|
|
9
|
+
const handleChange = (destination) => {
|
|
10
|
+
switch (props.type) {
|
|
11
|
+
case 'allState':
|
|
12
|
+
const allState = props.api.configApi.getAllState();
|
|
13
|
+
handleExportState_1.handleExportState(destination, 'allState', allState);
|
|
14
|
+
break;
|
|
15
|
+
case 'userState':
|
|
16
|
+
const userState = props.api.configApi.getAllUserState();
|
|
17
|
+
handleExportState_1.handleExportState(destination, 'userState', userState);
|
|
18
|
+
break;
|
|
19
|
+
case 'predefinedConfig':
|
|
20
|
+
const predefinedConfig = props.api.configApi.getPredefinedConfig();
|
|
21
|
+
handleExportState_1.handleExportState(destination, 'predefinedConfig', predefinedConfig);
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const destinationOptions = [
|
|
26
|
+
{
|
|
27
|
+
value: 'Clipboard',
|
|
28
|
+
label: 'Clipboard',
|
|
29
|
+
onClick: () => handleChange('Clipboard'),
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
value: 'Console',
|
|
33
|
+
label: 'Console',
|
|
34
|
+
onClick: () => handleChange('Console'),
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
value: 'JSON',
|
|
38
|
+
label: 'JSON',
|
|
39
|
+
onClick: () => handleChange('JSON'),
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
return (React.createElement(DropdownButton_1.default, Object.assign({ className: "ab-StateManagement__Export-Dropdown" }, props, { items: destinationOptions, value: undefined })));
|
|
43
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SimpleButtonProps } from '../../../components/SimpleButton';
|
|
3
|
+
interface LoadButtonProps extends SimpleButtonProps {
|
|
4
|
+
onLoad: (json: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const LoadButton: React.FunctionComponent<LoadButtonProps>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoadButton = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const FileDroppable_1 = require("../../../components/FileDroppable");
|
|
7
|
+
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
8
|
+
exports.LoadButton = (props) => {
|
|
9
|
+
const onLoadPredefinedConfig = (e) => {
|
|
10
|
+
const nativeEvent = e.nativeEvent;
|
|
11
|
+
let files;
|
|
12
|
+
if (nativeEvent && nativeEvent.dataTransfer) {
|
|
13
|
+
files = nativeEvent.dataTransfer.files;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
files = e.target.files;
|
|
17
|
+
}
|
|
18
|
+
const file = files[0];
|
|
19
|
+
FileDroppable_1.readJSONFile(file).then((json) => {
|
|
20
|
+
props.onLoad(json);
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
return (React.createElement(SimpleButton_1.default, Object.assign({}, props, { className: "ab-StateManagement__Load-Button" }),
|
|
24
|
+
React.createElement("input", { type: "file", onChange: (json) => onLoadPredefinedConfig(json), accept: '.json', style: {
|
|
25
|
+
opacity: 0,
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
cursor: 'pointer',
|
|
28
|
+
fontSize: 0,
|
|
29
|
+
lineHeight: 0,
|
|
30
|
+
top: 0,
|
|
31
|
+
left: 0,
|
|
32
|
+
width: '100%',
|
|
33
|
+
height: '100%',
|
|
34
|
+
zIndex: 1,
|
|
35
|
+
} }),
|
|
36
|
+
' ',
|
|
37
|
+
props.children));
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handleExportState: (type: 'Clipboard' | 'Console' | 'JSON', name: string, state: any) => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleExportState = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
6
|
+
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
7
|
+
exports.handleExportState = (type, name, state) => {
|
|
8
|
+
switch (type) {
|
|
9
|
+
case 'Clipboard':
|
|
10
|
+
let stringifiedState = JSON.stringify(state);
|
|
11
|
+
Helper_1.default.copyToClipboard(stringifiedState);
|
|
12
|
+
break;
|
|
13
|
+
case 'Console':
|
|
14
|
+
LoggingHelper_1.ConsoleLog(state);
|
|
15
|
+
break;
|
|
16
|
+
case 'JSON':
|
|
17
|
+
const jsonFileName = name + '.json';
|
|
18
|
+
const jsonContent = JSON.stringify(state);
|
|
19
|
+
Helper_1.default.createDownloadedFile(jsonContent, jsonFileName, 'application/json');
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
@@ -35,7 +35,7 @@ class ThemeViewPanelComponent extends React.Component {
|
|
|
35
35
|
textOverflow: 'ellipsis',
|
|
36
36
|
fontSize: 'small',
|
|
37
37
|
}
|
|
38
|
-
: { minWidth:
|
|
38
|
+
: { minWidth: '100%', fontSize: 'small' };
|
|
39
39
|
return (React.createElement("div", { className: join_1.default(this.props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__Theme__wrap`) },
|
|
40
40
|
React.createElement(DropdownButton_1.default, { className: `ab-${elementType}__Theme__select`, style: dropDownStyle, items: themes, columns: ['label'], accessLevel: this.props.accessLevel }, currentThemeDescription)));
|
|
41
41
|
}
|
|
@@ -40,7 +40,7 @@ class ActionColumnRenderer {
|
|
|
40
40
|
actionColumn: actionCol,
|
|
41
41
|
primaryKeyValue: pkValue,
|
|
42
42
|
rowNode: params.node,
|
|
43
|
-
|
|
43
|
+
adaptableApi: adaptable.api,
|
|
44
44
|
};
|
|
45
45
|
// if its a group node then only show if set to do so
|
|
46
46
|
if (adaptable.api.gridApi.isGroupRowNode(params.node) && !actionCol.includeGroupedRows) {
|
|
@@ -79,6 +79,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
79
79
|
_emit: (eventName: string, data?: any) => Promise<any>;
|
|
80
80
|
_emitSync: (eventName: string, data?: any) => any;
|
|
81
81
|
private _adaptableReady;
|
|
82
|
+
isDestroyed: boolean;
|
|
82
83
|
private agGridModules;
|
|
83
84
|
static init(adaptableOptions: AdaptableOptions): Promise<AdaptableApi>;
|
|
84
85
|
/**
|
|
@@ -102,7 +103,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
102
103
|
private performAudit;
|
|
103
104
|
private initializeAgGrid;
|
|
104
105
|
private isAgGridReady;
|
|
105
|
-
private
|
|
106
|
+
private initAgGridContainerFromInitializedAgGrid;
|
|
106
107
|
debouncedSetColumnIntoStore: import("lodash").DebouncedFunc<() => void>;
|
|
107
108
|
debouncedSaveGridLayout: import("lodash").DebouncedFunc<() => void>;
|
|
108
109
|
debouncedSetSelectedCells: import("lodash").DebouncedFunc<() => void>;
|
|
@@ -171,7 +172,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
171
172
|
forAllRowNodesDo(func: (rowNode: RowNode) => void): void;
|
|
172
173
|
forAllVisibleRowNodesDo(func: (rowNode: RowNode, rowIndex: number) => void): void;
|
|
173
174
|
getVisibleRowNodes(): RowNode[];
|
|
174
|
-
selectNodes(rowNodes:
|
|
175
|
+
selectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
|
|
175
176
|
deSelectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
|
|
176
177
|
selectNode(rowNode: RowNode, clearSelection: boolean): void;
|
|
177
178
|
deSelectNode(rowNode: RowNode, clearSelection: boolean): void;
|
|
@@ -180,7 +181,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
180
181
|
redrawBody(): void;
|
|
181
182
|
redrawHeader(): void;
|
|
182
183
|
redrawRow(rowNode: RowNode): void;
|
|
183
|
-
refreshCells(rowNodes:
|
|
184
|
+
refreshCells(rowNodes: RowNode[], columns: (string | Column)[], forceUpdate: boolean): void;
|
|
184
185
|
jumpToRow(rowNode: RowNode): void;
|
|
185
186
|
jumpToColumn(columnId: string): void;
|
|
186
187
|
jumpToCell(columnId: string, rowNode: RowNode): void;
|
|
@@ -230,7 +231,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
230
231
|
getDefaultIPPStyle(): IPPStyle;
|
|
231
232
|
getCurrentIPPStyle(): IPPStyle;
|
|
232
233
|
getAdaptableContainerElement(): HTMLElement | null;
|
|
233
|
-
|
|
234
|
+
getAgGridContainerElement(): HTMLElement | null;
|
|
234
235
|
private initInternalGridLogic;
|
|
235
236
|
buildStandaloneColumnHeader(adaptableColumn: AdaptableColumn): AdaptableMenuItem[];
|
|
236
237
|
prepareGrid(): void;
|
|
@@ -272,7 +273,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
272
273
|
expandAllRowGroups(): void;
|
|
273
274
|
closeAllRowGroups(): void;
|
|
274
275
|
expandRowGroupsForValues(columnValues: any[]): void;
|
|
275
|
-
|
|
276
|
+
getAgGridColumnForAdaptableColumn(abColumn: AdaptableColumn): Column;
|
|
276
277
|
setRowGroupColumns(columnIds: string[]): void;
|
|
277
278
|
clearRowGroupColumns(): void;
|
|
278
279
|
getExpandRowGroupsKeys(): any[];
|
|
@@ -309,10 +310,10 @@ export declare class Adaptable implements IAdaptable {
|
|
|
309
310
|
private hasFloatingFilterOnAtLeastOneColumn;
|
|
310
311
|
showQuickFilter(): void;
|
|
311
312
|
hideQuickFilter(): void;
|
|
312
|
-
|
|
313
|
+
getAgGridColumnType(columnId: string): string | string[];
|
|
313
314
|
getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): ((valueA: any, valueB: any, nodeA?: RowNode, nodeB?: RowNode, isInverted?: boolean) => number) | undefined;
|
|
314
|
-
|
|
315
|
-
|
|
315
|
+
getAgGridLightThemeName(): string;
|
|
316
|
+
getAgGridCurrentThemeName(): string;
|
|
316
317
|
applyAdaptableTheme(theme: AdaptableTheme | string): void;
|
|
317
318
|
private setupRowStyling;
|
|
318
319
|
private setupColumnHeaderAggregations;
|