@adaptabletools/adaptable-cjs 23.0.0-canary.3 → 23.0.0-canary.5
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/index.css +116 -61
- package/package.json +9 -4
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +0 -4
- package/src/AdaptableOptions/EditOptions.d.ts +2 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +0 -7
- package/src/AdaptableState/Common/AdaptableForm.d.ts +18 -1
- package/src/AdaptableState/Common/AdaptableForm.js +34 -0
- package/src/AdaptableState/Common/AggregationColumns.d.ts +14 -6
- package/src/AdaptableState/Common/AggregationColumns.js +30 -3
- package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +3 -2
- package/src/AdaptableState/Common/ColumnScope.d.ts +4 -0
- package/src/AdaptableState/Common/Enums.d.ts +5 -10
- package/src/AdaptableState/Common/Enums.js +5 -11
- package/src/AdaptableState/PlusMinusState.d.ts +3 -3
- package/src/AdaptableState/ShortcutState.d.ts +2 -6
- package/src/AdaptableState/StyledColumnState.d.ts +3 -5
- package/src/AdaptableState/ThemeState.d.ts +33 -28
- package/src/Api/EventApi.d.ts +14 -1
- package/src/Api/Events/ThemeChanged.d.ts +6 -0
- package/src/Api/Events/ThemeSelected.d.ts +11 -0
- package/src/Api/Events/ThemeSelected.js +2 -0
- package/src/Api/Implementation/EventApiImpl.js +4 -0
- package/src/Api/Implementation/LayoutApiImpl.d.ts +0 -2
- package/src/Api/Implementation/LayoutApiImpl.js +0 -14
- package/src/Api/Implementation/LayoutHelpers.d.ts +2 -0
- package/src/Api/Implementation/LayoutHelpers.js +31 -8
- package/src/Api/Implementation/ThemeApiImpl.d.ts +3 -2
- package/src/Api/Implementation/ThemeApiImpl.js +19 -15
- package/src/Api/Internal/EventInternalApi.d.ts +2 -0
- package/src/Api/Internal/EventInternalApi.js +8 -1
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +4 -4
- package/src/Api/Internal/StyledColumnInternalApi.js +4 -4
- package/src/Api/Internal/ThemeInternalApi.d.ts +0 -1
- package/src/Api/Internal/ThemeInternalApi.js +0 -10
- package/src/Api/LayoutApi.d.ts +1 -8
- package/src/Api/ThemeApi.d.ts +6 -2
- package/src/Redux/ActionsReducers/ThemeRedux.d.ts +3 -3
- package/src/Strategy/CalculatedColumnModule.js +3 -1
- package/src/Strategy/FormatColumnModule.js +12 -5
- package/src/Strategy/LayoutModule.js +13 -8
- package/src/Strategy/StyledColumnModule.js +58 -30
- package/src/Utilities/Constants/ReduxConstants.d.ts +2 -2
- package/src/Utilities/Constants/ReduxConstants.js +1 -14
- package/src/Utilities/Helpers/FormatHelper.js +20 -1
- package/src/Utilities/Helpers/SparklineOptionsHelper.d.ts +7 -0
- package/src/Utilities/Helpers/SparklineOptionsHelper.js +68 -0
- package/src/Utilities/Helpers/StyledColumnGradientHelper.d.ts +23 -1
- package/src/Utilities/Helpers/StyledColumnGradientHelper.js +212 -1
- package/src/Utilities/Helpers/ThemeHelpers.d.ts +5 -0
- package/src/Utilities/Helpers/ThemeHelpers.js +43 -0
- package/src/Utilities/Helpers/percentBarPreviewHelper.d.ts +19 -0
- package/src/Utilities/Helpers/percentBarPreviewHelper.js +155 -0
- package/src/Utilities/ObjectFactory.d.ts +1 -3
- package/src/Utilities/ObjectFactory.js +0 -9
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +1 -0
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +7 -0
- package/src/Utilities/Services/CalculatedColumnSyntheticChange.d.ts +4 -0
- package/src/Utilities/Services/CalculatedColumnSyntheticChange.js +120 -0
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +1 -0
- package/src/Utilities/Services/ThemeService.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +17 -16
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +113 -102
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +12 -13
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +54 -54
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -3
- package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +29 -37
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +2 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +9 -13
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +28 -15
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +7 -9
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +3 -10
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +1 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +35 -52
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +4 -31
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/PreviewChartSection.d.ts +5 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/PreviewChartSection.js +26 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.d.ts +1 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +9 -6
- package/src/View/Comments/CommentsEditor.js +1 -1
- package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +1 -1
- package/src/View/Components/ModuleProfile.js +1 -1
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +0 -1
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +1 -2
- package/src/View/Components/RangesComponent.d.ts +7 -2
- package/src/View/Components/RangesComponent.js +94 -22
- package/src/View/Components/Selectors/ColumnSelector.js +5 -0
- package/src/View/Components/StyleComponent.d.ts +1 -0
- package/src/View/Components/StyleComponent.js +1 -1
- package/src/View/Components/ValueSelector/index.js +70 -57
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +8 -13
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +8 -8
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +11 -12
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +5 -4
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +2 -1
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +4 -15
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +24 -27
- package/src/View/Export/Wizard/ReportNameWizardSection.js +8 -11
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +19 -22
- package/src/View/Export/Wizard/ScheduledReportSettings.d.ts +2 -0
- package/src/View/Export/Wizard/ScheduledReportSettings.js +12 -12
- package/src/View/Export/Wizard/ScheduledReportWizard.js +2 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +8 -6
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +22 -21
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -11
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +19 -3
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +7 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +120 -13
- package/src/View/FormatColumn/Wizard/FormatColumnPreview.d.ts +15 -0
- package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +78 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +4 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +34 -0
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +11 -6
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +3 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +64 -13
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +3 -1
- package/src/View/FreeTextColumn/Utilities/getFreeTextColumnSettingsTags.d.ts +2 -0
- package/src/View/FreeTextColumn/Utilities/getFreeTextColumnSettingsTags.js +19 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnDefinitionWizardSection.d.ts +10 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnDefinitionWizardSection.js +60 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +2 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +35 -70
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +14 -10
- package/src/View/Layout/LayoutViewPanel.js +23 -21
- package/src/View/Layout/TransposedPopup.js +2 -2
- package/src/View/Layout/Wizard/LayoutWizard.js +3 -3
- package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +2 -3
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +116 -26
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +79 -79
- package/src/View/Layout/Wizard/sections/FilterSection.js +31 -32
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +10 -10
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.d.ts +1 -2
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +101 -51
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +9 -8
- package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +4 -4
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +36 -33
- package/src/View/Layout/Wizard/sections/RowSelectionSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +95 -73
- package/src/View/Layout/Wizard/sections/SettingsSection.js +3 -4
- package/src/View/Layout/Wizard/sections/SortSection.js +2 -2
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +7 -12
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +1 -3
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.d.ts +4 -0
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +45 -12
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +10 -17
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +2 -6
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +5 -21
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +15 -21
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +10 -17
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +16 -5
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +2 -2
- package/src/View/Shortcut/shortcutOperations.d.ts +3 -0
- package/src/View/Shortcut/shortcutOperations.js +32 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +7 -6
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +26 -16
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.d.ts +10 -2
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +100 -15
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +14 -0
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +48 -25
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.d.ts +2 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +109 -33
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +20 -12
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +124 -23
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.d.ts +1 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +35 -11
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +88 -11
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +125 -35
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.d.ts +1 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +55 -74
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview.js +20 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +6 -12
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +5 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.d.ts +5 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +11 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview.js +20 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.d.ts +3 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +32 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +64 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.d.ts +10 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.js +35 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.d.ts +10 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +96 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.d.ts +8 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +57 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.d.ts +8 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +58 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +18 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +66 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.d.ts +10 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +133 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +12 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts +1 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +53 -29
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +1 -1
- package/src/View/Theme/ThemePopup.d.ts +2 -14
- package/src/View/Theme/ThemePopup.js +1 -36
- package/src/View/UIHelper.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +6 -20
- package/src/View/renderWithAdaptableContext.js +1 -2
- package/src/agGrid/AdaptableAgGrid.d.ts +1 -1
- package/src/agGrid/AdaptableAgGrid.js +36 -41
- package/src/agGrid/AgGridAdapter.d.ts +1 -1
- package/src/agGrid/AgGridAdapter.js +27 -17
- package/src/agGrid/AgGridColumnAdapter.js +10 -19
- package/src/agGrid/AgGridMenuAdapter.d.ts +0 -1
- package/src/agGrid/AgGridMenuAdapter.js +20 -37
- package/src/agGrid/buildValueAggregationMenuItem.d.ts +19 -0
- package/src/agGrid/buildValueAggregationMenuItem.js +114 -0
- package/src/agGrid/cellRenderers/IconRenderer.d.ts +6 -0
- package/src/agGrid/cellRenderers/IconRenderer.js +46 -17
- package/src/agGrid/createAgGridIcon.d.ts +10 -0
- package/src/agGrid/createAgGridIcon.js +19 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +10 -5
- package/src/components/Combobox/VirtualizedList.js +5 -5
- package/src/components/Combobox/comboboxUtils.d.ts +4 -1
- package/src/components/Combobox/comboboxUtils.js +2 -0
- package/src/components/Combobox/index.d.ts +1 -0
- package/src/components/Combobox/index.js +36 -16
- package/src/components/DragAndDropContext/UnusedPanel.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/Input/NumberInput.js +1 -1
- package/src/components/Panel/index.js +1 -1
- package/src/components/SimpleButton/index.js +4 -4
- package/src/components/Toggle/Toggle.js +1 -1
- package/src/components/Toggle/ToggleGroup.js +1 -1
- package/src/components/Tree/TreeDropdown/index.js +1 -5
- package/src/env.js +2 -2
- package/src/layout-manager/src/LayoutManagerModel.d.ts +5 -1
- package/src/layout-manager/src/index.js +2 -9
- package/src/metamodel/adaptable.metamodel.d.ts +39 -46
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +5 -5
- package/themes/dark.css +1 -68
- package/themes/light.css +1 -5
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableState/Common/FilterActionOnDataChange.d.ts +0 -17
- package/src/AdaptableState/Common/FilterActionOnDataChange.js +0 -5
- package/src/Aggregation/ParameterizedAggregationRegistry.d.ts +0 -35
- package/src/Aggregation/ParameterizedAggregationRegistry.js +0 -74
- package/src/Aggregation/definitions/weightedAverageAggregationDefinition.d.ts +0 -3
- package/src/Aggregation/definitions/weightedAverageAggregationDefinition.js +0 -58
- package/src/Aggregation/parameterizedAggregationColumnMenu.d.ts +0 -8
- package/src/Aggregation/parameterizedAggregationColumnMenu.js +0 -143
- package/src/Aggregation/parameterizedAggregationHeader.d.ts +0 -13
- package/src/Aggregation/parameterizedAggregationHeader.js +0 -65
- package/src/Aggregation/parameterizedAggregationHelpers.d.ts +0 -23
- package/src/Aggregation/parameterizedAggregationHelpers.js +0 -121
- package/src/Aggregation/parameterizedAggregationWizardHelpers.d.ts +0 -9
- package/src/Aggregation/parameterizedAggregationWizardHelpers.js +0 -74
- package/src/Aggregation/validateParameterizedAggregations.d.ts +0 -4
- package/src/Aggregation/validateParameterizedAggregations.js +0 -25
- package/src/View/AdaptableComputedCSSVarsContext.d.ts +0 -12
- package/src/View/AdaptableComputedCSSVarsContext.js +0 -36
- package/src/View/Layout/Wizard/sections/ParameterizedAggFuncPicker.d.ts +0 -12
- package/src/View/Layout/Wizard/sections/ParameterizedAggFuncPicker.js +0 -48
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgeSettings.d.ts +0 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgeSettings.js +0 -32
- package/src/View/Theme/VariantSelector.d.ts +0 -8
- package/src/View/Theme/VariantSelector.js +0 -25
- package/src/components/Select/CSSNumericVariableWatch.d.ts +0 -11
- package/src/components/Select/CSSNumericVariableWatch.js +0 -51
|
@@ -4,10 +4,10 @@ import { BadgeStyle, BadgeStyleDefinition, CellColorRange, ColumnComparison, Num
|
|
|
4
4
|
import { IRowNode } from 'ag-grid-enterprise';
|
|
5
5
|
import { PredicateDefHandlerContext } from '../../types';
|
|
6
6
|
export declare class StyledColumnInternalApi extends ApiBase {
|
|
7
|
-
getMinValueForNumericColumn(column: AdaptableColumn): number | undefined;
|
|
8
|
-
getMaxValueForNumericColumn(column: AdaptableColumn): number | undefined;
|
|
9
|
-
getAvgValueForNumericColumn(column: AdaptableColumn): number | undefined;
|
|
10
|
-
getMedianValueForNumericColumn(column: AdaptableColumn): number | undefined;
|
|
7
|
+
getMinValueForNumericColumn(column: AdaptableColumn | undefined): number | undefined;
|
|
8
|
+
getMaxValueForNumericColumn(column: AdaptableColumn | undefined): number | undefined;
|
|
9
|
+
getAvgValueForNumericColumn(column: AdaptableColumn | undefined): number | undefined;
|
|
10
|
+
getMedianValueForNumericColumn(column: AdaptableColumn | undefined): number | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Gets the Minimum Value to display for a Styled Column
|
|
13
13
|
* @param styledColumn Styled Column to check
|
|
@@ -15,25 +15,25 @@ const isDynamicRangeEndpoint = (value) => typeof value === 'string' &&
|
|
|
15
15
|
DYNAMIC_RANGE_ENDPOINTS.includes(value);
|
|
16
16
|
class StyledColumnInternalApi extends ApiBase_1.ApiBase {
|
|
17
17
|
getMinValueForNumericColumn(column) {
|
|
18
|
-
if (column.dataType !== 'number') {
|
|
18
|
+
if (!column || column.dataType !== 'number') {
|
|
19
19
|
return undefined;
|
|
20
20
|
}
|
|
21
21
|
return this._adaptable.getMinMaxCachedValueForColumn(column, 'min');
|
|
22
22
|
}
|
|
23
23
|
getMaxValueForNumericColumn(column) {
|
|
24
|
-
if (column.dataType !== 'number') {
|
|
24
|
+
if (!column || column.dataType !== 'number') {
|
|
25
25
|
return undefined;
|
|
26
26
|
}
|
|
27
27
|
return this._adaptable.getMinMaxCachedValueForColumn(column, 'max');
|
|
28
28
|
}
|
|
29
29
|
getAvgValueForNumericColumn(column) {
|
|
30
|
-
if (column.dataType !== 'number') {
|
|
30
|
+
if (!column || column.dataType !== 'number') {
|
|
31
31
|
return undefined;
|
|
32
32
|
}
|
|
33
33
|
return this._adaptable.getMinMaxCachedValueForColumn(column, 'avg');
|
|
34
34
|
}
|
|
35
35
|
getMedianValueForNumericColumn(column) {
|
|
36
|
-
if (column.dataType !== 'number') {
|
|
36
|
+
if (!column || column.dataType !== 'number') {
|
|
37
37
|
return undefined;
|
|
38
38
|
}
|
|
39
39
|
return this._adaptable.getMinMaxCachedValueForColumn(column, 'median');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ThemeInternalApi = void 0;
|
|
4
|
-
const windowFactory_1 = require("../../View/Components/Popups/WindowPopups/windowFactory");
|
|
5
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
6
5
|
class ThemeInternalApi extends ApiBase_1.ApiBase {
|
|
7
6
|
isSystemTheme(themeName) {
|
|
@@ -15,14 +14,5 @@ class ThemeInternalApi extends ApiBase_1.ApiBase {
|
|
|
15
14
|
getDOMPreferredColorScheme() {
|
|
16
15
|
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
17
16
|
}
|
|
18
|
-
openInWindow() {
|
|
19
|
-
this.getAdaptableInternalApi().showPopupWindow({
|
|
20
|
-
id: windowFactory_1.SHOW_THEME_EDITOR,
|
|
21
|
-
title: 'Theme',
|
|
22
|
-
icon: 'theme',
|
|
23
|
-
factoryId: windowFactory_1.SHOW_THEME_EDITOR,
|
|
24
|
-
popupProps: {},
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
17
|
}
|
|
28
18
|
exports.ThemeInternalApi = ThemeInternalApi;
|
package/src/Api/LayoutApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptableColumn, ColumnSort,
|
|
1
|
+
import { AdaptableColumn, ColumnSort, PivotLayout, TableLayout } from '../../types';
|
|
2
2
|
import { ExtendedLayout } from '../AdaptableState/Common/ExtendedLayout';
|
|
3
3
|
import { LayoutState, Layout } from '../AdaptableState/LayoutState';
|
|
4
4
|
/**
|
|
@@ -180,11 +180,4 @@ export interface LayoutApi {
|
|
|
180
180
|
* @param columnId Column to add
|
|
181
181
|
*/
|
|
182
182
|
addColumnToCurrentLayout(columnId: string): void;
|
|
183
|
-
/**
|
|
184
|
-
* Sets a parameterized aggregation (e.g. Weighted Average with a weight column) on a value column
|
|
185
|
-
* in the current Layout and applies it to the grid.
|
|
186
|
-
* @param columnId Value column being aggregated
|
|
187
|
-
* @param parameterizedAgg Parameterized aggregation definition (must be complete)
|
|
188
|
-
*/
|
|
189
|
-
setColumnParameterizedAggregation(columnId: string, parameterizedAgg: ParameterizedAggFunc): void;
|
|
190
183
|
}
|
package/src/Api/ThemeApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptableTheme, ThemeState } from '../AdaptableState/ThemeState';
|
|
1
|
+
import { AdaptableTheme, SystemThemeEntry, ThemeState } from '../AdaptableState/ThemeState';
|
|
2
2
|
/**
|
|
3
3
|
* Provides run-time access to the Theme Module and associated state
|
|
4
4
|
*/
|
|
@@ -41,21 +41,24 @@ export interface ThemeApi {
|
|
|
41
41
|
*
|
|
42
42
|
* @param systemThemes system themes to use ('light', 'dark', both, or none)
|
|
43
43
|
*/
|
|
44
|
-
setSystemThemes(systemThemes:
|
|
44
|
+
setSystemThemes(systemThemes: SystemThemeEntry[]): void;
|
|
45
45
|
/**
|
|
46
46
|
* Sets available User Themes
|
|
47
47
|
*
|
|
48
48
|
* @param userThemes User themes to set - each has name, description
|
|
49
|
+
* @deprecated Will be removed in the next major version.
|
|
49
50
|
*/
|
|
50
51
|
setUserThemes(userThemes: AdaptableTheme[]): void;
|
|
51
52
|
/**
|
|
52
53
|
* Adds a User Theme to State
|
|
53
54
|
* @param theme
|
|
55
|
+
* @deprecated Will be removed in the next major version.
|
|
54
56
|
*/
|
|
55
57
|
addUserTheme(theme: AdaptableTheme): void;
|
|
56
58
|
/**
|
|
57
59
|
* Deletes a User Theme from State
|
|
58
60
|
* @param theme
|
|
61
|
+
* @deprecated Will be removed in the next major version.
|
|
59
62
|
*/
|
|
60
63
|
deleteUserTheme(theme: AdaptableTheme): void;
|
|
61
64
|
/**
|
|
@@ -64,6 +67,7 @@ export interface ThemeApi {
|
|
|
64
67
|
getSystemThemes(): AdaptableTheme[];
|
|
65
68
|
/**
|
|
66
69
|
* Retrieves User Themes in State
|
|
70
|
+
* @deprecated Will be removed in the next major version.
|
|
67
71
|
*/
|
|
68
72
|
getUserThemes(): AdaptableTheme[];
|
|
69
73
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Redux from 'redux';
|
|
2
|
-
import { ThemeState, AdaptableTheme } from '../../AdaptableState/ThemeState';
|
|
2
|
+
import { ThemeState, AdaptableTheme, SystemThemeEntry } from '../../AdaptableState/ThemeState';
|
|
3
3
|
/**
|
|
4
4
|
* @ReduxAction System Themes have been set
|
|
5
5
|
*/
|
|
@@ -29,7 +29,7 @@ export declare const THEME_ADD = "THEME_ADD";
|
|
|
29
29
|
*/
|
|
30
30
|
export declare const THEME_DELETE = "THEME_DELETE";
|
|
31
31
|
export interface ThemeSetSystemThemesAction extends Redux.Action {
|
|
32
|
-
SystemThemes:
|
|
32
|
+
SystemThemes: SystemThemeEntry[];
|
|
33
33
|
}
|
|
34
34
|
export interface ThemeSetUserThemesAction extends Redux.Action {
|
|
35
35
|
UserThemes: AdaptableTheme[];
|
|
@@ -52,7 +52,7 @@ export interface ThemeAddUserThemeAction extends Redux.Action {
|
|
|
52
52
|
export interface ThemeDeleteUserThemeAction extends Redux.Action {
|
|
53
53
|
theme: AdaptableTheme;
|
|
54
54
|
}
|
|
55
|
-
export declare const ThemeSetSystemThemes: (SystemThemes:
|
|
55
|
+
export declare const ThemeSetSystemThemes: (SystemThemes: SystemThemeEntry[]) => ThemeSetSystemThemesAction;
|
|
56
56
|
export declare const ThemeSetUserThemes: (UserThemes: AdaptableTheme[]) => ThemeSetUserThemesAction;
|
|
57
57
|
export declare const ThemeSelect: (Theme: string) => ThemeSelectAction;
|
|
58
58
|
export declare const ThemeReady: (themeState: ThemeState) => ThemeReadyAction;
|
|
@@ -36,7 +36,9 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
36
36
|
this.api.internalApi
|
|
37
37
|
.getDataService()
|
|
38
38
|
.on('CellDataChanged', (cellDataChangedInfo) => {
|
|
39
|
-
if (cellDataChangedInfo.trigger !== 'aggChange' &&
|
|
39
|
+
if (cellDataChangedInfo.trigger !== 'aggChange' &&
|
|
40
|
+
cellDataChangedInfo.trigger !== 'calculatedColumnChange' &&
|
|
41
|
+
!cellDataChangedInfo.preventEdit) {
|
|
40
42
|
this.api.internalApi
|
|
41
43
|
.getCalculatedColumnExpressionService()
|
|
42
44
|
.listentoCellDataChange(cellDataChangedInfo);
|
|
@@ -15,6 +15,8 @@ const getRuleViewItems_1 = require("../Utilities/getRuleViewItems");
|
|
|
15
15
|
const getScopeViewItems_1 = require("../Utilities/getScopeViewItems");
|
|
16
16
|
const getFormatColumnRowTargetItems_1 = require("./Utilities/FormatColumn/getFormatColumnRowTargetItems");
|
|
17
17
|
const FormatColumnStyleWizardSection_1 = require("../View/FormatColumn/Wizard/FormatColumnStyleWizardSection");
|
|
18
|
+
const FormatColumnRuleWizardSection_1 = require("../View/FormatColumn/Wizard/FormatColumnRuleWizardSection");
|
|
19
|
+
const FormatColumnPreview_1 = require("../View/FormatColumn/Wizard/FormatColumnPreview");
|
|
18
20
|
class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
19
21
|
constructor(api) {
|
|
20
22
|
super(ModuleConstants.FormatColumnModuleId, ModuleConstants.FormatColumnFriendlyName, 'color-palette', 'FormatColumnPopup', 'Create a column style, display format or cell alignment', api);
|
|
@@ -90,19 +92,24 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
90
92
|
name: 'Name',
|
|
91
93
|
values: [formatColumn.Name],
|
|
92
94
|
},
|
|
95
|
+
(0, getFormatColumnSettingsViewItems_1.getFormatColumnSettingsViewItems)(formatColumn),
|
|
93
96
|
(0, getScopeViewItems_1.getScopeViewItems)(formatColumn.Scope, this.api),
|
|
94
97
|
(0, getFormatColumnRowTargetItems_1.getFormatColumnRowTargetItems)(formatColumn),
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
(0, FormatColumnRuleWizardSection_1.hasFormatColumnCondition)(formatColumn) &&
|
|
99
|
+
(0, getRuleViewItems_1.getRuleViewItems)(formatColumn.Rule, this.api),
|
|
100
|
+
(0, FormatColumnStyleWizardSection_1.hasFormatColumnStyle)(formatColumn) && {
|
|
97
101
|
name: 'Style',
|
|
98
|
-
|
|
102
|
+
values: (0, FormatColumnStyleWizardSection_1.getFormatColumnStyleViewValues)(formatColumn),
|
|
99
103
|
},
|
|
100
|
-
{
|
|
104
|
+
(0, FormatColumnFormatWizardSection_1.hasFormatColumnDisplayFormat)(formatColumn) && {
|
|
101
105
|
name: 'Display Format',
|
|
102
106
|
values: [(0, FormatColumnFormatWizardSection_1.getFormatColumnFormatSummaryValue)(formatColumn)],
|
|
103
107
|
},
|
|
104
|
-
(0, getFormatColumnSettingsViewItems_1.getFormatColumnSettingsViewItems)(formatColumn),
|
|
105
108
|
(0, getObjectTagsViewItems_1.getObjectTagsViewItems)(formatColumn, this.api),
|
|
109
|
+
{
|
|
110
|
+
name: 'Preview',
|
|
111
|
+
view: () => (0, FormatColumnPreview_1.renderFormatColumnPreviewSummary)(formatColumn, this.api),
|
|
112
|
+
},
|
|
106
113
|
].filter(Boolean),
|
|
107
114
|
};
|
|
108
115
|
}
|
|
@@ -13,8 +13,7 @@ const LayoutCloneButton_1 = require("../View/Layout/LayoutCloneButton");
|
|
|
13
13
|
const LayoutWizard_1 = require("../View/Layout/Wizard/LayoutWizard");
|
|
14
14
|
const getLayoutFilterViewItems_1 = require("./Utilities/Layout/getLayoutFilterViewItems");
|
|
15
15
|
const getLayoutSortViewItems_1 = require("./Utilities/Layout/getLayoutSortViewItems");
|
|
16
|
-
const
|
|
17
|
-
const parameterizedAggregationHeader_1 = require("../Aggregation/parameterizedAggregationHeader");
|
|
16
|
+
const AggregationColumns_1 = require("../AdaptableState/Common/AggregationColumns");
|
|
18
17
|
const windowFactory_1 = require("../View/Components/Popups/WindowPopups/windowFactory");
|
|
19
18
|
const flattenDeep_1 = tslib_1.__importDefault(require("../Utilities/utils/flattenDeep"));
|
|
20
19
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
|
|
@@ -342,10 +341,13 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
342
341
|
if (ColumnId === 'Source' || ColumnId === 'Uuid' || ColumnId === 'AdaptableVersion') {
|
|
343
342
|
return '';
|
|
344
343
|
}
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
let aggFnName = '';
|
|
345
|
+
if (typeof aggFn === 'string') {
|
|
346
|
+
aggFnName = aggFn;
|
|
347
|
+
}
|
|
348
|
+
else if (typeof aggFn === 'object' && aggFn.type === 'weightedAverage') {
|
|
349
|
+
aggFnName = AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME;
|
|
347
350
|
}
|
|
348
|
-
const aggFnName = typeof aggFn === 'string' ? aggFn : '';
|
|
349
351
|
return `${aggFnName}(${columnIdToFriendlyName(ColumnId)})`;
|
|
350
352
|
}).filter(Boolean),
|
|
351
353
|
},
|
|
@@ -357,10 +359,13 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
357
359
|
if (ColumnId === 'Source' || ColumnId === 'Uuid' || ColumnId === 'AdaptableVersion') {
|
|
358
360
|
return '';
|
|
359
361
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
+
let aggFnName = '';
|
|
363
|
+
if (typeof aggFn === 'string') {
|
|
364
|
+
aggFnName = aggFn;
|
|
365
|
+
}
|
|
366
|
+
else if (typeof aggFn === 'object' && aggFn.type === 'weightedAverage') {
|
|
367
|
+
aggFnName = AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME;
|
|
362
368
|
}
|
|
363
|
-
const aggFnName = typeof aggFn === 'string' ? aggFn : '';
|
|
364
369
|
return `${aggFnName}(${columnIdToFriendlyName(ColumnId)})`;
|
|
365
370
|
}).filter(Boolean),
|
|
366
371
|
},
|
|
@@ -9,14 +9,22 @@ const StyledColumnWizard_1 = require("../View/StyledColumn/Wizard/StyledColumnWi
|
|
|
9
9
|
const StyledColumnWizardStyleSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection");
|
|
10
10
|
const StyledColumnWizardGradientSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardGradientSection");
|
|
11
11
|
const StyledColumnWizardBulletSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardBulletSection");
|
|
12
|
+
const StyledColumnBulletPreview_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview");
|
|
12
13
|
const StyledColumnWizardRatingSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardRatingSection");
|
|
14
|
+
const StyledColumnRatingPreview_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview");
|
|
13
15
|
const StyledColumnWizardRangeBarSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection");
|
|
16
|
+
const StyledColumnRangeBarPreview_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview");
|
|
14
17
|
const StyledColumnWizardIconSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardIconSection");
|
|
18
|
+
const StyledColumnIconPreview_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview");
|
|
15
19
|
const StyledColumnWizardScopeSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardScopeSection");
|
|
16
20
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../Utilities/ObjectFactory"));
|
|
17
21
|
const StyledColumnBadgePreview_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview");
|
|
22
|
+
const StyledColumnGradientPreview_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview");
|
|
23
|
+
const StyledColumnPercentBarPreview_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview");
|
|
24
|
+
const StyledColumnBadgeSection_1 = require("../View/StyledColumn/Wizard/StyledColumnBadgeSection");
|
|
25
|
+
const StyledColumnSparklineSettingsSection_1 = require("../View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection");
|
|
26
|
+
const StyledColumnSparklinePreview_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview");
|
|
18
27
|
const getObjectTagsViewItems_1 = require("../Utilities/getObjectTagsViewItems");
|
|
19
|
-
const StyledColumnBadgeSettings_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgeSettings");
|
|
20
28
|
class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
21
29
|
constructor(api) {
|
|
22
30
|
super(ModuleConstants.StyledColumnModuleId, ModuleConstants.StyledColumnFriendlyName, 'brush', 'StyledColumnPopup', // to change
|
|
@@ -287,80 +295,100 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
287
295
|
if (styledColumn.PercentBarStyle) {
|
|
288
296
|
specificTypeItems.push({
|
|
289
297
|
name: 'Style',
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
298
|
+
values: (0, StyledColumnWizardStyleSection_1.getStyledColumnPercentBarStyleViewValues)(styledColumn),
|
|
299
|
+
});
|
|
300
|
+
specificTypeItems.push({
|
|
301
|
+
name: 'Preview',
|
|
302
|
+
view: StyledColumnPercentBarPreview_1.StyledColumnPercentBarPreview,
|
|
293
303
|
});
|
|
294
304
|
}
|
|
295
305
|
if (styledColumn.GradientStyle) {
|
|
296
306
|
specificTypeItems.push({
|
|
297
307
|
name: 'Style',
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
308
|
+
values: (0, StyledColumnWizardGradientSection_1.getStyledColumnGradientStyleViewValues)(styledColumn),
|
|
309
|
+
});
|
|
310
|
+
specificTypeItems.push({
|
|
311
|
+
name: 'Preview',
|
|
312
|
+
view: StyledColumnGradientPreview_1.StyledColumnGradientPreview,
|
|
301
313
|
});
|
|
302
314
|
}
|
|
303
315
|
}
|
|
304
316
|
if (styledColumn.BulletChartStyle) {
|
|
305
317
|
specificTypeItems.push({
|
|
306
318
|
name: 'Ranges',
|
|
307
|
-
view:
|
|
308
|
-
return (0, StyledColumnWizardBulletSection_1.renderStyledColumnBulletRangesSummary)(styledColumn);
|
|
309
|
-
},
|
|
319
|
+
view: StyledColumnWizardBulletSection_1.StyledColumnBulletRangesView,
|
|
310
320
|
});
|
|
311
321
|
specificTypeItems.push({
|
|
312
322
|
name: 'Style',
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
323
|
+
values: (0, StyledColumnWizardBulletSection_1.getStyledColumnBulletStyleViewValues)(styledColumn),
|
|
324
|
+
});
|
|
325
|
+
specificTypeItems.push({
|
|
326
|
+
name: 'Preview',
|
|
327
|
+
view: StyledColumnBulletPreview_1.StyledColumnBulletPreview,
|
|
316
328
|
});
|
|
317
329
|
}
|
|
318
330
|
if (styledColumn.RatingStyle) {
|
|
319
331
|
specificTypeItems.push({
|
|
320
332
|
name: 'Style',
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
333
|
+
values: (0, StyledColumnWizardRatingSection_1.getStyledColumnRatingStyleViewValues)(styledColumn),
|
|
334
|
+
});
|
|
335
|
+
specificTypeItems.push({
|
|
336
|
+
name: 'Preview',
|
|
337
|
+
view: StyledColumnRatingPreview_1.StyledColumnRatingPreview,
|
|
324
338
|
});
|
|
325
339
|
}
|
|
326
340
|
if (styledColumn.RangeBarStyle) {
|
|
327
341
|
specificTypeItems.push({
|
|
328
342
|
name: 'Style',
|
|
329
|
-
view:
|
|
330
|
-
return (0, StyledColumnWizardRangeBarSection_1.renderStyledColumnRangeBarRangeStepSummary)(styledColumn);
|
|
331
|
-
},
|
|
343
|
+
view: StyledColumnWizardRangeBarSection_1.StyledColumnRangeBarRangeView,
|
|
332
344
|
});
|
|
333
345
|
specificTypeItems.push({
|
|
334
346
|
name: 'Display',
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
347
|
+
values: (0, StyledColumnWizardRangeBarSection_1.getStyledColumnRangeBarDisplayViewValues)(styledColumn),
|
|
348
|
+
});
|
|
349
|
+
specificTypeItems.push({
|
|
350
|
+
name: 'Preview',
|
|
351
|
+
view: StyledColumnRangeBarPreview_1.StyledColumnRangeBarPreview,
|
|
338
352
|
});
|
|
339
353
|
}
|
|
340
354
|
if (styledColumn.IconStyle) {
|
|
341
355
|
specificTypeItems.push({
|
|
342
356
|
name: 'Mappings',
|
|
343
|
-
view:
|
|
344
|
-
return (0, StyledColumnWizardIconSection_1.renderStyledColumnIconMappingsSummary)(styledColumn);
|
|
345
|
-
},
|
|
357
|
+
view: StyledColumnWizardIconSection_1.StyledColumnIconMappingsView,
|
|
346
358
|
});
|
|
347
359
|
specificTypeItems.push({
|
|
348
360
|
name: 'Style',
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
361
|
+
values: (0, StyledColumnWizardIconSection_1.getStyledColumnIconStyleViewValues)(styledColumn),
|
|
362
|
+
});
|
|
363
|
+
specificTypeItems.push({
|
|
364
|
+
name: 'Preview',
|
|
365
|
+
view: StyledColumnIconPreview_1.StyledColumnIconPreview,
|
|
352
366
|
});
|
|
353
367
|
}
|
|
354
368
|
if (styledColumn.BadgeStyle) {
|
|
355
369
|
specificTypeItems.push({
|
|
356
|
-
name: '
|
|
357
|
-
view:
|
|
370
|
+
name: 'Badges',
|
|
371
|
+
view: StyledColumnBadgeSection_1.StyledColumnBadgeDefinitionsView,
|
|
372
|
+
});
|
|
373
|
+
specificTypeItems.push({
|
|
374
|
+
name: 'Style',
|
|
375
|
+
values: (0, StyledColumnBadgeSection_1.getStyledColumnBadgeStyleViewValues)(styledColumn, this.api),
|
|
358
376
|
});
|
|
359
377
|
specificTypeItems.push({
|
|
360
378
|
name: 'Preview',
|
|
361
379
|
view: StyledColumnBadgePreview_1.StyledColumnBadgePreview,
|
|
362
380
|
});
|
|
363
381
|
}
|
|
382
|
+
if (styledColumn.SparklineStyle) {
|
|
383
|
+
specificTypeItems.push({
|
|
384
|
+
name: 'Style',
|
|
385
|
+
values: (0, StyledColumnSparklineSettingsSection_1.getStyledColumnSparklineStyleViewValues)(styledColumn),
|
|
386
|
+
});
|
|
387
|
+
specificTypeItems.push({
|
|
388
|
+
name: 'Preview',
|
|
389
|
+
view: StyledColumnSparklinePreview_1.StyledColumnSparklinePreview,
|
|
390
|
+
});
|
|
391
|
+
}
|
|
364
392
|
const includedRowKinds = (0, StyledColumnWizardScopeSection_1.collectIncludedRowKindLabels)(styledColumn);
|
|
365
393
|
return {
|
|
366
394
|
abObject: styledColumn,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SummaryOperation } from '../../AdaptableState/Common/Enums';
|
|
2
|
-
import {
|
|
2
|
+
import { SystemThemeEntry } from '../../AdaptableState/ThemeState';
|
|
3
3
|
export declare const CELL_SUMMARY_DEFAULT_OPERATION: SummaryOperation | string;
|
|
4
4
|
export declare const QUICK_SEARCH_DEFAULT_TEXT_BACK_COLOR: string;
|
|
5
5
|
export declare const QUICK_SEARCH_DEFAULT_CELL_BACK_COLOR: string;
|
|
6
6
|
export declare const QUICK_SEARCH_DEFAULT_FORE_COLOR: string;
|
|
7
7
|
export declare const QUICK_SEARCH_DEFAULT_CURRENT_BACK_COLOR: string;
|
|
8
|
-
export declare const SYSTEM_THEMES:
|
|
8
|
+
export declare const SYSTEM_THEMES: SystemThemeEntry[];
|
|
9
9
|
export declare const THEME_DEFAULT_CURRENT_THEME: string;
|
|
@@ -13,18 +13,5 @@ exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = (0, UIHelper_1.getSwatchColorVar)(1);
|
|
|
13
13
|
exports.QUICK_SEARCH_DEFAULT_CURRENT_BACK_COLOR = (0, UIHelper_1.getSwatchColorVar)(20); // orange
|
|
14
14
|
// theme
|
|
15
15
|
// consts for Themes
|
|
16
|
-
exports.SYSTEM_THEMES = [
|
|
17
|
-
{
|
|
18
|
-
Name: GeneralConstants_1.LIGHT_THEME,
|
|
19
|
-
Description: 'Light Theme',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
Name: GeneralConstants_1.DARK_THEME,
|
|
23
|
-
Description: 'Dark Theme',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
Name: GeneralConstants_1.OS_THEME,
|
|
27
|
-
Description: 'OS Theme',
|
|
28
|
-
},
|
|
29
|
-
];
|
|
16
|
+
exports.SYSTEM_THEMES = [GeneralConstants_1.LIGHT_THEME, GeneralConstants_1.DARK_THEME, GeneralConstants_1.OS_THEME];
|
|
30
17
|
exports.THEME_DEFAULT_CURRENT_THEME = GeneralConstants_1.LIGHT_THEME;
|
|
@@ -10,6 +10,20 @@ const sentenceCase_1 = tslib_1.__importDefault(require("../utils/sentenceCase"))
|
|
|
10
10
|
const GeneralConstants_1 = require("../Constants/GeneralConstants");
|
|
11
11
|
const Helper_1 = tslib_1.__importDefault(require("./Helper"));
|
|
12
12
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Extensions/StringExtensions"));
|
|
13
|
+
const getInputFractionDigitCount = (input) => {
|
|
14
|
+
const fraction = String(input).split('.')[1];
|
|
15
|
+
return fraction ? fraction.replace(/0+$/, '').length : 0;
|
|
16
|
+
};
|
|
17
|
+
const getFractionDigitsAfterMultiplier = (input, multiplier, explicitFractionDigits) => {
|
|
18
|
+
if (explicitFractionDigits != null) {
|
|
19
|
+
return explicitFractionDigits;
|
|
20
|
+
}
|
|
21
|
+
if (multiplier === 1) {
|
|
22
|
+
return getInputFractionDigitCount(input);
|
|
23
|
+
}
|
|
24
|
+
const multiplierPower = Math.round(Math.log10(Math.abs(multiplier)));
|
|
25
|
+
return Math.max(0, getInputFractionDigitCount(input) - multiplierPower);
|
|
26
|
+
};
|
|
13
27
|
function NumberFormatter(input, options = {}, rowNode, column, api) {
|
|
14
28
|
let preparedInput;
|
|
15
29
|
if (options.Content) {
|
|
@@ -35,9 +49,11 @@ function NumberFormatter(input, options = {}, rowNode, column, api) {
|
|
|
35
49
|
return preparedInput.toString();
|
|
36
50
|
}
|
|
37
51
|
let multiplier = options.Multiplier ? options.Multiplier : 1;
|
|
52
|
+
let multiplierFractionDigits;
|
|
38
53
|
if (options.Multiplier !== undefined) {
|
|
39
54
|
n *= multiplier;
|
|
40
|
-
|
|
55
|
+
multiplierFractionDigits = getFractionDigitsAfterMultiplier(preparedInput, options.Multiplier, options.FractionDigits);
|
|
56
|
+
n = parseFloat(n.toFixed(multiplierFractionDigits));
|
|
41
57
|
}
|
|
42
58
|
// Set Integer and Fraction Digits to a max of 20
|
|
43
59
|
if (options.IntegerDigits > 20) {
|
|
@@ -77,6 +93,9 @@ function NumberFormatter(input, options = {}, rowNode, column, api) {
|
|
|
77
93
|
else if (options.FractionDigits != null) {
|
|
78
94
|
digitsToUse = options.FractionDigits;
|
|
79
95
|
}
|
|
96
|
+
else if (multiplierFractionDigits != null) {
|
|
97
|
+
digitsToUse = multiplierFractionDigits;
|
|
98
|
+
}
|
|
80
99
|
else {
|
|
81
100
|
let decimalCount = Math.floor(n) === n ? 0 : n.toString().split(fractionsSepatator)[1]?.length || 0;
|
|
82
101
|
digitsToUse = decimalCount;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AgSparklineOptions } from 'ag-charts-types';
|
|
2
|
+
/**
|
|
3
|
+
* AG Charts sparklines do not resolve Adaptable `var(--ab-color-*)` tokens.
|
|
4
|
+
* Resolve palette / theme CSS variables to concrete colours at render time so
|
|
5
|
+
* wizard previews and grid cells match the chosen Fill / Stroke values.
|
|
6
|
+
*/
|
|
7
|
+
export declare function resolveSparklineOptionsForRender(options: AgSparklineOptions): AgSparklineOptions;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveSparklineOptionsForRender = resolveSparklineOptionsForRender;
|
|
4
|
+
const StyleHelper_1 = require("./StyleHelper");
|
|
5
|
+
const resolveCssColor = (color) => {
|
|
6
|
+
if (color == null || color === '') {
|
|
7
|
+
return color;
|
|
8
|
+
}
|
|
9
|
+
const resolved = (0, StyleHelper_1.getVariableColor)(color);
|
|
10
|
+
return resolved || color;
|
|
11
|
+
};
|
|
12
|
+
const resolveHighlightStyle = (style) => {
|
|
13
|
+
if (!style) {
|
|
14
|
+
return style;
|
|
15
|
+
}
|
|
16
|
+
const resolved = { ...style };
|
|
17
|
+
if (style.fill != null) {
|
|
18
|
+
resolved.fill = resolveCssColor(style.fill);
|
|
19
|
+
}
|
|
20
|
+
if (style.stroke != null) {
|
|
21
|
+
resolved.stroke = resolveCssColor(style.stroke);
|
|
22
|
+
}
|
|
23
|
+
return resolved;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* AG Charts sparklines do not resolve Adaptable `var(--ab-color-*)` tokens.
|
|
27
|
+
* Resolve palette / theme CSS variables to concrete colours at render time so
|
|
28
|
+
* wizard previews and grid cells match the chosen Fill / Stroke values.
|
|
29
|
+
*/
|
|
30
|
+
function resolveSparklineOptionsForRender(options) {
|
|
31
|
+
const resolved = { ...options };
|
|
32
|
+
if ('fill' in options && options.fill != null) {
|
|
33
|
+
resolved.fill = resolveCssColor(options.fill);
|
|
34
|
+
}
|
|
35
|
+
if (options.stroke != null) {
|
|
36
|
+
resolved.stroke = resolveCssColor(options.stroke);
|
|
37
|
+
}
|
|
38
|
+
if (options.background?.fill != null) {
|
|
39
|
+
resolved.background = {
|
|
40
|
+
...options.background,
|
|
41
|
+
fill: resolveCssColor(options.background.fill),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
if ('marker' in options && options.marker) {
|
|
45
|
+
const marker = { ...options.marker };
|
|
46
|
+
if (marker.fill != null) {
|
|
47
|
+
marker.fill = resolveCssColor(marker.fill);
|
|
48
|
+
}
|
|
49
|
+
if (marker.stroke != null) {
|
|
50
|
+
marker.stroke = resolveCssColor(marker.stroke);
|
|
51
|
+
}
|
|
52
|
+
resolved.marker = marker;
|
|
53
|
+
}
|
|
54
|
+
if (options.highlight) {
|
|
55
|
+
resolved.highlight = {
|
|
56
|
+
...options.highlight,
|
|
57
|
+
highlightedItem: resolveHighlightStyle(options.highlight.highlightedItem),
|
|
58
|
+
highlightedSeries: resolveHighlightStyle(options.highlight.highlightedSeries),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
if (options.axis && typeof options.axis === 'object' && options.axis.stroke != null) {
|
|
62
|
+
resolved.axis = {
|
|
63
|
+
...options.axis,
|
|
64
|
+
stroke: resolveCssColor(options.axis.stroke),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
return resolved;
|
|
68
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { IRowNode } from 'ag-grid-community';
|
|
3
|
+
import { CellColorRange, GradientStyle, NumericStyledColumn, StyledColumn } from '../../AdaptableState/StyledColumnState';
|
|
4
|
+
import { AdaptableApi } from '../../Api/AdaptableApi';
|
|
2
5
|
/**
|
|
3
6
|
* Default alpha at the **low** end of a Gradient range when `MinAlpha` is unset.
|
|
4
7
|
* Slightly above zero so the bottom-edge value of every range still shows its
|
|
@@ -9,6 +12,25 @@ export declare const DEFAULT_GRADIENT_MIN_ALPHA = 0.15;
|
|
|
9
12
|
* Default alpha at the **high** end of a Gradient range when `MaxAlpha` is unset.
|
|
10
13
|
*/
|
|
11
14
|
export declare const DEFAULT_GRADIENT_MAX_ALPHA = 1;
|
|
15
|
+
export declare const hasGradientRangesConfigured: (gs: GradientStyle | undefined) => boolean;
|
|
16
|
+
/** Number of sample cells shown in Gradient / Percent Bar style previews. */
|
|
17
|
+
export declare const STYLED_COLUMN_PREVIEW_SAMPLE_COUNT = 6;
|
|
18
|
+
/** Illustrative zero-centred scale endpoints for preview geometry. */
|
|
19
|
+
export declare const ZERO_CENTRED_PREVIEW_SCALE_MIN = -20;
|
|
20
|
+
export declare const ZERO_CENTRED_PREVIEW_SCALE_MAX = 20;
|
|
21
|
+
/** @deprecated Use {@link getZeroCentredGradientPreviewValues} — kept for callers using endpoints. */
|
|
22
|
+
export declare const ZERO_CENTRED_GRADIENT_PREVIEW_VALUES: readonly number[];
|
|
23
|
+
export declare const getZeroCentredGradientPreviewValues: () => number[];
|
|
24
|
+
export declare function isDivergingZeroCellRanges(ranges: CellColorRange[] | undefined): boolean;
|
|
25
|
+
export declare function isZeroCentredGradientStyle(gs: GradientStyle): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Sample cell values for gradient preview strips — spread across the effective scale.
|
|
28
|
+
*/
|
|
29
|
+
export declare const getGradientPreviewSampleValues: (styledColumn: StyledColumn, api: AdaptableApi) => number[];
|
|
30
|
+
/**
|
|
31
|
+
* Cell CSS for gradient preview — mirrors `AgGridColumnAdapter.getStyledColumnStyle` gradient path.
|
|
32
|
+
*/
|
|
33
|
+
export declare const getGradientPreviewCellStyle: (cellValue: number, styledColumn: StyledColumn, api: AdaptableApi, rowNode?: IRowNode | null) => CSSProperties;
|
|
12
34
|
/**
|
|
13
35
|
* Effective cell ranges for gradient rendering / range lookup.
|
|
14
36
|
* When `ZeroCentred` is set, expands to the canonical Col-Min…0 and 0…Col-Max bands.
|