@adaptabletools/adaptable 11.0.0-canary.3 → 11.0.0-canary.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +5 -4
- package/agGrid.js +9 -7
- package/base.css +135 -69
- package/bundle.cjs.js +104 -99
- package/index.css +136 -69
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +14 -7
- package/src/AdaptableOptions/{QueryLanguageOptions.d.ts → AdaptableQLOptions.d.ts} +34 -9
- package/src/AdaptableOptions/{QueryLanguageOptions.js → AdaptableQLOptions.js} +0 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
- package/src/AdaptableOptions/AlertOptions.js +2 -0
- package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -7
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
- package/src/AdaptableOptions/SearchOptions.d.ts +0 -9
- package/src/AdaptableOptions/StateOptions.d.ts +9 -8
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
- package/src/Api/AdaptableApi.d.ts +6 -0
- package/src/Api/AlertApi.d.ts +2 -3
- package/src/Api/CalculatedColumnApi.d.ts +2 -9
- package/src/Api/ColumnApi.d.ts +0 -4
- package/src/Api/EventApi.d.ts +8 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +0 -12
- package/src/Api/GridApi.d.ts +13 -2
- package/src/Api/IPushPullApi.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
- package/src/Api/Implementation/AlertApiImpl.js +19 -10
- package/src/Api/Implementation/ApiBase.d.ts +5 -2
- package/src/Api/Implementation/ApiBase.js +8 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -4
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ColumnApiImpl.js +0 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
- package/src/Api/Implementation/GridApiImpl.js +27 -4
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -3
- package/src/Api/Implementation/InternalApiImpl.js +7 -6
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +11 -0
- package/src/Api/Implementation/QueryApiImpl.js +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +20 -8
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
- package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
- package/src/Api/InternalApi.d.ts +2 -3
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/Api/OpenFinApi.d.ts +5 -0
- package/src/Api/PluginsApi.d.ts +29 -0
- package/src/Api/QueryApi.d.ts +2 -2
- package/src/Api/QueryLanguageApi.d.ts +23 -10
- package/src/Api/SettingsPanelApi.d.ts +16 -0
- package/src/Api/SettingsPanelApi.js +2 -0
- package/src/Api/UserInterfaceApi.d.ts +5 -2
- package/src/PredefinedConfig/AlertState.d.ts +8 -6
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +8 -4
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -5
- package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -6
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +0 -2
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
- package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
- package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +3 -1
- package/src/PredefinedConfig/Common/Types.js +1 -0
- package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
- package/src/PredefinedConfig/FlashingCellState.d.ts +3 -1
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
- package/src/PredefinedConfig/Selection/GridCellRange.d.ts +3 -1
- package/src/PredefinedConfig/SystemState.d.ts +2 -1
- package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
- package/src/Redux/ActionsReducers/GridRedux.js +3 -1
- package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
- package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
- package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +1 -1
- package/src/Redux/Store/AdaptableStore.js +34 -8
- package/src/Strategy/AlertModule.js +16 -6
- package/src/Strategy/CalculatedColumnModule.js +4 -4
- package/src/Strategy/ChartingModule.d.ts +3 -3
- package/src/Strategy/ChartingModule.js +2 -2
- package/src/Strategy/ConditionalStyleModule.js +4 -0
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
- package/src/Strategy/FreeTextColumnModule.js +11 -0
- package/src/Strategy/LayoutModule.js +1 -6
- package/src/Strategy/{SetingsPanelModule.d.ts → SettingsPanelModule.d.ts} +0 -0
- package/src/Strategy/{SetingsPanelModule.js → SettingsPanelModule.js} +0 -0
- package/src/Strategy/ToolPanelModule.js +5 -3
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +1 -1
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +1 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +2 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +23 -17
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +24 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +339 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
- package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
- package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +2 -2
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +8 -8
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +35 -0
- package/src/Utilities/ExpressionFunctions/groupingMap.js +105 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -2
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +33 -0
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +154 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -1
- package/src/Utilities/Helpers/CalendarHelper.js +220 -55
- package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
- package/src/Utilities/ObjectFactory.js +1 -0
- package/src/Utilities/Services/AlertService.js +8 -4
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +7 -3
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +143 -18
- package/src/Utilities/Services/DataService.js +6 -1
- package/src/Utilities/Services/Interface/IAdaptableService.d.ts +1 -1
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +6 -3
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +9 -3
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +11 -4
- package/src/Utilities/Services/QueryLanguageService.js +92 -28
- package/src/Utilities/Services/ReportService.js +6 -2
- package/src/Utilities/Services/TeamSharingService.js +5 -3
- package/src/View/AdaptablePopover/index.js +6 -1
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +10 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
- package/src/View/AdaptableWizardView/helper.js +5 -3
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertWizard.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +2 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +43 -12
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
- 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/AdaptableObjectList/AdaptableObjectList.js +5 -2
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +11 -12
- package/src/View/Components/FilterForm/FilterForm.js +0 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +6 -5
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -88
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
- package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
- package/src/View/Components/ScopeComponent.js +4 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +5 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/Components/ValueSelector/index.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +7 -0
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
- package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
- package/src/View/Dashboard/Dashboard.js +2 -3
- package/src/View/Dashboard/DashboardPopup.js +3 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -4
- package/src/View/Filter/FilterViewPanel.js +1 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +6 -2
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/Query/ExpandedQueryPopup.js +9 -2
- package/src/View/Query/QueryViewPanel.js +3 -1
- package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -2
- package/src/View/UIHelper.js +4 -1
- package/src/View/Wizard/AdaptableWizard.js +12 -3
- package/src/View/Wizard/OnePageAdaptableWizard.js +5 -1
- package/src/agGrid/Adaptable.d.ts +3 -3
- package/src/agGrid/Adaptable.js +117 -77
- package/src/agGrid/agGridHelper.js +4 -9
- package/src/agGrid/agGridMenuHelper.js +4 -8
- package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +4 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +4 -4
- package/src/components/ApplicationIcon.d.ts +1 -0
- package/src/components/ApplicationIcon.js +2 -2
- package/src/components/Dashboard/Dashboard.js +4 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Dropdown/index.js +8 -1
- package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +5 -2
- package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -2
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.d.ts +2 -0
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +45 -0
- package/src/components/ExpressionEditor/editorButtonsReactive.js +8 -13
- package/src/components/ExpressionEditor/index.d.ts +2 -1
- package/src/components/ExpressionEditor/index.js +20 -6
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/Logo/index.js +8 -7
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/SizedContainer/index.js +7 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/WindowModal/WindowModal.js +4 -1
- package/src/metamodel/adaptable.metamodel.d.ts +114 -59
- package/src/metamodel/adaptable.metamodel.js +373 -242
- package/src/types.d.ts +9 -6
- package/themes/dark.css +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -13,17 +13,18 @@ exports.TopBar = (props) => {
|
|
|
13
13
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
14
14
|
const applicationIcon = (_a = adaptable.api.internalApi.getAdaptableOptions().userInterfaceOptions) === null || _a === void 0 ? void 0 : _a.applicationIcon;
|
|
15
15
|
let icon = React.createElement(React.Fragment, null);
|
|
16
|
+
const iconClassName = `${baseClassName}__Icon`;
|
|
16
17
|
if (props.icon === 'ConfigurationIcon') {
|
|
17
|
-
icon = React.createElement(icons_1.Icon, { className:
|
|
18
|
+
icon = React.createElement(icons_1.Icon, { className: iconClassName, name: "settings" });
|
|
18
19
|
}
|
|
19
20
|
else if (props.icon === 'ApplicationIcon' && applicationIcon) {
|
|
20
|
-
icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { icon: applicationIcon });
|
|
21
|
+
icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { className: iconClassName, icon: applicationIcon });
|
|
21
22
|
}
|
|
22
23
|
else if (typeof props.icon === 'object' && props.icon.src) {
|
|
23
|
-
icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { icon: props.icon });
|
|
24
|
+
icon = React.createElement(ApplicationIcon_1.ApplicationIcon, { className: iconClassName, icon: props.icon });
|
|
24
25
|
}
|
|
25
26
|
return (React.createElement(rebass_1.Flex, { flex: 0, className: baseClassName },
|
|
26
27
|
icon,
|
|
27
|
-
React.createElement(rebass_1.Text,
|
|
28
|
+
React.createElement(rebass_1.Text, { className: `${baseClassName}__Title` }, props.children)));
|
|
28
29
|
};
|
|
29
30
|
exports.default = exports.TopBar;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useMenuItems = 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 DefaultSettingsPanel_1 = require("../../../../Utilities/Defaults/DefaultSettingsPanel");
|
|
8
|
+
const AdaptableContext_1 = require("../../../AdaptableContext");
|
|
9
|
+
const PopupRedux = tslib_1.__importStar(require("../../../../Redux/ActionsReducers/PopupRedux"));
|
|
10
|
+
exports.useMenuItems = () => {
|
|
11
|
+
const adaptable = AdaptableContext_1.useAdaptable();
|
|
12
|
+
const settingsPanelOptions = adaptable.adaptableOptions.settingsPanelOptions;
|
|
13
|
+
const allMenuItems = react_redux_1.useSelector((state) => { var _a; return (_a = state === null || state === void 0 ? void 0 : state.Grid) === null || _a === void 0 ? void 0 : _a.ModuleDropdownMenuItems; });
|
|
14
|
+
return React.useMemo(() => {
|
|
15
|
+
var _a;
|
|
16
|
+
let navigationItems = (_a = settingsPanelOptions === null || settingsPanelOptions === void 0 ? void 0 : settingsPanelOptions.navigation) === null || _a === void 0 ? void 0 : _a.items;
|
|
17
|
+
if (!navigationItems) {
|
|
18
|
+
navigationItems = [...DefaultSettingsPanel_1.DEFAULT_NAVIGATION_ITEMS];
|
|
19
|
+
if (settingsPanelOptions.customSettingsPanels) {
|
|
20
|
+
navigationItems.push(...settingsPanelOptions.customSettingsPanels.map((panel) => panel.name));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const visibleItems = allMenuItems.filter((item) => item.module !== 'General' && !DefaultSettingsPanel_1.ACTION_POPUPS.includes(item.module) && item.isVisible);
|
|
24
|
+
return navigationItems
|
|
25
|
+
.map((moduleName) => {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
if (moduleName === '-') {
|
|
28
|
+
return moduleName;
|
|
29
|
+
}
|
|
30
|
+
const customSettingsPanel = (_b = (_a = settingsPanelOptions === null || settingsPanelOptions === void 0 ? void 0 : settingsPanelOptions.customSettingsPanels) === null || _a === void 0 ? void 0 : _a.find) === null || _b === void 0 ? void 0 : _b.call(_a, (panel) => panel.name === moduleName);
|
|
31
|
+
let customPanelMenuItem = null;
|
|
32
|
+
if (customSettingsPanel) {
|
|
33
|
+
customPanelMenuItem = {
|
|
34
|
+
label: customSettingsPanel.name,
|
|
35
|
+
module: 'CustomSettingsPanelModule',
|
|
36
|
+
isVisible: true,
|
|
37
|
+
reduxAction: PopupRedux.PopupShowScreen('CustomSettingsPanelModule', customSettingsPanel.name),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return customPanelMenuItem || visibleItems.find((item) => item.module === moduleName);
|
|
41
|
+
})
|
|
42
|
+
.filter(Boolean);
|
|
43
|
+
}, [allMenuItems]);
|
|
44
|
+
};
|
|
@@ -69,7 +69,7 @@ exports.AdaptablePopupAlert = (props) => {
|
|
|
69
69
|
})
|
|
70
70
|
: msg),
|
|
71
71
|
React.createElement(rebass_1.Box, { margin: 2 },
|
|
72
|
-
React.createElement(AdaptableFormComponent_1.AdaptableFormComponent, { data: formData, formDef: adaptableForm, displayTitle: true, onChange: setFormData, api: props.api, context: context, onButtonClick: (button) => {
|
|
72
|
+
React.createElement(AdaptableFormComponent_1.AdaptableFormComponent, { focusFirstButton: props.focusFirstButton, data: formData, formDef: adaptableForm, displayTitle: true, onChange: setFormData, api: props.api, context: context, onButtonClick: (button) => {
|
|
73
73
|
props.onClose();
|
|
74
74
|
// we want to give the current popup time to close
|
|
75
75
|
// and we reopen with a delay in case this button action causes another popup
|
|
@@ -14,7 +14,9 @@ class AdaptablePopupConfirmation extends React.Component {
|
|
|
14
14
|
constructor(props) {
|
|
15
15
|
super(props);
|
|
16
16
|
this.changeContent = (e) => {
|
|
17
|
-
this.setState({
|
|
17
|
+
this.setState({
|
|
18
|
+
PromptText: e.target.value,
|
|
19
|
+
});
|
|
18
20
|
};
|
|
19
21
|
this.state = { PromptText: '' };
|
|
20
22
|
}
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Action } from 'redux';
|
|
3
|
+
export interface AdaptablePopupPromptProps {
|
|
4
4
|
header: string;
|
|
5
5
|
message: string;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
onConfirm: Function;
|
|
8
|
+
onConfirmActionCreator?: (inputText: string) => Action;
|
|
9
|
+
defaultValue?: string;
|
|
8
10
|
}
|
|
9
|
-
export
|
|
10
|
-
promptText: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class AdaptablePopupPrompt extends React.Component<AdaptablePopupPromptProps, AdaptablePopupPromptState> {
|
|
13
|
-
constructor(props: AdaptablePopupPromptProps);
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
-
onCloseForm(): void;
|
|
16
|
-
onConfirmmForm(): void;
|
|
17
|
-
changeContent: (e: any) => void;
|
|
18
|
-
}
|
|
11
|
+
export declare const AdaptablePopupPrompt: React.FunctionComponent<AdaptablePopupPromptProps>;
|
|
@@ -8,40 +8,41 @@ const Dialog_1 = tslib_1.__importDefault(require("../../../components/Dialog"));
|
|
|
8
8
|
const rebass_1 = require("rebass");
|
|
9
9
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
10
10
|
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
11
|
+
const react_redux_1 = require("react-redux");
|
|
12
|
+
exports.AdaptablePopupPrompt = (props) => {
|
|
13
|
+
var _a;
|
|
14
|
+
const dispatch = react_redux_1.useDispatch();
|
|
15
|
+
const [promptText, setPromptText] = React.useState((_a = props.defaultValue) !== null && _a !== void 0 ? _a : '');
|
|
16
|
+
const onCloseForm = () => {
|
|
17
|
+
setPromptText('');
|
|
18
|
+
props.onClose();
|
|
19
|
+
};
|
|
20
|
+
const onConfirmForm = () => {
|
|
21
|
+
props.onConfirm(promptText);
|
|
22
|
+
const confirmationAction = typeof props.onConfirmActionCreator === 'function' &&
|
|
23
|
+
props.onConfirmActionCreator(promptText);
|
|
24
|
+
if (confirmationAction) {
|
|
25
|
+
dispatch(confirmationAction);
|
|
26
|
+
}
|
|
27
|
+
setPromptText('');
|
|
28
|
+
};
|
|
29
|
+
const changeContent = (e) => {
|
|
30
|
+
setPromptText(e.target.value);
|
|
31
|
+
};
|
|
32
|
+
return (React.createElement(Dialog_1.default, { modal: true, "data-name": `prompt-popup`, isOpen: true, onDismiss: props.onClose, showCloseButton: false, style: { minHeight: 'auto', maxWidth: '50%' } },
|
|
33
|
+
React.createElement(rebass_1.Flex, { flexDirection: "column" },
|
|
34
|
+
React.createElement(rebass_1.Box, { marginTop: 3, mx: 2 }, props.header),
|
|
35
|
+
StringExtensions_1.StringExtensions.IsNotNullOrEmpty(props.message) && (React.createElement(rebass_1.Box, { marginTop: 3, mx: 2 },
|
|
36
|
+
' ',
|
|
37
|
+
React.createElement("div", { style: { display: 'flex', alignItems: 'center' } }, props.message.split('\n').map(function (item, index) {
|
|
38
|
+
return (React.createElement("span", { key: index },
|
|
39
|
+
item,
|
|
40
|
+
React.createElement("br", null)));
|
|
41
|
+
})))),
|
|
42
|
+
React.createElement(Input_1.default, { autoFocus: true, marginTop: 3, mx: 3, value: promptText, type: "string", placeholder: "Enter text", onChange: (e) => changeContent(e) }),
|
|
43
|
+
React.createElement(rebass_1.Box, { marginTop: 3 },
|
|
44
|
+
React.createElement(rebass_1.Flex, { padding: 2 },
|
|
45
|
+
React.createElement(SimpleButton_1.default, { tone: "accent", "data-name": "ok", variant: "raised", disabled: StringExtensions_1.StringExtensions.IsNullOrEmpty(promptText), onClick: () => onConfirmForm() }, "OK"),
|
|
46
|
+
React.createElement("div", { style: { flex: 1 } }),
|
|
47
|
+
React.createElement(SimpleButton_1.default, { tone: "neutral", variant: "raised", onClick: () => onCloseForm(), "data-name": "cancel" }, "Cancel"))))));
|
|
48
|
+
};
|
|
@@ -14,7 +14,10 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlo
|
|
|
14
14
|
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
15
15
|
exports.AdaptablePopupTeamSharing = (props) => {
|
|
16
16
|
const { showPopup, onClose, onConfirm, header } = props;
|
|
17
|
-
const [config, setConfig] = react_1.useState({
|
|
17
|
+
const [config, setConfig] = react_1.useState({
|
|
18
|
+
description: '',
|
|
19
|
+
type: 'Snapshot',
|
|
20
|
+
});
|
|
18
21
|
return (React.createElement(React.Fragment, null,
|
|
19
22
|
React.createElement(Dialog_1.default, { modal: true, "data-name": "teamsharing-popup", isOpen: showPopup, onDismiss: onClose, autoFocus: false, showCloseButton: false, style: { minHeight: 'auto', maxWidth: '50%' } },
|
|
20
23
|
React.createElement(rebass_1.Flex, { flexDirection: "column" },
|
|
@@ -99,7 +99,10 @@ class ScopeComponent extends React.Component {
|
|
|
99
99
|
};
|
|
100
100
|
newScopeChoice = 'All';
|
|
101
101
|
}
|
|
102
|
-
this.setState({
|
|
102
|
+
this.setState({
|
|
103
|
+
ScopeChoice: newScopeChoice,
|
|
104
|
+
componentScope: newScope,
|
|
105
|
+
}, () => this.forceUpdate());
|
|
103
106
|
this.props.updateScope(newScope);
|
|
104
107
|
}
|
|
105
108
|
onColumnsSelectedChanged(columnFriendlyNames) {
|
|
@@ -19,7 +19,11 @@ exports.CustomToolPanelContent = (props) => {
|
|
|
19
19
|
react_1.useLayoutEffect(() => {
|
|
20
20
|
const node = contentsDivDomRef.current;
|
|
21
21
|
if (hasCustomRenderFn(customToolPanel)) {
|
|
22
|
-
const html = customToolPanel.render({
|
|
22
|
+
const html = customToolPanel.render({
|
|
23
|
+
visible: true,
|
|
24
|
+
node,
|
|
25
|
+
adaptableApi: api,
|
|
26
|
+
});
|
|
23
27
|
setContentsHTML(html);
|
|
24
28
|
}
|
|
25
29
|
else if (hasCustomFrameworkComponent(customToolPanel)) {
|
|
@@ -86,7 +86,9 @@ class ToolPanelPopupComponent extends React.Component {
|
|
|
86
86
|
onShowGridPropertiesChanged(event) {
|
|
87
87
|
let e = event.target;
|
|
88
88
|
let ToolPanelConfigView = e.value;
|
|
89
|
-
this.setState({
|
|
89
|
+
this.setState({
|
|
90
|
+
ToolPanelConfigView: ToolPanelConfigView,
|
|
91
|
+
});
|
|
90
92
|
}
|
|
91
93
|
onToolPanelToolPanelsChanged(selectedValues) {
|
|
92
94
|
const currentSelectedToolPanelDefinitions = this.props.ToolPanelState.ToolPanels;
|
|
@@ -40,7 +40,7 @@ exports.ToolPanelWrapper = (props) => {
|
|
|
40
40
|
];
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
const [toolPanelName, toolPanelHeader, toolPanelContent, moduleInfo
|
|
43
|
+
const [toolPanelName, toolPanelHeader, toolPanelContent, moduleInfo] = getToolPanelConfiguration();
|
|
44
44
|
const isMinimised = visibilityMode === 'collapsed';
|
|
45
45
|
const isConfigurable =
|
|
46
46
|
// only module toolPanels are configurable
|
|
@@ -148,7 +148,7 @@ function ValueSelector(props) {
|
|
|
148
148
|
borderRadius: 'var(--ab__border-radius)',
|
|
149
149
|
overflow: 'hidden',
|
|
150
150
|
}, fontSize: 2, backgroundColor: "defaultbackground" },
|
|
151
|
-
React.createElement(CheckBox_1.CheckBox, { disabled: !value.length, checked: selectedOnly, onChange: setSelectedOnly }, showSelectedOnlyLabel !== null && showSelectedOnlyLabel !== void 0 ? showSelectedOnlyLabel : 'Show
|
|
151
|
+
React.createElement(CheckBox_1.CheckBox, { disabled: !value.length, checked: selectedOnly, onChange: setSelectedOnly }, showSelectedOnlyLabel !== null && showSelectedOnlyLabel !== void 0 ? showSelectedOnlyLabel : 'Show Selected Only'))),
|
|
152
152
|
React.createElement(react_beautiful_dnd_1.Droppable, { droppableId: "droppable" }, (droppableProvided) => {
|
|
153
153
|
return (React.createElement("div", Object.assign({ ref: droppableProvided.innerRef }, droppableProvided.droppableProps),
|
|
154
154
|
options
|
|
@@ -34,9 +34,9 @@ function ConditionalStyleRuleWizardSection(props) {
|
|
|
34
34
|
React.createElement("i", null, "Scope"),
|
|
35
35
|
" is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression")),
|
|
36
36
|
useAggregationQuery: (React.createElement(React.Fragment, null,
|
|
37
|
-
"Use an
|
|
37
|
+
"Use an AggregatedBooleanQuery if ",
|
|
38
38
|
React.createElement("i", null, "Scope"),
|
|
39
|
-
" is 'Whole Row' - so any data change may be evaluated in a complex
|
|
39
|
+
" is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")),
|
|
40
40
|
} })));
|
|
41
41
|
}
|
|
42
42
|
exports.ConditionalStyleRuleWizardSection = ConditionalStyleRuleWizardSection;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConditionalStyle } from '../../../../types';
|
|
3
|
+
export declare const renderConditionalStyleSettingsSummary: (data: ConditionalStyle) => JSX.Element;
|
|
4
|
+
interface ConditionalStyleSettingsWizardSettingsProps {
|
|
5
|
+
onChange: (data: ConditionalStyle) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ConditionalStyleSettingsWizardSettings: React.FunctionComponent<ConditionalStyleSettingsWizardSettingsProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConditionalStyleSettingsWizardSettings = exports.renderConditionalStyleSettingsSummary = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const rebass_1 = require("rebass");
|
|
7
|
+
const CheckBox_1 = require("../../../components/CheckBox");
|
|
8
|
+
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
9
|
+
const Tabs_1 = require("../../../components/Tabs");
|
|
10
|
+
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
|
+
exports.renderConditionalStyleSettingsSummary = (data) => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
12
|
+
React.createElement(rebass_1.Text, null, "Include grouped rows"),
|
|
13
|
+
React.createElement(rebass_1.Text, { mt: 3 }, data.IncludeGroupedRows ? 'Yes' : 'No')));
|
|
14
|
+
exports.ConditionalStyleSettingsWizardSettings = (props) => {
|
|
15
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
16
|
+
const onIncludeGroupedRowsChanged = (checked) => {
|
|
17
|
+
props.onChange(Object.assign(Object.assign({}, data), { IncludeGroupedRows: checked }));
|
|
18
|
+
};
|
|
19
|
+
return (React.createElement(Tabs_1.Tabs, null,
|
|
20
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
|
|
21
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
22
|
+
React.createElement(rebass_1.Flex, { flexDirection: "row" },
|
|
23
|
+
React.createElement(FormLayout_1.default, null,
|
|
24
|
+
React.createElement(FormLayout_1.FormRow, { label: "Include Grouped Rows:" },
|
|
25
|
+
React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
|
|
26
|
+
React.createElement(CheckBox_1.CheckBox, { checked: data.IncludeGroupedRows, onChange: onIncludeGroupedRowsChanged, mr: 2 }))))))));
|
|
27
|
+
};
|
|
@@ -17,6 +17,7 @@ const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
|
17
17
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
18
18
|
const react_redux_1 = require("react-redux");
|
|
19
19
|
const ConditionalStyleRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ConditionalStyleRedux"));
|
|
20
|
+
const ConditionalStyleSettingsWizardSettings_1 = require("./ConditionalStyleSettingsWizardSettings");
|
|
20
21
|
exports.ConditionalStyleWizard = (props) => {
|
|
21
22
|
var _a;
|
|
22
23
|
const data = (_a = props.data) !== null && _a !== void 0 ? _a : props.popupParams.value;
|
|
@@ -84,6 +85,12 @@ exports.ConditionalStyleWizard = (props) => {
|
|
|
84
85
|
},
|
|
85
86
|
renderSummary: ConditionalStyleRuleWizardSection_1.renderConditionalStyleRuleSummary,
|
|
86
87
|
},
|
|
88
|
+
{
|
|
89
|
+
title: 'Settings',
|
|
90
|
+
renderSummary: ConditionalStyleSettingsWizardSettings_1.renderConditionalStyleSettingsSummary,
|
|
91
|
+
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
92
|
+
React.createElement(ConditionalStyleSettingsWizardSettings_1.ConditionalStyleSettingsWizardSettings, { onChange: setConditionalStyle }))),
|
|
93
|
+
},
|
|
87
94
|
'-',
|
|
88
95
|
{
|
|
89
96
|
details: 'Review the Conditional Style',
|
|
@@ -55,7 +55,9 @@ exports.CustomSortValuesWizardSection = (props) => {
|
|
|
55
55
|
return sortedValuesMap.has(option);
|
|
56
56
|
}, [sortedValuesMap]);
|
|
57
57
|
const options = react_1.useMemo(() => {
|
|
58
|
-
return sortWithOrder_1.sortWithOrderArray(distinctValues, data.SortedValues, {
|
|
58
|
+
return sortWithOrder_1.sortWithOrderArray(distinctValues, data.SortedValues, {
|
|
59
|
+
sortUnorderedItems: false,
|
|
60
|
+
});
|
|
59
61
|
}, [allowReorder, distinctValues, data.SortedValues]);
|
|
60
62
|
const baseClassName = 'ab-CustomSortWizard__SortOrder';
|
|
61
63
|
const className = join_1.default(baseClassName, isDistinctValuesLoading && `${baseClassName}--loading`);
|
|
@@ -53,7 +53,7 @@ exports.CustomSortWizard = (props) => {
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
title: 'Sort Order',
|
|
56
|
-
details: 'Select values to specify Custom Sort order - use
|
|
56
|
+
details: 'Select values to specify Custom Sort order - use "Drag to reorder" checkbox to modify order',
|
|
57
57
|
isValid: CustomSortValuesWizardSection_1.isValidCustomSortOrder,
|
|
58
58
|
renderSummary: CustomSortValuesWizardSection_1.renderCustomSortValuesSummary,
|
|
59
59
|
render: () => (React.createElement(rebass_1.Box, { padding: 2, style: { height: '100%' } },
|
|
@@ -17,7 +17,11 @@ exports.CustomToolbarWrapper = (props) => {
|
|
|
17
17
|
const node = contentsDivRef.current;
|
|
18
18
|
const adaptableApi = api;
|
|
19
19
|
if (props.customToolbar.render) {
|
|
20
|
-
const html = props.customToolbar.render({
|
|
20
|
+
const html = props.customToolbar.render({
|
|
21
|
+
visible: true,
|
|
22
|
+
node,
|
|
23
|
+
adaptableApi,
|
|
24
|
+
});
|
|
21
25
|
setContentsHTML(html);
|
|
22
26
|
}
|
|
23
27
|
else if (props.customToolbar.frameworkComponent) {
|
|
@@ -69,8 +69,7 @@ const DashboardComponent = (props) => {
|
|
|
69
69
|
const renderModuleButtons = () => {
|
|
70
70
|
let shortcutsArray = props.DashboardState.ModuleButtons;
|
|
71
71
|
let shortcuts = null;
|
|
72
|
-
const alwaysShowInDashboard = props.api.internalApi.getAdaptableOptions().settingsPanelOptions
|
|
73
|
-
.alwaysShowInDashboard;
|
|
72
|
+
const alwaysShowInDashboard = props.api.internalApi.getAdaptableOptions().settingsPanelOptions.alwaysShowInDashboard;
|
|
74
73
|
const shouldAddSettingsPanel = alwaysShowInDashboard &&
|
|
75
74
|
!props.api.internalApi.getEntitlementService().isModuleHiddenEntitlement('SettingsPanel');
|
|
76
75
|
if (shouldAddSettingsPanel && !shortcutsArray.includes('SettingsPanel')) {
|
|
@@ -151,7 +150,7 @@ const DashboardComponent = (props) => {
|
|
|
151
150
|
props.onSetFloatingPosition(FloatingPositionCallback);
|
|
152
151
|
}
|
|
153
152
|
}, left: React.createElement(React.Fragment, null,
|
|
154
|
-
React.createElement(ApplicationIcon_1.ApplicationIcon, { icon: props.api.internalApi.getAdaptableOptions().userInterfaceOptions.applicationIcon }),
|
|
153
|
+
React.createElement(ApplicationIcon_1.ApplicationIcon, { className: "ab-Dashboard__application-icon", icon: props.api.internalApi.getAdaptableOptions().userInterfaceOptions.applicationIcon }),
|
|
155
154
|
dashboardOptions.buttonsLocation === 'left' && renderModuleButtons()), right: React.createElement(React.Fragment, null,
|
|
156
155
|
renderDashboardButtons(),
|
|
157
156
|
dashboardOptions.buttonsLocation === 'right' && renderModuleButtons(),
|
|
@@ -90,7 +90,9 @@ class DashboardPopupComponent extends React.Component {
|
|
|
90
90
|
onDashboardConfigViewChanged(event) {
|
|
91
91
|
let e = event.target;
|
|
92
92
|
let dashboardConfigView = e.value;
|
|
93
|
-
this.setState({
|
|
93
|
+
this.setState({
|
|
94
|
+
DashboardConfigView: dashboardConfigView,
|
|
95
|
+
});
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
function mapStateToProps(state, ownProps) {
|
|
@@ -189,7 +189,8 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
|
|
|
189
189
|
const layoutColumns = options.predefinedConfig.Layout.Layouts[0].Columns;
|
|
190
190
|
if (layoutColumns.includes('undoActionColumn')) {
|
|
191
191
|
// remove action column from layout
|
|
192
|
-
options.predefinedConfig.Layout.Layouts[0].Columns =
|
|
192
|
+
options.predefinedConfig.Layout.Layouts[0].Columns =
|
|
193
|
+
layoutColumns.filter((columnId) => columnId !== 'undoActionColumn');
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
196
|
return options;
|
|
@@ -44,7 +44,9 @@ class ReportColumnTypeWizard extends React.Component {
|
|
|
44
44
|
}, () => this.props.updateGoBackState());
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
|
-
this.setState({
|
|
47
|
+
this.setState({
|
|
48
|
+
ReportColumnScope: Enums_1.ReportColumnScope.ScopeColumns,
|
|
49
|
+
}, () => this.props.updateGoBackState());
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
canNext() {
|
|
@@ -44,7 +44,9 @@ class ReportRowTypeWizard extends React.Component {
|
|
|
44
44
|
}, () => this.props.updateGoBackState());
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
|
-
this.setState({
|
|
47
|
+
this.setState({
|
|
48
|
+
ReportRowScope: Enums_1.ReportRowScope.ExpressionRows,
|
|
49
|
+
}, () => this.props.updateGoBackState());
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
canNext() {
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { ViewPanelProps } from '../Components/SharedProps/ViewPanelProps';
|
|
2
|
-
import { UIPrompt } from '../../Utilities/Interface/MessagePopups';
|
|
3
|
-
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
4
2
|
import * as FilterRedux from '../../Redux/ActionsReducers/FilterRedux';
|
|
5
3
|
import { ColumnFilter } from '../../PredefinedConfig/FilterState';
|
|
6
4
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
7
5
|
import { Entitlement } from '../../PredefinedConfig/Common/Entitlement';
|
|
8
6
|
import * as React from 'react';
|
|
9
7
|
export interface FilterViewPanelComponentProps extends ViewPanelProps {
|
|
10
|
-
onShowPrompt: (prompt: UIPrompt) => PopupRedux.PopupShowPromptAction;
|
|
11
8
|
onHideQuickFilterBar: () => FilterRedux.QuickFilterBarHideAction;
|
|
12
9
|
onShowQuickFilterBar: () => FilterRedux.QuickFilterBarShowAction;
|
|
13
10
|
ColumnFilters: ColumnFilter[];
|
|
@@ -21,5 +18,5 @@ declare class FilterViewPanelComponent extends React.Component<FilterViewPanelCo
|
|
|
21
18
|
private onClearFilters;
|
|
22
19
|
private onClearColumnFilter;
|
|
23
20
|
}
|
|
24
|
-
export declare const FilterViewPanelControl: import("react-redux").ConnectedComponent<typeof FilterViewPanelComponent,
|
|
21
|
+
export declare const FilterViewPanelControl: import("react-redux").ConnectedComponent<typeof FilterViewPanelComponent, Pick<React.ClassAttributes<FilterViewPanelComponent> & FilterViewPanelComponentProps, "ref" | "key">>;
|
|
25
22
|
export {};
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FilterViewPanelControl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
6
5
|
const FilterRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FilterRedux"));
|
|
7
6
|
const React = tslib_1.__importStar(require("react"));
|
|
8
7
|
const ActiveFiltersPanel_1 = require("./ActiveFiltersPanel");
|
|
@@ -37,7 +36,7 @@ class FilterViewPanelComponent extends React.Component {
|
|
|
37
36
|
this.props.api.filterApi.clearColumnFilterByColumn(columnFilter.ColumnId);
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
|
-
function mapStateToProps(state
|
|
39
|
+
function mapStateToProps(state) {
|
|
41
40
|
return {
|
|
42
41
|
ColumnFilters: state.Filter.ColumnFilters,
|
|
43
42
|
IsQuickFilterVisible: state.Filter.IsQuickFilterVisible,
|
|
@@ -45,7 +44,6 @@ function mapStateToProps(state, ownProps) {
|
|
|
45
44
|
}
|
|
46
45
|
function mapDispatchToProps(dispatch) {
|
|
47
46
|
return {
|
|
48
|
-
onShowPrompt: (prompt) => dispatch(PopupRedux.PopupShowPrompt(prompt)),
|
|
49
47
|
onHideQuickFilterBar: () => dispatch(FilterRedux.QuickFilterBarHide()),
|
|
50
48
|
onShowQuickFilterBar: () => dispatch(FilterRedux.QuickFilterBarShow()),
|
|
51
49
|
};
|
|
@@ -41,8 +41,8 @@ exports.FlashingAlertRulesWizardSection = (props) => {
|
|
|
41
41
|
React.createElement("i", null, "Scope"),
|
|
42
42
|
" is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression")),
|
|
43
43
|
useAggregationQuery: (React.createElement(React.Fragment, null,
|
|
44
|
-
"Use an
|
|
44
|
+
"Use an AggregatedBooleanQuery if ",
|
|
45
45
|
React.createElement("i", null, "Scope"),
|
|
46
|
-
" is 'Whole Row' - so any data change may be evaluated in a complex
|
|
46
|
+
" is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")),
|
|
47
47
|
} }));
|
|
48
48
|
};
|
|
@@ -65,7 +65,7 @@ exports.FlashingCellWizard = (props) => {
|
|
|
65
65
|
title: 'Scope',
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
details: 'Build the
|
|
68
|
+
details: 'Build the Rules for when Cells should Flash',
|
|
69
69
|
isValid: isValidFlashingCellRules_1.isValidFlashingCellRules,
|
|
70
70
|
render: () => React.createElement(FlashingCellRulesWizardSection_1.FlashingAlertRulesWizardSection, { onChange: setFlashingCell }),
|
|
71
71
|
renderSummary: FlashingCellRulesWizardSection_1.renderFlashingAlertRulesSummary,
|
|
@@ -113,7 +113,7 @@ function FormatColumnWizard(props) {
|
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
title: 'Style',
|
|
116
|
-
details: 'Format Column
|
|
116
|
+
details: 'Format Column Style',
|
|
117
117
|
isValid: FormatColumnStyleWizardSection_1.isFormatColumnStyleValid,
|
|
118
118
|
renderSummary: FormatColumnStyleWizardSection_1.renderFormatColumnStyleSummary,
|
|
119
119
|
render: () => {
|
|
@@ -49,8 +49,7 @@ class FreeTextColumnSummaryComponent extends React.Component {
|
|
|
49
49
|
this.state.editedAdaptableObject && (React.createElement(FreeTextColumnWizard_1.FreeTextColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.FreeTextColumns, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
|
|
50
50
|
}
|
|
51
51
|
onNew() {
|
|
52
|
-
const specialColumnsAreFilterable = this.props.api.internalApi.getAdaptableOptions()
|
|
53
|
-
.filterOptions.enableFilterOnSpecialColumns;
|
|
52
|
+
const specialColumnsAreFilterable = this.props.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns;
|
|
54
53
|
let configEntity = ObjectFactory_1.ObjectFactory.CreateEmptyFreeTextColumn(specialColumnsAreFilterable);
|
|
55
54
|
configEntity.ColumnId = this.props.summarisedColumn.columnId;
|
|
56
55
|
this.setState({
|
|
@@ -92,7 +92,10 @@ const OptionContainerComponent = (props) => {
|
|
|
92
92
|
const panelButton = viewMode === 'expanded' ? (React.createElement(ButtonMinimise_1.ButtonMinimise, { onClick: () => requestViewModeChange(), tooltip: `Hide ${label}` })) : (React.createElement(ButtonMaximise_1.ButtonMaximise, { onClick: () => requestViewModeChange(), tooltip: `Show ${label}` }));
|
|
93
93
|
return (React.createElement(PanelWithButton_1.PanelWithButton, { className: `options-container-${name}`, variant: "default", headerText: label, headerProps: {
|
|
94
94
|
fontSize: 3,
|
|
95
|
-
style: {
|
|
95
|
+
style: {
|
|
96
|
+
fontWeight: viewMode === 'expanded' ? 800 : 400,
|
|
97
|
+
cursor: 'pointer',
|
|
98
|
+
},
|
|
96
99
|
'data-name': `options-container-header-${name}`,
|
|
97
100
|
onClick: () => requestViewModeChange(),
|
|
98
101
|
}, button: panelButton, style: { marginBottom: 3 } }, viewMode === 'expanded' && children));
|
|
@@ -21,7 +21,11 @@ const PivotList_1 = require("./PivotList");
|
|
|
21
21
|
const ButtonInfo_1 = require("../../../Components/Buttons/ButtonInfo");
|
|
22
22
|
const Input_1 = tslib_1.__importDefault(require("../../../../components/Input"));
|
|
23
23
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../../../Utilities/Extensions/StringExtensions"));
|
|
24
|
-
const verticalPanelStyle = {
|
|
24
|
+
const verticalPanelStyle = {
|
|
25
|
+
minHeight: 150,
|
|
26
|
+
flex: '1 0 auto',
|
|
27
|
+
overflow: 'auto',
|
|
28
|
+
};
|
|
25
29
|
const ListPanel = (props) => (React.createElement(Panel_1.default, Object.assign({ variant: "modern", bodyProps: { padding: 0 }, style: Object.assign(Object.assign({}, verticalPanelStyle), props.style) }, props)));
|
|
26
30
|
const ColumnLabels = (props) => {
|
|
27
31
|
const { children, showBoth, showTitle, flexDirection = 'row', labels: labelsProp } = props, columnProperties = tslib_1.__rest(props, ["children", "showBoth", "showTitle", "flexDirection", "labels"]);
|
|
@@ -33,7 +37,7 @@ const ColumnLabels = (props) => {
|
|
|
33
37
|
'Pivotable',
|
|
34
38
|
'Sortable',
|
|
35
39
|
];
|
|
36
|
-
const labels = labelNames.map((name) =>
|
|
40
|
+
const labels = labelNames.map((name) => columnProperties[name.toLocaleLowerCase()] ? name.charAt(0) : '');
|
|
37
41
|
const flexProps = {
|
|
38
42
|
[flexDirection === 'row' ? 'alignItems' : 'justifyContent']: 'center',
|
|
39
43
|
};
|
|
@@ -44,7 +44,13 @@ class LayoutEditorWizard extends React.Component {
|
|
|
44
44
|
this.onLayoutChange = (layout) => {
|
|
45
45
|
layout = Object.assign(Object.assign({}, layout), { Name: this.state.layoutName });
|
|
46
46
|
this.updateLayout(layout);
|
|
47
|
-
this.setState({
|
|
47
|
+
this.setState({
|
|
48
|
+
layout,
|
|
49
|
+
errorMessage: this.getErrorMessage({
|
|
50
|
+
layout,
|
|
51
|
+
layoutName: this.state.layoutName,
|
|
52
|
+
}),
|
|
53
|
+
}, () => {
|
|
48
54
|
this.props.updateGoBackState();
|
|
49
55
|
});
|
|
50
56
|
};
|