@adaptabletools/adaptable 13.0.0-canary.9 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +1454 -840
- package/base.css.map +1 -0
- package/bundle.cjs.js +238 -220
- package/index.css +1505 -850
- package/index.css.map +1 -0
- package/package.json +6 -6
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +30 -6
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -5
- package/src/AdaptableOptions/LayoutOptions.d.ts +2 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/Api/AdaptableApi.d.ts +2 -5
- package/src/Api/ColumnApi.d.ts +8 -2
- package/src/Api/ConfigApi.d.ts +0 -5
- package/src/Api/ExportApi.d.ts +6 -6
- package/src/Api/FormatColumnApi.d.ts +46 -73
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -3
- package/src/Api/Implementation/AlertApiImpl.js +9 -4
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ColumnApiImpl.js +15 -11
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ConfigApiImpl.js +0 -11
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ExportApiImpl.js +14 -14
- package/src/Api/Implementation/FlashingCellApiImpl.js +4 -1
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +24 -22
- package/src/Api/Implementation/FormatColumnApiImpl.js +57 -224
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.js +4 -3
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +2 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +9 -15
- package/src/Api/Implementation/ScopeApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +25 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +193 -0
- package/src/Api/InternalApi.d.ts +1 -1
- package/src/Api/QueryLanguageApi.d.ts +3 -2
- package/src/Api/ScopeApi.d.ts +1 -1
- package/src/Api/StyledColumnApi.d.ts +106 -0
- package/src/Api/{ConditionalStyleApi.js → StyledColumnApi.js} +0 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +3 -3
- package/src/PredefinedConfig/Common/Types.js +1 -0
- package/src/PredefinedConfig/FormatColumnState.d.ts +6 -90
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -0
- package/src/PredefinedConfig/StyledColumnState.d.ts +119 -0
- package/src/{Strategy/Interface/IConditionalStyleModule.js → PredefinedConfig/StyledColumnState.js} +0 -0
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +4 -4
- package/src/Redux/ActionsReducers/PluginsRedux.js +5 -5
- package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +49 -0
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +92 -0
- package/src/Redux/DeadRedux.d.ts +6 -0
- package/src/Redux/DeadRedux.js +19 -1
- package/src/Redux/Store/AdaptableStore.js +9 -8
- package/src/Strategy/ConditionalStyleModule.d.ts +2 -27
- package/src/Strategy/ConditionalStyleModule.js +0 -219
- package/src/Strategy/FormatColumnModule.d.ts +0 -2
- package/src/Strategy/FormatColumnModule.js +30 -221
- package/src/Strategy/LayoutModule.js +0 -4
- package/src/Strategy/StyledColumnModule.d.ts +24 -0
- package/src/Strategy/StyledColumnModule.js +165 -0
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +1 -16
- package/src/Strategy/Utilities/getScopeViewItems.js +1 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
- package/src/Utilities/Constants/ModuleConstants.js +4 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -3
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -4
- package/src/Utilities/ObjectFactory.d.ts +5 -2
- package/src/Utilities/ObjectFactory.js +14 -6
- package/src/Utilities/Services/ModuleService.js +2 -2
- package/src/Utilities/Services/QueryLanguageService.js +1 -1
- package/src/Utilities/Services/ReportService.js +6 -6
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +15 -14
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +24 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -5
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -3
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
- package/src/View/Components/AdaptableObjectRow/index.js +1 -6
- package/src/View/Components/Buttons/ButtonInfo.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonInfo.js +3 -5
- package/src/View/Components/EntityRulesEditor/index.js +8 -17
- package/src/View/Components/FilterForm/FilterForm.js +11 -16
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +2 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +7 -13
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelWithButton.js +1 -5
- package/src/View/Components/Panels/PanelWithImage.js +1 -5
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +3 -16
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +5 -5
- package/src/View/Components/RangesComponent.d.ts +8 -1
- package/src/View/Components/RangesComponent.js +60 -24
- package/src/View/Components/ScopeComponent.js +6 -6
- package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
- package/src/View/Components/StyleComponent.js +14 -19
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +1 -11
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +21 -9
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/Export/ReportExportDropdown.js +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +10 -11
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/FlashingCell/FlashingCellStyle.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +6 -6
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +27 -27
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +4 -5
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +2 -6
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +6 -300
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +3 -10
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
- package/src/View/GridInfo/ColumnInfoComponent.js +26 -18
- package/src/View/GridInfo/GridInfoPopup.js +10 -9
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +7 -6
- package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +3 -3
- package/src/View/SmartEdit/SmartEditPopup.js +3 -3
- package/src/View/SpecialColumnSettingsWizardStep.js +10 -10
- package/src/View/StateManagement/StateManagementPopup.js +4 -4
- package/src/View/StatusBar/StatusBarPopup.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +7 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +77 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +65 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.js +234 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.d.ts +7 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +59 -0
- package/src/View/SystemStatus/SystemStatusEntityRow.js +4 -6
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/TeamSharing/SharedEntityObjectView.js +1 -1
- package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
- package/src/View/Theme/ThemePopup.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +1 -2
- package/src/agGrid/ActionColumnRenderer.d.ts +2 -0
- package/src/agGrid/ActionColumnRenderer.js +94 -62
- package/src/agGrid/Adaptable.d.ts +10 -11
- package/src/agGrid/Adaptable.js +164 -222
- package/src/agGrid/CheckboxRenderer.js +1 -1
- package/src/agGrid/FilterWrapper.js +60 -16
- package/src/agGrid/FloatingFilterWrapper.d.ts +2 -2
- package/src/agGrid/FloatingFilterWrapper.js +71 -32
- package/src/agGrid/PercentBarRenderer.d.ts +6 -2
- package/src/agGrid/PercentBarRenderer.js +19 -17
- package/src/agGrid/agGridHelper.d.ts +6 -2
- package/src/agGrid/agGridHelper.js +17 -17
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
- package/src/agGrid/createAgStatusPanelComponent.js +17 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +4 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +84 -17
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +2 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +78 -27
- package/src/agGrid/weightedAverage.js +19 -11
- package/src/components/CheckBox/index.js +7 -2
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/DragAndDropContext/TabList.js +1 -1
- package/src/components/DragAndDropContext/UnusedPanel.js +3 -2
- package/src/components/ExpressionEditor/BaseEditorInput.js +13 -32
- package/src/components/ExpressionEditor/index.js +9 -17
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/StylePreview.js +2 -1
- package/src/components/icons/brush.d.ts +3 -0
- package/src/components/icons/brush.js +7 -0
- package/src/components/icons/index.js +2 -0
- package/src/metamodel/adaptable.metamodel.d.ts +113 -57
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/renderReactRoot.d.ts +2 -0
- package/src/renderReactRoot.js +11 -9
- package/src/types.d.ts +5 -5
- package/themes/dark.css +8 -4
- package/themes/dark.css.map +1 -0
- package/themes/light.css +4 -1
- package/themes/light.css.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableComponents.d.ts +0 -1
- package/src/AdaptableComponents.js +0 -5
- package/src/Api/ConditionalStyleApi.d.ts +0 -86
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +0 -29
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +0 -98
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +0 -49
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +0 -95
- package/src/Strategy/Interface/IConditionalStyleModule.d.ts +0 -6
- package/src/Strategy/Utilities/getStyleViewItems.d.ts +0 -2
- package/src/Strategy/Utilities/getStyleViewItems.js +0 -16
- package/src/View/ConditionalStyle/ConditionalStylePopupHeader.d.ts +0 -2
- package/src/View/ConditionalStyle/ConditionalStylePopupHeader.js +0 -18
- package/src/View/ConditionalStyle/ConditionalStyleSummary.d.ts +0 -25
- package/src/View/ConditionalStyle/ConditionalStyleSummary.js +0 -108
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.d.ts +0 -9
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +0 -42
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.d.ts +0 -8
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +0 -43
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +0 -8
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +0 -29
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.d.ts +0 -8
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +0 -23
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.d.ts +0 -6
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +0 -114
- package/src/View/ConditionalStyle/Wizard/DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE.d.ts +0 -1
- package/src/View/ConditionalStyle/Wizard/DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE.js +0 -4
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConditionalStyleSummary = exports.ConditionalStyleSummaryComponent = 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 ConditionalStyleRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ConditionalStyleRedux"));
|
|
8
|
-
const QueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QueryRedux"));
|
|
9
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
10
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
11
|
-
const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
|
|
12
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
13
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
14
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
15
|
-
const ModuleDetail_1 = require("../Components/ModuleSummary/ModuleDetail");
|
|
16
|
-
const ModuleHeader_1 = require("../Components/ModuleSummary/ModuleHeader");
|
|
17
|
-
const StyleVisualItem_1 = require("../Components/StyleVisualItem");
|
|
18
|
-
const UIHelper_1 = require("../UIHelper");
|
|
19
|
-
const ConditionalStyleWizard_1 = require("./Wizard/ConditionalStyleWizard");
|
|
20
|
-
const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
|
|
21
|
-
class ConditionalStyleSummaryComponent extends React.Component {
|
|
22
|
-
constructor(props) {
|
|
23
|
-
super(props);
|
|
24
|
-
this.onFinishWizard = (data) => {
|
|
25
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
26
|
-
this.props.onEditConditionalStyle(data);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
this.props.onAddConditionalStyle(data);
|
|
30
|
-
}
|
|
31
|
-
this.setState({
|
|
32
|
-
editedAdaptableObject: null,
|
|
33
|
-
wizardStartIndex: 0,
|
|
34
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
let moduleSummaries = [];
|
|
41
|
-
// title row
|
|
42
|
-
let titleRow = (React.createElement(ModuleHeader_1.ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: Helper_1.Helper.ReturnItemCount(this.props.ConditionalStyles.filter((item) => this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)), this.props.moduleInfo.FriendlyName), onNew: () => this.onNew(), newButtonTooltip: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel }));
|
|
43
|
-
moduleSummaries.push(titleRow);
|
|
44
|
-
// existing items
|
|
45
|
-
this.props.ConditionalStyles.map((item, index) => {
|
|
46
|
-
if (this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)) {
|
|
47
|
-
let detailRow = (React.createElement(ModuleDetail_1.ModuleDetail, { key: 'CS' + index, item1: React.createElement(StyleVisualItem_1.StyleVisualItem, { Style: item.Style }), item2: item.Rule.BooleanExpression
|
|
48
|
-
? item.Rule.BooleanExpression
|
|
49
|
-
: this.props.api.predicateApi.predicateToString(item.Rule.Predicate), configEnity: item, moduleInfo: this.props.moduleInfo, showShare: this.props.teamSharingActivated, onEdit: () => this.onEdit(item), onShare: (description) => this.props.onShare(item, description), onDelete: ConditionalStyleRedux.ConditionalStyleDelete(item), accessLevel: this.props.accessLevel }));
|
|
50
|
-
moduleSummaries.push(detailRow);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
return (React.createElement("div", null,
|
|
54
|
-
moduleSummaries,
|
|
55
|
-
this.state.editedAdaptableObject && (React.createElement(ConditionalStyleWizard_1.ConditionalStyleWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: null, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
|
|
56
|
-
}
|
|
57
|
-
onNew() {
|
|
58
|
-
let configEntity = ObjectFactory_1.ObjectFactory.CreateEmptyConditionalStyle();
|
|
59
|
-
configEntity.Scope = {
|
|
60
|
-
ColumnIds: [this.props.summarisedColumn.columnId],
|
|
61
|
-
};
|
|
62
|
-
this.setState({
|
|
63
|
-
editedAdaptableObject: configEntity,
|
|
64
|
-
wizardStartIndex: 1,
|
|
65
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
onEdit(ConditionalStyle) {
|
|
69
|
-
this.setState({
|
|
70
|
-
editedAdaptableObject: Helper_1.Helper.cloneObject(ConditionalStyle),
|
|
71
|
-
wizardStartIndex: 1,
|
|
72
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
onCloseWizard() {
|
|
76
|
-
this.setState({
|
|
77
|
-
editedAdaptableObject: null,
|
|
78
|
-
wizardStartIndex: 0,
|
|
79
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
canFinishWizard() {
|
|
83
|
-
let conditionalStyle = this.state.editedAdaptableObject;
|
|
84
|
-
if (StringExtensions_1.StringExtensions.IsNullOrEmpty(conditionalStyle.Rule.BooleanExpression)) {
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
if (!this.props.api.queryLanguageApi.isValidBooleanExpression(conditionalStyle.Rule.BooleanExpression, ModuleConstants_1.ConditionalStyleModuleId)) {
|
|
88
|
-
return false;
|
|
89
|
-
}
|
|
90
|
-
return UIHelper_1.UIHelper.IsNotEmptyStyle(conditionalStyle.Style);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
exports.ConditionalStyleSummaryComponent = ConditionalStyleSummaryComponent;
|
|
94
|
-
function mapStateToProps(state, ownProps) {
|
|
95
|
-
return {
|
|
96
|
-
ConditionalStyles: state.ConditionalStyle.ConditionalStyles,
|
|
97
|
-
NamedQueries: state.Query.NamedQueries,
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function mapDispatchToProps(dispatch) {
|
|
101
|
-
return {
|
|
102
|
-
onAddConditionalStyle: (conditionalStyle) => dispatch(ConditionalStyleRedux.ConditionalStyleAdd(conditionalStyle)),
|
|
103
|
-
onEditConditionalStyle: (conditionalStyle) => dispatch(ConditionalStyleRedux.ConditionalStyleEdit(conditionalStyle)),
|
|
104
|
-
onAddNamedQuery: (namedQuery) => dispatch(QueryRedux.NamedQueryAdd(namedQuery)),
|
|
105
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.ConditionalStyleModuleId, config)),
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
exports.ConditionalStyleSummary = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(ConditionalStyleSummaryComponent);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ConditionalStyle } from '../../../types';
|
|
3
|
-
declare type ConditionalStyleRuleWizardSectionProps = {
|
|
4
|
-
onChange: (data: ConditionalStyle) => void;
|
|
5
|
-
defaultPredicateId: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function renderConditionalStyleRuleSummary(data: ConditionalStyle): JSX.Element;
|
|
8
|
-
export declare function ConditionalStyleRuleWizardSection(props: ConditionalStyleRuleWizardSectionProps): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConditionalStyleRuleWizardSection = exports.renderConditionalStyleRuleSummary = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
7
|
-
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
8
|
-
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
9
|
-
function renderConditionalStyleRuleSummary(data) {
|
|
10
|
-
return (React.createElement(EntityRulesEditor_1.EntityRulesSummary, { data: data, renderPredicate: (contents) => {
|
|
11
|
-
return (React.createElement(React.Fragment, null,
|
|
12
|
-
"Apply Conditional Style on ",
|
|
13
|
-
React.createElement(CodeBlock_1.CodeBlock, null, contents)));
|
|
14
|
-
}, renderQueryExpression: (contents) => {
|
|
15
|
-
return (React.createElement(React.Fragment, null,
|
|
16
|
-
"Apply Conditional Style when",
|
|
17
|
-
' ',
|
|
18
|
-
React.createElement("b", null,
|
|
19
|
-
React.createElement(CodeBlock_1.CodeBlock, null, contents))));
|
|
20
|
-
} }));
|
|
21
|
-
}
|
|
22
|
-
exports.renderConditionalStyleRuleSummary = renderConditionalStyleRuleSummary;
|
|
23
|
-
function ConditionalStyleRuleWizardSection(props) {
|
|
24
|
-
const { data, api, moduleInfo } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
25
|
-
return (React.createElement(React.Fragment, null,
|
|
26
|
-
React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: props.defaultPredicateId, predicateDefs: api.conditionalStyleApi.getCondStylePredicateDefsForScope(data.Scope), showAggregation: false, showObservable: false, showPredicate: !api.scopeApi.scopeIsAll(data.Scope), data: data, onChange: props.onChange, descriptions: {
|
|
27
|
-
selectPredicate: 'Select a Conditional Style Rule - to be applied when data changes',
|
|
28
|
-
useBooleanQuery: (React.createElement(React.Fragment, null,
|
|
29
|
-
"Use an BooleanQuery if ",
|
|
30
|
-
React.createElement("i", null, "Scope"),
|
|
31
|
-
" is 'Whole Row' - so any data change may be evaluated in a complex BooleanExpression")),
|
|
32
|
-
useObservableQuery: (React.createElement(React.Fragment, null,
|
|
33
|
-
"Use an ObservableQuery if ",
|
|
34
|
-
React.createElement("i", null, "Scope"),
|
|
35
|
-
" is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression")),
|
|
36
|
-
useAggregationQuery: (React.createElement(React.Fragment, null,
|
|
37
|
-
"Use an AggregatedBooleanQuery if ",
|
|
38
|
-
React.createElement("i", null, "Scope"),
|
|
39
|
-
" is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")),
|
|
40
|
-
} })));
|
|
41
|
-
}
|
|
42
|
-
exports.ConditionalStyleRuleWizardSection = ConditionalStyleRuleWizardSection;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ConditionalStyle } from '../../../types';
|
|
3
|
-
declare type ConditionalStyleScopeWizardSectionProps = {
|
|
4
|
-
onChange: (data: ConditionalStyle) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const renderConditionalStyleScopeSummary: (data: ConditionalStyle) => JSX.Element;
|
|
7
|
-
export declare function ConditionalStyleScopeWizardSection(props: ConditionalStyleScopeWizardSectionProps): JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConditionalStyleScopeWizardSection = exports.renderConditionalStyleScopeSummary = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
7
|
-
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
8
|
-
const DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE_1 = require("./DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE");
|
|
9
|
-
const renderConditionalStyleScopeSummary = (data) => {
|
|
10
|
-
return (0, NewScopeComponent_1.renderScopeSummary)(data.Scope, {
|
|
11
|
-
scopeWholeRow: 'Matching rows will display the Conditionally Style',
|
|
12
|
-
scopeColumns: 'Cells in selected columns will display the Conditionally Style',
|
|
13
|
-
scopeDataTypes: 'Cells in columns of the selected data-types will display the Conditionally Style',
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
exports.renderConditionalStyleScopeSummary = renderConditionalStyleScopeSummary;
|
|
17
|
-
function ConditionalStyleScopeWizardSection(props) {
|
|
18
|
-
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
19
|
-
return (React.createElement(React.Fragment, null,
|
|
20
|
-
React.createElement(NewScopeComponent_1.NewScopeComponent, { scope: data.Scope, descriptions: {
|
|
21
|
-
rowScope: 'Matching Rows will have the Conditional Style applied',
|
|
22
|
-
columnScope: 'Matching Columns will have the Conditional Style applied',
|
|
23
|
-
}, updateScope: (Scope) => {
|
|
24
|
-
const newData = Object.assign(Object.assign({}, data), { Scope });
|
|
25
|
-
const wholeRow = api.scopeApi.scopeIsAll(Scope);
|
|
26
|
-
if (newData.Rule.Predicate) {
|
|
27
|
-
if (wholeRow) {
|
|
28
|
-
// if scope is whole row, a predicate cannot be present, so we set the rule
|
|
29
|
-
// to be a boolean expression
|
|
30
|
-
delete newData.Rule.Predicate;
|
|
31
|
-
newData.Rule.BooleanExpression = '';
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
// if scope is not whole row, if you have a predicate, reset it
|
|
35
|
-
newData.Rule.Predicate = {
|
|
36
|
-
PredicateId: DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE_1.DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE,
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
props.onChange(newData);
|
|
41
|
-
} })));
|
|
42
|
-
}
|
|
43
|
-
exports.ConditionalStyleScopeWizardSection = ConditionalStyleScopeWizardSection;
|
|
@@ -1,8 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
const 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.renderConditionalStyleSettingsSummary = renderConditionalStyleSettingsSummary;
|
|
15
|
-
const ConditionalStyleSettingsWizardSettings = (props) => {
|
|
16
|
-
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
17
|
-
const onIncludeGroupedRowsChanged = (checked) => {
|
|
18
|
-
props.onChange(Object.assign(Object.assign({}, data), { IncludeGroupedRows: checked }));
|
|
19
|
-
};
|
|
20
|
-
return (React.createElement(Tabs_1.Tabs, null,
|
|
21
|
-
React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
|
|
22
|
-
React.createElement(Tabs_1.Tabs.Content, null,
|
|
23
|
-
React.createElement(rebass_1.Flex, { flexDirection: "row" },
|
|
24
|
-
React.createElement(FormLayout_1.default, null,
|
|
25
|
-
React.createElement(FormLayout_1.FormRow, { label: "Include Grouped Rows:" },
|
|
26
|
-
React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
|
|
27
|
-
React.createElement(CheckBox_1.CheckBox, { checked: data.IncludeGroupedRows, onChange: onIncludeGroupedRowsChanged, mr: 2 }))))))));
|
|
28
|
-
};
|
|
29
|
-
exports.ConditionalStyleSettingsWizardSettings = ConditionalStyleSettingsWizardSettings;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ConditionalStyle } from '../../../types';
|
|
3
|
-
declare type ConditionalStyleStyleWizardSectionProps = {
|
|
4
|
-
onChange: (data: ConditionalStyle) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const renderConditionalStyleStyleSummary: (data: ConditionalStyle) => JSX.Element;
|
|
7
|
-
export declare function ConditionalStyleStyleWizardSection(props: ConditionalStyleStyleWizardSectionProps): JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConditionalStyleStyleWizardSection = exports.renderConditionalStyleStyleSummary = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const StyleComponent_1 = require("../../Components/StyleComponent");
|
|
7
|
-
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
8
|
-
const rebass_1 = require("rebass");
|
|
9
|
-
const StyleHelper_1 = require("../../../Utilities/Helpers/StyleHelper");
|
|
10
|
-
const toStyle = (style) => {
|
|
11
|
-
return Object.assign(Object.assign({}, (0, StyleHelper_1.convertAdaptableStyleToCSS)(style !== null && style !== void 0 ? style : {})), { borderWidth: (style === null || style === void 0 ? void 0 : style.BorderColor) ? 2 : 0, borderStyle: 'solid' });
|
|
12
|
-
};
|
|
13
|
-
const renderConditionalStyleStyleSummary = (data) => {
|
|
14
|
-
return (React.createElement(rebass_1.Text, { padding: 2, style: toStyle(data.Style) }, "Preview result"));
|
|
15
|
-
};
|
|
16
|
-
exports.renderConditionalStyleStyleSummary = renderConditionalStyleStyleSummary;
|
|
17
|
-
function ConditionalStyleStyleWizardSection(props) {
|
|
18
|
-
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
19
|
-
return (React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: api, Style: data.Style, UpdateStyle: (Style) => {
|
|
20
|
-
props.onChange(Object.assign(Object.assign({}, data), { Style }));
|
|
21
|
-
} }));
|
|
22
|
-
}
|
|
23
|
-
exports.ConditionalStyleStyleWizardSection = ConditionalStyleStyleWizardSection;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AdaptableOnePageWizardProps } from '../../Wizard/Interface/IAdaptableWizard';
|
|
3
|
-
import { ConditionalStyle } from '../../../types';
|
|
4
|
-
export interface ConditionalStyleWizardProps extends AdaptableOnePageWizardProps<ConditionalStyle> {
|
|
5
|
-
}
|
|
6
|
-
export declare const ConditionalStyleWizard: React.FunctionComponent<ConditionalStyleWizardProps>;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConditionalStyleWizard = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const rebass_1 = require("rebass");
|
|
8
|
-
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
9
|
-
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
10
|
-
const ConditionalStyleStyleWizardSection_1 = require("./ConditionalStyleStyleWizardSection");
|
|
11
|
-
const ConditionalStyleScopeWizardSection_1 = require("./ConditionalStyleScopeWizardSection");
|
|
12
|
-
const ConditionalStyleRuleWizardSection_1 = require("./ConditionalStyleRuleWizardSection");
|
|
13
|
-
const DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE_1 = require("./DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE");
|
|
14
|
-
const CheckBox_1 = require("../../../components/CheckBox");
|
|
15
|
-
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
16
|
-
const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
17
|
-
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
18
|
-
const react_redux_1 = require("react-redux");
|
|
19
|
-
const ConditionalStyleRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ConditionalStyleRedux"));
|
|
20
|
-
const ConditionalStyleSettingsWizardSettings_1 = require("./ConditionalStyleSettingsWizardSettings");
|
|
21
|
-
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
22
|
-
const ConditionalStyleWizard = (props) => {
|
|
23
|
-
var _a, _b;
|
|
24
|
-
const data = (_a = props.data) !== null && _a !== void 0 ? _a : (_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.value;
|
|
25
|
-
const [conditionalStyle, setConditionalStyle] = (0, react_1.useState)(() => {
|
|
26
|
-
var _a, _b, _c;
|
|
27
|
-
const DEFAULT_RULE = {
|
|
28
|
-
BooleanExpression: '',
|
|
29
|
-
};
|
|
30
|
-
const conditionalStyle = data ? (0, Helper_1.cloneObject)(data) : ObjectFactory_1.default.CreateEmptyConditionalStyle();
|
|
31
|
-
conditionalStyle.Scope = (_a = conditionalStyle.Scope) !== null && _a !== void 0 ? _a : { All: true };
|
|
32
|
-
if (!conditionalStyle.Rule) {
|
|
33
|
-
conditionalStyle.Rule = DEFAULT_RULE;
|
|
34
|
-
}
|
|
35
|
-
if (!conditionalStyle.Rule.Predicate && conditionalStyle.Rule.BooleanExpression == undefined) {
|
|
36
|
-
conditionalStyle.Rule.BooleanExpression = '';
|
|
37
|
-
}
|
|
38
|
-
if (((_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.action) === 'New' && ((_c = props.popupParams) === null || _c === void 0 ? void 0 : _c.column)) {
|
|
39
|
-
conditionalStyle.Scope = {
|
|
40
|
-
ColumnIds: [props.popupParams.column.columnId],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
return conditionalStyle;
|
|
44
|
-
});
|
|
45
|
-
const dispatch = (0, react_redux_1.useDispatch)();
|
|
46
|
-
const handleFinish = () => {
|
|
47
|
-
if (data) {
|
|
48
|
-
dispatch(ConditionalStyleRedux.ConditionalStyleEdit(conditionalStyle));
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
dispatch(ConditionalStyleRedux.ConditionalStyleAdd(conditionalStyle));
|
|
52
|
-
}
|
|
53
|
-
props.onCloseWizard();
|
|
54
|
-
};
|
|
55
|
-
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: conditionalStyle, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
56
|
-
{
|
|
57
|
-
title: 'Style',
|
|
58
|
-
details: 'Specify the Style to be applied conditionally',
|
|
59
|
-
renderSummary: ConditionalStyleStyleWizardSection_1.renderConditionalStyleStyleSummary,
|
|
60
|
-
render: () => {
|
|
61
|
-
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
62
|
-
React.createElement(ConditionalStyleStyleWizardSection_1.ConditionalStyleStyleWizardSection, { onChange: setConditionalStyle })));
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
title: 'Target',
|
|
67
|
-
isValid: NewScopeComponent_1.isScopeValid,
|
|
68
|
-
renderSummary: ConditionalStyleScopeWizardSection_1.renderConditionalStyleScopeSummary,
|
|
69
|
-
details: (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
70
|
-
"Specify where the Conditional Style should be applied",
|
|
71
|
-
React.createElement("div", { style: { flex: 1 } }),
|
|
72
|
-
React.createElement(CheckBox_1.CheckBox, { margin: 0, marginLeft: 2, onChange: (IncludeGroupedRows) => {
|
|
73
|
-
setConditionalStyle(Object.assign(Object.assign({}, conditionalStyle), { IncludeGroupedRows: IncludeGroupedRows }));
|
|
74
|
-
}, checked: conditionalStyle.IncludeGroupedRows }, "Include Grouped Rows"))),
|
|
75
|
-
render: () => {
|
|
76
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "column", style: { height: '100%' }, padding: 2 },
|
|
77
|
-
React.createElement(ConditionalStyleScopeWizardSection_1.ConditionalStyleScopeWizardSection, { onChange: setConditionalStyle })));
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
isValid: EntityRulesEditor_1.isRuleValid,
|
|
82
|
-
title: 'Condition',
|
|
83
|
-
details: 'Build the rules when the Conditional Style should be applied',
|
|
84
|
-
render: () => {
|
|
85
|
-
return (React.createElement(ConditionalStyleRuleWizardSection_1.ConditionalStyleRuleWizardSection, { onChange: setConditionalStyle, defaultPredicateId: DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE_1.DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE }));
|
|
86
|
-
},
|
|
87
|
-
renderSummary: ConditionalStyleRuleWizardSection_1.renderConditionalStyleRuleSummary,
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
title: 'Settings',
|
|
91
|
-
renderSummary: ConditionalStyleSettingsWizardSettings_1.renderConditionalStyleSettingsSummary,
|
|
92
|
-
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
93
|
-
React.createElement(ConditionalStyleSettingsWizardSettings_1.ConditionalStyleSettingsWizardSettings, { onChange: setConditionalStyle }))),
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
details: 'Select Conditional Style tags',
|
|
97
|
-
title: 'Tags',
|
|
98
|
-
isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
|
|
99
|
-
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
100
|
-
React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setConditionalStyle }))),
|
|
101
|
-
renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
|
|
102
|
-
},
|
|
103
|
-
'-',
|
|
104
|
-
{
|
|
105
|
-
details: 'Review the Conditional Style',
|
|
106
|
-
render: () => {
|
|
107
|
-
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
108
|
-
React.createElement(OnePageAdaptableWizard_1.OnePageWizardSummary, null)));
|
|
109
|
-
},
|
|
110
|
-
title: 'Summary',
|
|
111
|
-
},
|
|
112
|
-
] }));
|
|
113
|
-
};
|
|
114
|
-
exports.ConditionalStyleWizard = ConditionalStyleWizard;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE = "NonBlanks";
|