@adaptabletools/adaptable 13.0.0-canary.2 → 13.0.0-canary.21
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 +237 -220
- 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/{Api/ConditionalStyleApi.js → AdaptableOptions/FinsemblePluginOptions.js} +0 -0
- 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 -6
- package/src/Api/ExportApi.d.ts +6 -6
- package/src/Api/FinsembleApi.d.ts +10 -0
- package/src/{Strategy/Interface/IConditionalStyleModule.js → Api/FinsembleApi.js} +0 -0
- package/src/Api/FormatColumnApi.d.ts +76 -59
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -3
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ColumnApiImpl.js +18 -14
- 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 +36 -17
- package/src/Api/Implementation/FormatColumnApiImpl.js +101 -185
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -0
- package/src/Api/Implementation/InternalApiImpl.js +5 -0
- 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/InternalApi.d.ts +1 -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/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/DeadRedux.d.ts +6 -0
- package/src/Redux/DeadRedux.js +19 -1
- package/src/Redux/Store/AdaptableStore.js +11 -8
- package/src/Strategy/ConditionalStyleModule.d.ts +2 -25
- package/src/Strategy/ConditionalStyleModule.js +0 -213
- 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/LayoutModule.js +0 -4
- 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 -1
- 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 -2
- package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
- package/src/Utilities/Services/QueryLanguageService.js +89 -40
- 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 +11 -12
- 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.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/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/GridInfo/ColumnInfoComponent.js +0 -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 +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 +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 +213 -121
- 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 -6
- 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 -108
- 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/Utilities/Services/LicenseService.js +0 -1
- 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
|
@@ -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
|
+
}
|
|
File without changes
|
|
@@ -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
|
}
|
|
@@ -4,7 +4,6 @@ import { AlertApi } from '../AlertApi';
|
|
|
4
4
|
import { BulkUpdateApi } from '../BulkUpdateApi';
|
|
5
5
|
import { CalculatedColumnApi } from '../CalculatedColumnApi';
|
|
6
6
|
import { CellSummaryApi } from '../CellSummaryApi';
|
|
7
|
-
import { ConditionalStyleApi } from '../ConditionalStyleApi';
|
|
8
7
|
import { ConfigApi } from '../ConfigApi';
|
|
9
8
|
import { CustomSortApi } from '../CustomSortApi';
|
|
10
9
|
import { DashboardApi } from '../DashboardApi';
|
|
@@ -39,6 +38,7 @@ import { FlashingCellApi } from '../FlashingCellApi';
|
|
|
39
38
|
import { ChartingApi } from '../ChartingApi';
|
|
40
39
|
import { StatusBarApi } from '../StatusBarApi';
|
|
41
40
|
import { ActionApi } from '../../../types';
|
|
41
|
+
import { StyledColumnApi } from '../StyledColumnApi';
|
|
42
42
|
export declare class AdaptableApiImpl implements AdaptableApi {
|
|
43
43
|
protected adaptable: IAdaptable;
|
|
44
44
|
actionApi: ActionApi;
|
|
@@ -50,7 +50,6 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
50
50
|
calculatedColumnApi: CalculatedColumnApi;
|
|
51
51
|
cellSummaryApi: CellSummaryApi;
|
|
52
52
|
columnApi: ColumnApi;
|
|
53
|
-
conditionalStyleApi: ConditionalStyleApi;
|
|
54
53
|
configApi: ConfigApi;
|
|
55
54
|
customSortApi: CustomSortApi;
|
|
56
55
|
dashboardApi: DashboardApi;
|
|
@@ -75,6 +74,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
75
74
|
queryApi: QueryApi;
|
|
76
75
|
queryLanguageApi: QueryLanguageApi;
|
|
77
76
|
settingsPanelApi: SettingsPanelApi;
|
|
77
|
+
styledColumnApi: StyledColumnApi;
|
|
78
78
|
toolPanelApi: ToolPanelApi;
|
|
79
79
|
teamSharingApi: TeamSharingApi;
|
|
80
80
|
scopeApi: ScopeApi;
|
|
@@ -8,7 +8,6 @@ const PluginsApiImpl_1 = require("./PluginsApiImpl");
|
|
|
8
8
|
const BulkUpdateApiImpl_1 = require("./BulkUpdateApiImpl");
|
|
9
9
|
const CalculatedColumnApiImpl_1 = require("./CalculatedColumnApiImpl");
|
|
10
10
|
const CellSummaryApiImpl_1 = require("./CellSummaryApiImpl");
|
|
11
|
-
const ConditionalStyleApiImpl_1 = require("./ConditionalStyleApiImpl");
|
|
12
11
|
const ConfigApiImpl_1 = require("./ConfigApiImpl");
|
|
13
12
|
const CustomSortApiImpl_1 = require("./CustomSortApiImpl");
|
|
14
13
|
const DashboardApiImpl_1 = require("./DashboardApiImpl");
|
|
@@ -41,6 +40,7 @@ const FlashingCellApiImpl_1 = require("./FlashingCellApiImpl");
|
|
|
41
40
|
const ChartingApiImpl_1 = require("./ChartingApiImpl");
|
|
42
41
|
const SettingsPanelApiImpl_1 = require("./SettingsPanelApiImpl");
|
|
43
42
|
const ActionApiImpl_1 = require("./ActionApiImpl");
|
|
43
|
+
const StyledColumnApiImpl_1 = require("./StyledColumnApiImpl");
|
|
44
44
|
class AdaptableApiImpl {
|
|
45
45
|
constructor(adaptable) {
|
|
46
46
|
this.adaptable = adaptable;
|
|
@@ -56,7 +56,6 @@ class AdaptableApiImpl {
|
|
|
56
56
|
this.calculatedColumnApi = new CalculatedColumnApiImpl_1.CalculatedColumnApiImpl(adaptable);
|
|
57
57
|
this.cellSummaryApi = new CellSummaryApiImpl_1.CellSummaryApiImpl(adaptable);
|
|
58
58
|
this.columnApi = new ColumnApiImpl_1.ColumnApiImpl(adaptable);
|
|
59
|
-
this.conditionalStyleApi = new ConditionalStyleApiImpl_1.ConditionalStyleApiImpl(adaptable);
|
|
60
59
|
this.configApi = new ConfigApiImpl_1.ConfigApiImpl(adaptable);
|
|
61
60
|
this.customSortApi = new CustomSortApiImpl_1.CustomSortApiImpl(adaptable);
|
|
62
61
|
this.dashboardApi = new DashboardApiImpl_1.DashboardApiImpl(adaptable);
|
|
@@ -79,6 +78,7 @@ class AdaptableApiImpl {
|
|
|
79
78
|
this.userInterfaceApi = new UserInterfaceApiImpl_1.UserInterfaceApiImpl(adaptable);
|
|
80
79
|
this.queryApi = new QueryApiImpl_1.QueryApiImpl(adaptable);
|
|
81
80
|
this.queryLanguageApi = new QueryLanguageApiImpl_1.QueryLanguageApiImpl(adaptable);
|
|
81
|
+
this.styledColumnApi = new StyledColumnApiImpl_1.StyledColumnApiImpl(adaptable);
|
|
82
82
|
this.toolPanelApi = new ToolPanelApiImpl_1.ToolPanelApiImpl(adaptable);
|
|
83
83
|
this.teamSharingApi = new TeamSharingApiImpl_1.TeamSharingApiImpl(adaptable);
|
|
84
84
|
this.scopeApi = new ScopeApiImpl_1.ScopeApiImpl(adaptable);
|
|
@@ -103,7 +103,6 @@ class AdaptableApiImpl {
|
|
|
103
103
|
this.cellSummaryApi = null;
|
|
104
104
|
this.chartingApi = null;
|
|
105
105
|
this.columnApi = null;
|
|
106
|
-
this.conditionalStyleApi = null;
|
|
107
106
|
this.configApi = null;
|
|
108
107
|
this.customSortApi = null;
|
|
109
108
|
this.dashboardApi = null;
|
|
@@ -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;
|
|
@@ -7,7 +7,6 @@ import { FormatColumnState } from '../../PredefinedConfig/FormatColumnState';
|
|
|
7
7
|
import { ExportState } from '../../PredefinedConfig/ExportState';
|
|
8
8
|
import { DashboardState } from '../../PredefinedConfig/DashboardState';
|
|
9
9
|
import { CustomSortState } from '../../PredefinedConfig/CustomSortState';
|
|
10
|
-
import { ConditionalStyleState } from '../../PredefinedConfig/ConditionalStyleState';
|
|
11
10
|
import { CalculatedColumnState } from '../../PredefinedConfig/CalculatedColumnState';
|
|
12
11
|
import { AlertState } from '../../PredefinedConfig/AlertState';
|
|
13
12
|
import { ConfigState } from '../../PredefinedConfig/ConfigState';
|
|
@@ -48,7 +47,6 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
48
47
|
getApplicationState(returnJson?: boolean): ApplicationState;
|
|
49
48
|
getCalculatedColumnState(returnJson?: boolean): CalculatedColumnState;
|
|
50
49
|
getChartingState(returnJson?: boolean): ChartingState;
|
|
51
|
-
getConditionalStyleState(returnJson?: boolean): ConditionalStyleState;
|
|
52
50
|
getCustomSortState(returnJson?: boolean): CustomSortState;
|
|
53
51
|
getDashboardState(returnJson?: boolean): DashboardState;
|
|
54
52
|
getExportState(returnJson?: boolean): ExportState;
|
|
@@ -12,7 +12,6 @@ const AlertRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Ale
|
|
|
12
12
|
const BulkUpdateRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/BulkUpdateRedux"));
|
|
13
13
|
const CalculatedColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CalculatedColumnRedux"));
|
|
14
14
|
const ChartingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ChartingRedux"));
|
|
15
|
-
const ConditionalStyleRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ConditionalStyleRedux"));
|
|
16
15
|
const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CustomSortRedux"));
|
|
17
16
|
const ExportRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ExportRedux"));
|
|
18
17
|
const FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FormatColumnRedux"));
|
|
@@ -170,10 +169,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
170
169
|
return returnJson
|
|
171
170
|
? JSON.stringify(this.getAdaptableState().Charting)
|
|
172
171
|
: this.getAdaptableState().Charting;
|
|
173
|
-
case 'ConditionalStyle':
|
|
174
|
-
return returnJson
|
|
175
|
-
? JSON.stringify(this.getAdaptableState().ConditionalStyle)
|
|
176
|
-
: this.getAdaptableState().ConditionalStyle;
|
|
177
172
|
case 'CustomSort':
|
|
178
173
|
return returnJson
|
|
179
174
|
? JSON.stringify(this.getAdaptableState().CustomSort)
|
|
@@ -250,9 +245,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
250
245
|
getChartingState(returnJson = false) {
|
|
251
246
|
return this.getUserStateByStateKey('Charting', returnJson);
|
|
252
247
|
}
|
|
253
|
-
getConditionalStyleState(returnJson = false) {
|
|
254
|
-
return this.getUserStateByStateKey('ConditionalStyle', returnJson);
|
|
255
|
-
}
|
|
256
248
|
getCustomSortState(returnJson = false) {
|
|
257
249
|
return this.getUserStateByStateKey('CustomSort', returnJson);
|
|
258
250
|
}
|
|
@@ -306,9 +298,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
306
298
|
case 'Charting':
|
|
307
299
|
this.dispatchAction(ChartingRedux.ChartingReady(this.getChartingState()));
|
|
308
300
|
break;
|
|
309
|
-
case 'ConditionalStyle':
|
|
310
|
-
this.dispatchAction(ConditionalStyleRedux.ConditionalStyleReady(this.getConditionalStyleState()));
|
|
311
|
-
break;
|
|
312
301
|
case 'CustomSort':
|
|
313
302
|
this.dispatchAction(CustomSortRedux.CustomSortReady(this.getCustomSortState()));
|
|
314
303
|
break;
|
|
@@ -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);
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
6
6
|
const FlashingCellRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FlashingCellRedux"));
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
|
+
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
8
9
|
class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
9
10
|
getFlashingCellState() {
|
|
10
11
|
return this.getAdaptableState().FlashingCell;
|
|
@@ -17,10 +18,12 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
20
|
mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition) {
|
|
20
|
-
|
|
21
|
+
let flashingDefaults = this.adaptable.adaptableOptions.flashingCellOptions;
|
|
21
22
|
if (!flashingDefaults) {
|
|
22
23
|
return flashingCellDefinition;
|
|
23
24
|
}
|
|
25
|
+
// deep clone it, otherwise we will mutate&share(!!) the global flashingCellOptions object
|
|
26
|
+
flashingDefaults = (0, Helper_1.cloneObject)(flashingDefaults);
|
|
24
27
|
if (!flashingCellDefinition.DownChangeStyle && flashingDefaults.defaultDownChangeStyle) {
|
|
25
28
|
flashingCellDefinition.DownChangeStyle = flashingDefaults.defaultDownChangeStyle;
|
|
26
29
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AdaptableStyle } from '../../PredefinedConfig/Common/AdaptableStyle';
|
|
2
2
|
import { ApiBase, LayoutAssociatedObjectLoadConfig } from './ApiBase';
|
|
3
3
|
import { FormatColumnApi } from '../FormatColumnApi';
|
|
4
|
-
import { FormatColumnState, FormatColumn
|
|
4
|
+
import { FormatColumnState, FormatColumn } from '../../PredefinedConfig/FormatColumnState';
|
|
5
5
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
6
6
|
import { RowNode } from '@ag-grid-community/core';
|
|
7
7
|
import { AdaptableFormat } from '../../types';
|
|
8
|
+
import { AdaptablePredicateDef, AdaptableScope } from '../../../types';
|
|
8
9
|
export declare class FormatColumnApiImpl extends ApiBase implements FormatColumnApi {
|
|
9
10
|
getFormatColumnState(): FormatColumnState;
|
|
10
11
|
getAllFormatColumn(config?: LayoutAssociatedObjectLoadConfig): FormatColumn[];
|
|
@@ -12,8 +13,7 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
12
13
|
getAllActiveFormatColumn(): FormatColumn[];
|
|
13
14
|
getAllSuspendedFormatColumn(): FormatColumn[];
|
|
14
15
|
getAllFormatColumnWithStyle(): FormatColumn[];
|
|
15
|
-
|
|
16
|
-
getColumnIdsFromColumnComparison(columnComparison: ColumnComparison): string[];
|
|
16
|
+
getAllFormatColumnWithStyleAndCellAlignment(): FormatColumn[];
|
|
17
17
|
getAllFormatColumnWithDisplayFormat(): FormatColumn[];
|
|
18
18
|
getAllFormatColumnWithCellAlignment(): FormatColumn[];
|
|
19
19
|
addFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
@@ -26,29 +26,48 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
26
26
|
suspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
27
27
|
unSuspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
28
28
|
applyFormatColumnDisplayFormats(): void;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
getFormatColumnsForColumn(column: AdaptableColumn, config?: {
|
|
30
|
+
includeSuspended?: boolean;
|
|
31
|
+
}): FormatColumn[];
|
|
32
|
+
getFormatColumnsWithStyleForColumn(column: AdaptableColumn, config?: {
|
|
33
|
+
includeSuspended?: boolean;
|
|
34
|
+
}): FormatColumn[];
|
|
35
|
+
getFormatColumnsForColumnId(columnId: string, config?: {
|
|
36
|
+
includeSuspended?: boolean;
|
|
37
|
+
}): FormatColumn[];
|
|
38
|
+
getFormatColumnWithStyleClassNameForColumn(column: AdaptableColumn, config?: {
|
|
39
|
+
includeSuspended?: boolean;
|
|
40
|
+
}): FormatColumn[];
|
|
41
|
+
getFormatColumnsWithDisplayFormatForColumn(column: AdaptableColumn, config?: {
|
|
42
|
+
includeSuspended?: boolean;
|
|
43
|
+
}): FormatColumn[];
|
|
35
44
|
getFormatColumnWithSingleColumnScope(columnId: string): FormatColumn | undefined;
|
|
36
|
-
private
|
|
45
|
+
private getFormatColumnInColumnScope;
|
|
46
|
+
private getFormatColumnWithColumnInScope;
|
|
37
47
|
hasStyleFormatColumns(): boolean;
|
|
38
48
|
showFormatColumnPopup(): void;
|
|
39
49
|
getFormatColumnsWithAllScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
|
|
40
50
|
getFormatColumnsWithDataTypeScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
|
|
41
51
|
getFormatColumnsWithColumnScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
|
|
42
|
-
getNumericStyleMinValue(numericStyle: ColumnStyle, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
43
|
-
getNumericStyleMaxValue(numericStyle: ColumnStyle, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number | undefined;
|
|
44
|
-
getCellColorRangeMinValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
45
|
-
getCellColorRangeMaxValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
|
|
46
|
-
getCheckBoxStyleFormatColumn(column: AdaptableColumn): FormatColumn | undefined;
|
|
47
|
-
isCheckBoxStyleFormatColumn(column: AdaptableColumn): boolean;
|
|
48
|
-
fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
|
|
49
52
|
private applyCustomFormatters;
|
|
50
53
|
getNumberFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
|
|
51
54
|
getStringFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
|
|
52
55
|
getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
|
|
53
56
|
hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
|
|
57
|
+
getFormatColumnPredicateDefs(): AdaptablePredicateDef[];
|
|
58
|
+
getFormatColumnDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
59
|
+
getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
|
|
60
|
+
node: RowNode;
|
|
61
|
+
value: any;
|
|
62
|
+
}): FormatColumn[];
|
|
63
|
+
isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
|
|
64
|
+
node: RowNode;
|
|
65
|
+
value: any;
|
|
66
|
+
}): boolean;
|
|
67
|
+
private evaluatePredicate;
|
|
68
|
+
private shouldRunStyle;
|
|
69
|
+
private evaluateExpression;
|
|
70
|
+
getFormatColumnsWithExpression(): FormatColumn[] | undefined;
|
|
71
|
+
incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
72
|
+
decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
54
73
|
}
|