@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
package/src/Api/InternalApi.d.ts
CHANGED
|
@@ -144,5 +144,5 @@ export interface InternalApi {
|
|
|
144
144
|
getValueForTag(adaptableObjectTag: AdaptableObjectTag): string | number;
|
|
145
145
|
getEditLookUpValuesForColumn(editLookUpItem: EditLookUpPermittedValues, column: AdaptableColumn, gridCell?: GridCell): any[] | undefined;
|
|
146
146
|
getAdaptableQueryExpressionText(query: Partial<AdaptableQuery>): string;
|
|
147
|
-
|
|
147
|
+
deleteConditionalStyles(conditionalStyles: any[]): void;
|
|
148
148
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
2
2
|
import { AdaptableQuery } from '../PredefinedConfig/Common/AdaptableQuery';
|
|
3
|
+
import { AdaptableColumnBase } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
4
|
/**
|
|
4
5
|
* Functions related to AdapTableQL (the Adaptable Query Language)
|
|
5
6
|
*/
|
|
@@ -38,9 +39,9 @@ export interface QueryLanguageApi {
|
|
|
38
39
|
*/
|
|
39
40
|
getColumnsFromExpression(expression: string): string[];
|
|
40
41
|
/**
|
|
41
|
-
* Returns
|
|
42
|
+
* Returns whether a Column is Queryable
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
isColumnQueryable(adaptableColumnBase: AdaptableColumnBase): boolean;
|
|
44
45
|
/**
|
|
45
46
|
* Runs the AST that AdapTableQL creates for an Expression - useful when evaluating remotely
|
|
46
47
|
* @param expression expression to be run
|
package/src/Api/ScopeApi.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
2
2
|
import { AdaptableScope, ScopeDataType } from '../PredefinedConfig/Common/AdaptableScope';
|
|
3
|
-
import { CellColorRange } from '../PredefinedConfig/
|
|
3
|
+
import { CellColorRange } from '../PredefinedConfig/StyledColumnState';
|
|
4
4
|
/**
|
|
5
5
|
* Provides access to a suite of functions related to the `Scope` object
|
|
6
6
|
*/
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { RowNode } from '@ag-grid-community/core/dist/cjs/es5/entities/rowNode';
|
|
2
|
+
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
+
import { StyledColumnState, StyledColumn, CellColorRange, ColumnComparison } from '../PredefinedConfig/StyledColumnState';
|
|
4
|
+
/**
|
|
5
|
+
* Provides run-time access to Styled Column Module and associated state
|
|
6
|
+
*/
|
|
7
|
+
export interface StyledColumnApi {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves Styled Column section from Adaptable State
|
|
10
|
+
*/
|
|
11
|
+
getStyledColumnState(): StyledColumnState;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves all Styled Columns in Adaptable State
|
|
14
|
+
* @returns Styled Columns
|
|
15
|
+
*/
|
|
16
|
+
getAllStyledColumn(config?: {
|
|
17
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
18
|
+
}): StyledColumn[];
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves Styled Column by Id
|
|
21
|
+
* @param id Styled Column id
|
|
22
|
+
* @returns Styled Column
|
|
23
|
+
*/
|
|
24
|
+
getStyledColumnById(id: StyledColumn['Uuid']): StyledColumn;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves Styled Column by Column Id
|
|
27
|
+
* @param columnId Styled Column id
|
|
28
|
+
* @returns Styled Column
|
|
29
|
+
*/
|
|
30
|
+
getStyledColumnByColumnId(columnId: StyledColumn['ColumnId']): StyledColumn;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves all active (not-suspended) Styled Columns in Adaptable State
|
|
33
|
+
* @returns Styled Columns
|
|
34
|
+
*/
|
|
35
|
+
getAllActiveStyledColumn(): StyledColumn[];
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves all suspended Styled Columns in Adaptable State
|
|
38
|
+
* @returns Styled Columns
|
|
39
|
+
*/
|
|
40
|
+
getAllSuspendedStyledColumn(): StyledColumn[];
|
|
41
|
+
/**
|
|
42
|
+
* Delete a Styled column
|
|
43
|
+
* @param styledColumn
|
|
44
|
+
*/
|
|
45
|
+
deleteStyledColumn(styledColumn: StyledColumn): void;
|
|
46
|
+
/**
|
|
47
|
+
* Create a Styled column
|
|
48
|
+
* @param styledColumn
|
|
49
|
+
*/
|
|
50
|
+
addStyledColumn(styledColumn: StyledColumn): void;
|
|
51
|
+
/**
|
|
52
|
+
* Gets the Minimum Value to display for a Styled Column
|
|
53
|
+
* @param styledColumn Styled Column to check
|
|
54
|
+
* @param rowNode current Row Node
|
|
55
|
+
* @param cellValue current Cell Value
|
|
56
|
+
*/
|
|
57
|
+
getNumericStyleMinValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the Maximum Value to display for a Styled Column
|
|
60
|
+
* @param styledColumn Styled Column to check
|
|
61
|
+
* @param rowNode current Row Node
|
|
62
|
+
* @param cellValue current Cell Value
|
|
63
|
+
*/
|
|
64
|
+
getNumericStyleMaxValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the smallest number in a Range
|
|
67
|
+
* @param range Range to check
|
|
68
|
+
* @param column current Column
|
|
69
|
+
*/
|
|
70
|
+
getCellColorRangeMinValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the largest number in a Range
|
|
73
|
+
* @param range Range to check
|
|
74
|
+
* @param column current Column
|
|
75
|
+
*/
|
|
76
|
+
getCellColorRangeMaxValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Retrieves the ColumnComparison property, if there, from a Styled Column
|
|
79
|
+
* @param styledColumn Styled Column to Add
|
|
80
|
+
*/
|
|
81
|
+
getColumnComparisonForStyledColumn(styledColumn: StyledColumn): ColumnComparison | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Returns any ColumnIds referenced in a Column Comparison
|
|
84
|
+
* @param columnComparision Column Comparison to check
|
|
85
|
+
*/
|
|
86
|
+
getColumnIdsFromColumnComparison(columnComparision: ColumnComparison): string[];
|
|
87
|
+
/**
|
|
88
|
+
* Returns first Styled Column that contains checkbox style
|
|
89
|
+
* @param columnId column to check
|
|
90
|
+
*/
|
|
91
|
+
getCheckBoxStyleStyledColumn(column: AdaptableColumn): StyledColumn | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Whether given column is a (boolean) checkbox column
|
|
94
|
+
* @param columnId column to check
|
|
95
|
+
*/
|
|
96
|
+
isCheckBoxStyleStyledColumn(column: AdaptableColumn): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Publishes the CheckboxColumnClickedEvent - when the checkbox in an Checkbox Column is clicked
|
|
99
|
+
*/
|
|
100
|
+
fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
|
|
101
|
+
/**
|
|
102
|
+
* Returns a Styled Column for a given column
|
|
103
|
+
* @param column Column to check
|
|
104
|
+
*/
|
|
105
|
+
getActiveStyledColumnForColumn(column: AdaptableColumn): StyledColumn | undefined;
|
|
106
|
+
}
|
|
File without changes
|
|
@@ -23,6 +23,7 @@ import { QueryState } from './QueryState';
|
|
|
23
23
|
import { FlashingCellState } from './FlashingCellState';
|
|
24
24
|
import { StatusBarState } from './StatusBarState';
|
|
25
25
|
import { ChartingState } from './ChartingState';
|
|
26
|
+
import { StyledColumnState } from './StyledColumnState';
|
|
26
27
|
/**
|
|
27
28
|
* The main state object of Adaptable
|
|
28
29
|
*/
|
|
@@ -48,6 +49,7 @@ export interface AdaptablePersistentState {
|
|
|
48
49
|
Query: QueryState;
|
|
49
50
|
QuickSearch: QuickSearchState;
|
|
50
51
|
Schedule: ScheduleState;
|
|
52
|
+
StyledColumn: StyledColumnState;
|
|
51
53
|
Shortcut: ShortcutState;
|
|
52
54
|
StatusBar: StatusBarState;
|
|
53
55
|
TeamSharing: TeamSharingState;
|
|
@@ -51,4 +51,4 @@ export interface AdaptableBaseIcon {
|
|
|
51
51
|
/**
|
|
52
52
|
* All AdapTable internal icon names
|
|
53
53
|
*/
|
|
54
|
-
export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
|
|
54
|
+
export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'brush' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
|
|
@@ -22,15 +22,15 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
|
|
|
22
22
|
/**
|
|
23
23
|
* List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button
|
|
24
24
|
*/
|
|
25
|
-
export declare type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
25
|
+
export declare type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
26
26
|
export declare type AdaptableStateKeys = AdaptableStateKey[];
|
|
27
27
|
export declare type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFin' | 'Glue42' | 'IPushPull';
|
|
28
28
|
/**
|
|
29
29
|
* Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
|
|
30
30
|
*/
|
|
31
|
-
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
31
|
+
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
32
32
|
export declare const ALL_MODULES: AdaptableModule[];
|
|
33
|
-
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
33
|
+
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
34
34
|
export declare type TypeHint<Base, Literals> = (Base & {
|
|
35
35
|
__subType?: true;
|
|
36
36
|
}) | Literals;
|
|
@@ -102,6 +102,7 @@ exports.ALL_MODULES = [
|
|
|
102
102
|
ModuleConstants.SettingsPanelModuleId,
|
|
103
103
|
ModuleConstants.ShortcutModuleId,
|
|
104
104
|
ModuleConstants.SmartEditModuleId,
|
|
105
|
+
ModuleConstants.StyledColumnModuleId,
|
|
105
106
|
ModuleConstants.StateManagementModuleId,
|
|
106
107
|
ModuleConstants.StatusBarModuleId,
|
|
107
108
|
ModuleConstants.SystemStatusModuleId,
|
|
@@ -5,7 +5,7 @@ import { AdaptableScope } from './Common/AdaptableScope';
|
|
|
5
5
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
6
6
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
7
7
|
import { TypeHint } from './Common/Types';
|
|
8
|
-
import { AdaptableBooleanQuery, AdaptablePredicate } from '../types';
|
|
8
|
+
import { AdaptableBooleanQuery, AdaptablePredicate, GradientStyle, PercentBarStyle } from '../types';
|
|
9
9
|
/**
|
|
10
10
|
* Predefined Configuration for Format Column Module
|
|
11
11
|
*/
|
|
@@ -33,7 +33,7 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
33
33
|
*/
|
|
34
34
|
Style?: AdaptableStyle;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* @deprecated now in StyledColumn Module
|
|
37
37
|
*/
|
|
38
38
|
ColumnStyle?: ColumnStyle;
|
|
39
39
|
/**
|
|
@@ -51,7 +51,7 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
51
51
|
IncludeGroupedRows?: boolean;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* The Format Column Rule - can be either a Predicate or
|
|
54
|
+
* The Format Column Rule - can be either a Predicate or a BooleanExpression
|
|
55
55
|
*/
|
|
56
56
|
export declare type FormatColumnRule = XOR<{
|
|
57
57
|
Predicate: FormatColumnPredicate;
|
|
@@ -59,9 +59,11 @@ export declare type FormatColumnRule = XOR<{
|
|
|
59
59
|
export interface FormatColumnPredicate extends AdaptablePredicate {
|
|
60
60
|
PredicateId: TypeHint<string, SystemFormatColumnPredicateId>;
|
|
61
61
|
}
|
|
62
|
-
declare type SystemFormatColumnPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False';
|
|
62
|
+
export declare type SystemFormatColumnPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False';
|
|
63
63
|
/**
|
|
64
64
|
* Special Style used when Formatting Columns: Gradient, PercentBar or CheckBox
|
|
65
|
+
*
|
|
66
|
+
* @deprecated use StyledColumn instead
|
|
65
67
|
*/
|
|
66
68
|
export interface ColumnStyle {
|
|
67
69
|
/**
|
|
@@ -77,89 +79,3 @@ export interface ColumnStyle {
|
|
|
77
79
|
*/
|
|
78
80
|
CheckBoxStyle?: boolean;
|
|
79
81
|
}
|
|
80
|
-
/**
|
|
81
|
-
* Style used to display Percent Bars in Format Column
|
|
82
|
-
*/
|
|
83
|
-
export interface PercentBarStyle {
|
|
84
|
-
/**
|
|
85
|
-
* Ranges (e.g. to allow a traffic light effect)
|
|
86
|
-
*/
|
|
87
|
-
CellRanges?: CellColorRange[];
|
|
88
|
-
/**
|
|
89
|
-
* Compares cell values to another Column
|
|
90
|
-
*/
|
|
91
|
-
ColumnComparison?: ColumnComparison;
|
|
92
|
-
/**
|
|
93
|
-
* Whether Cell shows Cell Value, Percent Value, both or none
|
|
94
|
-
*/
|
|
95
|
-
CellText?: CellTextOptions;
|
|
96
|
-
/**
|
|
97
|
-
* Whether Tooltip shows Cell Value, Percent Value, both or none
|
|
98
|
-
*/
|
|
99
|
-
ToolTipText?: CellTextOptions;
|
|
100
|
-
/**
|
|
101
|
-
* Back colour - only used for 'Percent Bar' Numeric style; leave unset if none required
|
|
102
|
-
* @defaultValue Gray
|
|
103
|
-
*/
|
|
104
|
-
BackColor?: string;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Used to display Gradient Styles in Format Column
|
|
108
|
-
*/
|
|
109
|
-
export interface GradientStyle {
|
|
110
|
-
/**
|
|
111
|
-
* Ranges (e.g. to allow a traffic light effect)
|
|
112
|
-
*/
|
|
113
|
-
CellRanges?: CellColorRange[];
|
|
114
|
-
/**
|
|
115
|
-
* Compares cell values to another Column
|
|
116
|
-
*/
|
|
117
|
-
ColumnComparison?: ColumnComparison;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Defines which Colours to show in Gradient and Percent Bar Styles
|
|
121
|
-
*/
|
|
122
|
-
export interface CellColorRange {
|
|
123
|
-
/**
|
|
124
|
-
* Start number of Range
|
|
125
|
-
*/
|
|
126
|
-
Min: number | 'Col-Min';
|
|
127
|
-
/**
|
|
128
|
-
* End number of Range
|
|
129
|
-
*/
|
|
130
|
-
Max: number | 'Col-Max';
|
|
131
|
-
/**
|
|
132
|
-
* Cell colour to use for values that fall inside Range
|
|
133
|
-
*/
|
|
134
|
-
Color: string;
|
|
135
|
-
/**
|
|
136
|
-
* Reverses the Gradient so the lower the cell value the darker the colour
|
|
137
|
-
*/
|
|
138
|
-
ReverseGradient?: boolean;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Enables a Percent Bar or Gradient Style to use another column in its calculations
|
|
142
|
-
*/
|
|
143
|
-
export interface ColumnComparison {
|
|
144
|
-
/**
|
|
145
|
-
* Start value - either numeric or Column name
|
|
146
|
-
*/
|
|
147
|
-
MinValue: number | string;
|
|
148
|
-
/**
|
|
149
|
-
* End value - either numeric or Column name
|
|
150
|
-
*/
|
|
151
|
-
MaxValue: number | string;
|
|
152
|
-
/**
|
|
153
|
-
* Colour to use for the Comparison
|
|
154
|
-
*/
|
|
155
|
-
Color: string;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Array of CellTextOption available in Format Columns
|
|
159
|
-
*/
|
|
160
|
-
export declare type CellTextOptions = CellTextOption[];
|
|
161
|
-
/**
|
|
162
|
-
* Text optionally to show in a Format Column special style: 'CellValue' or 'PercentageValue'
|
|
163
|
-
*/
|
|
164
|
-
export declare type CellTextOption = 'CellValue' | 'PercentageValue';
|
|
165
|
-
export {};
|
|
@@ -18,6 +18,7 @@ import { ToolPanelState } from './ToolPanelState';
|
|
|
18
18
|
import { QueryState } from './QueryState';
|
|
19
19
|
import { StatusBarState } from './StatusBarState';
|
|
20
20
|
import { ChartingState } from './ChartingState';
|
|
21
|
+
import { StyledColumnState } from './StyledColumnState';
|
|
21
22
|
/**
|
|
22
23
|
* This is the main Predefined Config interface which developers will populate at design-time
|
|
23
24
|
*/
|
|
@@ -87,6 +88,10 @@ export interface PredefinedConfig {
|
|
|
87
88
|
* Supplies a collection of *Shortcut* objects to aid data entry and prevent 'fat finger' issues
|
|
88
89
|
*/
|
|
89
90
|
Shortcut?: ShortcutState;
|
|
91
|
+
/**
|
|
92
|
+
* Supplies a collection of Special Column Styles
|
|
93
|
+
*/
|
|
94
|
+
StyledColumn?: StyledColumnState;
|
|
90
95
|
/**
|
|
91
96
|
* Configures the Adaptable Status Bar
|
|
92
97
|
*/
|
|
@@ -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';
|
package/src/{Strategy/Interface/IConditionalStyleModule.js → PredefinedConfig/StyledColumnState.js}
RENAMED
|
File without changes
|
|
@@ -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>;
|