@adaptabletools/adaptable 11.3.0 → 12.0.0-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +568 -273
- package/bundle.cjs.js +114 -114
- package/index.css +642 -270
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -0
- package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +1 -0
- package/src/AdaptableOptions/{FormatColumnOptions.js → ActionOptions.js} +0 -0
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +5 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -10
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +5 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +14 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +49 -0
- package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.js → ColumnOptions.js} +0 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +2 -7
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +19 -0
- package/src/AdaptableOptions/EditOptions.d.ts +6 -7
- package/src/AdaptableOptions/EntitlementOptions.d.ts +7 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +9 -8
- package/src/AdaptableOptions/FilterOptions.d.ts +6 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +25 -23
- package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.d.ts → MasterDetailPluginOptions.d.ts} +2 -4
- package/src/{Api/DataSourceApi.js → AdaptableOptions/MasterDetailPluginOptions.js} +0 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -6
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -49
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +88 -57
- package/src/Api/AdaptableApi.d.ts +6 -3
- package/src/Api/ColumnApi.d.ts +9 -4
- package/src/Api/ConditionalStyleApi.d.ts +10 -0
- package/src/Api/ConfigApi.d.ts +0 -12
- package/src/Api/DashboardApi.d.ts +6 -19
- package/src/Api/DataSetApi.d.ts +40 -0
- package/src/{PredefinedConfig/DataSourceState.js → Api/DataSetApi.js} +0 -0
- package/src/Api/EventApi.d.ts +26 -1
- package/src/Api/Events/DataSetChanged.d.ts +5 -0
- package/src/{PredefinedConfig/FilterState.js → Api/Events/DataSetChanged.js} +0 -0
- package/src/Api/Events/SearchChanged.d.ts +4 -5
- package/src/Api/ExportApi.d.ts +2 -2
- package/src/Api/FilterApi.d.ts +28 -36
- package/src/Api/GridApi.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
- package/src/Api/Implementation/AlertApiImpl.js +5 -1
- package/src/Api/Implementation/ApiBase.d.ts +3 -0
- package/src/Api/Implementation/ApiBase.js +6 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ColumnApiImpl.js +17 -16
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +8 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ConfigApiImpl.js +2 -24
- package/src/Api/Implementation/DashboardApiImpl.d.ts +3 -6
- package/src/Api/Implementation/DashboardApiImpl.js +5 -29
- package/src/Api/Implementation/DataSetApiImpl.d.ts +12 -0
- package/src/Api/Implementation/DataSetApiImpl.js +42 -0
- package/src/Api/Implementation/EventApiImpl.js +1 -0
- package/src/Api/Implementation/ExportApiImpl.d.ts +2 -2
- package/src/Api/Implementation/FilterApiImpl.d.ts +11 -11
- package/src/Api/Implementation/FilterApiImpl.js +59 -72
- package/src/Api/Implementation/FormatColumnApiImpl.js +2 -2
- package/src/Api/Implementation/GridApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridApiImpl.js +7 -3
- package/src/Api/Implementation/InternalApiImpl.d.ts +3 -2
- package/src/Api/Implementation/InternalApiImpl.js +14 -3
- package/src/Api/Implementation/LayoutApiImpl.d.ts +3 -0
- package/src/Api/Implementation/LayoutApiImpl.js +20 -0
- package/src/Api/Implementation/PredicateApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PredicateApiImpl.js +19 -1
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +3 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +6 -0
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +5 -3
- package/src/Api/Implementation/TeamSharingApiImpl.js +28 -10
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +4 -4
- package/src/Api/InternalApi.d.ts +3 -2
- package/src/Api/LayoutApi.d.ts +16 -0
- package/src/Api/PredicateApi.d.ts +7 -0
- package/src/Api/SmartEditApi.d.ts +8 -2
- package/src/Api/TeamSharingApi.d.ts +18 -5
- package/src/Api/UserInterfaceApi.d.ts +4 -4
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
- package/src/PredefinedConfig/Common/AdaptableButton.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +5 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +18 -1
- package/src/PredefinedConfig/{FilterState.d.ts → Common/ColumnFilter.d.ts} +2 -33
- package/src/PredefinedConfig/Common/ColumnFilter.js +2 -0
- package/src/PredefinedConfig/Common/Enums.d.ts +2 -2
- package/src/PredefinedConfig/Common/Enums.js +1 -1
- package/src/PredefinedConfig/Common/FormContext.d.ts +8 -0
- package/src/PredefinedConfig/Common/FormContext.js +2 -0
- package/src/PredefinedConfig/Common/Types.d.ts +6 -5
- package/src/PredefinedConfig/Common/Types.js +2 -3
- package/src/PredefinedConfig/LayoutState.d.ts +5 -0
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
- package/src/PredefinedConfig/StatusBarState.d.ts +1 -2
- package/src/PredefinedConfig/SystemState.d.ts +3 -0
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +47 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +134 -1
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +3 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +22 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +39 -1
- package/src/Redux/Store/AdaptableStore.js +37 -39
- package/src/Strategy/AdaptableModuleBase.js +1 -2
- package/src/Strategy/AlertModule.d.ts +11 -0
- package/src/Strategy/AlertModule.js +14 -0
- package/src/Strategy/BulkUpdateModule.js +3 -4
- package/src/Strategy/CellSummaryModule.d.ts +3 -0
- package/src/Strategy/CellSummaryModule.js +29 -16
- package/src/Strategy/DataSetModule.d.ts +25 -0
- package/src/Strategy/DataSetModule.js +65 -0
- package/src/Strategy/ExportModule.js +6 -1
- package/src/Strategy/FilterModule.d.ts +7 -11
- package/src/Strategy/FilterModule.js +26 -20
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Strategy/Interface/IModule.d.ts +3 -1
- package/src/Strategy/LayoutModule.js +25 -2
- package/src/Strategy/PlusMinusModule.js +1 -4
- package/src/Strategy/SmartEditModule.js +3 -3
- package/src/Strategy/StatusBarModule.js +1 -3
- package/src/Strategy/TeamSharingModule.js +1 -1
- package/src/Strategy/ToolPanelModule.js +1 -4
- package/src/Utilities/Constants/GeneralConstants.d.ts +8 -2
- package/src/Utilities/Constants/GeneralConstants.js +8 -2
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -1
- package/src/Utilities/Constants/ModuleConstants.js +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +17 -15
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -1
- package/src/Utilities/ObjectFactory.d.ts +3 -6
- package/src/Utilities/ObjectFactory.js +3 -7
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +6 -7
- package/src/Utilities/Services/EntitlementService.js +7 -1
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/ReportService.js +2 -3
- package/src/Utilities/Services/RowEditService.d.ts +1 -0
- package/src/Utilities/Services/RowEditService.js +34 -2
- package/src/Utilities/Services/TeamSharingService.js +4 -4
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +5 -6
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +8 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +3 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +18 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +87 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +18 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +16 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +2 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +2 -75
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +3 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +9 -4
- package/src/View/AdaptableWizardView/Utils.d.ts +1 -0
- package/src/View/AdaptableWizardView/Utils.js +24 -0
- package/src/View/AdaptableWizardView/Wizard.d.ts +54 -0
- package/src/View/AdaptableWizardView/Wizard.js +98 -0
- package/src/View/AdaptableWizardView/index.d.ts +1 -22
- package/src/View/AdaptableWizardView/index.js +2 -103
- package/src/View/Alert/ActiveAlertsPanel.d.ts +2 -0
- package/src/View/Alert/ActiveAlertsPanel.js +15 -0
- package/src/View/Alert/AlertStatusSubPanel.js +3 -8
- package/src/View/Alert/AlertViewPanel.js +2 -2
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -3
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +5 -6
- package/src/View/CellSummary/CellSummaryDetails.js +4 -4
- package/src/View/CellSummary/CellSummaryPopover.d.ts +2 -4
- package/src/View/CellSummary/CellSummaryPopover.js +3 -6
- package/src/View/CellSummary/CellSummaryPopup.js +8 -0
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +18 -8
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -2
- package/src/View/Components/ExternalRenderer.d.ts +3 -6
- package/src/View/Components/ExternalRenderer.js +5 -5
- package/src/View/Components/FilterForm/FilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +10 -8
- package/src/View/Components/FilterForm/QuickFilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +0 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +13 -11
- package/src/View/Components/Popups/AdaptableToaster.js +29 -9
- package/src/View/Components/PreviewResultsPanel.js +3 -3
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -2
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -9
- package/src/View/Components/WizardSummaryPage.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/Dashboard/CustomDashboardButton.d.ts +11 -0
- package/src/View/Dashboard/CustomDashboardButton.js +47 -0
- package/src/View/Dashboard/CustomToolbarWrapper.d.ts +1 -0
- package/src/View/Dashboard/CustomToolbarWrapper.js +30 -11
- package/src/View/Dashboard/Dashboard.d.ts +1 -0
- package/src/View/Dashboard/Dashboard.js +8 -34
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +19 -36
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +3 -0
- package/src/View/DataChangeHistory/buildActionColumnButton.js +70 -0
- package/src/View/DataSet/DataSetSelector.d.ts +7 -0
- package/src/View/DataSet/DataSetSelector.js +18 -0
- package/src/View/DataSet/DataSetStatusPanelPopover.d.ts +2 -0
- package/src/View/DataSet/DataSetStatusPanelPopover.js +19 -0
- package/src/View/DataSet/DataSetViewPanel.d.ts +19 -0
- package/src/View/DataSet/DataSetViewPanel.js +58 -0
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +1 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
- package/src/View/Filter/ActiveFiltersPanel.js +1 -1
- package/src/View/Filter/FilterSummary.d.ts +5 -5
- package/src/View/Filter/FilterSummary.js +5 -4
- package/src/View/Filter/FilterViewPanel.d.ts +4 -4
- package/src/View/Filter/FilterViewPanel.js +10 -13
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +5 -6
- package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -24
- package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -0
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +2 -2
- package/src/View/SmartEdit/SmartEditPopup.js +2 -2
- package/src/View/SmartEdit/SmartEditViewPanel.js +2 -2
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +1 -1
- package/src/View/StatusBar/StatusBarPanel.d.ts +1 -0
- package/src/View/StatusBar/StatusBarPanel.js +5 -4
- package/src/View/Theme/ThemeStatusPanelPopover.js +5 -25
- package/src/View/UIHelper.d.ts +4 -4
- package/src/View/UIHelper.js +10 -10
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -2
- package/src/View/Wizard/ObjectTagsWizardSection.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +5 -6
- package/src/View/Wizard/OnePageAdaptableWizard.js +35 -169
- package/src/View/Wizard/OnePageWizards.d.ts +37 -0
- package/src/View/Wizard/OnePageWizards.js +187 -0
- package/src/View/Wizard/useKeyboardNavigation.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +3 -2
- package/src/agGrid/Adaptable.d.ts +4 -2
- package/src/agGrid/Adaptable.js +99 -58
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/agGridHelper.d.ts +7 -8
- package/src/agGrid/agGridHelper.js +68 -86
- package/src/agGrid/agGridMenuHelper.js +4 -1
- package/src/agGrid/rowEditIcons.d.ts +1 -0
- package/src/agGrid/rowEditIcons.js +2 -1
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -2
- package/src/components/Dashboard/DashboardToolbar.js +2 -2
- package/src/components/InfiniteTable/index.js +1 -0
- package/src/components/List/GridList/index.js +1 -1
- package/src/components/SelectList.d.ts +10 -0
- package/src/components/SelectList.js +9 -0
- package/src/components/WindowModal/WindowModal.js +13 -7
- package/src/components/icons/{data-source.d.ts → add-row.d.ts} +0 -0
- package/src/components/icons/add-row.js +7 -0
- package/src/components/icons/data-set.d.ts +3 -0
- package/src/components/icons/{data-source.js → data-set.js} +0 -0
- package/src/components/icons/index.js +4 -2
- package/src/metamodel/adaptable.metamodel.d.ts +163 -78
- package/src/metamodel/adaptable.metamodel.js +402 -322
- package/src/types.d.ts +16 -12
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +0 -10
- package/src/Api/DataSourceApi.d.ts +0 -58
- package/src/Api/Implementation/DataSourceApiImpl.d.ts +0 -15
- package/src/Api/Implementation/DataSourceApiImpl.js +0 -51
- package/src/PredefinedConfig/DataSourceState.d.ts +0 -34
- package/src/Redux/ActionsReducers/DataSourceRedux.d.ts +0 -42
- package/src/Redux/ActionsReducers/DataSourceRedux.js +0 -76
- package/src/Redux/ActionsReducers/FilterRedux.d.ts +0 -70
- package/src/Redux/ActionsReducers/FilterRedux.js +0 -126
- package/src/Strategy/DataSourceModule.d.ts +0 -20
- package/src/Strategy/DataSourceModule.js +0 -56
- package/src/View/DataSource/DataSourceViewPanel.d.ts +0 -19
- package/src/View/DataSource/DataSourceViewPanel.js +0 -69
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.d.ts +0 -2
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +0 -17
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.d.ts +0 -8
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +0 -42
- package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +0 -8
- package/src/View/DataSource/Wizard/DataSourceWizard.js +0 -53
|
@@ -2,35 +2,32 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FilterViewPanelControl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
7
7
|
const ActiveFiltersPanel_1 = require("./ActiveFiltersPanel");
|
|
8
8
|
const rebass_1 = require("rebass");
|
|
9
9
|
const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
|
|
10
10
|
const AdaptablePopover_1 = require("../AdaptablePopover");
|
|
11
|
-
const ButtonClear_1 = require("../Components/Buttons/ButtonClear");
|
|
12
11
|
const CheckBox_1 = require("../../components/CheckBox");
|
|
13
12
|
const react_redux_1 = require("react-redux");
|
|
13
|
+
const LayoutRedux_1 = require("../../Redux/ActionsReducers/LayoutRedux");
|
|
14
14
|
class FilterViewPanelComponent extends React.Component {
|
|
15
15
|
constructor(props) {
|
|
16
16
|
super(props);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
const activeFiltersPanel = React.createElement(ActiveFiltersPanel_1.ActiveFiltersPanel, null);
|
|
20
19
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
21
20
|
return (React.createElement(rebass_1.Flex, { flexDirection: "row", className: `ab-${elementType}__Filter__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
22
|
-
React.createElement(rebass_1.Flex, null, ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.props.ColumnFilters) && (React.createElement(React.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
useButton: true, showEvent: 'focus', hideEvent: "blur", popoverMinWidth: 400 }),
|
|
26
|
-
React.createElement(ButtonClear_1.ButtonClear, { marginLeft: 1, marginBottom: 0, marginRight: 1, className: `ab-${elementType}__Filter__clear`, onClick: () => this.onClearFilters(), tooltip: "Clear Filters", disabled: this.props.ColumnFilters.length == 0, showText: this.props.viewType === 'ToolPanel' }, this.props.viewType === 'ToolPanel' && 'Clear')))),
|
|
21
|
+
React.createElement(rebass_1.Flex, null, ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.props.ColumnFilters) && (React.createElement(AdaptablePopover_1.AdaptablePopover, { popupPadding: 0, className: `ab-${elementType}__Filter__info`, headerText: "", bodyText: [React.createElement(ActiveFiltersPanel_1.ActiveFiltersPanel, null)],
|
|
22
|
+
// tooltipText={'Show Filter Details'}
|
|
23
|
+
useButton: true, showEvent: 'focus', hideEvent: "blur", popoverMinWidth: 400 }))),
|
|
27
24
|
React.createElement(rebass_1.Flex, { alignItems: "center" }, this.props.api.filterApi.isQuickFilterAvailable() && (React.createElement(CheckBox_1.CheckBox, { className: `ab-${elementType}__Filter__active-check`, disabled: this.props.accessLevel === 'ReadOnly' ||
|
|
28
25
|
this.props.api.internalApi.isGridInPivotMode(), marginTop: 0, marginBottom: 0, fontSize: 2, padding: 1, checked: this.props.IsQuickFilterVisible, onChange: (checked) => {
|
|
29
26
|
checked ? this.props.onShowQuickFilterBar() : this.props.onHideQuickFilterBar();
|
|
30
27
|
} }, "Show Quick Filter")))));
|
|
31
28
|
}
|
|
32
29
|
onClearFilters() {
|
|
33
|
-
this.props.api.filterApi.
|
|
30
|
+
this.props.api.filterApi.clearColumnFilters();
|
|
34
31
|
}
|
|
35
32
|
onClearColumnFilter(columnFilter) {
|
|
36
33
|
this.props.api.filterApi.clearColumnFilterByColumn(columnFilter.ColumnId);
|
|
@@ -38,14 +35,14 @@ class FilterViewPanelComponent extends React.Component {
|
|
|
38
35
|
}
|
|
39
36
|
function mapStateToProps(state) {
|
|
40
37
|
return {
|
|
41
|
-
ColumnFilters: state
|
|
42
|
-
IsQuickFilterVisible: state.
|
|
38
|
+
ColumnFilters: LayoutRedux_1.getColumnFilterSelector(state),
|
|
39
|
+
IsQuickFilterVisible: state.System.IsQuickFilterVisible,
|
|
43
40
|
};
|
|
44
41
|
}
|
|
45
42
|
function mapDispatchToProps(dispatch) {
|
|
46
43
|
return {
|
|
47
|
-
onHideQuickFilterBar: () => dispatch(
|
|
48
|
-
onShowQuickFilterBar: () => dispatch(
|
|
44
|
+
onHideQuickFilterBar: () => dispatch(SystemRedux.SystemQuickFilterBarHide()),
|
|
45
|
+
onShowQuickFilterBar: () => dispatch(SystemRedux.SystemQuickFilterBarShow()),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.FilterViewPanelControl = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(FilterViewPanelComponent);
|
|
@@ -8,7 +8,7 @@ const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
|
8
8
|
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
9
9
|
exports.renderFlashingAlertRulesSummary = (flashingAlert) => {
|
|
10
10
|
var _a;
|
|
11
|
-
const { api: { flashingCellApi }, } = OnePageAdaptableWizard_1.
|
|
11
|
+
const { api: { flashingCellApi }, } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
12
12
|
const FlashTarget = (_a = flashingAlert.FlashTarget) !== null && _a !== void 0 ? _a : flashingCellApi.getFlashingCellFlashTarget(flashingAlert);
|
|
13
13
|
return (React.createElement(EntityRulesEditor_1.EntityRulesSummary, { data: flashingAlert, renderPredicate: (content) => {
|
|
14
14
|
return (React.createElement(React.Fragment, null,
|
|
@@ -28,7 +28,7 @@ exports.renderFlashingAlertRulesSummary = (flashingAlert) => {
|
|
|
28
28
|
} }));
|
|
29
29
|
};
|
|
30
30
|
exports.FlashingAlertRulesWizardSection = (props) => {
|
|
31
|
-
const { data, api, moduleInfo } = OnePageAdaptableWizard_1.
|
|
31
|
+
const { data, api, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
32
32
|
const predicateDefs = api.flashingCellApi.getFlashingCellPredicateDefsForScope(data.Scope);
|
|
33
33
|
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "Any", data: data, predicateDefs: predicateDefs, onChange: props.onChange, showAggregation: false, showObservable: false, showBoolean: true, showPredicate: true, descriptions: {
|
|
34
34
|
selectPredicate: 'Select an Flashing Cell Rule - to be applied when data changes',
|
|
@@ -7,7 +7,7 @@ const rebass_1 = require("rebass");
|
|
|
7
7
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
8
8
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
9
9
|
exports.FlashingAlertScopeWizardSection = (props) => {
|
|
10
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
10
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
11
11
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column", style: { height: '100%' }, padding: 2 },
|
|
12
12
|
React.createElement(NewScopeComponent_1.NewScopeComponent, { descriptions: {
|
|
13
13
|
rowScope: 'Changes anywhere in the row will trigger an Flashing Cell',
|
|
@@ -23,7 +23,7 @@ exports.renderFlashingAlertSettingsSummary = (flashingAlert) => {
|
|
|
23
23
|
};
|
|
24
24
|
exports.FlashingAlertSettingsWizardSection = (props) => {
|
|
25
25
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
26
|
-
let { data: flashingCell } = OnePageAdaptableWizard_1.
|
|
26
|
+
let { data: flashingCell } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
27
27
|
flashingCell = flashingCell !== null && flashingCell !== void 0 ? flashingCell : props.flashingCell;
|
|
28
28
|
const setDuration = (FlashDuration) => {
|
|
29
29
|
props.onChange(Object.assign(Object.assign({}, flashingCell), { FlashDuration: FlashDuration }));
|
|
@@ -11,7 +11,7 @@ const StylePreview_1 = require("../../../components/StylePreview");
|
|
|
11
11
|
const changeStyle = (React.createElement(rebass_1.Text, { fontSize: 2, style: { display: 'inline-block' } }, "Change style"));
|
|
12
12
|
exports.FlashingAlertStyleWizardSection = (props) => {
|
|
13
13
|
var _a, _b, _c;
|
|
14
|
-
let { data: flashingAlert, api } = OnePageAdaptableWizard_1.
|
|
14
|
+
let { data: flashingAlert, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
15
15
|
flashingAlert = flashingAlert !== null && flashingAlert !== void 0 ? flashingAlert : props.flashingAlert;
|
|
16
16
|
return (React.createElement(React.Fragment, null,
|
|
17
17
|
React.createElement(Tabs_1.Tabs, { defaultValue: "up" },
|
|
@@ -355,10 +355,10 @@ const renderStringFormat = (data, _onChange, setFormatOption, customFormatters,
|
|
|
355
355
|
};
|
|
356
356
|
exports.FormatColumnFormatWizardSection = (props) => {
|
|
357
357
|
var _a, _b, _c;
|
|
358
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
358
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
359
359
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
360
360
|
const formatColumnApi = adaptable.api.formatColumnApi;
|
|
361
|
-
const customDisplayFormatters = (_c = (_b = (_a = adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.
|
|
361
|
+
const customDisplayFormatters = (_c = (_b = (_a = adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.userInterfaceOptions) === null || _b === void 0 ? void 0 : _b.customDisplayFormatters) !== null && _c !== void 0 ? _c : [];
|
|
362
362
|
const update = (updated) => {
|
|
363
363
|
props.onChange(Object.assign(Object.assign({}, data), updated));
|
|
364
364
|
};
|
|
@@ -13,7 +13,7 @@ exports.renderFormatColumnScopeSummary = (data) => {
|
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
exports.FormatColumnScopeWizardSection = (props) => {
|
|
16
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
16
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
17
17
|
return (React.createElement(NewScopeComponent_1.NewScopeComponent, { descriptions: {
|
|
18
18
|
rowScope: 'Apply a style to an entire row',
|
|
19
19
|
columnScope: 'Select columns to format',
|
|
@@ -33,7 +33,7 @@ exports.renderFormatColumnSettingsSummary = (data) => {
|
|
|
33
33
|
React.createElement(Tag_1.Tag, null, data.IncludeGroupedRows ? 'yes' : 'no'))));
|
|
34
34
|
};
|
|
35
35
|
exports.FormatColumnSettingsWizardSection = (props) => {
|
|
36
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
36
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
37
37
|
const onCellAlignmentSelectChanged = (CellAlignment) => {
|
|
38
38
|
props.onChange(Object.assign(Object.assign({}, data), { CellAlignment }));
|
|
39
39
|
};
|
|
@@ -105,7 +105,7 @@ exports.renderFormatColumnStyleSummary = (data, api) => {
|
|
|
105
105
|
};
|
|
106
106
|
function FormatColumnStyleWizardSection(props) {
|
|
107
107
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
|
|
108
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
108
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
109
109
|
const singleNumericColumn = api.scopeApi.isSingleNumericColumnScope(data.Scope);
|
|
110
110
|
const onlyBooleanColumnsInScope = api.scopeApi.areAllBooleanColumnsInScope(data.Scope) ||
|
|
111
111
|
api.scopeApi.scopeHasOnlyBooleanDataType(data.Scope);
|
|
@@ -8,7 +8,6 @@ const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
|
8
8
|
const ErrorBox_1 = tslib_1.__importDefault(require("../../../components/ErrorBox"));
|
|
9
9
|
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
10
10
|
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
11
|
-
const Enums_1 = require("../../../PredefinedConfig/Common/Enums");
|
|
12
11
|
const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
|
|
13
12
|
const react_1 = require("react");
|
|
14
13
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
@@ -19,10 +18,10 @@ const DateHelper_1 = require("../../../Utilities/Helpers/DateHelper");
|
|
|
19
18
|
const Tag_1 = require("../../../components/Tag");
|
|
20
19
|
const SpecialColumnSettingsWizardStep_1 = require("../../SpecialColumnSettingsWizardStep");
|
|
21
20
|
const options = [
|
|
22
|
-
{ value:
|
|
23
|
-
{ value:
|
|
24
|
-
{ value:
|
|
25
|
-
{ value:
|
|
21
|
+
{ value: 'Number', label: 'Number' },
|
|
22
|
+
{ value: 'String', label: 'String' },
|
|
23
|
+
{ value: 'Date', label: 'Date' },
|
|
24
|
+
{ value: 'Boolean', label: 'Boolean' },
|
|
26
25
|
];
|
|
27
26
|
exports.renderFreeTextColumnSummary = (data) => {
|
|
28
27
|
var _a;
|
|
@@ -59,7 +58,7 @@ exports.isValidFreeTextColumn = (data, api) => {
|
|
|
59
58
|
return true;
|
|
60
59
|
};
|
|
61
60
|
exports.FreeTextColumnSettingsWizardSection = (props) => {
|
|
62
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
61
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
63
62
|
const Pattern = api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat;
|
|
64
63
|
const [ColumnNameFocused, setColumnNameFocused] = react_1.useState(false);
|
|
65
64
|
const inEdit = props.isEdit;
|
|
@@ -125,7 +125,7 @@ class ColumnInfoComponent extends React.Component {
|
|
|
125
125
|
React.createElement(FreeTextColumnSummary_1.FreeTextColumnSummary, { key: ModuleConstants.FreeTextColumnModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.FreeTextColumnModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.FreeTextColumnModuleId) })));
|
|
126
126
|
}
|
|
127
127
|
if (this.isModuleAvailable(ModuleConstants.PlusMinusModuleId) &&
|
|
128
|
-
this.state.SelectedColumn.dataType ==
|
|
128
|
+
this.state.SelectedColumn.dataType == 'Number') {
|
|
129
129
|
summaries.push(React.createElement("div", { key: ModuleConstants.PlusMinusModuleId, className: this.isModuleReadOnly(ModuleConstants.PlusMinusModuleId)
|
|
130
130
|
? GeneralConstants.READ_ONLY_STYLE
|
|
131
131
|
: '' },
|
|
@@ -57,7 +57,7 @@ exports.GridInfoPopup = (props) => {
|
|
|
57
57
|
const freeTextColumns = props.api.freeTextColumnApi
|
|
58
58
|
.getAllFreeTextColumn()
|
|
59
59
|
.map((c) => c.ColumnId);
|
|
60
|
-
const columnFilterDescription = props.api.filterApi.columnFiltersToString(props.api.filterApi.
|
|
60
|
+
const columnFilterDescription = props.api.filterApi.columnFiltersToString(props.api.filterApi.getColumnFilters());
|
|
61
61
|
const sorts = ArrayExtensions_1.default.IsNotNullOrEmpty(props.api.gridApi.getColumnSorts())
|
|
62
62
|
? props.api.gridApi.getColumnSorts().map((gs) => {
|
|
63
63
|
return props.api.columnApi.getFriendlyNameFromColumnId(gs.ColumnId) + ': ' + gs.SortOrder;
|
|
@@ -3,32 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LayoutStatusBarSubPanelPopover = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const
|
|
7
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
6
|
+
const SelectList_1 = require("../../components/SelectList");
|
|
8
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
9
|
-
const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
10
|
-
const PanelWithRow_1 = require("../Components/Panels/PanelWithRow");
|
|
11
|
-
const LayoutRadioSelector_1 = require("./LayoutRadioSelector");
|
|
12
|
-
const colItems = [
|
|
13
|
-
{ Content: 'Current', Size: 2 },
|
|
14
|
-
{ Content: 'Layout Name', Size: 4 },
|
|
15
|
-
];
|
|
16
8
|
exports.LayoutStatusBarSubPanelPopover = () => {
|
|
17
9
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
18
|
-
const accessLevel = adaptable.EntitlementService.getEntitlementAccessLevelForModule(ModuleConstants.LayoutModuleId);
|
|
19
10
|
const layouts = adaptable.api.layoutApi.getAllLayout();
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Content: (React.createElement(LayoutRadioSelector_1.LayoutRadioSelector, { accessLevel: accessLevel, id: layout.Name, data: layout })),
|
|
26
|
-
Size: 1,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
Content: (React.createElement("label", { style: { cursor: 'pointer' }, htmlFor: layout.Name }, layout.Name)),
|
|
30
|
-
Size: 4,
|
|
31
|
-
},
|
|
32
|
-
] }));
|
|
33
|
-
})));
|
|
11
|
+
const options = layouts.map((layout) => ({ label: layout.Name, value: layout.Uuid }));
|
|
12
|
+
const handleChange = (option) => {
|
|
13
|
+
adaptable.api.layoutApi.setLayout(option.label);
|
|
14
|
+
};
|
|
15
|
+
return React.createElement(SelectList_1.SelectList, { options: options, onChange: handleChange });
|
|
34
16
|
};
|
|
@@ -223,7 +223,7 @@ exports.LayoutEditor = React.memo((props) => {
|
|
|
223
223
|
// JW: Not sure we do - why not just make it always visible as we ignore if if not required.
|
|
224
224
|
const aggregateEnabled = true;
|
|
225
225
|
const customHeader = headerColumnsMap[c.columnId];
|
|
226
|
-
const initialHeader = api.
|
|
226
|
+
const initialHeader = api.columnApi.getFriendlyNameFromColumnId(c.columnId);
|
|
227
227
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "stretch", "data-name": "drag-item", "data-col-id": c.columnId },
|
|
228
228
|
React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", backgroundColor: "secondary", color: "text-on-secondary" },
|
|
229
229
|
React.createElement(rebass_1.Flex, { flex: 1, alignItems: "center" },
|
|
@@ -27,6 +27,7 @@ export declare class LayoutEditorWizard extends React.Component<LayoutEditorWiza
|
|
|
27
27
|
[columnId: string]: number;
|
|
28
28
|
};
|
|
29
29
|
ColumnSorts?: import("../../../types").ColumnSort[];
|
|
30
|
+
ColumnFilters?: import("../../../types").ColumnFilter[];
|
|
30
31
|
RowGroupedColumns?: string[];
|
|
31
32
|
ExpandedRowGroupValues?: any[];
|
|
32
33
|
AggregationColumns?: Record<string, string | true>;
|
|
@@ -7,7 +7,7 @@ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
|
7
7
|
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
8
8
|
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
9
9
|
function PlusMinusRuleSummary() {
|
|
10
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
10
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
11
11
|
return (React.createElement(EntityRulesEditor_1.EntityRulesSummary, { data: data, renderPredicate: (contents) => {
|
|
12
12
|
return (React.createElement(React.Fragment, null,
|
|
13
13
|
"Apply Plus Minus on ",
|
|
@@ -23,7 +23,7 @@ function PlusMinusRuleSummary() {
|
|
|
23
23
|
exports.PlusMinusRuleSummary = PlusMinusRuleSummary;
|
|
24
24
|
function PlusMinusRuleWizardSection(props) {
|
|
25
25
|
var _a;
|
|
26
|
-
const { data, moduleInfo } = OnePageAdaptableWizard_1.
|
|
26
|
+
const { data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
27
27
|
const plusMinusNudge = Object.assign(Object.assign({}, data), { Rule: (_a = data === null || data === void 0 ? void 0 : data.Rule) !== null && _a !== void 0 ? _a : { BooleanExpression: '' } });
|
|
28
28
|
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName,
|
|
29
29
|
// min-height 0 so the container does not min-size from it's children
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
7
7
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
8
8
|
exports.PlusMinusScopeWizardSection = (props) => {
|
|
9
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
9
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
10
10
|
const availableColumns = React.useMemo(() => api.columnApi.getNumericColumns(), []);
|
|
11
11
|
return (React.createElement(NewScopeComponent_1.NewScopeComponent, { availableDataTypes: ['Number'], scopeColumns: availableColumns, scope: data.Scope, descriptions: {
|
|
12
12
|
rowScope: 'Matching rows will have the plus/minus applied',
|
|
@@ -15,7 +15,7 @@ const OnePageAdaptableWizard_2 = require("../../../View/Wizard/OnePageAdaptableW
|
|
|
15
15
|
const Tag_1 = require("../../../components/Tag");
|
|
16
16
|
exports.PlusMinusSettingsSummary = (props) => {
|
|
17
17
|
var _a;
|
|
18
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
18
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
19
19
|
return (React.createElement(React.Fragment, null,
|
|
20
20
|
React.createElement(OnePageAdaptableWizard_2.SummaryText, null,
|
|
21
21
|
"Nudge Value ",
|
|
@@ -37,7 +37,7 @@ exports.isSettingsValid = (hasCondition) => (data, api, context) => {
|
|
|
37
37
|
};
|
|
38
38
|
exports.PlusMinusSettingsWizardSection = (props) => {
|
|
39
39
|
var _a;
|
|
40
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
40
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
41
41
|
const handleNudgeValueChange = (event) => {
|
|
42
42
|
const newValue = parseFloat(event.target.value);
|
|
43
43
|
props.onChange(Object.assign(Object.assign({}, data), { NudgeValue: isNaN(newValue) ? '' : newValue }));
|
|
@@ -27,7 +27,7 @@ exports.renderNamedQueryExpressionSummary = (data) => {
|
|
|
27
27
|
};
|
|
28
28
|
exports.NamedQueryExpressionWizardSection = (props) => {
|
|
29
29
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
30
|
-
const { data, moduleInfo } = OnePageAdaptableWizard_1.
|
|
30
|
+
const { data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
31
31
|
const initialData = react_1.useMemo(() => api.internalApi.getQueryPreviewData(), []);
|
|
32
32
|
return (React.createElement(ExpressionEditor_1.ExpressionEditor, { allowSaveNamedQuery: false, type: 'boolean', module: moduleInfo.ModuleName, value: data.BooleanExpression, onChange: (BooleanExpression) => {
|
|
33
33
|
props.onChange(Object.assign(Object.assign({}, data), { BooleanExpression }));
|
|
@@ -24,7 +24,7 @@ exports.renderNamedQuerySettingsSummary = (data) => {
|
|
|
24
24
|
React.createElement(Tag_1.Tag, null, data.Name)));
|
|
25
25
|
};
|
|
26
26
|
exports.NamedQuerySettingsWizardSection = (props) => {
|
|
27
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
27
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
28
28
|
const valid = exports.isValidNamedQuerySettings(data, api);
|
|
29
29
|
const errorMessage = valid === true ? null : valid;
|
|
30
30
|
const handleColumnNameChange = (event) => {
|
|
@@ -7,7 +7,7 @@ const Tag_1 = require("../../../components/Tag");
|
|
|
7
7
|
const UIHelper_1 = require("../../UIHelper");
|
|
8
8
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
9
9
|
exports.ScheduleScheduleSummary = () => {
|
|
10
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
10
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
11
11
|
return (React.createElement(OnePageAdaptableWizard_1.SummaryText, null,
|
|
12
12
|
"Schedule: ",
|
|
13
13
|
React.createElement(Tag_1.Tag, null, UIHelper_1.UIHelper.getScheduleDescription(data.Schedule))));
|
|
@@ -59,7 +59,7 @@ const daysMap = [
|
|
|
59
59
|
];
|
|
60
60
|
exports.ScheduleScheduleWizard = (props) => {
|
|
61
61
|
var _a, _b, _c, _d, _e;
|
|
62
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
62
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
63
63
|
const handleIsOneOfChange = (isOneOffNew) => {
|
|
64
64
|
var _a, _b;
|
|
65
65
|
props.onSetIsOneOff(isOneOffNew);
|
|
@@ -83,7 +83,7 @@ exports.getScheduleSettingsValues = (data) => {
|
|
|
83
83
|
return [];
|
|
84
84
|
};
|
|
85
85
|
exports.ScheduleSettingsSummary = () => {
|
|
86
|
-
const { data } = OnePageAdaptableWizard_1.
|
|
86
|
+
const { data } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
87
87
|
return (React.createElement(React.Fragment, null, exports.getScheduleSettingsValues(data).map((description, index) => (React.createElement(OnePageAdaptableWizard_1.SummaryText, { key: index },
|
|
88
88
|
description.label,
|
|
89
89
|
": ",
|
|
@@ -11,7 +11,7 @@ const ScheduleSettingsIPushPull_1 = require("./ScheduleSettingsIPushPull");
|
|
|
11
11
|
const ScheduleSettingsOpenFin_1 = require("./ScheduleSettingsOpenFin");
|
|
12
12
|
const ScheduleSettingsGlue42_1 = require("./ScheduleSettingsGlue42");
|
|
13
13
|
exports.ScheduleSettingsWizard = (props) => {
|
|
14
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
14
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
15
15
|
const allReports = api.exportApi.getAllReports();
|
|
16
16
|
if ((data === null || data === void 0 ? void 0 : data.ScheduleType) === Enums_1.ScheduleType.Reminder) {
|
|
17
17
|
return (React.createElement(ScheduleSettingsReminder_1.ScheduleSettingsReminder, { reminderSchedule: data, onChange: props.onChange }));
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
7
7
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
8
8
|
exports.ShortcutScopeWizardSection = (props) => {
|
|
9
|
-
const { data, api } = OnePageAdaptableWizard_1.
|
|
9
|
+
const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
10
10
|
const availableColumns = React.useMemo(() => api.columnApi.getNumericColumns(), []);
|
|
11
11
|
return (React.createElement(NewScopeComponent_1.NewScopeComponent, { availableDataTypes: ['Number'], scopeColumns: availableColumns, scope: data.Scope, descriptions: {
|
|
12
12
|
rowScope: 'Matching rows will have the shortcut applied',
|
|
@@ -24,7 +24,7 @@ exports.isSettingsValid = (data) => {
|
|
|
24
24
|
};
|
|
25
25
|
exports.ShortcutSettingsSummary = () => {
|
|
26
26
|
var _a, _b;
|
|
27
|
-
const { data: shortcut } = OnePageAdaptableWizard_1.
|
|
27
|
+
const { data: shortcut } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
28
28
|
return (React.createElement(React.Fragment, null,
|
|
29
29
|
React.createElement(OnePageAdaptableWizard_2.SummaryText, null,
|
|
30
30
|
"Shortcut Key ",
|
|
@@ -38,7 +38,7 @@ exports.ShortcutSettingsSummary = () => {
|
|
|
38
38
|
};
|
|
39
39
|
exports.ShortcutSettingsWizard = (props) => {
|
|
40
40
|
var _a;
|
|
41
|
-
const { data: shortcut } = OnePageAdaptableWizard_1.
|
|
41
|
+
const { data: shortcut } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
|
|
42
42
|
const handleKeyChange = React.useCallback((ShortcutKey) => {
|
|
43
43
|
props.onChange(Object.assign(Object.assign({}, shortcut), { ShortcutKey }));
|
|
44
44
|
}, [shortcut]);
|
|
@@ -47,7 +47,7 @@ class SmartEditPopupComponent extends React.Component {
|
|
|
47
47
|
operationMenuItems.push(...customOperations.map((operation) => {
|
|
48
48
|
return {
|
|
49
49
|
onClick: () => this.props.onSmartEditOperationChange(operation),
|
|
50
|
-
label: operation.
|
|
50
|
+
label: operation.name,
|
|
51
51
|
};
|
|
52
52
|
}));
|
|
53
53
|
}
|
|
@@ -60,7 +60,7 @@ class SmartEditPopupComponent extends React.Component {
|
|
|
60
60
|
} },
|
|
61
61
|
React.createElement(rebass_1.Flex, { flexDirection: "row", padding: 2, "data-name": "smart-edit-operation" },
|
|
62
62
|
React.createElement(DropdownButton_1.default, { items: operationMenuItems, columns: ['label'], onMouseDown: preventDefault }, typeof this.props.SmartEditOperation === 'object'
|
|
63
|
-
? this.props.SmartEditOperation.
|
|
63
|
+
? this.props.SmartEditOperation.name
|
|
64
64
|
: this.props.SmartEditOperation),
|
|
65
65
|
React.createElement(Input_1.default, { value: this.props.SmartEditValue.toString(), marginLeft: 2, marginRight: 2, type: "number", placeholder: "Enter a Number", onChange: (e) => this.onSmartEditValueChange(e) }),
|
|
66
66
|
React.createElement(SimpleButton_1.default, { tone: this.getButtonStyle(), variant: "raised", disabled: StringExtensions_1.StringExtensions.IsNullOrEmpty(`${this.props.SmartEditValue}`) ||
|
|
@@ -55,7 +55,7 @@ class SmartEditViewPanelComponent extends React.Component {
|
|
|
55
55
|
operationMenuItems.push(...customOperations.map((operation) => {
|
|
56
56
|
return {
|
|
57
57
|
onClick: () => this.props.onSmartEditOperationChange(operation),
|
|
58
|
-
label: operation.
|
|
58
|
+
label: operation.name,
|
|
59
59
|
};
|
|
60
60
|
}));
|
|
61
61
|
}
|
|
@@ -70,7 +70,7 @@ class SmartEditViewPanelComponent extends React.Component {
|
|
|
70
70
|
return (React.createElement(rebass_1.Flex, { flexDirection: "row", className: `ab-${elementType}__SmartEdit__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
71
71
|
React.createElement(rebass_1.Flex, null,
|
|
72
72
|
React.createElement(DropdownButton_1.default, { className: `ab-${elementType}__SmartEdit__select`, marginRight: 2, items: operationMenuItems, style: { fontSize: 'small' }, columns: ['label'], disabled: shouldDisable, variant: "outlined" }, typeof this.props.SmartEditOperation === 'object'
|
|
73
|
-
? this.props.SmartEditOperation.
|
|
73
|
+
? this.props.SmartEditOperation.name
|
|
74
74
|
: this.props.SmartEditOperation),
|
|
75
75
|
React.createElement(Input_1.default, { style: {
|
|
76
76
|
width: '5rem',
|
|
@@ -12,7 +12,7 @@ const AdaptableContext_1 = require("./AdaptableContext");
|
|
|
12
12
|
exports.SpecialColumnSettingsWizardStep = (props) => {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
15
|
-
const possibleColumnTypes = adaptable.api.internalApi.getAdaptableOptions().
|
|
15
|
+
const possibleColumnTypes = adaptable.api.internalApi.getAdaptableOptions().columnOptions.columnTypes;
|
|
16
16
|
const { Filterable, Resizable, Groupable, Sortable, Pivotable, Aggregatable, SuppressMenu, SuppressMovable, } = (_a = props.settings) !== null && _a !== void 0 ? _a : {};
|
|
17
17
|
const handleColumnTypeChange = (columnType, checked) => {
|
|
18
18
|
var _a, _b, _c;
|
|
@@ -39,6 +39,6 @@ exports.AdaptableStatusBar = (props) => {
|
|
|
39
39
|
dispatch(menuItem.reduxAction);
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
return (React.createElement(StatusBarPanel_1.StatusBarPanel, Object.assign({ "data-name": subPanel }, statusBarPanelProps, { onAction: onAction, icon: (_f = statusBarPanelProps.icon) !== null && _f !== void 0 ? _f : moduleInfo.Glyph, key: subPanel })));
|
|
42
|
+
return (React.createElement(StatusBarPanel_1.StatusBarPanel, Object.assign({ "data-name": subPanel }, statusBarPanelProps, { tooltip: moduleInfo.FriendlyName, onAction: onAction, icon: (_f = statusBarPanelProps.icon) !== null && _f !== void 0 ? _f : moduleInfo.Glyph, key: subPanel })));
|
|
43
43
|
})));
|
|
44
44
|
};
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
7
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
8
|
+
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
8
9
|
const AdaptablePopover_1 = require("../AdaptablePopover");
|
|
9
10
|
/**
|
|
10
11
|
* Statusbar sub panel are similar to vs code:
|
|
@@ -14,7 +15,7 @@ const AdaptablePopover_1 = require("../AdaptablePopover");
|
|
|
14
15
|
*/
|
|
15
16
|
exports.StatusBarPanel = (props) => {
|
|
16
17
|
var _a;
|
|
17
|
-
const { icon, content, popover, popoverMinWidth, view, onAction, extraActions, triggerActionOnWrapperClick = true } = props, flexProps = tslib_1.__rest(props, ["icon", "content", "popover", "popoverMinWidth", "view", "onAction", "extraActions", "triggerActionOnWrapperClick"]);
|
|
18
|
+
const { icon, content, popover, popoverMinWidth, view, onAction, extraActions, triggerActionOnWrapperClick = true, tooltip } = props, flexProps = tslib_1.__rest(props, ["icon", "content", "popover", "popoverMinWidth", "view", "onAction", "extraActions", "triggerActionOnWrapperClick", "tooltip"]);
|
|
18
19
|
const handleAction = () => onAction();
|
|
19
20
|
if (view) {
|
|
20
21
|
const View = view;
|
|
@@ -39,7 +40,7 @@ exports.StatusBarPanel = (props) => {
|
|
|
39
40
|
? React.createElement(content)
|
|
40
41
|
: content;
|
|
41
42
|
return (React.createElement(rebass_1.Flex, Object.assign({}, flexProps, { alignItems: "center", justifyContent: "center", as: shouldTriggerActionOnWrapperClick ? 'button' : 'div', className: baseClassName, onClick: handleWrapperClick }),
|
|
42
|
-
props.icon && (React.createElement(SimpleButton_1.default, { color: props.color, icon: props.icon, iconSize: 15, variant: "text", onClick: handleIconClick, mr: preparedContent ? 1 : 0 })),
|
|
43
|
-
popover ? (React.createElement(AdaptablePopover_1.AdaptablePopover, { showIcon: false, bodyText: [popoverContent], MessageType: 'Info', showEvent: 'focus', hideEvent: "blur", popoverMinWidth: popoverMinWidth }, preparedContent)) : (preparedContent),
|
|
44
|
-
_a.call(extraActions, (action, index) => React.createElement(action, { key: index }))));
|
|
43
|
+
props.icon && (React.createElement(SimpleButton_1.default, { tooltip: tooltip, color: props.color, icon: props.icon, iconSize: 15, variant: "text", onClick: handleIconClick, mr: preparedContent ? 1 : 0 })),
|
|
44
|
+
popover ? (React.createElement(AdaptablePopover_1.AdaptablePopover, { tooltipText: tooltip, showIcon: false, bodyText: [popoverContent], MessageType: 'Info', showEvent: 'focus', hideEvent: "blur", popoverMinWidth: popoverMinWidth }, preparedContent)) : (preparedContent),
|
|
45
|
+
ArrayExtensions_1.default.IsNotNullOrEmpty(extraActions) && (React.createElement(rebass_1.Box, { ml: 1 }, (_a = extraActions === null || extraActions === void 0 ? void 0 : extraActions.map) === null || _a === void 0 ? void 0 : _a.call(extraActions, (action, index) => React.createElement(action, { key: index }))))));
|
|
45
46
|
};
|
|
@@ -3,34 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ThemeStatusPanelPopover = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const
|
|
7
|
-
const Radio_1 = tslib_1.__importDefault(require("../../components/Radio"));
|
|
6
|
+
const SelectList_1 = require("../../components/SelectList");
|
|
8
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
9
|
-
const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
|
|
10
|
-
const PanelWithRow_1 = require("../Components/Panels/PanelWithRow");
|
|
11
|
-
const colItems = [
|
|
12
|
-
{ Content: 'Current', Size: 2 },
|
|
13
|
-
{ Content: 'Theme Name', Size: 4 },
|
|
14
|
-
];
|
|
15
8
|
exports.ThemeStatusPanelPopover = () => {
|
|
16
9
|
const adaptable = AdaptableContext_1.useAdaptable();
|
|
17
10
|
const themes = adaptable.api.themeApi.getAllTheme();
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
adaptable.api.themeApi.loadTheme(theme.Name);
|
|
11
|
+
const handleThemeChange = React.useCallback((option) => {
|
|
12
|
+
adaptable.api.themeApi.loadTheme(option.label);
|
|
21
13
|
}, []);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
themes.map((theme) => {
|
|
25
|
-
return (React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { key: theme.Name, colItems: [
|
|
26
|
-
{
|
|
27
|
-
Content: (React.createElement(Radio_1.default, { onClick: () => handleThemeChange(theme), id: theme.Name, checked: currentTheme === theme.Name })),
|
|
28
|
-
Size: 1,
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
Content: (React.createElement("label", { style: { cursor: 'pointer' }, htmlFor: theme.Name }, theme.Name)),
|
|
32
|
-
Size: 4,
|
|
33
|
-
},
|
|
34
|
-
] }));
|
|
35
|
-
})));
|
|
14
|
+
const options = themes.map((theme) => ({ label: theme.Name, value: theme.Uuid }));
|
|
15
|
+
return React.createElement(SelectList_1.SelectList, { options: options, onChange: handleThemeChange });
|
|
36
16
|
};
|
package/src/View/UIHelper.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { EditableConfigEntityState } from './Components/SharedProps/EditableConf
|
|
|
3
3
|
import { StatusColour } from '../PredefinedConfig/Common/Enums';
|
|
4
4
|
import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
|
|
5
5
|
import { Schedule, Weekday } from '../PredefinedConfig/Common/Schedule';
|
|
6
|
-
import { AdaptableOptions } from '../types';
|
|
6
|
+
import { AdaptableColumnDataType, AdaptableOptions } from '../types';
|
|
7
7
|
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
8
8
|
import { AdaptableMessageType } from '../PredefinedConfig/Common/AdaptableMessageType';
|
|
9
9
|
export declare const BLACK: string;
|
|
@@ -29,8 +29,8 @@ export declare const ORANGE: string;
|
|
|
29
29
|
export declare function getHexForName(name: string): string;
|
|
30
30
|
export declare function getDefaultColors(): string[];
|
|
31
31
|
export declare function getEmptyConfigState(): EditableConfigEntityState;
|
|
32
|
-
export declare function getDescriptionForDataType(dataType:
|
|
33
|
-
export declare function
|
|
32
|
+
export declare function getDescriptionForDataType(dataType: AdaptableColumnDataType): "string" | "number" | "date";
|
|
33
|
+
export declare function getPlaceholderForDataType(dataType: AdaptableColumnDataType): "Enter Value" | "Enter Number" | "Enter Date";
|
|
34
34
|
export declare function getModalContainer(adaptableOptions: AdaptableOptions, document: Document): HTMLElement;
|
|
35
35
|
export declare function IsEmptyStyle(style: AdaptableStyle): boolean;
|
|
36
36
|
export declare function IsNotEmptyStyle(style: AdaptableStyle): boolean;
|
|
@@ -58,7 +58,7 @@ export declare const UIHelper: {
|
|
|
58
58
|
getDefaultColors: typeof getDefaultColors;
|
|
59
59
|
getEmptyConfigState: typeof getEmptyConfigState;
|
|
60
60
|
getDescriptionForDataType: typeof getDescriptionForDataType;
|
|
61
|
-
getPlaceHolderforDataType: typeof
|
|
61
|
+
getPlaceHolderforDataType: typeof getPlaceholderForDataType;
|
|
62
62
|
getModalContainer: typeof getModalContainer;
|
|
63
63
|
IsEmptyStyle: typeof IsEmptyStyle;
|
|
64
64
|
IsNotEmptyStyle: typeof IsNotEmptyStyle;
|