@adaptabletools/adaptable 23.0.0-canary.6 → 23.0.0-canary.8
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/icons/sort-asc.svg +1 -1
- package/index.css +828 -263
- package/package.json +1 -1
- package/src/AdaptableOptions/DataSetOptions.d.ts +26 -2
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +0 -1
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +42 -10
- package/src/AdaptableState/Common/AdaptableFormat.d.ts +7 -0
- package/src/AdaptableState/Common/AdaptableMessageType.d.ts +1 -1
- package/src/AdaptableState/Common/Enums.d.ts +1 -1
- package/src/AdaptableState/Common/Enums.js +1 -1
- package/src/AdaptableState/StyledColumnState.d.ts +8 -850
- package/src/AdaptableState/StyledColumnState.js +1 -9
- package/src/AdaptableState/StyledColumns/BadgeStyle.d.ts +143 -0
- package/src/AdaptableState/StyledColumns/BadgeStyle.js +9 -0
- package/src/AdaptableState/StyledColumns/BulletChartStyle.d.ts +147 -0
- package/src/AdaptableState/StyledColumns/Common/BarChartCellText.d.ts +60 -0
- package/src/AdaptableState/StyledColumns/Common/BarChartCellText.js +6 -0
- package/src/AdaptableState/StyledColumns/Common/BarChartMarker.d.ts +24 -0
- package/src/AdaptableState/StyledColumns/Common/BarChartMarker.js +5 -0
- package/src/AdaptableState/StyledColumns/Common/CellTextOptions.d.ts +13 -0
- package/src/AdaptableState/StyledColumns/Common/CellTextOptions.js +6 -0
- package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.d.ts +79 -0
- package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.js +9 -0
- package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +48 -0
- package/src/AdaptableState/StyledColumns/GradientStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/IconStyle.d.ts +158 -0
- package/src/AdaptableState/StyledColumns/IconStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/PercentBarStyle.d.ts +32 -0
- package/src/AdaptableState/StyledColumns/PercentBarStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/RangeBarStyle.d.ts +155 -0
- package/src/AdaptableState/StyledColumns/RangeBarStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/RatingStyle.d.ts +111 -0
- package/src/AdaptableState/StyledColumns/RatingStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/SparklineStyle.d.ts +21 -0
- package/src/AdaptableState/StyledColumns/SparklineStyle.js +1 -0
- package/src/Api/ColumnScopeApi.d.ts +1 -1
- package/src/Api/Implementation/ColumnScopeApiImpl.d.ts +1 -1
- package/src/Api/Internal/AlertInternalApi.js +1 -1
- package/src/Api/Internal/DataSetInternalApi.d.ts +3 -0
- package/src/Api/Internal/DataSetInternalApi.js +73 -13
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +3 -1
- package/src/Redux/Store/AdaptableStore.js +6 -4
- package/src/Strategy/CalculatedColumnModule.js +1 -0
- package/src/Strategy/ColumnFilterModule.js +1 -0
- package/src/Strategy/FlashingCellModule.js +6 -2
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/FreeTextColumnModule.js +38 -28
- package/src/Strategy/Interface/IModule.d.ts +3 -1
- package/src/Strategy/LayoutModule.js +15 -66
- package/src/Strategy/StyledColumnModule.js +12 -29
- package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.d.ts +1 -0
- package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +1 -0
- package/src/Strategy/Utilities/Export/getExportColumnsViewItems.d.ts +2 -0
- package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +14 -0
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +1 -0
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +3 -0
- package/src/Strategy/Utilities/Layout/aggregationSummaryHelpers.d.ts +11 -0
- package/src/Strategy/Utilities/Layout/aggregationSummaryHelpers.js +105 -0
- package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.d.ts +48 -0
- package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.js +166 -0
- package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.d.ts +1 -0
- package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -0
- package/src/Strategy/Utilities/Layout/rowGroupSummaryHelpers.d.ts +26 -0
- package/src/Strategy/Utilities/Layout/rowGroupSummaryHelpers.js +85 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +3 -5
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +46 -41
- package/src/Utilities/Helpers/FormatHelper.js +3 -0
- package/src/Utilities/Helpers/IconStylePresets.d.ts +1 -1
- package/src/Utilities/Helpers/ScheduleHelper.js +2 -0
- package/src/Utilities/Helpers/StyleHelper.d.ts +18 -0
- package/src/Utilities/Helpers/StyleHelper.js +27 -0
- package/src/Utilities/Helpers/StyledColumnGradientHelper.d.ts +3 -1
- package/src/Utilities/Helpers/StyledColumnGradientHelper.js +7 -5
- package/src/Utilities/Helpers/barChartCellText.d.ts +63 -0
- package/src/Utilities/Helpers/barChartCellText.js +316 -0
- package/src/Utilities/Helpers/percentBarPreviewHelper.d.ts +2 -1
- package/src/Utilities/Helpers/percentBarPreviewHelper.js +3 -8
- package/src/Utilities/Helpers/resolveSettingsPanelNavigation.d.ts +3 -0
- package/src/Utilities/Helpers/resolveSettingsPanelNavigation.js +15 -0
- package/src/Utilities/getScopeViewItems.js +2 -0
- package/src/Utilities/wizardSelection.d.ts +10 -0
- package/src/Utilities/wizardSelection.js +15 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +3 -3
- package/src/View/Alert/AlertViewPanel.js +2 -2
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +7 -4
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +0 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +0 -4
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +160 -126
- package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +1 -2
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +4 -5
- package/src/View/Alert/Wizard/AlertScheduledWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +1 -2
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +31 -7
- package/src/View/Alert/Wizard/AlertWizard.js +13 -5
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +2 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +4 -14
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +4 -6
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +30 -4
- package/src/View/CellSummary/CellSummaryViewPanel.js +4 -4
- package/src/View/Charting/ShowChartButton.js +8 -8
- package/src/View/ColumnInfo/ColumnInfo.js +21 -1
- package/src/View/Components/AdaptableObjectCollection/index.js +2 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +3 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +7 -6
- package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.d.ts +2 -0
- package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.js +2 -0
- package/src/View/Components/AdaptableObjectRow/index.js +2 -2
- package/src/View/Components/Buttons/ButtonBase/index.js +2 -3
- package/src/View/Components/Buttons/ButtonNew.d.ts +2 -0
- package/src/View/Components/Buttons/ButtonNew.js +1 -1
- package/src/View/Components/Buttons/EntityListActionButtons.js +3 -3
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -0
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +9 -9
- package/src/View/Components/ColumnFilter/ColumnFilter.js +16 -4
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +2 -2
- package/src/View/Components/ColumnSelector/index.d.ts +12 -0
- package/src/View/Components/ColumnSelector/index.js +30 -6
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +2 -2
- package/src/View/Components/ModuleValueSelector/index.js +2 -1
- package/src/View/Components/NewScopeComponent.js +4 -9
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +5 -4
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +4 -4
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +3 -2
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +38 -28
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/settingsPanelNavigationTypes.d.ts +11 -0
- package/src/View/Components/Popups/AdaptablePopup/settingsPanelNavigationTypes.js +1 -0
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +3 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +25 -27
- package/src/View/Components/PredicateEditor/PredicateEditor.js +1 -1
- package/src/View/Components/RangesComponent.d.ts +4 -5
- package/src/View/Components/RangesComponent.js +95 -66
- package/src/View/Components/ReorderDraggable/index.js +2 -2
- package/src/View/Components/Selectors/BulkUpdateValueSelector.d.ts +0 -2
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +3 -3
- package/src/View/Components/StyleComponent.js +32 -65
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +10 -7
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +3 -13
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +5 -81
- package/src/View/Components/ToolPanel/ToolPanelPopupSections.d.ts +17 -0
- package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +76 -0
- package/src/View/Components/ValueSelector/index.d.ts +29 -0
- package/src/View/Components/ValueSelector/index.js +113 -30
- package/src/View/Components/wizardColumnListStyles.d.ts +10 -0
- package/src/View/Components/wizardColumnListStyles.js +10 -0
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +5 -7
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +2 -2
- package/src/View/Dashboard/DashboardPopup.d.ts +1 -11
- package/src/View/Dashboard/DashboardPopup.js +3 -67
- package/src/View/Dashboard/DashboardPopupSections.d.ts +20 -0
- package/src/View/Dashboard/DashboardPopupSections.js +68 -0
- package/src/View/Dashboard/PinnedToolbarsSelector.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.d.ts +1 -6
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +8 -20
- package/src/View/DataChangeHistory/DataChangeHistoryTable.d.ts +8 -0
- package/src/View/DataChangeHistory/DataChangeHistoryTable.js +94 -0
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +5 -3
- package/src/View/DataChangeHistory/buildActionColumnButton.js +30 -39
- package/src/View/DataChangeHistory/dataChangeHistoryHelpers.d.ts +15 -0
- package/src/View/DataChangeHistory/dataChangeHistoryHelpers.js +37 -0
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -1
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +32 -19
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +2 -2
- package/src/View/Export/ExportDestinationPicker.js +3 -3
- package/src/View/Export/ExportSchedulesTab.js +3 -4
- package/src/View/Export/ExportViewPanel.js +2 -2
- package/src/View/Export/Wizard/ReportColumnsWizardSection.d.ts +2 -1
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +4 -9
- package/src/View/Export/Wizard/ReportRowsWizardSection.d.ts +2 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -6
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FlashingCell/FlashingCellStyle.d.ts +4 -2
- package/src/View/FlashingCell/FlashingCellStyle.js +4 -2
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +7 -11
- package/src/View/FlashingCell/Wizard/FlashingCellScopeSummary.d.ts +9 -0
- package/src/View/FlashingCell/Wizard/FlashingCellScopeSummary.js +5 -0
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -0
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +0 -5
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +1 -5
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -3
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +99 -42
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +0 -1
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +0 -4
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +56 -15
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +2 -3
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +5 -8
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +8 -13
- package/src/View/FreeTextColumn/Utilities/getFreeTextColumnSettingsTags.js +3 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -2
- package/src/View/GridFilter/GridFilterPopupUI/index.js +3 -2
- package/src/View/GridFilter/GridFilterViewPanel.js +5 -5
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +2 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -2
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +24 -28
- package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +13 -1
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +73 -33
- package/src/View/Layout/Wizard/sections/ColumnsSection.d.ts +4 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +155 -276
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.d.ts +4 -1
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +148 -145
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.d.ts +5 -2
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +24 -12
- package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.d.ts +4 -1
- package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +23 -12
- package/src/View/Layout/Wizard/sections/RowGroupingSection.d.ts +5 -2
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +19 -12
- package/src/View/Layout/Wizard/sections/RowSelectionSection.js +8 -4
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +132 -106
- package/src/View/Layout/Wizard/sections/SortSection.d.ts +12 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +41 -17
- package/src/View/Layout/Wizard/sections/columnLayoutCards.d.ts +20 -0
- package/src/View/Layout/Wizard/sections/columnLayoutCards.js +159 -0
- package/src/View/Layout/Wizard/sections/columnLayoutHelpers.d.ts +30 -0
- package/src/View/Layout/Wizard/sections/columnLayoutHelpers.js +201 -0
- package/src/View/Layout/Wizard/sections/layoutWizardAccordionHelpers.d.ts +8 -0
- package/src/View/Layout/Wizard/sections/layoutWizardAccordionHelpers.js +63 -0
- package/src/View/Layout/Wizard/sections/layoutWizardColumns.d.ts +11 -0
- package/src/View/Layout/Wizard/sections/layoutWizardColumns.js +52 -0
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.d.ts +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -2
- package/src/View/Note/NoteEditor.js +2 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -3
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +2 -2
- package/src/View/SmartEdit/SmartEditViewPanel.js +2 -2
- package/src/View/StateManagement/StateManagementPopup.js +1 -1
- package/src/View/StateManagement/components/ExportDropdown.d.ts +2 -2
- package/src/View/StateManagement/components/ExportDropdown.js +12 -12
- package/src/View/StatusBar/StatusBarPanel.js +2 -2
- package/src/View/StatusBar/StatusBarPopup.js +33 -5
- package/src/View/StatusBar/statusBarPanelHelpers.d.ts +2 -0
- package/src/View/StatusBar/statusBarPanelHelpers.js +7 -0
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +3 -1
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +14 -11
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.d.ts +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +143 -119
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +1 -3
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +8 -14
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnTypeThumbnail.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnTypeThumbnail.js +50 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +2 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +26 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +76 -70
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +83 -38
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +173 -76
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +32 -46
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextLayoutEditor.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextLayoutEditor.js +35 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextPreview.d.ts +23 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextPreview.js +57 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +3 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +13 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.js +5 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +14 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +11 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +27 -58
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +94 -7
- package/src/View/UIHelper.d.ts +0 -2
- package/src/View/UIHelper.js +8 -23
- package/src/View/Wizard/CollapsibleWizardCard.d.ts +68 -0
- package/src/View/Wizard/CollapsibleWizardCard.js +81 -0
- package/src/View/Wizard/OnePageWizards.js +6 -6
- package/src/View/Wizard/SummaryColorTag.d.ts +24 -0
- package/src/View/Wizard/SummaryColorTag.js +67 -0
- package/src/View/Wizard/WizardTypeSelection.d.ts +34 -0
- package/src/View/Wizard/WizardTypeSelection.js +31 -0
- package/src/View/Wizard/rowGroupSummaryTags.d.ts +18 -0
- package/src/View/Wizard/rowGroupSummaryTags.js +14 -0
- package/src/View/Wizard/scopeSummaryTags.d.ts +6 -0
- package/src/View/Wizard/scopeSummaryTags.js +33 -0
- package/src/agGrid/AgGridAdapter.js +0 -5
- package/src/agGrid/AgGridColumnAdapter.js +4 -3
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +4 -7
- package/src/agGrid/cellRenderers/BadgeRenderer.js +7 -5
- package/src/agGrid/cellRenderers/BulletChartRenderer.js +43 -42
- package/src/agGrid/cellRenderers/IconRenderer.d.ts +2 -1
- package/src/agGrid/cellRenderers/IconRenderer.js +13 -11
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +24 -96
- package/src/agGrid/cellRenderers/RangeBarRenderer.js +49 -46
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
- package/src/components/Card/index.js +5 -6
- package/src/components/CheckBox/index.js +2 -3
- package/src/components/CodeBlock/index.js +2 -2
- package/src/components/ColorPicker/ColorPicker.d.ts +1 -0
- package/src/components/ColorPicker/ColorPicker.js +8 -6
- package/src/components/ColorPicker/OptionalColorPicker.d.ts +12 -0
- package/src/components/ColorPicker/OptionalColorPicker.js +26 -0
- package/src/components/ColorPicker/index.d.ts +1 -0
- package/src/components/ColorPicker/index.js +1 -0
- package/src/components/Combobox/comboboxUtils.d.ts +1 -0
- package/src/components/Combobox/index.js +19 -18
- package/src/components/Dashboard/DashboardManager.js +2 -4
- package/src/components/Dialog/index.js +4 -4
- package/src/components/DragAndDropContext/DragAndDropContext.d.ts +5 -0
- package/src/components/DragAndDropContext/DragAndDropContext.js +3 -0
- package/src/components/DragAndDropContext/ModuleManager.d.ts +15 -3
- package/src/components/DragAndDropContext/ModuleManager.js +47 -8
- package/src/components/DragAndDropContext/TabList.d.ts +11 -4
- package/src/components/DragAndDropContext/TabList.js +52 -38
- package/src/components/DragAndDropContext/UnusedPanel.d.ts +4 -3
- package/src/components/DragAndDropContext/UnusedPanel.js +15 -11
- package/src/components/DragAndDropContext/dragScope.d.ts +6 -0
- package/src/components/DragAndDropContext/dragScope.js +26 -0
- package/src/components/DragAndDropContext/types.d.ts +7 -0
- package/src/components/DropdownButton/index.d.ts +33 -25
- package/src/components/DropdownButton/index.js +24 -158
- package/src/components/EmptyContent/index.js +2 -2
- package/src/components/ErrorBox/index.js +2 -2
- package/src/components/ExpressionEditor/BaseEditorInput.js +3 -3
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +3 -3
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +6 -6
- package/src/components/FieldWrap/index.js +2 -2
- package/src/components/Flex.js +2 -2
- package/src/components/FormLayout/index.d.ts +1 -1
- package/src/components/HelpBlock/index.js +3 -3
- package/src/components/IconSelector/IconSelector.d.ts +8 -0
- package/src/components/IconSelector/IconSelector.js +11 -7
- package/src/components/IconSelector/index.d.ts +1 -0
- package/src/components/IconSelector/index.js +1 -0
- package/src/components/Modal/index.js +2 -2
- package/src/components/NewSelect/index.js +11 -1
- package/src/components/Panel/index.js +7 -7
- package/src/components/Radio/index.d.ts +1 -1
- package/src/components/Radio/index.js +8 -6
- package/src/components/SimpleButton/index.js +7 -7
- package/src/components/StylePreview.js +2 -2
- package/src/components/Tabs/index.js +4 -4
- package/src/components/Tag/Tag.d.ts +16 -0
- package/src/components/Tag/Tag.js +14 -4
- package/src/components/Tag/columnScopeTagHelpers.d.ts +8 -0
- package/src/components/Tag/columnScopeTagHelpers.js +6 -0
- package/src/components/Tag/index.d.ts +1 -1
- package/src/components/Tag/index.js +1 -1
- package/src/components/Textarea/index.js +2 -3
- package/src/components/Toggle/Toggle.d.ts +2 -0
- package/src/components/Toggle/Toggle.js +14 -7
- package/src/components/Toggle/ToggleGroup.js +2 -2
- package/src/components/ToggleButton/index.js +4 -4
- package/src/components/Tree/TreeDropdown/index.js +3 -4
- package/src/components/WarningBox/index.js +2 -2
- package/src/components/icons/sort-asc.js +1 -1
- package/src/components/ui/button.d.ts +2 -2
- package/src/components/ui/combobox.d.ts +3 -1
- package/src/components/ui/combobox.js +2 -2
- package/src/components/ui/input-group.d.ts +1 -1
- package/src/components/ui/select.js +3 -2
- package/src/components/ui/textarea.js +1 -1
- package/src/env.js +2 -2
- package/src/layout-manager/src/index.js +7 -3
- package/src/metamodel/adaptable.metamodel.d.ts +80 -14
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/VersionUpgrade23.d.ts +27 -31
- package/src/migration/VersionUpgrade23.js +110 -29
- package/src/types.d.ts +13 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +0 -17
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +0 -290
- package/src/components/DropdownButton/DropdownButtonItem.d.ts +0 -12
- package/src/components/DropdownButton/renderItem.d.ts +0 -14
- package/src/components/DropdownButton/renderItem.js +0 -11
- package/src/components/DropdownButton/useExpanded.d.ts +0 -24
- package/src/components/DropdownButton/useExpanded.js +0 -56
- package/src/components/NewDropdownButton/index.d.ts +0 -27
- package/src/components/NewDropdownButton/index.js +0 -24
- /package/src/{components/DropdownButton/DropdownButtonItem.js → AdaptableState/StyledColumns/BulletChartStyle.js} +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { AdaptableIcon } from '../Common/AdaptableIcon';
|
|
2
|
+
import { AdaptablePredicate } from '../Common/AdaptablePredicate';
|
|
3
|
+
import { AdaptableBooleanQuery } from '../Common/AdaptableQuery';
|
|
4
|
+
import { AdaptableStyle, CellBoxStyle, CellFontStyle } from '../Common/AdaptableStyle';
|
|
5
|
+
import { TypeHint } from '../Common/Types';
|
|
6
|
+
/**
|
|
7
|
+
* Predicates available when creating a Badge Style Rule
|
|
8
|
+
*/
|
|
9
|
+
export type SystemBadgeStylePredicateId = 'In' | 'NotIn' | 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex';
|
|
10
|
+
/**
|
|
11
|
+
* System Predicate Ids available for Badge Style
|
|
12
|
+
*/
|
|
13
|
+
export type SystemBadgeStylePredicateIds = SystemBadgeStylePredicateId[];
|
|
14
|
+
/**
|
|
15
|
+
* System Predicate definition for Badge Style
|
|
16
|
+
*/
|
|
17
|
+
export interface BadgeStylePredicate extends AdaptablePredicate {
|
|
18
|
+
PredicateId: TypeHint<string, SystemBadgeStylePredicateId>;
|
|
19
|
+
}
|
|
20
|
+
/** Keys copied from legacy `BadgeStyleDefinition.Style` (`AdaptableStyle`) into `PillStyle`. */
|
|
21
|
+
export declare const BADGE_PILL_STYLE_KEYS: readonly ["BackColor", "ForeColor", "BorderColor", "FontWeight", "FontStyle", "TextDecoration"];
|
|
22
|
+
/**
|
|
23
|
+
* Visual styling applied to a single Badge pill — an explicit subset of
|
|
24
|
+
* {@link AdaptableStyle}. Not used: `BorderRadius` ({@link BadgeShape}),
|
|
25
|
+
* `Alignment` / `FontSize` / `ClassName` (column-level or unsupported).
|
|
26
|
+
*/
|
|
27
|
+
export type BadgePillStyle = Pick<AdaptableStyle, (typeof BADGE_PILL_STYLE_KEYS)[number]>;
|
|
28
|
+
/**
|
|
29
|
+
* Visual shape of a Badge; convenience shorthand that resolves to a border radius without having to pick a pixel value
|
|
30
|
+
*/
|
|
31
|
+
export type BadgeShape = 'Pill' | 'Rounded' | 'Square';
|
|
32
|
+
/**
|
|
33
|
+
* Density preset that controls inner padding (and therefore overall height)
|
|
34
|
+
* for *all* badges in a column. Applied at the {@link BadgeStyle} level so
|
|
35
|
+
* a single column reads as one consistent label set.
|
|
36
|
+
*
|
|
37
|
+
* - `'Compact'` - tight padding for dense grids
|
|
38
|
+
* - `'Normal'` - default; balanced padding (matches pre-existing look)
|
|
39
|
+
* - `'Comfortable'` - looser padding for low-density / large-font grids
|
|
40
|
+
*/
|
|
41
|
+
export type BadgeDensity = 'Compact' | 'Normal' | 'Comfortable';
|
|
42
|
+
/**
|
|
43
|
+
* How adjacent badges in an array-column cell should lay out when the cell
|
|
44
|
+
* is too narrow to fit them on one line.
|
|
45
|
+
*
|
|
46
|
+
* - `'Truncate'` - default; badges sit on a single line and the cell clips
|
|
47
|
+
* anything that overflows (legacy behaviour).
|
|
48
|
+
* - `'Wrap'` - badges wrap onto subsequent lines; row height grows to fit.
|
|
49
|
+
* AG Grid `rowHeight` / `getRowHeight` should be tall enough to host the
|
|
50
|
+
* wrapped badges; consider `autoRowHeight` on the column.
|
|
51
|
+
* - `'Scroll'` - badges stay on one line and the cell becomes
|
|
52
|
+
* horizontally scrollable.
|
|
53
|
+
*/
|
|
54
|
+
export type BadgeOverflowMode = 'Truncate' | 'Wrap' | 'Scroll';
|
|
55
|
+
/**
|
|
56
|
+
* Icon settings for a {@link BadgeStyleDefinition} — the icon itself plus its
|
|
57
|
+
* placement and behaviour inside the pill. All four properties are tightly
|
|
58
|
+
* coupled (the placement / gap / icon-only flags are only meaningful when an
|
|
59
|
+
* `Icon` is set) so they live together in a single nested object.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export interface BadgeIconProperties {
|
|
64
|
+
/**
|
|
65
|
+
* Icon to display in the badge.
|
|
66
|
+
*/
|
|
67
|
+
Icon: AdaptableIcon;
|
|
68
|
+
/**
|
|
69
|
+
* Position of the icon in the badge — `'Start'` or `'End'`.
|
|
70
|
+
*
|
|
71
|
+
* @defaultValue 'Start'
|
|
72
|
+
*/
|
|
73
|
+
Position?: 'Start' | 'End';
|
|
74
|
+
/**
|
|
75
|
+
* Pixel gap between the icon and the badge text. Falls back to the badge
|
|
76
|
+
* `Density` preset when omitted; ignored when {@link IconOnly} is `true`.
|
|
77
|
+
*/
|
|
78
|
+
Gap?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Only show the icon and no badge text.
|
|
81
|
+
*/
|
|
82
|
+
IconOnly?: boolean;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Defines a Badge Style
|
|
86
|
+
*/
|
|
87
|
+
export interface BadgeStyleDefinition {
|
|
88
|
+
/**
|
|
89
|
+
* Optional Rule for deciding whether Badge is displayed
|
|
90
|
+
*/
|
|
91
|
+
Predicate?: BadgeStylePredicate;
|
|
92
|
+
Expression?: AdaptableBooleanQuery;
|
|
93
|
+
/**
|
|
94
|
+
* Style for the Badge **pill** (cut-down version of Adaptable Style)
|
|
95
|
+
*/
|
|
96
|
+
PillStyle?: BadgePillStyle;
|
|
97
|
+
/**
|
|
98
|
+
* Visual shape of the Badge's corner radius
|
|
99
|
+
*
|
|
100
|
+
* @defaultValue 'Rounded'
|
|
101
|
+
*/
|
|
102
|
+
Shape?: BadgeShape;
|
|
103
|
+
/**
|
|
104
|
+
* Settings for Icon to display alongside badge text
|
|
105
|
+
*/
|
|
106
|
+
IconProperties?: BadgeIconProperties;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Collection of Badge Style Definitions to display in a Badge Styled Column
|
|
110
|
+
*/
|
|
111
|
+
export interface BadgeStyle {
|
|
112
|
+
/**
|
|
113
|
+
* Collection of Badge Style Definitions
|
|
114
|
+
*/
|
|
115
|
+
Badges?: BadgeStyleDefinition[];
|
|
116
|
+
/**
|
|
117
|
+
* Density preset shared by every badge in the column - controls inner padding.
|
|
118
|
+
*
|
|
119
|
+
* @defaultValue 'Normal'
|
|
120
|
+
*/
|
|
121
|
+
Density?: BadgeDensity;
|
|
122
|
+
/**
|
|
123
|
+
* Pixel gap between adjacent badges in array-column cells
|
|
124
|
+
*
|
|
125
|
+
* @defaultValue 4
|
|
126
|
+
*/
|
|
127
|
+
Spacing?: number;
|
|
128
|
+
/**
|
|
129
|
+
* How badges lay out in array-column cells where space is tight
|
|
130
|
+
*
|
|
131
|
+
* @defaultValue 'Truncate'
|
|
132
|
+
*/
|
|
133
|
+
OverflowMode?: BadgeOverflowMode;
|
|
134
|
+
/**
|
|
135
|
+
* Optional cell-box styling applied to grid cell **behind** the badges
|
|
136
|
+
*/
|
|
137
|
+
Cell?: CellBoxStyle;
|
|
138
|
+
/**
|
|
139
|
+
* Optional column-level Font (only Alignment is meaningful for Badge cells)
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
142
|
+
Font?: CellFontStyle;
|
|
143
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { CellFontStyle } from '../Common/AdaptableStyle';
|
|
2
|
+
import { BarChartCellTextProperties } from './Common/BarChartCellText';
|
|
3
|
+
import { BarChartMarker } from './Common/BarChartMarker';
|
|
4
|
+
import { CellTextOptions } from './Common/CellTextOptions';
|
|
5
|
+
import { NumericStyledColumn } from './Common/NumericStyledColumn';
|
|
6
|
+
/**
|
|
7
|
+
* Style used to display a Bullet Chart in a Styled Column.
|
|
8
|
+
*
|
|
9
|
+
* A Bullet Chart shows three things in a single cell:
|
|
10
|
+
* 1. the actual cell value, as a horizontal bar (the "feature measure")
|
|
11
|
+
* 2. a target value, as a marker on the bar (the "comparative measure")
|
|
12
|
+
* 3. optional qualitative bands behind the bar (e.g. poor / ok / good),
|
|
13
|
+
* defined via the inherited `CellRanges` property
|
|
14
|
+
*
|
|
15
|
+
* Note: Unlike `PercentBarStyle.CellRanges` (which colour the bar based on
|
|
16
|
+
* the cell value), `BulletChartStyle.CellRanges` colour the *background*
|
|
17
|
+
* bands and are drawn unconditionally to provide the qualitative scale.
|
|
18
|
+
*/
|
|
19
|
+
export interface BulletChartStyle extends NumericStyledColumn {
|
|
20
|
+
/**
|
|
21
|
+
* Target value(s) rendered as marker(s) on the bar, plus the chart-level
|
|
22
|
+
* default marker style. Per-target overrides are possible via the
|
|
23
|
+
* {@link BulletChartTargetDefinition} object form.
|
|
24
|
+
*/
|
|
25
|
+
TargetProperties?: BulletChartTargetProperties;
|
|
26
|
+
/**
|
|
27
|
+
* Visual properties of the actual (foreground) bar — colour and thickness.
|
|
28
|
+
*/
|
|
29
|
+
Bar?: BulletChartBarProperties;
|
|
30
|
+
/**
|
|
31
|
+
* Orientation of the chart.
|
|
32
|
+
*
|
|
33
|
+
* - `'Horizontal'` (default) - bands and bar run left-to-right; markers
|
|
34
|
+
* are vertical lines / shapes positioned along the x-axis.
|
|
35
|
+
* - `'Vertical'` - bands and bar run bottom-to-top; markers are
|
|
36
|
+
* horizontal lines / shapes positioned along the y-axis.
|
|
37
|
+
*
|
|
38
|
+
* Note: vertical bullet charts need a tall row height to be readable
|
|
39
|
+
* (we recommend at least 60px). AG Grid row height is a per-grid setting
|
|
40
|
+
* (`gridOptions.rowHeight` or `getRowHeight`).
|
|
41
|
+
*
|
|
42
|
+
* @defaultValue 'Horizontal'
|
|
43
|
+
*/
|
|
44
|
+
Orientation?: 'Horizontal' | 'Vertical';
|
|
45
|
+
/**
|
|
46
|
+
* Background colour for the chart area when no `CellRanges` are supplied.
|
|
47
|
+
*/
|
|
48
|
+
BackColor?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Origin of the actual bar.
|
|
51
|
+
*
|
|
52
|
+
* - `'Auto'` (default) - the bar grows from the left edge unless any cell
|
|
53
|
+
* value or range endpoint is negative, in which case it grows from `0`
|
|
54
|
+
* - `'Zero'` - the bar always grows from `0` (centred axis); positive
|
|
55
|
+
* values extend right, negative values extend left
|
|
56
|
+
* - any number - the bar grows from that fixed origin
|
|
57
|
+
*
|
|
58
|
+
* @defaultValue 'Auto'
|
|
59
|
+
*/
|
|
60
|
+
Origin?: 'Auto' | 'Zero' | number;
|
|
61
|
+
/**
|
|
62
|
+
* Optional cell-text overlay configuration.
|
|
63
|
+
*/
|
|
64
|
+
CellTextProperties?: BarChartCellTextProperties;
|
|
65
|
+
/**
|
|
66
|
+
* Tooltip content - same tokens (`'CellValue'`, `'PercentageValue'`) as
|
|
67
|
+
* Percent Bar.
|
|
68
|
+
*/
|
|
69
|
+
ToolTipText?: CellTextOptions;
|
|
70
|
+
/**
|
|
71
|
+
* Optional cell-text styling (colour, weight, font, alignment, …) applied
|
|
72
|
+
* by the Bullet Chart renderer to the optional `CellText` overlay.
|
|
73
|
+
*
|
|
74
|
+
* When set, this property "claims" the Font slice for the column: any
|
|
75
|
+
* Format Column matching this column has its Font properties stripped.
|
|
76
|
+
* When unset, Format Column Font properties inherit through normally.
|
|
77
|
+
*/
|
|
78
|
+
Font?: CellFontStyle;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Visual properties of the foreground bar in a Bullet Chart.
|
|
82
|
+
*/
|
|
83
|
+
export interface BulletChartBarProperties {
|
|
84
|
+
/**
|
|
85
|
+
* Colour of the actual (foreground) bar drawn on top of any bands.
|
|
86
|
+
*
|
|
87
|
+
* @defaultValue 'var(--ab-color-primary)'
|
|
88
|
+
*/
|
|
89
|
+
Color?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Height of the actual bar in px (the bands sit a few px taller behind it).
|
|
92
|
+
*
|
|
93
|
+
* For vertical orientation this is interpreted as the bar's *width*
|
|
94
|
+
* (i.e. its short axis); the long axis stretches to fit the cell.
|
|
95
|
+
*
|
|
96
|
+
* @defaultValue 8
|
|
97
|
+
*/
|
|
98
|
+
Height?: number;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Target configuration for a Bullet Chart — the resolved target value(s)
|
|
102
|
+
* plus the chart-level default marker style.
|
|
103
|
+
*/
|
|
104
|
+
export interface BulletChartTargetProperties {
|
|
105
|
+
/**
|
|
106
|
+
* Target value(s) rendered as marker(s) on the bar.
|
|
107
|
+
*
|
|
108
|
+
* Each Target can be:
|
|
109
|
+
* - `number` - a fixed target value
|
|
110
|
+
* - `string` - a column id; the row's value in that column is used as the target
|
|
111
|
+
* - `'Col-Avg'` | `'Col-Median'` - computed across visible rows
|
|
112
|
+
*
|
|
113
|
+
* Pass an array to render multiple targets (e.g. primary + stretch goal).
|
|
114
|
+
*/
|
|
115
|
+
Target?: BulletChartTarget | BulletChartTarget[];
|
|
116
|
+
/**
|
|
117
|
+
* Visual style of the target marker(s).
|
|
118
|
+
*
|
|
119
|
+
* When `Target` is an array, this style applies to all markers; pass a
|
|
120
|
+
* `Target` object with its own `Marker` property to override per-marker.
|
|
121
|
+
*/
|
|
122
|
+
Marker?: BarChartMarker;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* A single Bullet Chart target. Either a primitive resolvable value (number /
|
|
126
|
+
* column id / `Col-Avg` / `Col-Median`) or a richer object that lets a single
|
|
127
|
+
* target override the default marker styling.
|
|
128
|
+
*/
|
|
129
|
+
export type BulletChartTarget = number | string | 'Col-Avg' | 'Col-Median' | BulletChartTargetDefinition;
|
|
130
|
+
/**
|
|
131
|
+
* Object form of a Bullet Chart target, used when a single target needs to
|
|
132
|
+
* override the chart-level marker styling.
|
|
133
|
+
*/
|
|
134
|
+
export interface BulletChartTargetDefinition {
|
|
135
|
+
/**
|
|
136
|
+
* Resolvable value: number, column id, `Col-Avg` or `Col-Median`.
|
|
137
|
+
*/
|
|
138
|
+
Value: number | string | 'Col-Avg' | 'Col-Median';
|
|
139
|
+
/**
|
|
140
|
+
* Per-target marker override. Falls back to `BulletChartTargetProperties.Marker`.
|
|
141
|
+
*/
|
|
142
|
+
Marker?: BarChartMarker;
|
|
143
|
+
/**
|
|
144
|
+
* Optional label displayed in the tooltip alongside the marker value.
|
|
145
|
+
*/
|
|
146
|
+
Label?: string;
|
|
147
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-value cell-text overlay layout shared by Percent Bar, Bullet Chart
|
|
3
|
+
* and Range Bar styles. Each token (`CellValue`, `PercentValue`) can be
|
|
4
|
+
* independently placed on a 3 × 3 grid (Above/Below/Merged × Left/Center/Right).
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Horizontal alignment for cell text (Cell or Percent) in Percent, Range Bar & Bullet styles (Left, Center, Right)
|
|
8
|
+
*/
|
|
9
|
+
export type BarChartCellTextHorizontalAlignment = 'Left' | 'Center' | 'Right';
|
|
10
|
+
/**
|
|
11
|
+
* Vertical alignment for cell text value relative to bar/chart (Above, Below, Merged)
|
|
12
|
+
*/
|
|
13
|
+
export type BarChartCellTextVerticalAlignment = 'Above' | 'Below' | 'Merged';
|
|
14
|
+
/**
|
|
15
|
+
* Placement of cell text value (Cell or Percent) around the bar/chart
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue `{ Horizontal: 'Left', Vertical: 'Below' }`
|
|
18
|
+
*/
|
|
19
|
+
export interface BarChartCellTextPlacement {
|
|
20
|
+
/**
|
|
21
|
+
* Horizontal alignment within its vertical band.
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue 'Left'
|
|
24
|
+
*/
|
|
25
|
+
Horizontal?: BarChartCellTextHorizontalAlignment;
|
|
26
|
+
/**
|
|
27
|
+
* Vertical position relative to the bar/chart.
|
|
28
|
+
*
|
|
29
|
+
* @defaultValue 'Below'
|
|
30
|
+
*/
|
|
31
|
+
Vertical?: BarChartCellTextVerticalAlignment;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Per-value cell-text layout: each value (Cell Value, Percent Value) can be
|
|
35
|
+
* independently placed on the 3 × 3 grid (Above/Below/Merged × Left/Center/Right).
|
|
36
|
+
*
|
|
37
|
+
* A value is shown only when its key is present. When both values land on the
|
|
38
|
+
* same horizontal slot at the same vertical position they are concatenated with
|
|
39
|
+
* a single space (Cell Value first, then Percent Value).
|
|
40
|
+
*/
|
|
41
|
+
export interface BarChartCellTextLayout {
|
|
42
|
+
/**
|
|
43
|
+
* Placement of the formatted cell value.
|
|
44
|
+
*/
|
|
45
|
+
CellValue?: BarChartCellTextPlacement;
|
|
46
|
+
/**
|
|
47
|
+
* Placement of the percent value (the cell value's position along the bar's
|
|
48
|
+
* `[min, max]` scale as a 0–100% reading).
|
|
49
|
+
*/
|
|
50
|
+
PercentValue?: BarChartCellTextPlacement;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Cell-text overlay configuration shared by Percent Bar, Range Bar and Bullet Chart.
|
|
54
|
+
*/
|
|
55
|
+
export interface BarChartCellTextProperties {
|
|
56
|
+
/**
|
|
57
|
+
* Per-value placement on the 3 × 3 grid around / on the bar/chart.
|
|
58
|
+
*/
|
|
59
|
+
CellTextLayout?: BarChartCellTextLayout;
|
|
60
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marker primitives shared by bar-chart-style Styled Columns —
|
|
3
|
+
* Bullet Chart target markers and Range Bar value / reference markers.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Visual style of a marker drawn on a bar-chart-style track or bar — used by
|
|
7
|
+
* Bullet Chart target markers and Range Bar value / reference markers.
|
|
8
|
+
*/
|
|
9
|
+
export interface BarChartMarker {
|
|
10
|
+
/**
|
|
11
|
+
* Marker shape.
|
|
12
|
+
*/
|
|
13
|
+
Shape?: 'Line' | 'Triangle' | 'Dot' | 'Diamond';
|
|
14
|
+
/**
|
|
15
|
+
* Marker colour. Defaults to the current text colour.
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue 'var(--ab-color-text)'
|
|
18
|
+
*/
|
|
19
|
+
Color?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Line thickness (for `Shape: 'Line'`) or shape size in px.
|
|
22
|
+
*/
|
|
23
|
+
Size?: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cell-text token primitives shared by several Styled Column types
|
|
3
|
+
* (Percent Bar, Gradient, Bullet Chart, Range Bar, Rating) when configuring
|
|
4
|
+
* what to display as text overlay / tooltip content.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Text optionally to show in a Special Column Style special style: 'CellValue' or 'PercentageValue'
|
|
8
|
+
*/
|
|
9
|
+
export type CellTextOption = 'CellValue' | 'PercentageValue';
|
|
10
|
+
/**
|
|
11
|
+
* Array of CellTextOption available in Special Column Styles
|
|
12
|
+
*/
|
|
13
|
+
export type CellTextOptions = CellTextOption[];
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Numeric scale primitives shared by every numeric Styled Column type
|
|
3
|
+
* (Gradient, Percent Bar, Bullet Chart, Range Bar).
|
|
4
|
+
*
|
|
5
|
+
* These types describe how a column's numeric scale is resolved (via
|
|
6
|
+
* literal numbers, dynamic column-wide aggregates, or comparison against
|
|
7
|
+
* another column) and how that scale is segmented into coloured ranges.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Symbolic range endpoints that resolve to a value computed across column's visible rows (rather than hard-coded number): Col-Min, Col-Max, Col-Avg, Col-Median
|
|
11
|
+
*/
|
|
12
|
+
export type DynamicRangeEndpoint = 'Col-Min' | 'Col-Max' | 'Col-Avg' | 'Col-Median';
|
|
13
|
+
/**
|
|
14
|
+
* Whether the Range is Number or Percent based
|
|
15
|
+
*/
|
|
16
|
+
export type RangeValueType = 'Number' | 'Percentage';
|
|
17
|
+
/**
|
|
18
|
+
* Defines Colours to show in Gradient, Percent Bar and Bullet Chart Styles
|
|
19
|
+
*/
|
|
20
|
+
export interface CellColorRange {
|
|
21
|
+
/**
|
|
22
|
+
* Start of Range, can be literal number or DynamicRangeEndpoint
|
|
23
|
+
*/
|
|
24
|
+
Min: number | DynamicRangeEndpoint;
|
|
25
|
+
/**
|
|
26
|
+
* End of Range, can be literal number or DynamicRangeEndpoint
|
|
27
|
+
*/
|
|
28
|
+
Max: number | DynamicRangeEndpoint;
|
|
29
|
+
/**
|
|
30
|
+
* Cell colour to use for values that fall inside Range
|
|
31
|
+
*/
|
|
32
|
+
Color: string;
|
|
33
|
+
/**
|
|
34
|
+
* Reverses the alpha ramp **within this range only** — values at the *low*
|
|
35
|
+
* end render saturated, values at the *high* end render faint.
|
|
36
|
+
*
|
|
37
|
+
* Useful as a Gradient Style option when the natural reading is
|
|
38
|
+
* "lower-is-darker" (e.g. lower trade IDs are older / more important, so
|
|
39
|
+
* deserve more visual emphasis than newer ones).
|
|
40
|
+
*
|
|
41
|
+
* Only honoured by Gradient Style.
|
|
42
|
+
*/
|
|
43
|
+
ReverseGradient?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Enables a Percent Bar or Gradient Style to use another column in its calculations
|
|
47
|
+
*/
|
|
48
|
+
export interface ColumnComparison {
|
|
49
|
+
/**
|
|
50
|
+
* Start value - either numeric value or Column ID
|
|
51
|
+
*/
|
|
52
|
+
MinValue: number | string;
|
|
53
|
+
/**
|
|
54
|
+
* End value - either numeric value or Column ID
|
|
55
|
+
*/
|
|
56
|
+
MaxValue: number | string;
|
|
57
|
+
/**
|
|
58
|
+
* Colour to use for the Comparison
|
|
59
|
+
*/
|
|
60
|
+
Color: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Base type for Numeric Styled Columns (i.e. Gradient and Percent Bar)
|
|
64
|
+
*/
|
|
65
|
+
export interface NumericStyledColumn {
|
|
66
|
+
/**
|
|
67
|
+
* Ranges (e.g. to create traffic light effect)
|
|
68
|
+
*/
|
|
69
|
+
CellRanges?: CellColorRange[];
|
|
70
|
+
/**
|
|
71
|
+
* Compares Cell values to another Column
|
|
72
|
+
*/
|
|
73
|
+
ColumnComparison?: ColumnComparison;
|
|
74
|
+
/**
|
|
75
|
+
* Used with Ranges; can be Number (any number or Col-Min/Col-Max) or 'Percentage' (values 0-100)
|
|
76
|
+
* @defaultValue Number
|
|
77
|
+
*/
|
|
78
|
+
RangeValueType?: RangeValueType;
|
|
79
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Numeric scale primitives shared by every numeric Styled Column type
|
|
3
|
+
* (Gradient, Percent Bar, Bullet Chart, Range Bar).
|
|
4
|
+
*
|
|
5
|
+
* These types describe how a column's numeric scale is resolved (via
|
|
6
|
+
* literal numbers, dynamic column-wide aggregates, or comparison against
|
|
7
|
+
* another column) and how that scale is segmented into coloured ranges.
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CellFontStyle } from '../Common/AdaptableStyle';
|
|
2
|
+
import { CellTextOptions } from './Common/CellTextOptions';
|
|
3
|
+
import { NumericStyledColumn } from './Common/NumericStyledColumn';
|
|
4
|
+
/**
|
|
5
|
+
* Colours for a zero-centred diverging gradient: negative and positive bands that meet at `0`
|
|
6
|
+
*/
|
|
7
|
+
export interface GradientZeroCentredColors {
|
|
8
|
+
/**
|
|
9
|
+
* Colour applied to negative cell values (`Col-Min`…`0`)
|
|
10
|
+
*/
|
|
11
|
+
NegativeColor: string;
|
|
12
|
+
/**
|
|
13
|
+
* Colour applied to positive cell values (`0`…`Col-Max`)
|
|
14
|
+
*/
|
|
15
|
+
PositiveColor: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Used to display Gradient Styles
|
|
19
|
+
*/
|
|
20
|
+
export interface GradientStyle extends NumericStyledColumn {
|
|
21
|
+
/**
|
|
22
|
+
* Zero-centred diverging gradient (`Col-Min`…`0` and `0`…`Col-Max`
|
|
23
|
+
*/
|
|
24
|
+
ZeroCentred?: GradientZeroCentredColors;
|
|
25
|
+
/**
|
|
26
|
+
* Alpha (0–1) at **low** end of the matched range’s scale
|
|
27
|
+
*
|
|
28
|
+
* @defaultValue 0.15 (faint at range min)
|
|
29
|
+
*/
|
|
30
|
+
MinAlpha?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Alpha (0–1) at **high** end of the matched range’s scale
|
|
33
|
+
* @defaultValue 1 (fully opaque at range max)
|
|
34
|
+
*/
|
|
35
|
+
MaxAlpha?: number;
|
|
36
|
+
/**
|
|
37
|
+
* When true, sets cell `color` from tinted background so text stays readable
|
|
38
|
+
*/
|
|
39
|
+
AutoContrastText?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Optional AG Grid tooltip content: cell value and/or position along the range scale (%)
|
|
42
|
+
*/
|
|
43
|
+
ToolTipText?: CellTextOptions;
|
|
44
|
+
/**
|
|
45
|
+
* Optional cell-text styling applied by Gradient renderer **on top of** gradient background tint
|
|
46
|
+
*/
|
|
47
|
+
Font?: CellFontStyle;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|