@adaptabletools/adaptable 11.1.8 → 11.1.9
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 +16 -0
- package/bundle.cjs.js +106 -106
- package/index.css +20 -0
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +1 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +9 -2
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +57 -16
- package/src/AdaptableOptions/GeneralOptions.d.ts +7 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +7 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/CellSummaryApi.d.ts +8 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.js +32 -15
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +2 -0
- package/src/Api/Implementation/CellSummaryApiImpl.js +34 -0
- package/src/Api/Implementation/ConfigApiImpl.js +3 -0
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -1
- package/src/Api/Implementation/InternalApiImpl.js +29 -7
- package/src/Api/Implementation/QueryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/QueryApiImpl.js +12 -0
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +8 -0
- package/src/Api/Implementation/StatusBarApiImpl.js +17 -0
- package/src/Api/InternalApi.d.ts +2 -1
- package/src/Api/QueryApi.d.ts +6 -0
- package/src/Api/StatusBarApi.d.ts +10 -0
- package/src/Api/StatusBarApi.js +2 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +61 -29
- package/src/PredefinedConfig/Common/Types.d.ts +4 -2
- package/src/PredefinedConfig/Common/Types.js +32 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/GridState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -0
- package/src/PredefinedConfig/StatusBarState.d.ts +27 -0
- package/src/PredefinedConfig/StatusBarState.js +7 -0
- package/src/PredefinedConfig/ToolPanelState.d.ts +1 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/GridRedux.js +4 -4
- package/src/Redux/ActionsReducers/StatusBarRedux.d.ts +22 -0
- package/src/Redux/ActionsReducers/StatusBarRedux.js +31 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +8 -3
- package/src/Redux/ActionsReducers/SystemRedux.js +22 -5
- package/src/Redux/Store/AdaptableReduxMerger.js +2 -2
- package/src/Redux/Store/AdaptableStore.js +24 -10
- package/src/Strategy/AlertModule.d.ts +3 -0
- package/src/Strategy/AlertModule.js +6 -0
- package/src/Strategy/CellSummaryModule.d.ts +6 -0
- package/src/Strategy/CellSummaryModule.js +14 -0
- package/src/Strategy/DataChangeHistoryModule.d.ts +7 -0
- package/src/Strategy/DataChangeHistoryModule.js +11 -0
- package/src/Strategy/ExportModule.d.ts +1 -0
- package/src/Strategy/ExportModule.js +1 -0
- package/src/Strategy/FilterModule.d.ts +6 -0
- package/src/Strategy/FilterModule.js +21 -0
- package/src/Strategy/Interface/IModule.d.ts +21 -10
- package/src/Strategy/LayoutModule.d.ts +7 -0
- package/src/Strategy/LayoutModule.js +13 -0
- package/src/Strategy/QueryModule.d.ts +8 -0
- package/src/Strategy/QueryModule.js +18 -0
- package/src/Strategy/QuickSearchModule.d.ts +6 -0
- package/src/Strategy/QuickSearchModule.js +10 -0
- package/src/Strategy/StatusBarModule.d.ts +8 -0
- package/src/Strategy/StatusBarModule.js +39 -0
- package/src/Strategy/SystemStatusModule.d.ts +6 -0
- package/src/Strategy/SystemStatusModule.js +10 -0
- package/src/Strategy/ThemeModule.d.ts +7 -0
- package/src/Strategy/ThemeModule.js +12 -0
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +1 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -0
- package/src/Utilities/Constants/ModuleConstants.js +2 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/Services/ModuleService.js +6 -6
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +5 -2
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/Alert/AlertStatusSubPanel.d.ts +2 -0
- package/src/View/Alert/AlertStatusSubPanel.js +56 -0
- package/src/View/Alert/AlertViewPanel.js +6 -7
- package/src/View/Alert/AlertsPanel.d.ts +1 -1
- package/src/View/Alert/AlertsPanel.js +2 -1
- package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +5 -0
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +15 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +18 -7
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +1 -8
- package/src/View/Alert/Wizard/AlertWizard.js +3 -2
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +15 -0
- package/src/View/CellSummary/CellSummaryStatusPanel.d.ts +2 -0
- package/src/View/CellSummary/CellSummaryStatusPanel.js +36 -0
- package/src/View/CellSummary/CellSummaryViewPanel.js +2 -20
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +5 -4
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +1 -1
- package/src/View/Components/RangesComponent.js +6 -2
- package/src/View/Components/StyleComponent.js +18 -6
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -3
- package/src/View/Dashboard/DashboardPopup.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +5 -13
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.d.ts +2 -0
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +9 -0
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.d.ts +4 -16
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +32 -40
- package/src/View/Filter/ActiveFiltersPanel.d.ts +0 -2
- package/src/View/Filter/FilterStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +18 -0
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +4 -1
- package/src/View/Layout/EditCurrentLayoutButton.d.ts +2 -0
- package/src/View/Layout/EditCurrentLayoutButton.js +14 -0
- package/src/View/Layout/LayoutPopup.d.ts +1 -1
- package/src/View/Layout/LayoutPopup.js +3 -3
- package/src/View/Layout/LayoutRadioSelector.d.ts +1 -0
- package/src/View/Layout/LayoutRadioSelector.js +2 -2
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +29 -0
- package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +2 -1
- package/src/View/Query/EditCurrentQueryButton.d.ts +2 -0
- package/src/View/Query/EditCurrentQueryButton.js +15 -0
- package/src/View/Query/QueryViewPanel.d.ts +0 -1
- package/src/View/Query/QueryViewPanel.js +2 -11
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/QuickSearch/QuickSearchStatusBarContent.d.ts +2 -0
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +16 -0
- package/src/View/StatusBar/AdaptableStatusBar.d.ts +3 -0
- package/src/View/StatusBar/AdaptableStatusBar.js +44 -0
- package/src/View/StatusBar/StatusBarPanel.d.ts +42 -0
- package/src/View/StatusBar/StatusBarPanel.js +45 -0
- package/src/View/StatusBar/StatusBarPopup.d.ts +3 -0
- package/src/View/StatusBar/StatusBarPopup.js +43 -0
- package/src/View/SystemStatus/SystemStatusStatusBarContent.d.ts +2 -0
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +15 -0
- package/src/View/SystemStatus/SystemStatusViewPanel.js +3 -7
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.d.ts +5 -0
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +16 -0
- package/src/View/Theme/ThemeStatusPanelPopover.d.ts +2 -0
- package/src/View/Theme/ThemeStatusPanelPopover.js +36 -0
- package/src/agGrid/Adaptable.d.ts +2 -0
- package/src/agGrid/Adaptable.js +27 -0
- package/src/agGrid/agGridHelper.js +2 -0
- package/src/agGrid/createAgStatusPanelComponent.d.ts +21 -0
- package/src/agGrid/createAgStatusPanelComponent.js +31 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
- package/src/components/Dashboard/DashboardManager.js +9 -162
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/DragAndDropContext/DragAndDropContext.d.ts +7 -0
- package/src/components/DragAndDropContext/DragAndDropContext.js +14 -0
- package/src/components/DragAndDropContext/ModuleManager.d.ts +17 -0
- package/src/components/DragAndDropContext/ModuleManager.js +81 -0
- package/src/components/DragAndDropContext/TabList.d.ts +29 -0
- package/src/components/DragAndDropContext/TabList.js +72 -0
- package/src/components/DragAndDropContext/UnusedPanel.d.ts +6 -0
- package/src/components/DragAndDropContext/UnusedPanel.js +46 -0
- package/src/components/DragAndDropContext/types.d.ts +8 -0
- package/src/components/DragAndDropContext/types.js +2 -0
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/SimpleButton/index.js +3 -0
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/icons/DefaultIcon.d.ts +2 -1
- package/src/components/icons/DefaultIcon.js +2 -2
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/statusbar.d.ts +3 -0
- package/src/components/icons/statusbar.js +8 -0
- package/src/metamodel/adaptable.metamodel.d.ts +231 -0
- package/src/metamodel/adaptable.metamodel.js +433 -37
- package/src/types.d.ts +4 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -4,6 +4,7 @@ exports.ThemeModule = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
|
+
const ThemeStatusPanelPopover_1 = require("../View/Theme/ThemeStatusPanelPopover");
|
|
7
8
|
class ThemeModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
9
|
constructor(api) {
|
|
9
10
|
super(ModuleConstants.ThemeModuleId, 'Theme', 'theme', 'ThemePopup', 'Theme AdapTable with a colour configuration set of your choosing', api);
|
|
@@ -14,5 +15,16 @@ class ThemeModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
14
15
|
hasNamedQueryReferences() {
|
|
15
16
|
return false;
|
|
16
17
|
}
|
|
18
|
+
getViewProperties() {
|
|
19
|
+
return {
|
|
20
|
+
getStatusBarPanelProps: () => {
|
|
21
|
+
const currentTheme = this.api.themeApi.getCurrentTheme();
|
|
22
|
+
return {
|
|
23
|
+
content: currentTheme,
|
|
24
|
+
popover: ThemeStatusPanelPopover_1.ThemeStatusPanelPopover,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
}
|
|
17
29
|
}
|
|
18
30
|
exports.ThemeModule = ThemeModule;
|
|
@@ -31,3 +31,4 @@ export declare const TeamSharingModuleId: ModuleConstants;
|
|
|
31
31
|
export declare const ThemeModuleId: ModuleConstants;
|
|
32
32
|
export declare const ToolPanelModuleId: ModuleConstants;
|
|
33
33
|
export declare const SettingsPanelModuleId: ModuleConstants;
|
|
34
|
+
export declare const StatusBarModuleId: ModuleConstants;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SettingsPanelModuleId = exports.ToolPanelModuleId = exports.ThemeModuleId = exports.TeamSharingModuleId = exports.SystemStatusModuleId = exports.StateManagementModuleId = exports.SmartEditModuleId = exports.ShortcutModuleId = exports.ScheduleModuleId = exports.QuickSearchModuleId = exports.QueryModuleId = exports.PlusMinusModuleId = exports.OpenFinModuleId = exports.LayoutModuleId = exports.IPushPullModuleId = exports.GridInfoModuleId = exports.Glue42ModuleId = exports.FreeTextColumnModuleId = exports.FormatColumnModuleId = exports.FilterModuleId = exports.ExportModuleId = exports.DataSourceModuleId = exports.DataChangeHistoryModuleId = exports.DashboardModuleId = exports.CustomSortModuleId = exports.ConditionalStyleModuleId = exports.ChartingModuleId = exports.CellSummaryModuleId = exports.CalculatedColumnModuleId = exports.BulkUpdateModuleId = exports.FlashingCellModuleId = exports.AlertModuleId = void 0;
|
|
3
|
+
exports.StatusBarModuleId = exports.SettingsPanelModuleId = exports.ToolPanelModuleId = exports.ThemeModuleId = exports.TeamSharingModuleId = exports.SystemStatusModuleId = exports.StateManagementModuleId = exports.SmartEditModuleId = exports.ShortcutModuleId = exports.ScheduleModuleId = exports.QuickSearchModuleId = exports.QueryModuleId = exports.PlusMinusModuleId = exports.OpenFinModuleId = exports.LayoutModuleId = exports.IPushPullModuleId = exports.GridInfoModuleId = exports.Glue42ModuleId = exports.FreeTextColumnModuleId = exports.FormatColumnModuleId = exports.FilterModuleId = exports.ExportModuleId = exports.DataSourceModuleId = exports.DataChangeHistoryModuleId = exports.DashboardModuleId = exports.CustomSortModuleId = exports.ConditionalStyleModuleId = exports.ChartingModuleId = exports.CellSummaryModuleId = exports.CalculatedColumnModuleId = exports.BulkUpdateModuleId = exports.FlashingCellModuleId = exports.AlertModuleId = void 0;
|
|
4
4
|
exports.AlertModuleId = 'Alert';
|
|
5
5
|
exports.FlashingCellModuleId = 'FlashingCell';
|
|
6
6
|
exports.BulkUpdateModuleId = 'BulkUpdate';
|
|
@@ -33,3 +33,4 @@ exports.TeamSharingModuleId = 'TeamSharing';
|
|
|
33
33
|
exports.ThemeModuleId = 'Theme';
|
|
34
34
|
exports.ToolPanelModuleId = 'ToolPanel';
|
|
35
35
|
exports.SettingsPanelModuleId = 'SettingsPanel';
|
|
36
|
+
exports.StatusBarModuleId = 'StatusBar';
|
|
@@ -23,7 +23,8 @@ exports.DefaultAdaptableOptions = {
|
|
|
23
23
|
alertOptions: {
|
|
24
24
|
alertForms: undefined,
|
|
25
25
|
maxAlertsInStore: 20,
|
|
26
|
-
cellHighlightDuration:
|
|
26
|
+
cellHighlightDuration: 2000,
|
|
27
|
+
rowHighlightDuration: 4000,
|
|
27
28
|
dataChangeDetectionPolicy: 'rawValue',
|
|
28
29
|
actionHandlers: undefined,
|
|
29
30
|
},
|
|
@@ -123,6 +124,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
123
124
|
currentCalendar: 'United Kingdom',
|
|
124
125
|
cellSummaryOperations: undefined,
|
|
125
126
|
customSortComparers: undefined,
|
|
127
|
+
englishVariant: 'GB',
|
|
126
128
|
},
|
|
127
129
|
layoutOptions: {
|
|
128
130
|
includeExpandedRowGroups: false,
|
|
@@ -214,6 +216,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
214
216
|
actionColumns: undefined,
|
|
215
217
|
showDocumentationLinks: true,
|
|
216
218
|
gridInfoSections: ['GridSummary', 'AdaptableOptions', 'ColumnInfo'],
|
|
219
|
+
showAdapTableVersion: true,
|
|
217
220
|
},
|
|
218
221
|
toolPanelOptions: {
|
|
219
222
|
showAdaptableToolPanel: true,
|
|
@@ -10,13 +10,13 @@ class ModuleService {
|
|
|
10
10
|
this.adaptableApi = adaptableApi;
|
|
11
11
|
}
|
|
12
12
|
createModuleMenus() {
|
|
13
|
-
const
|
|
13
|
+
const settingsPanelMenuItems = [];
|
|
14
14
|
const buttonMenuItems = [];
|
|
15
15
|
this.getModuleCollection().forEach((module) => {
|
|
16
|
-
const
|
|
17
|
-
if (Helper_1.default.objectExists(
|
|
18
|
-
if (
|
|
19
|
-
|
|
16
|
+
const settingsPanelMenuItem = module.addModuleMenuItem('ModuleMenu');
|
|
17
|
+
if (Helper_1.default.objectExists(settingsPanelMenuItem)) {
|
|
18
|
+
if (settingsPanelMenuItems.findIndex((m) => m.module == settingsPanelMenuItem.module) == -1) {
|
|
19
|
+
settingsPanelMenuItems.push(settingsPanelMenuItem);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
const buttonMenuItem = module.addModuleMenuItem('ModuleButton');
|
|
@@ -27,7 +27,7 @@ class ModuleService {
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
// store the main menu as we will re-use (and it never changes)
|
|
30
|
-
this.adaptableApi.internalApi.
|
|
30
|
+
this.adaptableApi.internalApi.setSettingPanelModuleMenuItems(settingsPanelMenuItems);
|
|
31
31
|
this.adaptableApi.internalApi.setModuleButtonMenuItems(buttonMenuItems);
|
|
32
32
|
}
|
|
33
33
|
isModuleAvailable(adaptableModule) {
|
|
@@ -11,7 +11,9 @@ const OverlayTrigger_1 = tslib_1.__importDefault(require("../../components/Overl
|
|
|
11
11
|
const rebass_1 = require("rebass");
|
|
12
12
|
class AdaptablePopover extends React.Component {
|
|
13
13
|
render() {
|
|
14
|
+
var _a;
|
|
14
15
|
let messageType = this.props.MessageType != null ? this.props.MessageType : 'Info';
|
|
16
|
+
const showIcon = (_a = this.props.showIcon) !== null && _a !== void 0 ? _a : true;
|
|
15
17
|
let useButton = this.props.useButton != null ? this.props.useButton : false;
|
|
16
18
|
let popoverMinWidth = this.props.popoverMinWidth != null ? this.props.popoverMinWidth.toString() + 'px' : 'auto';
|
|
17
19
|
const title = StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.props.headerText)
|
|
@@ -35,8 +37,9 @@ class AdaptablePopover extends React.Component {
|
|
|
35
37
|
return (React.createElement(rebass_1.Flex, { alignItems: "center", className: this.props.className },
|
|
36
38
|
React.createElement(OverlayTrigger_1.default, { showTriangle: true, render: () => popoverClickRootClose, showEvent: (this.props.showEvent || 'mouseenter'), hideEvent: (this.props.hideEvent || 'mouseleave'), style: {
|
|
37
39
|
overflow: 'visible',
|
|
38
|
-
}, defaultZIndex: 100000 }, useButton ? (React.createElement(ButtonInfo_1.ButtonInfo, { style: iconStyle, onClick: () => null, icon: icon, tooltip: this.props.tooltipText })) : (React.createElement("div", { tabIndex: 0, style: { cursor: 'pointer', display: 'inline-block' } },
|
|
39
|
-
|
|
40
|
+
}, defaultZIndex: 100000 }, useButton ? (React.createElement(ButtonInfo_1.ButtonInfo, { style: iconStyle, onClick: () => null, icon: showIcon && icon, tooltip: this.props.tooltipText }, this.props.children)) : (React.createElement("div", { tabIndex: 0, style: { cursor: 'pointer', display: 'inline-block' } },
|
|
41
|
+
this.props.children,
|
|
42
|
+
showIcon && React.createElement(icons_1.Icon, { name: icon }))))));
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
exports.AdaptablePopover = AdaptablePopover;
|
|
@@ -30,13 +30,13 @@ const DataSourceViewPanel_1 = require("./DataSource/DataSourceViewPanel");
|
|
|
30
30
|
const DataChangeHistoryPopup_1 = require("./DataChangeHistory/DataChangeHistoryPopup");
|
|
31
31
|
const DataChangeHistoryViewPanel_1 = require("./DataChangeHistory/DataChangeHistoryViewPanel");
|
|
32
32
|
const StateManagementViewPanel_1 = require("./StateManagement/StateManagementViewPanel");
|
|
33
|
+
const StatusBarPopup_1 = require("./StatusBar/StatusBarPopup");
|
|
33
34
|
exports.AdaptableViewFactory = {
|
|
34
|
-
// ExpandedQueryPopup,
|
|
35
35
|
BulkUpdatePopup: BulkUpdatePopup_1.BulkUpdatePopup,
|
|
36
36
|
DashboardPopup: DashboardPopup_1.DashboardPopup,
|
|
37
37
|
StateManagementPopup: StateManagementPopup_1.StateManagementPopup,
|
|
38
38
|
GridInfoPopup: GridInfoPopup_1.GridInfoPopup,
|
|
39
|
-
|
|
39
|
+
StatusBarPopup: StatusBarPopup_1.StatusBarPopup,
|
|
40
40
|
QuickSearchPopup: QuickSearchPopup_1.QuickSearchPopup,
|
|
41
41
|
CellSummaryPopup: CellSummaryPopup_1.CellSummaryPopup,
|
|
42
42
|
SmartEditPopup: SmartEditPopup_1.SmartEditPopup,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlertStatusPanel = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_redux_1 = require("react-redux");
|
|
7
|
+
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
|
+
const AlertsPanel_1 = require("./AlertsPanel");
|
|
9
|
+
const getAlertButtonStyle_1 = require("./Utilities/getAlertButtonStyle");
|
|
10
|
+
const StatusBarPanel_1 = require("../StatusBar/StatusBarPanel");
|
|
11
|
+
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
12
|
+
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
13
|
+
const initialStyle = { color: '', background: '' };
|
|
14
|
+
exports.AlertStatusPanel = () => {
|
|
15
|
+
const adaptable = AdaptableContext_1.useAdaptable();
|
|
16
|
+
const [style, setStyle] = React.useState(initialStyle);
|
|
17
|
+
const dispatch = react_redux_1.useDispatch();
|
|
18
|
+
const module = adaptable.ModuleService.getModuleById(ModuleConstants.AlertModuleId);
|
|
19
|
+
/**
|
|
20
|
+
* Using a selector to so the component updates each time an alert is triggered.
|
|
21
|
+
*/
|
|
22
|
+
const alerts = react_redux_1.useSelector((state) => state.System.AdaptableAlerts);
|
|
23
|
+
const text = alerts.length == 0 ? '0 Alerts' : alerts.length == 1 ? '1 Alert' : alerts.length + ' Alerts';
|
|
24
|
+
const handleAction = React.useCallback(() => adaptable.api.alertApi.showAlertPopup(), []);
|
|
25
|
+
// blinking logic
|
|
26
|
+
const previousAlerts = React.useRef(alerts);
|
|
27
|
+
const timeoutId = React.useRef();
|
|
28
|
+
React.useEffect(() => {
|
|
29
|
+
const noNewAlerts = previousAlerts.current.length === alerts.length;
|
|
30
|
+
previousAlerts.current = alerts;
|
|
31
|
+
if (!alerts.length) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (noNewAlerts) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const { color, background } = getAlertButtonStyle_1.getAlertButtonStyle(alerts);
|
|
38
|
+
setStyle({ color, background });
|
|
39
|
+
if (timeoutId.current) {
|
|
40
|
+
clearTimeout(timeoutId.current);
|
|
41
|
+
timeoutId.current = null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Cannot clear timeout in the useEffect cleanup function, because this logic is not
|
|
45
|
+
* called for each case. e.g. it is skipped for when alerts are not added.
|
|
46
|
+
*/
|
|
47
|
+
timeoutId.current = setTimeout(() => {
|
|
48
|
+
setStyle(initialStyle);
|
|
49
|
+
}, 2000);
|
|
50
|
+
}, [alerts]);
|
|
51
|
+
// Dropdown content
|
|
52
|
+
const handleDeleteAlert = React.useCallback((alert) => dispatch(SystemRedux.SystemAlertDelete(alert)), []);
|
|
53
|
+
const handleDeleteAllAlerts = React.useCallback((alerts) => dispatch(SystemRedux.SystemAlertDeleteAll(alerts)), []);
|
|
54
|
+
let alertsPanel = (React.createElement(AlertsPanel_1.AlertsPanel, { Alerts: alerts, ShowPanel: true, ShowHeader: false, onClearAlert: handleDeleteAlert, onClearAllAlerts: handleDeleteAllAlerts }));
|
|
55
|
+
return (React.createElement(StatusBarPanel_1.StatusBarPanel, { "data-name": module.moduleInfo.ModuleName, color: style.color, backgroundColor: style.background, onAction: handleAction, icon: module.moduleInfo.Glyph, popover: alerts.length ? alertsPanel : null, content: text }));
|
|
56
|
+
};
|
|
@@ -9,6 +9,7 @@ const AdaptablePopover_1 = require("../AdaptablePopover");
|
|
|
9
9
|
const AlertsPanel_1 = require("./AlertsPanel");
|
|
10
10
|
const rebass_1 = require("rebass");
|
|
11
11
|
const UIHelper_1 = tslib_1.__importDefault(require("../UIHelper"));
|
|
12
|
+
const getAlertButtonStyle_1 = require("./Utilities/getAlertButtonStyle");
|
|
12
13
|
class AlertViewPanelComponent extends React.Component {
|
|
13
14
|
constructor(props) {
|
|
14
15
|
super(props);
|
|
@@ -23,19 +24,17 @@ class AlertViewPanelComponent extends React.Component {
|
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
render() {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let collapsedText = this.props.AdaptableAlerts.length == 0
|
|
27
|
+
const messageType = UIHelper_1.default.getMessageTypeFromAdaptableAlerts(this.props.AdaptableAlerts);
|
|
28
|
+
const { color: buttonTextColor, background: buttonBackground } = getAlertButtonStyle_1.getAlertButtonStyle(this.props.AdaptableAlerts);
|
|
29
|
+
const collapsedText = this.props.AdaptableAlerts.length == 0
|
|
30
30
|
? '0 Alerts'
|
|
31
31
|
: this.props.AdaptableAlerts.length == 1
|
|
32
32
|
? '1 Alert'
|
|
33
33
|
: this.props.AdaptableAlerts.length + ' Alerts';
|
|
34
|
-
|
|
35
|
-
let buttonTextColor = UIHelper_1.default.getButtonTextColourForArrayandMessageType(this.props.AdaptableAlerts, messageType);
|
|
34
|
+
const alertsPanel = (React.createElement(AlertsPanel_1.AlertsPanel, { Alerts: this.props.AdaptableAlerts, ShowPanel: true, ShowHeader: false, onClearAlert: this.props.onDeleteAlert, onRender: () => this.setState({ ShowMessage: false }), onClearAllAlerts: this.props.onDeleteAllAlert }));
|
|
36
35
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
37
36
|
return (React.createElement(rebass_1.Flex, { alignItems: "stretch", className: `ab-${elementType}__Alert__wrap` },
|
|
38
|
-
React.createElement(rebass_1.Flex, { style: { borderRadius: 'var(--ab__border-radius)' }, className: `ab-${elementType}__Alert__text`, marginRight: 2, padding: 2, color: buttonTextColor, backgroundColor:
|
|
37
|
+
React.createElement(rebass_1.Flex, { style: { borderRadius: 'var(--ab__border-radius)' }, className: `ab-${elementType}__Alert__text`, marginRight: 2, padding: 2, color: buttonTextColor, backgroundColor: buttonBackground, fontSize: 'var( --ab-font-size-2)', alignItems: "center" }, collapsedText),
|
|
39
38
|
this.props.AdaptableAlerts.length > 0 && (React.createElement(rebass_1.Flex, { alignItems: "center" },
|
|
40
39
|
React.createElement(AdaptablePopover_1.AdaptablePopover, { className: `ab-${elementType}__Alert__info`, headerText: "",
|
|
41
40
|
// tooltipText="Alerts"
|
|
@@ -6,7 +6,7 @@ export interface AlertsPanelProps extends React.ClassAttributes<AlertsPanel> {
|
|
|
6
6
|
ShowHeader: boolean;
|
|
7
7
|
onClearAlert: (alert: AdaptableAlert) => void;
|
|
8
8
|
onClearAllAlerts: (alerts: AdaptableAlert[]) => void;
|
|
9
|
-
onRender
|
|
9
|
+
onRender?: () => void;
|
|
10
10
|
}
|
|
11
11
|
export declare class AlertsPanel extends React.Component<AlertsPanelProps, {}> {
|
|
12
12
|
componentWillUnmount(): void;
|
|
@@ -14,7 +14,8 @@ const ListGroup_1 = tslib_1.__importDefault(require("../../components/List/ListG
|
|
|
14
14
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
15
15
|
class AlertsPanel extends React.Component {
|
|
16
16
|
componentWillUnmount() {
|
|
17
|
-
|
|
17
|
+
var _a, _b;
|
|
18
|
+
(_b = (_a = this.props).onRender) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
18
19
|
}
|
|
19
20
|
render() {
|
|
20
21
|
let alerts = this.props.Alerts.map((alert, index) => {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAlertButtonStyle = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const UIHelper_1 = tslib_1.__importDefault(require("../../UIHelper"));
|
|
6
|
+
exports.getAlertButtonStyle = (alerts) => {
|
|
7
|
+
const messageType = UIHelper_1.default.getMessageTypeFromAdaptableAlerts(alerts);
|
|
8
|
+
const messageTypeColor = UIHelper_1.default.getColorByMessageType(messageType);
|
|
9
|
+
const buttonBackground = UIHelper_1.default.getButtonColourForAdaptableAlerts(alerts, messageTypeColor);
|
|
10
|
+
const buttonTextColor = UIHelper_1.default.getButtonTextColourForArrayandMessageType(alerts, messageType);
|
|
11
|
+
return {
|
|
12
|
+
color: buttonTextColor,
|
|
13
|
+
background: buttonBackground,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -14,6 +14,7 @@ const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/Dr
|
|
|
14
14
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
15
15
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
16
16
|
const StylePreview_1 = require("../../../components/StylePreview");
|
|
17
|
+
const Panel_1 = tslib_1.__importDefault(require("../../../components/Panel"));
|
|
17
18
|
const HighlightStyle = (props) => {
|
|
18
19
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
19
20
|
const options = [
|
|
@@ -36,11 +37,15 @@ const HighlightStyle = (props) => {
|
|
|
36
37
|
React.createElement(CheckBox_1.CheckBox, { mr: 2, style: { alignItems: 'flex-start' }, checked: Boolean(props.highlight), onChange: (checked) => {
|
|
37
38
|
props.onChange(checked);
|
|
38
39
|
} }, props.label),
|
|
39
|
-
Boolean(props.highlight) && (React.createElement(DropdownButton_1.default, { items: options }, typeof props.highlight === 'boolean' ? (React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 },
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
Boolean(props.highlight) && (React.createElement(DropdownButton_1.default, { items: options, columns: ['label'] }, typeof props.highlight === 'boolean' ? (React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 },
|
|
41
|
+
"Use Message Type's",
|
|
42
|
+
' ',
|
|
43
|
+
AdaptableContext_1.useAdaptable().api.internalApi.getCorrectEnglishVariant('Colour'))) : (React.createElement(rebass_1.Text, { fontSize: 2, mt: 1 }, "Create a Custom Style"))))),
|
|
44
|
+
typeof props.highlight === 'object' && (React.createElement(Panel_1.default, { margin: 2 },
|
|
45
|
+
React.createElement(rebass_1.Box, { paddingLeft: 3 },
|
|
46
|
+
React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: adaptable.api, Style: props.highlight, UpdateStyle: (style) => {
|
|
47
|
+
props.onChange(style);
|
|
48
|
+
} }))))));
|
|
44
49
|
};
|
|
45
50
|
// both used in wizard and list view
|
|
46
51
|
exports.renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
@@ -62,7 +67,10 @@ exports.renderAlertBehaviourSummary = (alert, api, allowWrap = false) => {
|
|
|
62
67
|
AlertProperties.LogToConsole ? { label: 'Log To Console', id: 'logtoconsole' } : null,
|
|
63
68
|
].filter(Boolean);
|
|
64
69
|
if (!values.length) {
|
|
65
|
-
values.push({
|
|
70
|
+
values.push({
|
|
71
|
+
label: 'No ' + api.internalApi.getCorrectEnglishVariant('Behaviour') + ' Selected',
|
|
72
|
+
id: 'none',
|
|
73
|
+
});
|
|
66
74
|
}
|
|
67
75
|
return (React.createElement(ValueSelector_1.ValueOptionsTags, { allowWrap: allowWrap, options: values, value: values.map((v) => v.id), readOnly: true, toIdentifier: (x) => x.id, toLabel: (x) => {
|
|
68
76
|
if (x.id === 'highlightCell' && typeof AlertProperties.HighlightCell === 'object') {
|
|
@@ -84,7 +92,7 @@ exports.AlertBehaviourWizardSection = (props) => {
|
|
|
84
92
|
props.onChange(Object.assign(Object.assign({}, data), { AlertProperties: Object.assign(Object.assign({}, data.AlertProperties), AlertProperties) }));
|
|
85
93
|
};
|
|
86
94
|
return (React.createElement(Tabs_1.Tabs, null,
|
|
87
|
-
React.createElement(Tabs_1.Tabs.Tab, null,
|
|
95
|
+
React.createElement(Tabs_1.Tabs.Tab, null, api.internalApi.getCorrectEnglishVariant('Behaviour')),
|
|
88
96
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
89
97
|
cellChangedAlert && (React.createElement(CheckBox_1.CheckBox, { style: { alignItems: 'flex-start' }, checked: AlertProperties.PreventEdit, onChange: (PreventEdit) => {
|
|
90
98
|
onChange({
|
|
@@ -96,6 +104,9 @@ exports.AlertBehaviourWizardSection = (props) => {
|
|
|
96
104
|
cellChangedAlert && (React.createElement(HighlightStyle, { highlight: AlertProperties.HighlightCell, label: "Highlight Cell", onChange: (HighlightCell) => {
|
|
97
105
|
onChange({ HighlightCell });
|
|
98
106
|
} })),
|
|
107
|
+
cellChangedAlert && (React.createElement(HighlightStyle, { highlight: AlertProperties.HighlightRow, label: "Highlight Row", onChange: (HighlightRow) => {
|
|
108
|
+
onChange({ HighlightRow });
|
|
109
|
+
} })),
|
|
99
110
|
rowAddedAlert && (React.createElement(HighlightStyle, { highlight: AlertProperties.HighlightRow, label: "Highlight Row", onChange: (HighlightRow) => {
|
|
100
111
|
onChange({ HighlightRow });
|
|
101
112
|
} })),
|
|
@@ -18,15 +18,8 @@ exports.AlertButtonsEditor = (props) => {
|
|
|
18
18
|
props.onChange(newButtons);
|
|
19
19
|
};
|
|
20
20
|
const AlertButtons = Helper_1.cloneObject(props.AlertButtons || []) || [];
|
|
21
|
-
const rowAddedAlert = api.internalApi.isAlertDefinitionForAddedRowChangeEvent(adaptableAlert.alertDefinition);
|
|
22
|
-
const rowRemovedAlert = api.internalApi.isAlertDefinitionForRemovedRowChangeEvent(adaptableAlert.alertDefinition);
|
|
23
21
|
const buttonActions = [];
|
|
24
|
-
|
|
25
|
-
buttonActions.push('highlight-row', 'jump-to-row');
|
|
26
|
-
}
|
|
27
|
-
if (!rowAddedAlert && !rowRemovedAlert) {
|
|
28
|
-
buttonActions.push('highlight-cell', 'jump-to-cell', 'undo');
|
|
29
|
-
}
|
|
22
|
+
buttonActions.push('highlight-row', 'jump-to-row', 'highlight-cell', 'jump-to-cell', 'undo');
|
|
30
23
|
buttonActions.push('suspend');
|
|
31
24
|
return (React.createElement(React.Fragment, null,
|
|
32
25
|
React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", justifyContent: "space-between" },
|
|
@@ -123,6 +123,7 @@ exports.AlertWizard = (props) => {
|
|
|
123
123
|
}
|
|
124
124
|
props.onCloseWizard();
|
|
125
125
|
};
|
|
126
|
+
const behaviourSpelling = api.internalApi.getCorrectEnglishVariant('Behaviour');
|
|
126
127
|
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: alertDefinition, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
127
128
|
{
|
|
128
129
|
details: (React.createElement(React.Fragment, null,
|
|
@@ -152,8 +153,8 @@ exports.AlertWizard = (props) => {
|
|
|
152
153
|
title: 'Type & Display',
|
|
153
154
|
},
|
|
154
155
|
{
|
|
155
|
-
details: 'Configure
|
|
156
|
-
title:
|
|
156
|
+
details: 'Configure ' + behaviourSpelling + ' for the Alert',
|
|
157
|
+
title: behaviourSpelling,
|
|
157
158
|
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
158
159
|
React.createElement(AlertBehaviourWizardSection_1.AlertBehaviourWizardSection, { onChange: setAlertDefinition }))),
|
|
159
160
|
renderSummary: AlertBehaviourWizardSection_1.renderAlertBehaviourSummary,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CellSummaryStatusBarSubPanelPopover = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const CellSummaryDetails_1 = require("./CellSummaryDetails");
|
|
7
|
+
const react_redux_1 = require("react-redux");
|
|
8
|
+
exports.CellSummaryStatusBarSubPanelPopover = () => {
|
|
9
|
+
const cellSummary = react_redux_1.useSelector((state) => state.Grid.CellSummary);
|
|
10
|
+
const summary = React.createElement(CellSummaryDetails_1.CellSummaryDetails, { CellSummary: cellSummary });
|
|
11
|
+
return cellSummary && cellSummary.Count ? (summary) : (
|
|
12
|
+
// the extra wrapper is added because the empty text is rendered
|
|
13
|
+
// inside a EmptyContent, hat has position absolute
|
|
14
|
+
React.createElement("div", { style: { position: 'relative', width: 200, height: 80 } }, summary));
|
|
15
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CellSummaryStatusPanel = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_redux_1 = require("react-redux");
|
|
7
|
+
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
|
+
const StatusBarPanel_1 = require("../StatusBar/StatusBarPanel");
|
|
9
|
+
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
10
|
+
const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/GridRedux"));
|
|
11
|
+
const CellSummaryStatusBarSubPanelPopover_1 = require("./CellSummaryStatusBarSubPanelPopover");
|
|
12
|
+
exports.CellSummaryStatusPanel = () => {
|
|
13
|
+
var _a;
|
|
14
|
+
const adaptable = AdaptableContext_1.useAdaptable();
|
|
15
|
+
const dispatch = react_redux_1.useDispatch();
|
|
16
|
+
const cellSummaryApi = adaptable.api.cellSummaryApi;
|
|
17
|
+
const cellSummaryModule = adaptable.ModuleService.getModuleById(ModuleConstants.CellSummaryModuleId);
|
|
18
|
+
const text = `${cellSummaryApi.getCurrentCellSummaryOperation()}: ${(_a = cellSummaryApi.getCurrentCellSummaryOperationValue()) !== null && _a !== void 0 ? _a : 'N/A'}`;
|
|
19
|
+
const onAction = () => {
|
|
20
|
+
adaptable.api.cellSummaryApi.showCellSummaryPopup();
|
|
21
|
+
};
|
|
22
|
+
React.useEffect(() => {
|
|
23
|
+
let cleanupEvent = () => null;
|
|
24
|
+
const checkSelectedCells = () => {
|
|
25
|
+
dispatch(GridRedux.GridCreateCellSummary());
|
|
26
|
+
};
|
|
27
|
+
if (adaptable) {
|
|
28
|
+
cleanupEvent = adaptable._on('CellsSelected', () => {
|
|
29
|
+
checkSelectedCells();
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
checkSelectedCells();
|
|
33
|
+
return () => cleanupEvent === null || cleanupEvent === void 0 ? void 0 : cleanupEvent();
|
|
34
|
+
}, []);
|
|
35
|
+
return (React.createElement(StatusBarPanel_1.StatusBarPanel, { icon: cellSummaryModule.moduleInfo.Glyph, onAction: onAction, content: text, popover: CellSummaryStatusBarSubPanelPopover_1.CellSummaryStatusBarSubPanelPopover }));
|
|
36
|
+
};
|
|
@@ -73,26 +73,8 @@ class CellSummaryViewPanelComponent extends React.Component {
|
|
|
73
73
|
this.props.onCreateCellSummary();
|
|
74
74
|
}
|
|
75
75
|
getOperationValue() {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return this.props.CellSummary.Sum;
|
|
79
|
-
case Enums_1.SummaryOperation.Average:
|
|
80
|
-
return this.props.CellSummary.Average;
|
|
81
|
-
case Enums_1.SummaryOperation.Median:
|
|
82
|
-
return this.props.CellSummary.Median;
|
|
83
|
-
case Enums_1.SummaryOperation.Mode:
|
|
84
|
-
return this.props.CellSummary.Mode;
|
|
85
|
-
case Enums_1.SummaryOperation.Max:
|
|
86
|
-
return this.props.CellSummary.Max;
|
|
87
|
-
case Enums_1.SummaryOperation.Min:
|
|
88
|
-
return this.props.CellSummary.Min;
|
|
89
|
-
case Enums_1.SummaryOperation.Distinct:
|
|
90
|
-
return this.props.CellSummary.Distinct;
|
|
91
|
-
case Enums_1.SummaryOperation.Count:
|
|
92
|
-
return this.props.CellSummary.Count;
|
|
93
|
-
default:
|
|
94
|
-
return this.props.CellSummary[this.props.CellSummaryOperation];
|
|
95
|
-
}
|
|
76
|
+
const api = this.props.api;
|
|
77
|
+
return api.cellSummaryApi.getCellSummaryOperationValue(this.props.CellSummaryOperation);
|
|
96
78
|
}
|
|
97
79
|
}
|
|
98
80
|
function mapStateToProps(state, ownProps) {
|
|
@@ -7,4 +7,4 @@ export declare type ColorPickerProps = Omit<HTMLProps<HTMLInputElement>, 'onChan
|
|
|
7
7
|
onChange: (color: string) => void;
|
|
8
8
|
value: string;
|
|
9
9
|
} & Omit<BoxProps, 'onChange'>;
|
|
10
|
-
export declare const ColorPicker: React.ForwardRefExoticComponent<Pick<ColorPickerProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "contextMenu" | "api" | "type" | "min" | "rows" | "download" | "value" | "checked" | "onClick" | "name" | "
|
|
10
|
+
export declare const ColorPicker: React.ForwardRefExoticComponent<Pick<ColorPickerProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "contextMenu" | "api" | "type" | "min" | "rows" | "download" | "value" | "checked" | "onClick" | "name" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "bg"> & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AdaptableInputProps } from '../AdaptableInput';
|
|
3
3
|
export declare type AdaptableDateInputProps = AdaptableInputProps;
|
|
4
|
-
declare const AdaptableDateInput: React.ForwardRefExoticComponent<Pick<import("../../../components/Input").InputProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "contextMenu" | "type" | "min" | "rows" | "download" | "value" | "checked" | "onClick" | "name" | "
|
|
4
|
+
declare const AdaptableDateInput: React.ForwardRefExoticComponent<Pick<import("../../../components/Input").InputProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "contextMenu" | "type" | "min" | "rows" | "download" | "value" | "checked" | "onClick" | "name" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "bg" | "placehoder"> & React.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
export default AdaptableDateInput;
|