@adaptabletools/adaptable 13.0.0-canary.2 → 13.0.0-canary.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +23 -1
- package/agGrid.js +23 -1
- package/base.css +1232 -733
- package/base.css.map +1 -0
- package/bundle.cjs.js +191 -174
- package/index.css +1250 -734
- package/index.css.map +1 -0
- package/package.json +5 -5
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +7 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +0 -2
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +136 -27
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
- package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +32 -0
- package/src/AdaptableOptions/FinsemblePluginOptions.js +2 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +2 -1
- package/src/Api/AdaptableApi.d.ts +2 -0
- package/src/Api/ColumnApi.d.ts +8 -2
- package/src/Api/ConditionalStyleApi.d.ts +20 -42
- package/src/Api/ConfigApi.d.ts +1 -2
- package/src/Api/ExportApi.d.ts +6 -6
- package/src/Api/FinsembleApi.d.ts +10 -0
- package/src/Api/FinsembleApi.js +2 -0
- package/src/Api/FormatColumnApi.d.ts +76 -59
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ColumnApiImpl.js +18 -14
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ExportApiImpl.js +14 -14
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +36 -17
- package/src/Api/Implementation/FormatColumnApiImpl.js +101 -185
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PluginsApiImpl.js +6 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +2 -3
- package/src/Api/Implementation/QueryLanguageApiImpl.js +9 -18
- 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/Implementation/SystemStatusApiImpl.js +1 -2
- package/src/Api/Implementation/ToolPanelApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +8 -0
- package/src/Api/PluginsApi.d.ts +5 -0
- package/src/Api/QueryLanguageApi.d.ts +3 -7
- package/src/Api/ScopeApi.d.ts +1 -1
- package/src/Api/StyledColumnApi.d.ts +106 -0
- package/src/Api/StyledColumnApi.js +2 -0
- package/src/Api/ToolPanelApi.d.ts +10 -1
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +37 -37
- package/src/PredefinedConfig/Common/Types.d.ts +3 -3
- package/src/PredefinedConfig/Common/Types.js +1 -0
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +10 -19
- package/src/PredefinedConfig/FormatColumnState.d.ts +21 -92
- package/src/PredefinedConfig/PredefinedConfig.d.ts +6 -0
- package/src/PredefinedConfig/StyledColumnState.d.ts +119 -0
- package/src/PredefinedConfig/StyledColumnState.js +2 -0
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +0 -18
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +0 -18
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +43 -1
- 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/Store/AdaptableStore.js +9 -0
- package/src/Strategy/ConditionalStyleModule.d.ts +0 -2
- package/src/Strategy/ConditionalStyleModule.js +3 -27
- package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
- package/src/Strategy/DataChangeHistoryModule.js +12 -0
- package/src/Strategy/FormatColumnModule.d.ts +3 -10
- package/src/Strategy/FormatColumnModule.js +42 -183
- package/src/Strategy/Interface/IModule.d.ts +1 -0
- package/src/Strategy/StyledColumnModule.d.ts +24 -0
- package/src/Strategy/StyledColumnModule.js +165 -0
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +3 -4
- 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 +6 -12
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +2 -4
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -1
- package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
- package/src/Utilities/Extensions/TypeExtensions.js +5 -0
- package/src/Utilities/ObjectFactory.d.ts +5 -2
- package/src/Utilities/ObjectFactory.js +14 -7
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +14 -4
- package/src/Utilities/Services/{LicenseService.d.ts → LicenseService/index.d.ts} +3 -3
- package/src/Utilities/Services/LicenseService/index.js +1 -0
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.d.ts +1 -0
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +15 -0
- package/src/Utilities/Services/ModuleService.js +2 -0
- package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
- package/src/Utilities/Services/QueryLanguageService.js +88 -39
- package/src/Utilities/Services/ReportService.js +6 -6
- package/src/Utilities/license/LicenseDetails.d.ts +1 -1
- package/src/Utilities/license/decode.d.ts +1 -0
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +9 -9
- 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/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.d.ts +2 -1
- package/src/View/Components/EntityRulesEditor/index.js +36 -35
- 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/AdaptablePopupModuleView.js +1 -0
- 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 +3 -9
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +25 -10
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/ConditionalStyle/ConditionalStylePopupHeader.d.ts +2 -0
- package/src/View/ConditionalStyle/ConditionalStylePopupHeader.js +18 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +3 -3
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +1 -11
- 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/MoveFormatColumn.d.ts +7 -0
- package/src/View/FormatColumn/MoveFormatColumn.js +27 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +28 -28
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +8 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +28 -0
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +21 -3
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +2 -28
- 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 +15 -9
- package/src/View/FormatColumn/Wizard/constants.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/constants.js +4 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
- 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/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 +3 -0
- package/src/agGrid/ActionColumnRenderer.js +96 -64
- package/src/agGrid/Adaptable.d.ts +13 -9
- package/src/agGrid/Adaptable.js +207 -221
- 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 +16 -15
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
- package/src/agGrid/createAgStatusPanelComponent.js +17 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +5 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +87 -20
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +81 -30
- 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/ExpressionEditor/BaseEditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +13 -32
- package/src/components/ExpressionEditor/EditorInput.js +1 -1
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +1 -1
- 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 +191 -95
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +6 -3
- package/src/renderReactRoot.d.ts +2 -0
- package/src/renderReactRoot.js +11 -9
- package/src/types.d.ts +8 -4
- 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/Utilities/Services/LicenseService.js +0 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { ConfigState } from './ConfigState';
|
|
2
|
+
import { SuspendableObject } from './Common/SuspendableObject';
|
|
3
|
+
/**
|
|
4
|
+
* Predefined Configuration for Styled Column Module
|
|
5
|
+
*/
|
|
6
|
+
export interface StyledColumnState extends ConfigState {
|
|
7
|
+
/**
|
|
8
|
+
* Collection of Special Column Styles
|
|
9
|
+
*/
|
|
10
|
+
StyledColumns?: StyledColumn[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Object used in Special Column Style function
|
|
14
|
+
*/
|
|
15
|
+
export interface StyledColumn extends SuspendableObject {
|
|
16
|
+
/**
|
|
17
|
+
* Column being styled
|
|
18
|
+
*/
|
|
19
|
+
ColumnId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Styles a numeric column with a Gradient
|
|
22
|
+
*/
|
|
23
|
+
GradientStyle?: GradientStyle;
|
|
24
|
+
/**
|
|
25
|
+
* Styles a numeric column so each cell displays a 'bar'
|
|
26
|
+
*/
|
|
27
|
+
PercentBarStyle?: PercentBarStyle;
|
|
28
|
+
/**
|
|
29
|
+
* Renders a Checkbox in a boolean column
|
|
30
|
+
*/
|
|
31
|
+
CheckBoxStyle?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Style used to display Percent Bars in Special Column Style
|
|
35
|
+
*/
|
|
36
|
+
export interface PercentBarStyle extends NumericStyledColumn {
|
|
37
|
+
/**
|
|
38
|
+
* Ranges (e.g. to allow a traffic light effect)
|
|
39
|
+
*/
|
|
40
|
+
CellRanges?: CellColorRange[];
|
|
41
|
+
/**
|
|
42
|
+
* Compares Cell values to another Column
|
|
43
|
+
*/
|
|
44
|
+
ColumnComparison?: ColumnComparison;
|
|
45
|
+
/**
|
|
46
|
+
* Whether Cell shows Cell Value, Percent Value, both or none
|
|
47
|
+
*/
|
|
48
|
+
CellText?: CellTextOptions;
|
|
49
|
+
/**
|
|
50
|
+
* Whether Tooltip shows Cell Value, Percent Value, both or none
|
|
51
|
+
*/
|
|
52
|
+
ToolTipText?: CellTextOptions;
|
|
53
|
+
/**
|
|
54
|
+
* Background colour for 'Percent Bar'; leave unset if none required
|
|
55
|
+
* @defaultValue Gray
|
|
56
|
+
*/
|
|
57
|
+
BackColor?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface NumericStyledColumn {
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Used to display Gradient Styles in Special Column Style
|
|
63
|
+
*/
|
|
64
|
+
export interface GradientStyle extends NumericStyledColumn {
|
|
65
|
+
/**
|
|
66
|
+
* Ranges (e.g. to allow a traffic light effect)
|
|
67
|
+
*/
|
|
68
|
+
CellRanges?: CellColorRange[];
|
|
69
|
+
/**
|
|
70
|
+
* Compares cell values to another Column
|
|
71
|
+
*/
|
|
72
|
+
ColumnComparison?: ColumnComparison;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Defines which Colours to show in Gradient and Percent Bar Styles
|
|
76
|
+
*/
|
|
77
|
+
export interface CellColorRange {
|
|
78
|
+
/**
|
|
79
|
+
* Start number of Range
|
|
80
|
+
*/
|
|
81
|
+
Min: number | 'Col-Min';
|
|
82
|
+
/**
|
|
83
|
+
* End number of Range
|
|
84
|
+
*/
|
|
85
|
+
Max: number | 'Col-Max';
|
|
86
|
+
/**
|
|
87
|
+
* Cell colour to use for values that fall inside Range
|
|
88
|
+
*/
|
|
89
|
+
Color: string;
|
|
90
|
+
/**
|
|
91
|
+
* Reverses the Gradient so the lower the cell value the darker the colour
|
|
92
|
+
*/
|
|
93
|
+
ReverseGradient?: boolean;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Enables a Percent Bar or Gradient Style to use another column in its calculations
|
|
97
|
+
*/
|
|
98
|
+
export interface ColumnComparison {
|
|
99
|
+
/**
|
|
100
|
+
* Start value - either numeric or Column name
|
|
101
|
+
*/
|
|
102
|
+
MinValue: number | string;
|
|
103
|
+
/**
|
|
104
|
+
* End value - either numeric or Column name
|
|
105
|
+
*/
|
|
106
|
+
MaxValue: number | string;
|
|
107
|
+
/**
|
|
108
|
+
* Colour to use for the Comparison
|
|
109
|
+
*/
|
|
110
|
+
Color: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Array of CellTextOption available in Special Column Styles
|
|
114
|
+
*/
|
|
115
|
+
export declare type CellTextOptions = CellTextOption[];
|
|
116
|
+
/**
|
|
117
|
+
* Text optionally to show in a Special Column Style special style: 'CellValue' or 'PercentageValue'
|
|
118
|
+
*/
|
|
119
|
+
export declare type CellTextOption = 'CellValue' | 'PercentageValue';
|
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
import * as Redux from 'redux';
|
|
2
2
|
import { ConditionalStyleState, ConditionalStyle } from '../../PredefinedConfig/ConditionalStyleState';
|
|
3
|
-
/**
|
|
4
|
-
* @ReduxAction A Conditional Style has been added
|
|
5
|
-
*/
|
|
6
3
|
export declare const CONDITIONAL_STYLE_ADD = "CONDITIONAL_STYLE_ADD";
|
|
7
|
-
/**
|
|
8
|
-
* @ReduxAction A Conditional Style has been edited
|
|
9
|
-
*/
|
|
10
4
|
export declare const CONDITIONAL_STYLE_EDIT = "CONDITIONAL_STYLE_EDIT";
|
|
11
|
-
/**
|
|
12
|
-
* @ReduxAction A Conditional Style has been deleted
|
|
13
|
-
*/
|
|
14
5
|
export declare const CONDITIONAL_STYLE_DELETE = "CONDITIONAL_STYLE_DELETE";
|
|
15
|
-
/**
|
|
16
|
-
* @ReduxAction Conditional Style Module is ready
|
|
17
|
-
*/
|
|
18
6
|
export declare const CONDITIONAL_STYLE_READY = "CONDITIONAL_STYLE_READY";
|
|
19
|
-
/**
|
|
20
|
-
* @ReduxAction Conditional Style is suspended
|
|
21
|
-
*/
|
|
22
7
|
export declare const CONDITIONAL_STYLE_SUSPEND = "CONDITIONAL_STYLE_SUSPEND";
|
|
23
|
-
/**
|
|
24
|
-
* @ReduxAction Conditional Style is unsuspended, or activated
|
|
25
|
-
*/
|
|
26
8
|
export declare const CONDITIONAL_STYLE_UNSUSPEND = "CONDITIONAL_STYLE_UNSUSPEND";
|
|
27
9
|
export interface ConditionalStyleAction extends Redux.Action {
|
|
28
10
|
conditionalStyle: ConditionalStyle;
|
|
@@ -5,29 +5,11 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
7
7
|
const utils_1 = require("./utils");
|
|
8
|
-
/**
|
|
9
|
-
* @ReduxAction A Conditional Style has been added
|
|
10
|
-
*/
|
|
11
8
|
exports.CONDITIONAL_STYLE_ADD = 'CONDITIONAL_STYLE_ADD';
|
|
12
|
-
/**
|
|
13
|
-
* @ReduxAction A Conditional Style has been edited
|
|
14
|
-
*/
|
|
15
9
|
exports.CONDITIONAL_STYLE_EDIT = 'CONDITIONAL_STYLE_EDIT';
|
|
16
|
-
/**
|
|
17
|
-
* @ReduxAction A Conditional Style has been deleted
|
|
18
|
-
*/
|
|
19
10
|
exports.CONDITIONAL_STYLE_DELETE = 'CONDITIONAL_STYLE_DELETE';
|
|
20
|
-
/**
|
|
21
|
-
* @ReduxAction Conditional Style Module is ready
|
|
22
|
-
*/
|
|
23
11
|
exports.CONDITIONAL_STYLE_READY = 'CONDITIONAL_STYLE_READY';
|
|
24
|
-
/**
|
|
25
|
-
* @ReduxAction Conditional Style is suspended
|
|
26
|
-
*/
|
|
27
12
|
exports.CONDITIONAL_STYLE_SUSPEND = 'CONDITIONAL_STYLE_SUSPEND';
|
|
28
|
-
/**
|
|
29
|
-
* @ReduxAction Conditional Style is unsuspended, or activated
|
|
30
|
-
*/
|
|
31
13
|
exports.CONDITIONAL_STYLE_UNSUSPEND = 'CONDITIONAL_STYLE_UNSUSPEND';
|
|
32
14
|
const ConditionalStyleAdd = (conditionalStyle) => ({
|
|
33
15
|
type: exports.CONDITIONAL_STYLE_ADD,
|
|
@@ -4,6 +4,14 @@ import * as Redux from 'redux';
|
|
|
4
4
|
* @ReduxAction A Format Column has been added
|
|
5
5
|
*/
|
|
6
6
|
export declare const FORMAT_COLUMN_ADD = "FORMAT_COLUMN_ADD";
|
|
7
|
+
/**
|
|
8
|
+
* @ReduxAction Format column was moved up
|
|
9
|
+
*/
|
|
10
|
+
export declare const FORMAT_COLUMN_MOVE_UP = "FORMAT_COLUMN_MOVE_UP";
|
|
11
|
+
/**
|
|
12
|
+
* @ReduxAction Format column was moved down
|
|
13
|
+
*/
|
|
14
|
+
export declare const FORMAT_COLUMN_MOVE_DOWN = "FORMAT_COLUMN_MOVE_DOWN";
|
|
7
15
|
/**
|
|
8
16
|
* @ReduxAction A Format Column has been edited
|
|
9
17
|
*/
|
|
@@ -31,6 +39,10 @@ export interface FormatColumnAddAction extends FormatColumnAction {
|
|
|
31
39
|
}
|
|
32
40
|
export interface FormatColumnEditAction extends FormatColumnAction {
|
|
33
41
|
}
|
|
42
|
+
export interface FormatColumnMoveUpAction extends FormatColumnAction {
|
|
43
|
+
}
|
|
44
|
+
export interface FormatColumnMoveDownAction extends FormatColumnAction {
|
|
45
|
+
}
|
|
34
46
|
export interface FormatColumnDeleteAction extends FormatColumnAction {
|
|
35
47
|
}
|
|
36
48
|
export interface FormatColumnSuspendAction extends FormatColumnAction {
|
|
@@ -43,6 +55,8 @@ export interface FormatColumnReadyAction extends Redux.Action {
|
|
|
43
55
|
export declare const FormatColumnAdd: (formatColumn: FormatColumn) => FormatColumnAddAction;
|
|
44
56
|
export declare const FormatColumnEdit: (formatColumn: FormatColumn) => FormatColumnEditAction;
|
|
45
57
|
export declare const FormatColumnDelete: (formatColumn: FormatColumn) => FormatColumnDeleteAction;
|
|
58
|
+
export declare const FormatColumnMoveUp: (formatColumn: FormatColumn) => FormatColumnAddAction;
|
|
59
|
+
export declare const FormatColumnMoveDown: (formatColumn: FormatColumn) => FormatColumnAddAction;
|
|
46
60
|
export declare const FormatColumnSuspend: (formatColumn: FormatColumn) => FormatColumnSuspendAction;
|
|
47
61
|
export declare const FormatColumnUnSuspend: (formatColumn: FormatColumn) => FormatColumnSuspendAction;
|
|
48
62
|
export declare const FormatColumnReady: (formatColumnState: FormatColumnState) => FormatColumnReadyAction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormatColumnReducer = exports.FormatColumnReady = exports.FormatColumnUnSuspend = exports.FormatColumnSuspend = exports.FormatColumnDelete = exports.FormatColumnEdit = exports.FormatColumnAdd = exports.FORMAT_COLUMN_UNSUSPEND = exports.FORMAT_COLUMN_SUSPEND = exports.FORMAT_COLUMN_READY = exports.FORMAT_COLUMN_DELETE = exports.FORMAT_COLUMN_EDIT = exports.FORMAT_COLUMN_ADD = void 0;
|
|
3
|
+
exports.FormatColumnReducer = exports.FormatColumnReady = exports.FormatColumnUnSuspend = exports.FormatColumnSuspend = exports.FormatColumnMoveDown = exports.FormatColumnMoveUp = exports.FormatColumnDelete = exports.FormatColumnEdit = exports.FormatColumnAdd = exports.FORMAT_COLUMN_UNSUSPEND = exports.FORMAT_COLUMN_SUSPEND = exports.FORMAT_COLUMN_READY = exports.FORMAT_COLUMN_DELETE = exports.FORMAT_COLUMN_EDIT = exports.FORMAT_COLUMN_MOVE_DOWN = exports.FORMAT_COLUMN_MOVE_UP = exports.FORMAT_COLUMN_ADD = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
6
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -9,6 +9,14 @@ const utils_1 = require("./utils");
|
|
|
9
9
|
* @ReduxAction A Format Column has been added
|
|
10
10
|
*/
|
|
11
11
|
exports.FORMAT_COLUMN_ADD = 'FORMAT_COLUMN_ADD';
|
|
12
|
+
/**
|
|
13
|
+
* @ReduxAction Format column was moved up
|
|
14
|
+
*/
|
|
15
|
+
exports.FORMAT_COLUMN_MOVE_UP = 'FORMAT_COLUMN_MOVE_UP';
|
|
16
|
+
/**
|
|
17
|
+
* @ReduxAction Format column was moved down
|
|
18
|
+
*/
|
|
19
|
+
exports.FORMAT_COLUMN_MOVE_DOWN = 'FORMAT_COLUMN_MOVE_DOWN';
|
|
12
20
|
/**
|
|
13
21
|
* @ReduxAction A Format Column has been edited
|
|
14
22
|
*/
|
|
@@ -44,6 +52,16 @@ const FormatColumnDelete = (formatColumn) => ({
|
|
|
44
52
|
formatColumn,
|
|
45
53
|
});
|
|
46
54
|
exports.FormatColumnDelete = FormatColumnDelete;
|
|
55
|
+
const FormatColumnMoveUp = (formatColumn) => ({
|
|
56
|
+
type: exports.FORMAT_COLUMN_MOVE_UP,
|
|
57
|
+
formatColumn,
|
|
58
|
+
});
|
|
59
|
+
exports.FormatColumnMoveUp = FormatColumnMoveUp;
|
|
60
|
+
const FormatColumnMoveDown = (formatColumn) => ({
|
|
61
|
+
type: exports.FORMAT_COLUMN_MOVE_DOWN,
|
|
62
|
+
formatColumn,
|
|
63
|
+
});
|
|
64
|
+
exports.FormatColumnMoveDown = FormatColumnMoveDown;
|
|
47
65
|
const FormatColumnSuspend = (formatColumn) => ({
|
|
48
66
|
type: exports.FORMAT_COLUMN_SUSPEND,
|
|
49
67
|
formatColumn,
|
|
@@ -85,6 +103,30 @@ const FormatColumnReducer = (state = initialState, action) => {
|
|
|
85
103
|
case exports.FORMAT_COLUMN_UNSUSPEND: {
|
|
86
104
|
return Object.assign(Object.assign({}, state), { FormatColumns: (0, utils_1.changeIsSuspendInList)(action.formatColumn, state.FormatColumns, false) });
|
|
87
105
|
}
|
|
106
|
+
case exports.FORMAT_COLUMN_MOVE_UP: {
|
|
107
|
+
const index = state.FormatColumns.findIndex((formatColumn) => formatColumn.Uuid === action.formatColumn.Uuid);
|
|
108
|
+
let swapIndex = index - 1;
|
|
109
|
+
if (swapIndex < 0) {
|
|
110
|
+
swapIndex = state.FormatColumns.length - 1;
|
|
111
|
+
}
|
|
112
|
+
const formatColumnToSwap = state.FormatColumns[swapIndex];
|
|
113
|
+
const newFormatColumns = [...state.FormatColumns];
|
|
114
|
+
newFormatColumns[swapIndex] = state.FormatColumns[index];
|
|
115
|
+
newFormatColumns[index] = formatColumnToSwap;
|
|
116
|
+
return Object.assign(Object.assign({}, state), { FormatColumns: newFormatColumns });
|
|
117
|
+
}
|
|
118
|
+
case exports.FORMAT_COLUMN_MOVE_DOWN: {
|
|
119
|
+
const index = state.FormatColumns.findIndex((formatColumn) => formatColumn.Uuid === action.formatColumn.Uuid);
|
|
120
|
+
let swapIndex = index + 1;
|
|
121
|
+
if (swapIndex > state.FormatColumns.length - 1) {
|
|
122
|
+
swapIndex = 0;
|
|
123
|
+
}
|
|
124
|
+
const formatColumnToSwap = state.FormatColumns[swapIndex];
|
|
125
|
+
const newFormatColumns = [...state.FormatColumns];
|
|
126
|
+
newFormatColumns[swapIndex] = state.FormatColumns[index];
|
|
127
|
+
newFormatColumns[index] = formatColumnToSwap;
|
|
128
|
+
return Object.assign(Object.assign({}, state), { FormatColumns: newFormatColumns });
|
|
129
|
+
}
|
|
88
130
|
default:
|
|
89
131
|
return state;
|
|
90
132
|
}
|
|
@@ -162,19 +162,19 @@ export declare const GLUE42_LIVE_REPORT_CLEAR = "GLUE42_LIVE_REPORT_CLEAR";
|
|
|
162
162
|
/**
|
|
163
163
|
* @ReduxAction Glue43 is now available
|
|
164
164
|
*/
|
|
165
|
-
export declare const
|
|
165
|
+
export declare const GLUE42_SET_AVAILABLE_ON = "GLUE42_SET_AVAILABLE_ON";
|
|
166
166
|
/**
|
|
167
167
|
* @ReduxAction Glue43 is no longer available
|
|
168
168
|
*/
|
|
169
|
-
export declare const
|
|
169
|
+
export declare const GLUE42_SET_AVAILABLE_OFF = "GLUE42_SET_AVAILABLE_OFF";
|
|
170
170
|
/**
|
|
171
171
|
* @ReduxAction Glue43 is now running
|
|
172
172
|
*/
|
|
173
|
-
export declare const
|
|
173
|
+
export declare const GLUE42_SET_RUNNING_ON = "GLUE42_SET_RUNNING_ON";
|
|
174
174
|
/**
|
|
175
175
|
* @ReduxAction Glue43 is no longer running
|
|
176
176
|
*/
|
|
177
|
-
export declare const
|
|
177
|
+
export declare const GLUE42_SET_RUNNING_OFF = "SET_GLGLUE42_SET_RUNNING_OFFUE42_RUNNING_OFF";
|
|
178
178
|
export interface PluginsAction extends Redux.Action {
|
|
179
179
|
pluginState: any;
|
|
180
180
|
pluginId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PluginsReducer = exports.PluginsSetPluginState = exports.
|
|
3
|
+
exports.PluginsReducer = exports.PluginsSetPluginState = exports.GLUE42_SET_RUNNING_OFF = exports.GLUE42_SET_RUNNING_ON = exports.GLUE42_SET_AVAILABLE_OFF = exports.GLUE42_SET_AVAILABLE_ON = exports.GLUE42_LIVE_REPORT_CLEAR = exports.GLUE42_LIVE_REPORT_SET = exports.GLUE42_STOP_LIVE_DATA = exports.GLUE42_START_LIVE_DATA = exports.GLUE42_SEND_SNAPSHOT = exports.GLUE42_SET_THROTTLE_TIME = exports.GLUE42_SET_LOGIN_ERROR_MESSAGE = exports.GLUE42_LOGIN = exports.OPENFIN_SET_CURRENT_REPORTNAME = exports.OPENFIN_SET_RUNNING_OFF = exports.OPENFIN_SET_RUNNING_ON = exports.OPENFIN_SET_AVAILABLE_OFF = exports.OPENFIN_SET_AVAILABLE_ON = exports.OPENFIN_LIVE_REPORT_CLEAR = exports.OPENFIN_LIVE_REPORT_SET = exports.OPENFIN_STOP_LIVE_DATA = exports.OPENFIN_START_LIVE_DATA = exports.IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES = exports.IPUSHPULL_SET_CURRENT_PAGE = exports.IPUSHPULL_SET_CURRENT_FOLDER = exports.IPUSHPULL_SET_CURRENT_REPORTNAME = exports.IPUSHPULL_DOMAIN_PAGES_CLEAR = exports.IPUSHPULL_DOMAIN_PAGES_SET = exports.IPUSHPULL_LIVE_REPORT_CLEAR = exports.IPUSHPULL_LIVE_REPORT_SET = exports.IPUSHPULL_SET_RUNNING_OFF = exports.IPUSHPULL_SET_RUNNING_ON = exports.IPUSHPULL_SET_AVAILABLE_OFF = exports.IPUSHPULL_SET_AVAILABLE_ON = exports.IPUSHPULL_SET_LOGIN_DETAILS = exports.IPUSHPULL_SET_LOGIN_ERROR_MESSAGE = exports.IPUSHPULL_LOGOUT = exports.IPUSHPULL_LOGIN = exports.IPUSHPULL_ADD_PAGE = exports.IPUSHPULL_STOP_LIVE_DATA = exports.IPUSHPULL_START_LIVE_DATA = exports.IPUSHPULL_REPORT_SELECT = exports.IPUSHPULL_SEND_SNAPSHOT = exports.IPUSHPULL_SET_THROTTLE_TIME = exports.PLUGINS_SET_PLUGIN_STATE = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @ReduxAction Plugins have been instantiated
|
|
6
6
|
*/
|
|
@@ -164,19 +164,19 @@ exports.GLUE42_LIVE_REPORT_CLEAR = 'GLUE42_LIVE_REPORT_CLEAR';
|
|
|
164
164
|
/**
|
|
165
165
|
* @ReduxAction Glue43 is now available
|
|
166
166
|
*/
|
|
167
|
-
exports.
|
|
167
|
+
exports.GLUE42_SET_AVAILABLE_ON = 'GLUE42_SET_AVAILABLE_ON';
|
|
168
168
|
/**
|
|
169
169
|
* @ReduxAction Glue43 is no longer available
|
|
170
170
|
*/
|
|
171
|
-
exports.
|
|
171
|
+
exports.GLUE42_SET_AVAILABLE_OFF = 'GLUE42_SET_AVAILABLE_OFF';
|
|
172
172
|
/**
|
|
173
173
|
* @ReduxAction Glue43 is now running
|
|
174
174
|
*/
|
|
175
|
-
exports.
|
|
175
|
+
exports.GLUE42_SET_RUNNING_ON = 'GLUE42_SET_RUNNING_ON';
|
|
176
176
|
/**
|
|
177
177
|
* @ReduxAction Glue43 is no longer running
|
|
178
178
|
*/
|
|
179
|
-
exports.
|
|
179
|
+
exports.GLUE42_SET_RUNNING_OFF = 'SET_GLGLUE42_SET_RUNNING_OFFUE42_RUNNING_OFF';
|
|
180
180
|
const PluginsSetPluginState = (pluginId, pluginState) => ({
|
|
181
181
|
type: exports.PLUGINS_SET_PLUGIN_STATE,
|
|
182
182
|
pluginId,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { StyledColumnState, StyledColumn } from '../../PredefinedConfig/StyledColumnState';
|
|
2
|
+
import * as Redux from 'redux';
|
|
3
|
+
/**
|
|
4
|
+
* @ReduxAction A Special Column Style has been added
|
|
5
|
+
*/
|
|
6
|
+
export declare const STYLED_COLUMN_ADD = "STYLED_COLUMN_ADD";
|
|
7
|
+
/**
|
|
8
|
+
* @ReduxAction A Special Column Style has been edited
|
|
9
|
+
*/
|
|
10
|
+
export declare const STYLED_COLUMN_EDIT = "STYLED_COLUMN_EDIT";
|
|
11
|
+
/**
|
|
12
|
+
* @ReduxAction A Special Column Style has been deleted
|
|
13
|
+
*/
|
|
14
|
+
export declare const STYLED_COLUMN_DELETE = "STYLED_COLUMN_DELETE";
|
|
15
|
+
/**
|
|
16
|
+
* @ReduxAction StyledColumn Module is ready
|
|
17
|
+
*/
|
|
18
|
+
export declare const STYLED_COLUMN_READY = "STYLED_COLUMN_READY";
|
|
19
|
+
/**
|
|
20
|
+
* @ReduxAction StyledColumn Module is suspended
|
|
21
|
+
*/
|
|
22
|
+
export declare const STYLED_COLUMN_SUSPEND = "STYLED_COLUMN_SUSPEND";
|
|
23
|
+
/**
|
|
24
|
+
* @ReduxAction StyledColumn Module is unsuspended, or activated
|
|
25
|
+
*/
|
|
26
|
+
export declare const STYLED_COLUMN_UNSUSPEND = "STYLED_COLUMN_UNSUSPEND";
|
|
27
|
+
export interface StyledColumnAction extends Redux.Action {
|
|
28
|
+
StyledColumn: StyledColumn;
|
|
29
|
+
}
|
|
30
|
+
export interface StyledColumnAddAction extends StyledColumnAction {
|
|
31
|
+
}
|
|
32
|
+
export interface StyledColumnEditAction extends StyledColumnAction {
|
|
33
|
+
}
|
|
34
|
+
export interface StyledColumnDeleteAction extends StyledColumnAction {
|
|
35
|
+
}
|
|
36
|
+
export interface StyledColumnSuspendAction extends StyledColumnAction {
|
|
37
|
+
}
|
|
38
|
+
export interface StyledColumnUnSuspendAction extends StyledColumnAction {
|
|
39
|
+
}
|
|
40
|
+
export interface StyledColumnReadyAction extends Redux.Action {
|
|
41
|
+
StyledColumnState: StyledColumnState;
|
|
42
|
+
}
|
|
43
|
+
export declare const StyledColumnAdd: (formatColumn: StyledColumn) => StyledColumnAddAction;
|
|
44
|
+
export declare const StyledColumnEdit: (formatColumn: StyledColumn) => StyledColumnEditAction;
|
|
45
|
+
export declare const StyledColumnDelete: (formatColumn: StyledColumn) => StyledColumnDeleteAction;
|
|
46
|
+
export declare const StyledColumnSuspend: (formatColumn: StyledColumn) => StyledColumnSuspendAction;
|
|
47
|
+
export declare const StyledColumnUnSuspend: (formatColumn: StyledColumn) => StyledColumnSuspendAction;
|
|
48
|
+
export declare const StyledColumnReady: (formatColumnState: StyledColumnState) => StyledColumnReadyAction;
|
|
49
|
+
export declare const StyledColumnReducer: Redux.Reducer<StyledColumnState>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledColumnReducer = exports.StyledColumnReady = exports.StyledColumnUnSuspend = exports.StyledColumnSuspend = exports.StyledColumnDelete = exports.StyledColumnEdit = exports.StyledColumnAdd = exports.STYLED_COLUMN_UNSUSPEND = exports.STYLED_COLUMN_SUSPEND = exports.STYLED_COLUMN_READY = exports.STYLED_COLUMN_DELETE = exports.STYLED_COLUMN_EDIT = exports.STYLED_COLUMN_ADD = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
6
|
+
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
7
|
+
const utils_1 = require("./utils");
|
|
8
|
+
/**
|
|
9
|
+
* @ReduxAction A Special Column Style has been added
|
|
10
|
+
*/
|
|
11
|
+
exports.STYLED_COLUMN_ADD = 'STYLED_COLUMN_ADD';
|
|
12
|
+
/**
|
|
13
|
+
* @ReduxAction A Special Column Style has been edited
|
|
14
|
+
*/
|
|
15
|
+
exports.STYLED_COLUMN_EDIT = 'STYLED_COLUMN_EDIT';
|
|
16
|
+
/**
|
|
17
|
+
* @ReduxAction A Special Column Style has been deleted
|
|
18
|
+
*/
|
|
19
|
+
exports.STYLED_COLUMN_DELETE = 'STYLED_COLUMN_DELETE';
|
|
20
|
+
/**
|
|
21
|
+
* @ReduxAction StyledColumn Module is ready
|
|
22
|
+
*/
|
|
23
|
+
exports.STYLED_COLUMN_READY = 'STYLED_COLUMN_READY';
|
|
24
|
+
/**
|
|
25
|
+
* @ReduxAction StyledColumn Module is suspended
|
|
26
|
+
*/
|
|
27
|
+
exports.STYLED_COLUMN_SUSPEND = 'STYLED_COLUMN_SUSPEND';
|
|
28
|
+
/**
|
|
29
|
+
* @ReduxAction StyledColumn Module is unsuspended, or activated
|
|
30
|
+
*/
|
|
31
|
+
exports.STYLED_COLUMN_UNSUSPEND = 'STYLED_COLUMN_UNSUSPEND';
|
|
32
|
+
const StyledColumnAdd = (formatColumn) => ({
|
|
33
|
+
type: exports.STYLED_COLUMN_ADD,
|
|
34
|
+
StyledColumn: formatColumn,
|
|
35
|
+
});
|
|
36
|
+
exports.StyledColumnAdd = StyledColumnAdd;
|
|
37
|
+
const StyledColumnEdit = (formatColumn) => ({
|
|
38
|
+
type: exports.STYLED_COLUMN_EDIT,
|
|
39
|
+
StyledColumn: formatColumn,
|
|
40
|
+
});
|
|
41
|
+
exports.StyledColumnEdit = StyledColumnEdit;
|
|
42
|
+
const StyledColumnDelete = (formatColumn) => ({
|
|
43
|
+
type: exports.STYLED_COLUMN_DELETE,
|
|
44
|
+
StyledColumn: formatColumn,
|
|
45
|
+
});
|
|
46
|
+
exports.StyledColumnDelete = StyledColumnDelete;
|
|
47
|
+
const StyledColumnSuspend = (formatColumn) => ({
|
|
48
|
+
type: exports.STYLED_COLUMN_SUSPEND,
|
|
49
|
+
StyledColumn: formatColumn,
|
|
50
|
+
});
|
|
51
|
+
exports.StyledColumnSuspend = StyledColumnSuspend;
|
|
52
|
+
const StyledColumnUnSuspend = (formatColumn) => ({
|
|
53
|
+
type: exports.STYLED_COLUMN_UNSUSPEND,
|
|
54
|
+
StyledColumn: formatColumn,
|
|
55
|
+
});
|
|
56
|
+
exports.StyledColumnUnSuspend = StyledColumnUnSuspend;
|
|
57
|
+
const StyledColumnReady = (formatColumnState) => ({
|
|
58
|
+
type: exports.STYLED_COLUMN_READY,
|
|
59
|
+
StyledColumnState: formatColumnState,
|
|
60
|
+
});
|
|
61
|
+
exports.StyledColumnReady = StyledColumnReady;
|
|
62
|
+
const initialState = {
|
|
63
|
+
StyledColumns: GeneralConstants_1.EMPTY_ARRAY,
|
|
64
|
+
};
|
|
65
|
+
const StyledColumnReducer = (state = initialState, action) => {
|
|
66
|
+
let formatColumns;
|
|
67
|
+
switch (action.type) {
|
|
68
|
+
case exports.STYLED_COLUMN_ADD: {
|
|
69
|
+
const actionStyledColumn = action.StyledColumn;
|
|
70
|
+
AdaptableHelper_1.default.addUuidAndSource(actionStyledColumn);
|
|
71
|
+
formatColumns = [].concat(state.StyledColumns);
|
|
72
|
+
formatColumns.push(actionStyledColumn);
|
|
73
|
+
return Object.assign(Object.assign({}, state), { StyledColumns: formatColumns });
|
|
74
|
+
}
|
|
75
|
+
case exports.STYLED_COLUMN_EDIT:
|
|
76
|
+
const actionStyledColumn = action.StyledColumn;
|
|
77
|
+
return Object.assign(Object.assign({}, state), { StyledColumns: state.StyledColumns.map((abObject) => abObject.Uuid === actionStyledColumn.Uuid ? actionStyledColumn : abObject) });
|
|
78
|
+
case exports.STYLED_COLUMN_DELETE: {
|
|
79
|
+
const actionStyledColumn = action.StyledColumn;
|
|
80
|
+
return Object.assign(Object.assign({}, state), { StyledColumns: state.StyledColumns.filter((abObject) => abObject.Uuid !== actionStyledColumn.Uuid) });
|
|
81
|
+
}
|
|
82
|
+
case exports.STYLED_COLUMN_SUSPEND: {
|
|
83
|
+
return Object.assign(Object.assign({}, state), { StyledColumns: (0, utils_1.changeIsSuspendInList)(action.StyledColumn, state.StyledColumns, true) });
|
|
84
|
+
}
|
|
85
|
+
case exports.STYLED_COLUMN_UNSUSPEND: {
|
|
86
|
+
return Object.assign(Object.assign({}, state), { StyledColumns: (0, utils_1.changeIsSuspendInList)(action.StyledColumn, state.StyledColumns, false) });
|
|
87
|
+
}
|
|
88
|
+
default:
|
|
89
|
+
return state;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
exports.StyledColumnReducer = StyledColumnReducer;
|
|
@@ -24,6 +24,7 @@ const ConditionalStyleRedux = tslib_1.__importStar(require("../ActionsReducers/C
|
|
|
24
24
|
const QuickSearchRedux = tslib_1.__importStar(require("../ActionsReducers/QuickSearchRedux"));
|
|
25
25
|
const ThemeRedux = tslib_1.__importStar(require("../ActionsReducers/ThemeRedux"));
|
|
26
26
|
const FormatColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FormatColumnRedux"));
|
|
27
|
+
const StyledColumnRedux = tslib_1.__importStar(require("../ActionsReducers/StyledColumnRedux"));
|
|
27
28
|
const ApplicationRedux = tslib_1.__importStar(require("../ActionsReducers/ApplicationRedux"));
|
|
28
29
|
const FreeTextColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FreeTextColumnRedux"));
|
|
29
30
|
const LayoutRedux = tslib_1.__importStar(require("../ActionsReducers/LayoutRedux"));
|
|
@@ -148,6 +149,7 @@ class AdaptableStore {
|
|
|
148
149
|
ToolPanel: ToolPanelRedux.ToolPanelReducer,
|
|
149
150
|
Query: QueryRedux.QueryReducer,
|
|
150
151
|
Charting: ChartingRedux.ChartingReducer,
|
|
152
|
+
StyledColumn: StyledColumnRedux.StyledColumnReducer,
|
|
151
153
|
// dead reducers
|
|
152
154
|
PercentBar: DeadRedux.PercentBarReducer,
|
|
153
155
|
UpdatedRow: DeadRedux.UpdatedRowReducer,
|
|
@@ -657,8 +659,15 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
657
659
|
case FormatColumnRedux.FORMAT_COLUMN_ADD:
|
|
658
660
|
case FormatColumnRedux.FORMAT_COLUMN_EDIT:
|
|
659
661
|
case FormatColumnRedux.FORMAT_COLUMN_DELETE:
|
|
662
|
+
case FormatColumnRedux.FORMAT_COLUMN_MOVE_DOWN:
|
|
663
|
+
case FormatColumnRedux.FORMAT_COLUMN_MOVE_UP:
|
|
660
664
|
case FormatColumnRedux.FORMAT_COLUMN_SUSPEND:
|
|
661
665
|
case FormatColumnRedux.FORMAT_COLUMN_UNSUSPEND:
|
|
666
|
+
case StyledColumnRedux.STYLED_COLUMN_ADD:
|
|
667
|
+
case StyledColumnRedux.STYLED_COLUMN_EDIT:
|
|
668
|
+
case StyledColumnRedux.STYLED_COLUMN_DELETE:
|
|
669
|
+
case StyledColumnRedux.STYLED_COLUMN_SUSPEND:
|
|
670
|
+
case StyledColumnRedux.STYLED_COLUMN_UNSUSPEND:
|
|
662
671
|
case CustomSortRedux.CUSTOM_SORT_ADD:
|
|
663
672
|
case CustomSortRedux.CUSTOM_SORT_EDIT:
|
|
664
673
|
case CustomSortRedux.CUSTOM_SORT_DELETE:
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
2
2
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
-
import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
4
3
|
import { ConditionalStyle } from '../PredefinedConfig/ConditionalStyleState';
|
|
5
4
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
6
5
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
@@ -15,7 +14,6 @@ export declare class ConditionalStyleModule extends AdaptableModuleBase implemen
|
|
|
15
14
|
getExplicitlyReferencedColumnIds(conditionalStyle: ConditionalStyle): string[];
|
|
16
15
|
getReferencedNamedQueryNames(conditionalStyle: ConditionalStyle): string[];
|
|
17
16
|
updateOldConfig(): void;
|
|
18
|
-
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
19
17
|
getTeamSharingAction(): TeamSharingImportInfo<ConditionalStyle>;
|
|
20
18
|
isConditionalStyleActiveForColumn(conditionalStyleForColumn: ConditionalStyle, column: AdaptableColumn, params: any): boolean;
|
|
21
19
|
isConditionalStyleActiveForRow(conditionalStyleForRow: ConditionalStyle, params: any): boolean;
|
|
@@ -9,10 +9,10 @@ const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
|
9
9
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
10
10
|
const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
|
|
11
11
|
const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
|
|
12
|
-
const ConditionalStyleWizard_1 = require("../View/ConditionalStyle/Wizard/ConditionalStyleWizard");
|
|
13
12
|
const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
14
13
|
const getStyleViewItems_1 = require("./Utilities/getStyleViewItems");
|
|
15
14
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
15
|
+
const ConditionalStylePopupHeader_1 = require("../View/ConditionalStyle/ConditionalStylePopupHeader");
|
|
16
16
|
class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
17
17
|
constructor(api) {
|
|
18
18
|
super(ModuleConstants.ConditionalStyleModuleId, ModuleConstants.ConditionalStyleFriendlyName, 'conditional-style', 'ConditionalStylePopup', 'Style columns and rows dynamically based on rules and cell values', api);
|
|
@@ -78,25 +78,6 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
78
78
|
});
|
|
79
79
|
this.api.conditionalStyleApi.editConditionalStyles(oldConditionalStyles);
|
|
80
80
|
}
|
|
81
|
-
addColumnMenuItems(column) {
|
|
82
|
-
if (column && this.isModuleEditable() && !column.isSparkline) {
|
|
83
|
-
let conditionalStyles = this.api.conditionalStyleApi.getConditionalStylesForColumn(column);
|
|
84
|
-
let firstConditionalStyle = ArrayExtensions_1.default.IsNotNullOrEmpty(conditionalStyles)
|
|
85
|
-
? conditionalStyles.find((cs) => this.api.scopeApi.isColumnInScopeColumns(column, cs.Scope))
|
|
86
|
-
: undefined;
|
|
87
|
-
let conditionalStyleExists = firstConditionalStyle != undefined;
|
|
88
|
-
let label = conditionalStyleExists ? 'Edit ' : 'Create ';
|
|
89
|
-
let popupParam = {
|
|
90
|
-
column: column,
|
|
91
|
-
action: conditionalStyleExists ? 'Edit' : 'New',
|
|
92
|
-
source: 'ColumnMenu',
|
|
93
|
-
value: firstConditionalStyle,
|
|
94
|
-
};
|
|
95
|
-
return [
|
|
96
|
-
this.createColumnMenuItemShowPopup(label + this.moduleInfo.FriendlyName, this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam),
|
|
97
|
-
];
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
81
|
getTeamSharingAction() {
|
|
101
82
|
return {
|
|
102
83
|
ModuleEntities: this.api.conditionalStyleApi.getAllConditionalStyle(),
|
|
@@ -209,13 +190,8 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
209
190
|
}
|
|
210
191
|
getViewProperties() {
|
|
211
192
|
return {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
getUnSuspendAction: (conditionalStyle) => ConditionalStyleRedux.ConditionalStyleUnSuspend(conditionalStyle),
|
|
215
|
-
emptyView: "Click 'New' to create a new Conditional Style Rule. When this is met, row or cells in the Conditional Style's scope will be styled appropriately.",
|
|
216
|
-
getEditWizard() {
|
|
217
|
-
return ConditionalStyleWizard_1.ConditionalStyleWizard;
|
|
218
|
-
},
|
|
193
|
+
HeaderComponent: ConditionalStylePopupHeader_1.ConditionalStylePopupHeader,
|
|
194
|
+
emptyView: '',
|
|
219
195
|
};
|
|
220
196
|
}
|
|
221
197
|
canBeAssociatedWithLayouts() {
|
|
@@ -3,6 +3,7 @@ import { AdaptableModuleView, IModule } from './Interface/IModule';
|
|
|
3
3
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
4
4
|
export declare class DataChangeHistoryModule extends AdaptableModuleBase implements IModule {
|
|
5
5
|
constructor(api: AdaptableApi);
|
|
6
|
+
isModuleAvailable(): boolean;
|
|
6
7
|
getPopupMaxWidth(): number;
|
|
7
8
|
hasNamedQueryReferences(): boolean;
|
|
8
9
|
private shouldLogDataChange;
|
|
@@ -6,6 +6,8 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const SystemRedux_1 = require("../Redux/ActionsReducers/SystemRedux");
|
|
8
8
|
const DataChangeHistoryStatusBarContent_1 = require("../View/DataChangeHistory/DataChangeHistoryStatusBarContent");
|
|
9
|
+
const core_1 = require("@ag-grid-community/core");
|
|
10
|
+
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
9
11
|
class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
10
12
|
constructor(api) {
|
|
11
13
|
super(ModuleConstants.DataChangeHistoryModuleId, ModuleConstants.DataChangeHistoryFriendlyName, 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
|
|
@@ -19,6 +21,16 @@ class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase
|
|
|
19
21
|
}
|
|
20
22
|
});
|
|
21
23
|
}
|
|
24
|
+
isModuleAvailable() {
|
|
25
|
+
const isAdaptableModuleAvailable = super.isModuleAvailable();
|
|
26
|
+
const isAgGridModuleAvailable = this.api.internalApi
|
|
27
|
+
.getAdaptableInstance()
|
|
28
|
+
.isAgGridModulePresent(core_1.ModuleNames.ClientSideRowModelModule);
|
|
29
|
+
if (isAdaptableModuleAvailable && !isAgGridModuleAvailable) {
|
|
30
|
+
(0, LoggingHelper_1.LogAdaptableWarning)(`Data Change History is NOT available due to missing required AG Grid module: ${core_1.ModuleNames.ClientSideRowModelModule}`);
|
|
31
|
+
}
|
|
32
|
+
return isAdaptableModuleAvailable && isAgGridModuleAvailable;
|
|
33
|
+
}
|
|
22
34
|
getPopupMaxWidth() {
|
|
23
35
|
return 1000;
|
|
24
36
|
}
|