@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
|
@@ -2,107 +2,85 @@ import { ConditionalStyleState, ConditionalStyle } from '../PredefinedConfig/Con
|
|
|
2
2
|
import { AdaptableColumn, AdaptableScope } from '../types';
|
|
3
3
|
import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Deprecated API section - use `FormatColumnAPI` instead
|
|
6
6
|
*/
|
|
7
7
|
export interface ConditionalStyleApi {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
10
10
|
*/
|
|
11
11
|
getConditionalStyleState(): ConditionalStyleState;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
14
14
|
*/
|
|
15
15
|
getAllConditionalStyle(config?: {
|
|
16
16
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
17
17
|
}): ConditionalStyle[];
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @param id conditional style id
|
|
21
|
-
* @returns conditional style
|
|
19
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
22
20
|
*/
|
|
23
21
|
getConditionalStyleById(id: ConditionalStyle['Uuid']): ConditionalStyle;
|
|
24
22
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @returns conditional styles
|
|
23
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
27
24
|
*/
|
|
28
25
|
getAllActiveConditionalStyle(): ConditionalStyle[];
|
|
29
26
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @returns conditional styles
|
|
27
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
32
28
|
*/
|
|
33
29
|
getAllSuspendedConditionalStyle(): ConditionalStyle[];
|
|
34
30
|
/**
|
|
35
|
-
*
|
|
31
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
36
32
|
*/
|
|
37
33
|
showConditionalStylePopup(): void;
|
|
38
34
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @returns conditional styles
|
|
35
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
41
36
|
*/
|
|
42
37
|
getRowConditionalStyles(): ConditionalStyle[] | undefined;
|
|
43
38
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @returns conditional styles
|
|
39
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
46
40
|
*/
|
|
47
41
|
getConditionalStylesWithExpression(): ConditionalStyle[] | undefined;
|
|
48
42
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @param column Column to check
|
|
51
|
-
* @returns conditional styles
|
|
43
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
52
44
|
*/
|
|
53
45
|
getConditionalStylesForColumn(column: AdaptableColumn): ConditionalStyle[] | undefined;
|
|
54
46
|
/**
|
|
55
|
-
*
|
|
47
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
56
48
|
*/
|
|
57
49
|
getConditionalStylePredicateDefs(): AdaptablePredicateDef[];
|
|
58
50
|
/**
|
|
59
|
-
*
|
|
60
|
-
* @param scope Scope to check
|
|
51
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
61
52
|
*/
|
|
62
53
|
getCondStylePredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
63
54
|
/**
|
|
64
|
-
*
|
|
65
|
-
* @returns conditional style
|
|
55
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
66
56
|
*/
|
|
67
57
|
getOrderedConditionalStyles(): ConditionalStyle[] | undefined;
|
|
68
58
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @param conditionalStyle Conditional Style to edit
|
|
71
|
-
* @returns conditional style
|
|
59
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
72
60
|
*/
|
|
73
61
|
editConditionalStyle(conditionalStyle: ConditionalStyle): ConditionalStyle;
|
|
74
62
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @param conditionalStyles Conditional Styles to edit
|
|
77
|
-
* @returns conditional styles
|
|
63
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
78
64
|
*/
|
|
79
65
|
editConditionalStyles(conditionalStyles: ConditionalStyle[]): ConditionalStyle[];
|
|
80
66
|
/**
|
|
81
|
-
*
|
|
82
|
-
* @param conditionalStyle Conditional Style to delete
|
|
67
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
83
68
|
*/
|
|
84
69
|
deleteConditionalStyle(conditionalStyle: ConditionalStyle): void;
|
|
85
70
|
/**
|
|
86
|
-
*
|
|
87
|
-
* @param conditionalStyles Conditional Styles to delete
|
|
71
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
88
72
|
*/
|
|
89
73
|
deleteConditionalStyles(conditionalStyles: ConditionalStyle[]): void;
|
|
90
74
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @param conditionalStyle Conditional Style to add
|
|
93
|
-
* @returns conditional style
|
|
75
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
94
76
|
*/
|
|
95
77
|
addConditionalStyle(conditionalStyle: ConditionalStyle): ConditionalStyle;
|
|
96
78
|
/**
|
|
97
|
-
*
|
|
98
|
-
* @param conditionalStyle Conditional Style to suspend
|
|
99
|
-
* @returns conditional style
|
|
79
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
100
80
|
*/
|
|
101
81
|
suspendConditionalStyle(conditionalStyle: ConditionalStyle): ConditionalStyle;
|
|
102
82
|
/**
|
|
103
|
-
*
|
|
104
|
-
* @param conditionalStyle Conditional Style to suspend
|
|
105
|
-
* @returns conditional style
|
|
83
|
+
* @deprecated use `FormatColumnָAPI` instead
|
|
106
84
|
*/
|
|
107
85
|
unSuspendConditionalStyle(conditionalStyle: ConditionalStyle): ConditionalStyle;
|
|
108
86
|
}
|
package/src/Api/ConfigApi.d.ts
CHANGED
|
@@ -116,8 +116,7 @@ export interface ConfigApi {
|
|
|
116
116
|
*/
|
|
117
117
|
getCalculatedColumnState(returnJson: boolean): CalculatedColumnState;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
120
|
-
* @param returnJson return as JSON rather than object
|
|
119
|
+
* @deprecated use `getFormatColumnState` instead
|
|
121
120
|
*/
|
|
122
121
|
getConditionalStyleState(returnJson: boolean): ConditionalStyleState;
|
|
123
122
|
/**
|
package/src/Api/ExportApi.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdaptableForm } from '../PredefinedConfig/Common/AdaptableForm';
|
|
2
2
|
import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } from '../PredefinedConfig/ExportState';
|
|
3
3
|
import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
|
|
4
|
-
import { CustomDestination,
|
|
4
|
+
import { CustomDestination, ServerReport, ExportFormContext } from '../AdaptableOptions/ExportOptions';
|
|
5
5
|
import { ExportDestination } from '../PredefinedConfig/Common/Enums';
|
|
6
6
|
/**
|
|
7
7
|
* Provides run-time access to the Export Module and Report state
|
|
@@ -50,7 +50,7 @@ export interface ExportApi {
|
|
|
50
50
|
/**
|
|
51
51
|
* Returns any Custom Reports that have been provided to Export Options
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
getAllServerReports(): ServerReport[] | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* Retrieves System Reports section of Export State
|
|
56
56
|
*/
|
|
@@ -139,14 +139,14 @@ export interface ExportApi {
|
|
|
139
139
|
exportVisualDataToExcel(): void;
|
|
140
140
|
/**
|
|
141
141
|
* Whether a Report is a Custom Report
|
|
142
|
-
* @param
|
|
142
|
+
* @param report Report to Check
|
|
143
143
|
*/
|
|
144
|
-
|
|
144
|
+
isServerReport(report: Report): boolean;
|
|
145
145
|
/**
|
|
146
|
-
* Runs the report function of the
|
|
146
|
+
* Runs the report function of the ServerReport with the given reportName
|
|
147
147
|
* @param reportName custom report name
|
|
148
148
|
*/
|
|
149
|
-
|
|
149
|
+
runServerReport(reportName: string): ReportData | undefined;
|
|
150
150
|
/**
|
|
151
151
|
* Returns the ReportData for the Report with the given name
|
|
152
152
|
* @param reportName - the name of the report
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FinsemblePluginOptions } from '../AdaptableOptions/FinsemblePluginOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Provides run-time access to the Finsemble Plugin
|
|
4
|
+
*/
|
|
5
|
+
export interface FinsembleApi {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves the FinsemblePlugOptions provided in Finsemble Plugin
|
|
8
|
+
*/
|
|
9
|
+
getPluginOptions(): FinsemblePluginOptions;
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormatColumnState, FormatColumn
|
|
2
|
-
import { AdaptableColumn, AdaptableFormat } from '../types';
|
|
1
|
+
import { FormatColumnState, FormatColumn } from '../PredefinedConfig/FormatColumnState';
|
|
2
|
+
import { AdaptableColumn, AdaptableFormat, AdaptablePredicateDef, AdaptableScope } from '../types';
|
|
3
3
|
import { RowNode } from '@ag-grid-community/core';
|
|
4
4
|
/**
|
|
5
5
|
* Provides run-time access to the Format Column Module and associated state
|
|
@@ -38,15 +38,10 @@ export interface FormatColumnApi {
|
|
|
38
38
|
*/
|
|
39
39
|
getAllFormatColumnWithStyle(): FormatColumn[];
|
|
40
40
|
/**
|
|
41
|
-
* Retrieves
|
|
42
|
-
* @
|
|
43
|
-
*/
|
|
44
|
-
getColumnComparisonForFormatColumn(formatColumn: FormatColumn): ColumnComparison | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Returns any ColumnIds referenced in a Column Comparison
|
|
47
|
-
* @param columnComparision Column Comparison to check
|
|
41
|
+
* Retrieves all Format Columns in Adaptable State with the `Style` or the `CellAlignment` property set
|
|
42
|
+
* @returns format columns
|
|
48
43
|
*/
|
|
49
|
-
|
|
44
|
+
getAllFormatColumnWithStyleAndCellAlignment(): FormatColumn[];
|
|
50
45
|
/**
|
|
51
46
|
* Retrieves all Format Columns in Adaptable State with `DisplayFormat` property set
|
|
52
47
|
* @returns format columns
|
|
@@ -105,23 +100,21 @@ export interface FormatColumnApi {
|
|
|
105
100
|
*/
|
|
106
101
|
showFormatColumnPopup(): void;
|
|
107
102
|
/**
|
|
108
|
-
* Gets
|
|
109
|
-
* @param column The Column for which to retrieve the Format Column
|
|
110
|
-
* @returns format column
|
|
111
|
-
*/
|
|
112
|
-
getActiveFormatColumnForColumn(column: AdaptableColumn): FormatColumn | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* Gets Format Column, if any, for given Column
|
|
103
|
+
* Gets all FormatColumns which are defined for the given column
|
|
115
104
|
* @param column The Column for which to retrieve the Format Column
|
|
116
105
|
* @returns format column
|
|
117
106
|
*/
|
|
118
|
-
|
|
107
|
+
getFormatColumnsForColumn(column: AdaptableColumn, config?: {
|
|
108
|
+
includeSuspended?: boolean;
|
|
109
|
+
}): FormatColumn[];
|
|
119
110
|
/**
|
|
120
|
-
* Gets
|
|
111
|
+
* Gets all FormatColumns which are defined for the column with the given columnId
|
|
121
112
|
* @param columnId ColumnId for which to retrieve the Format Column
|
|
122
113
|
* @returns format column
|
|
123
114
|
*/
|
|
124
|
-
|
|
115
|
+
getFormatColumnsForColumnId(columnId: string, config?: {
|
|
116
|
+
includeSuspended?: boolean;
|
|
117
|
+
}): FormatColumn[];
|
|
125
118
|
/**
|
|
126
119
|
* Get Format Column which has Scope of Single Column, if any, for given ColumnId
|
|
127
120
|
* @param columnId ColumnId for which to retrieve the Format Column
|
|
@@ -129,57 +122,35 @@ export interface FormatColumnApi {
|
|
|
129
122
|
*/
|
|
130
123
|
getFormatColumnWithSingleColumnScope(columnId: string): FormatColumn | undefined;
|
|
131
124
|
/**
|
|
132
|
-
*
|
|
133
|
-
* @param column
|
|
134
|
-
* @
|
|
125
|
+
* Get all FormatColumns which are defined for this column and have a custom AdaptableStyle
|
|
126
|
+
* @param column
|
|
127
|
+
* @param config
|
|
128
|
+
* @returns list of FormatColumn
|
|
135
129
|
*/
|
|
136
|
-
|
|
130
|
+
getFormatColumnsWithStyleForColumn(column: AdaptableColumn, config?: {
|
|
131
|
+
includeSuspended?: boolean;
|
|
132
|
+
}): FormatColumn[];
|
|
137
133
|
/**
|
|
138
134
|
* Gets Format Column if any for given Column which includes Style element with ClassName
|
|
139
135
|
* @param column The Column for which to retrieve the Format Column
|
|
140
|
-
* @returns format
|
|
136
|
+
* @returns format columns
|
|
141
137
|
*/
|
|
142
|
-
getFormatColumnWithStyleClassNameForColumn(column: AdaptableColumn
|
|
138
|
+
getFormatColumnWithStyleClassNameForColumn(column: AdaptableColumn, config?: {
|
|
139
|
+
includeSuspended?: boolean;
|
|
140
|
+
}): FormatColumn[];
|
|
143
141
|
/**
|
|
144
|
-
*
|
|
142
|
+
* Get all FormatColumns which are defined for this column and have a custom DisplayFormat
|
|
145
143
|
* @param column
|
|
146
|
-
* @
|
|
144
|
+
* @param config
|
|
145
|
+
* @returns list of FormatColumn
|
|
147
146
|
*/
|
|
148
|
-
|
|
147
|
+
getFormatColumnsWithDisplayFormatForColumn(column: AdaptableColumn, config?: {
|
|
148
|
+
includeSuspended?: boolean;
|
|
149
|
+
}): FormatColumn[];
|
|
149
150
|
/**
|
|
150
151
|
* Returns true if Format State includes Format Columns with a Style property
|
|
151
152
|
*/
|
|
152
153
|
hasStyleFormatColumns(): boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Gets the Minimum Value to display for a Numeric Style
|
|
155
|
-
* @param numericStyle Numeric Style to check
|
|
156
|
-
* @param rowNode current Row Node
|
|
157
|
-
* @param cellValue current Cell Value
|
|
158
|
-
*/
|
|
159
|
-
getNumericStyleMinValue(numericStyle: ColumnStyle, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
160
|
-
/**
|
|
161
|
-
* Gets the Maximum Value to display for a Numeric Style
|
|
162
|
-
* @param numericStyle Numeric Style to check
|
|
163
|
-
* @param rowNode current Row Node
|
|
164
|
-
* @param cellValue current Cell Value
|
|
165
|
-
*/
|
|
166
|
-
getNumericStyleMaxValue(numericStyle: ColumnStyle, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
167
|
-
getCellColorRangeMinValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
168
|
-
getCellColorRangeMaxValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
169
|
-
/**
|
|
170
|
-
* Returns first Format Column that contains checkbox style
|
|
171
|
-
* @param columnId column to check
|
|
172
|
-
*/
|
|
173
|
-
getCheckBoxStyleFormatColumn(column: AdaptableColumn): FormatColumn | undefined;
|
|
174
|
-
/**
|
|
175
|
-
* Whether given column is a (boolean) checkbox column
|
|
176
|
-
* @param columnId column to check
|
|
177
|
-
*/
|
|
178
|
-
isCheckBoxStyleFormatColumn(column: AdaptableColumn): boolean;
|
|
179
|
-
/**
|
|
180
|
-
* Publishes the CheckboxColumnClickedEvent - when the checkbox in an Checkbox Column is clicked
|
|
181
|
-
*/
|
|
182
|
-
fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
|
|
183
154
|
/**
|
|
184
155
|
* Format value according to format options.
|
|
185
156
|
*
|
|
@@ -206,4 +177,50 @@ export interface FormatColumnApi {
|
|
|
206
177
|
* @param formatColumn Format Column
|
|
207
178
|
*/
|
|
208
179
|
hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Returns all Predicates usable in Format Columns
|
|
182
|
+
*/
|
|
183
|
+
getFormatColumnPredicateDefs(): AdaptablePredicateDef[];
|
|
184
|
+
/**
|
|
185
|
+
* Returns all Predicates appropriate for the given Scope
|
|
186
|
+
* @param scope Scope to check
|
|
187
|
+
*/
|
|
188
|
+
getFormatColumnDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
189
|
+
/**
|
|
190
|
+
* Checks if format column is relevant for a given cell (intersection of given AdaptableColumn and RowNode)
|
|
191
|
+
*
|
|
192
|
+
* @param formatColumn
|
|
193
|
+
* @param column
|
|
194
|
+
* @param params
|
|
195
|
+
*/
|
|
196
|
+
isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
|
|
197
|
+
node: RowNode;
|
|
198
|
+
value: any;
|
|
199
|
+
}): boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Extract from the given FormatColumns only the ones which are relevant for a given cell (intersection of given AdaptableColumn and RowNode)
|
|
202
|
+
*
|
|
203
|
+
* @param formatColumns
|
|
204
|
+
* @param column
|
|
205
|
+
* @param params
|
|
206
|
+
*/
|
|
207
|
+
getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
|
|
208
|
+
node: RowNode;
|
|
209
|
+
value: any;
|
|
210
|
+
}): FormatColumn[];
|
|
211
|
+
/**
|
|
212
|
+
* Retrieves all Format Columns which have an Expression
|
|
213
|
+
* @returns Format Columns with Expression
|
|
214
|
+
*/
|
|
215
|
+
getFormatColumnsWithExpression(): FormatColumn[] | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* Increment the precedence of the given FormatColumn
|
|
218
|
+
* @param formatColumn
|
|
219
|
+
*/
|
|
220
|
+
incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
221
|
+
/**
|
|
222
|
+
* Decrement the precedence of the given FormatColumn
|
|
223
|
+
* @param formatColumn
|
|
224
|
+
*/
|
|
225
|
+
decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
209
226
|
}
|
|
@@ -39,6 +39,7 @@ import { FlashingCellApi } from '../FlashingCellApi';
|
|
|
39
39
|
import { ChartingApi } from '../ChartingApi';
|
|
40
40
|
import { StatusBarApi } from '../StatusBarApi';
|
|
41
41
|
import { ActionApi } from '../../../types';
|
|
42
|
+
import { StyledColumnApi } from '../StyledColumnApi';
|
|
42
43
|
export declare class AdaptableApiImpl implements AdaptableApi {
|
|
43
44
|
protected adaptable: IAdaptable;
|
|
44
45
|
actionApi: ActionApi;
|
|
@@ -75,6 +76,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
75
76
|
queryApi: QueryApi;
|
|
76
77
|
queryLanguageApi: QueryLanguageApi;
|
|
77
78
|
settingsPanelApi: SettingsPanelApi;
|
|
79
|
+
styledColumnApi: StyledColumnApi;
|
|
78
80
|
toolPanelApi: ToolPanelApi;
|
|
79
81
|
teamSharingApi: TeamSharingApi;
|
|
80
82
|
scopeApi: ScopeApi;
|
|
@@ -41,6 +41,7 @@ const FlashingCellApiImpl_1 = require("./FlashingCellApiImpl");
|
|
|
41
41
|
const ChartingApiImpl_1 = require("./ChartingApiImpl");
|
|
42
42
|
const SettingsPanelApiImpl_1 = require("./SettingsPanelApiImpl");
|
|
43
43
|
const ActionApiImpl_1 = require("./ActionApiImpl");
|
|
44
|
+
const StyledColumnApiImpl_1 = require("./StyledColumnApiImpl");
|
|
44
45
|
class AdaptableApiImpl {
|
|
45
46
|
constructor(adaptable) {
|
|
46
47
|
this.adaptable = adaptable;
|
|
@@ -79,6 +80,7 @@ class AdaptableApiImpl {
|
|
|
79
80
|
this.userInterfaceApi = new UserInterfaceApiImpl_1.UserInterfaceApiImpl(adaptable);
|
|
80
81
|
this.queryApi = new QueryApiImpl_1.QueryApiImpl(adaptable);
|
|
81
82
|
this.queryLanguageApi = new QueryLanguageApiImpl_1.QueryLanguageApiImpl(adaptable);
|
|
83
|
+
this.styledColumnApi = new StyledColumnApiImpl_1.StyledColumnApiImpl(adaptable);
|
|
82
84
|
this.toolPanelApi = new ToolPanelApiImpl_1.ToolPanelApiImpl(adaptable);
|
|
83
85
|
this.teamSharingApi = new TeamSharingApiImpl_1.TeamSharingApiImpl(adaptable);
|
|
84
86
|
this.scopeApi = new ScopeApiImpl_1.ScopeApiImpl(adaptable);
|
|
@@ -22,7 +22,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
22
22
|
isCalculatedColumn(columnId: string): boolean;
|
|
23
23
|
isFreeTextColumn(columnId: string): boolean;
|
|
24
24
|
isActionColumn(columnId: string): boolean;
|
|
25
|
-
|
|
25
|
+
isStyledNumericColumn(column: AdaptableColumn): boolean;
|
|
26
26
|
isNumericColumn(column: AdaptableColumn): boolean;
|
|
27
27
|
isBooleanColumn(column: AdaptableColumn): boolean;
|
|
28
28
|
isDateColumn(column: AdaptableColumn): boolean;
|
|
@@ -61,6 +61,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
61
61
|
getDistinctBulkUpdateDisplayValuesForColumn(columnId: string, selectedGridCells: GridCell[]): Promise<any[]>;
|
|
62
62
|
getDistinctVisibleDisplayValuesForColumn(columnId: string): any[];
|
|
63
63
|
getDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
|
|
64
|
+
getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
|
|
64
65
|
getDistinctVisibleRawValuesForColumn(columnId: string): any[];
|
|
65
66
|
private sortDistinctValues;
|
|
66
67
|
getPrimaryKeyColumn(): AdaptableColumn;
|
|
@@ -79,23 +79,23 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
79
79
|
return (((_a = this.adaptable.api.actionApi.getAllActionColumn()) === null || _a === void 0 ? void 0 : _a.find((cc) => cc.columnId == columnId)) !=
|
|
80
80
|
null);
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
isStyledNumericColumn(column) {
|
|
83
83
|
if (column) {
|
|
84
|
-
|
|
85
|
-
.
|
|
86
|
-
.
|
|
87
|
-
|
|
84
|
+
const styledColmn = this.adaptable.api.styledColumnApi
|
|
85
|
+
.getAllActiveStyledColumn()
|
|
86
|
+
.find((sc) => !sc.CheckBoxStyle && sc.ColumnId == column.columnId);
|
|
87
|
+
return styledColmn != null;
|
|
88
88
|
}
|
|
89
89
|
return false;
|
|
90
90
|
}
|
|
91
91
|
isNumericColumn(column) {
|
|
92
|
-
return column.dataType == 'Number';
|
|
92
|
+
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Number';
|
|
93
93
|
}
|
|
94
94
|
isBooleanColumn(column) {
|
|
95
|
-
return column.dataType == 'Boolean';
|
|
95
|
+
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Boolean';
|
|
96
96
|
}
|
|
97
97
|
isDateColumn(column) {
|
|
98
|
-
return column.dataType == 'Date';
|
|
98
|
+
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Date';
|
|
99
99
|
}
|
|
100
100
|
getColumnDataTypeFromColumnId(columnId) {
|
|
101
101
|
const column = this.getColumnFromId(columnId); // this.getColumns().find(c => c.ColumnId == columnId);
|
|
@@ -343,11 +343,17 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
343
343
|
if (abColumn == undefined) {
|
|
344
344
|
return [];
|
|
345
345
|
}
|
|
346
|
-
|
|
347
|
-
return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
|
|
346
|
+
return this.sortDistinctValues(this.getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode), abColumn).map((cv) => {
|
|
348
347
|
return cv.rawValue;
|
|
349
348
|
});
|
|
350
349
|
}
|
|
350
|
+
getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode) {
|
|
351
|
+
const abColumn = this.getColumnFromId(columnId);
|
|
352
|
+
if (abColumn == undefined) {
|
|
353
|
+
return [];
|
|
354
|
+
}
|
|
355
|
+
return this.adaptable.getDistinctValuesForColumn(abColumn, false, skipRowNode);
|
|
356
|
+
}
|
|
351
357
|
getDistinctVisibleRawValuesForColumn(columnId) {
|
|
352
358
|
const abColumn = this.getColumnFromId(columnId);
|
|
353
359
|
if (abColumn == undefined) {
|
|
@@ -424,15 +430,13 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
424
430
|
if (column.dataType !== 'Number') {
|
|
425
431
|
return undefined;
|
|
426
432
|
}
|
|
427
|
-
|
|
428
|
-
return Math.min(...this.getDistinctRawValuesForColumn(column.columnId));
|
|
433
|
+
return this.adaptable.getMinMaxCachedValueForColumn(column, 'min');
|
|
429
434
|
}
|
|
430
435
|
getMaxValueForNumericColumn(column) {
|
|
431
436
|
if (column.dataType !== 'Number') {
|
|
432
437
|
return undefined;
|
|
433
438
|
}
|
|
434
|
-
|
|
435
|
-
return Math.max(...this.getDistinctRawValuesForColumn(column.columnId));
|
|
439
|
+
return this.adaptable.getMinMaxCachedValueForColumn(column, 'max');
|
|
436
440
|
}
|
|
437
441
|
getTypesForColumn(columnId) {
|
|
438
442
|
var _a;
|
|
@@ -3,7 +3,7 @@ import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } fr
|
|
|
3
3
|
import { ApiBase } from './ApiBase';
|
|
4
4
|
import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
5
5
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
6
|
-
import { CustomDestination,
|
|
6
|
+
import { CustomDestination, ServerReport, ExportFormContext } from '../../AdaptableOptions/ExportOptions';
|
|
7
7
|
import { ExportDestination } from '../../PredefinedConfig/Common/Enums';
|
|
8
8
|
export declare class ExportApiImpl extends ApiBase implements ExportApi {
|
|
9
9
|
getExportState(): ExportState;
|
|
@@ -30,8 +30,8 @@ export declare class ExportApiImpl extends ApiBase implements ExportApi {
|
|
|
30
30
|
editReports(reports: Report[]): Report[];
|
|
31
31
|
isDataChangeInReport(cellDataChangedInfo: CellDataChangedInfo, report: Report): boolean;
|
|
32
32
|
exportVisualDataToExcel(): void;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
getAllServerReports(): ServerReport[] | undefined;
|
|
34
|
+
isServerReport(report: Report): boolean;
|
|
35
|
+
runServerReport(serverReportName: string): ReportData | undefined;
|
|
36
36
|
getReportDataForReport(reportName: string): ReportData | undefined;
|
|
37
37
|
}
|
|
@@ -61,10 +61,10 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
61
61
|
const reports = this.getAvailableSystemReports()
|
|
62
62
|
.map((s) => this.getReportByName(s))
|
|
63
63
|
.concat(this.getExportState().Reports);
|
|
64
|
-
const
|
|
65
|
-
if (ArrayExtensions_1.default.IsNotNullOrEmpty(
|
|
66
|
-
reports.push(...
|
|
67
|
-
return ObjectFactory_1.default.
|
|
64
|
+
const serverReports = this.getAllServerReports();
|
|
65
|
+
if (ArrayExtensions_1.default.IsNotNullOrEmpty(serverReports)) {
|
|
66
|
+
reports.push(...serverReports.map((c) => {
|
|
67
|
+
return ObjectFactory_1.default.CreateServerReport(c.name);
|
|
68
68
|
}));
|
|
69
69
|
}
|
|
70
70
|
return reports;
|
|
@@ -120,7 +120,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
120
120
|
return true;
|
|
121
121
|
}
|
|
122
122
|
// if its a Custom Report then the User has to run it so we just ignore completely
|
|
123
|
-
if (this.
|
|
123
|
+
if (this.isServerReport(report)) {
|
|
124
124
|
return false;
|
|
125
125
|
}
|
|
126
126
|
// Start with the DataChanged Column and go through all possibilities
|
|
@@ -178,21 +178,21 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
178
178
|
exportVisualDataToExcel() {
|
|
179
179
|
this.adaptable.exportVisualDataToExcel();
|
|
180
180
|
}
|
|
181
|
-
|
|
182
|
-
return this.getExportOptions().
|
|
181
|
+
getAllServerReports() {
|
|
182
|
+
return this.getExportOptions().serverReports;
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
isServerReport(report) {
|
|
185
185
|
var _a;
|
|
186
|
-
return ((_a = this.
|
|
186
|
+
return ((_a = this.getAllServerReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == report.Name)) != null;
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
runServerReport(serverReportName) {
|
|
189
189
|
var _a;
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
192
|
-
(0, LoggingHelper_1.LogAdaptableWarning)(`
|
|
190
|
+
const serverReport = (_a = this.getAllServerReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == serverReportName);
|
|
191
|
+
if (!serverReport) {
|
|
192
|
+
(0, LoggingHelper_1.LogAdaptableWarning)(`Server Report '${serverReportName}' not found!`);
|
|
193
193
|
return undefined;
|
|
194
194
|
}
|
|
195
|
-
return
|
|
195
|
+
return serverReport.onRunReport();
|
|
196
196
|
}
|
|
197
197
|
getReportDataForReport(reportName) {
|
|
198
198
|
const report = this.getReportByName(reportName);
|