@adaptabletools/adaptable-cjs 23.0.0-canary.5 → 23.0.0-canary.7
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 +756 -257
- 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 +2 -2
- 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/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 +1 -1
- 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 +11 -28
- 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 +17 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +1 -0
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +5 -1
- package/src/Strategy/Utilities/Layout/aggregationSummaryHelpers.d.ts +11 -0
- package/src/Strategy/Utilities/Layout/aggregationSummaryHelpers.js +111 -0
- package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.d.ts +48 -0
- package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.js +177 -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 +97 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +3 -5
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +48 -42
- package/src/Utilities/Helpers/FormatHelper.js +3 -0
- package/src/Utilities/Helpers/ScheduleHelper.js +2 -0
- package/src/Utilities/Helpers/StyleHelper.d.ts +18 -0
- package/src/Utilities/Helpers/StyleHelper.js +30 -1
- package/src/Utilities/Helpers/StyledColumnGradientHelper.js +6 -4
- package/src/Utilities/Helpers/resolveSettingsPanelNavigation.d.ts +3 -0
- package/src/Utilities/Helpers/resolveSettingsPanelNavigation.js +19 -0
- package/src/Utilities/getScopeViewItems.js +2 -0
- package/src/Utilities/wizardSelection.d.ts +10 -0
- package/src/Utilities/wizardSelection.js +22 -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 +1 -6
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -1
- 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 +3 -4
- 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 +30 -7
- package/src/View/Alert/Wizard/AlertWizard.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +2 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -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 +29 -3
- 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 -3
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -4
- 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.js +2 -2
- package/src/View/Components/ColumnFilter/ColumnFilter.js +1 -2
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +0 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +3 -1
- 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 +3 -8
- 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 -4
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
- package/src/View/Components/Popups/AdaptablePopup/settingsPanelNavigationTypes.d.ts +11 -0
- package/src/View/Components/Popups/AdaptablePopup/settingsPanelNavigationTypes.js +5 -0
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +3 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +27 -28
- package/src/View/Components/PredicateEditor/PredicateEditor.js +1 -1
- package/src/View/Components/RangesComponent.d.ts +2 -4
- package/src/View/Components/RangesComponent.js +95 -66
- package/src/View/Components/ReorderDraggable/index.js +2 -3
- 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 +30 -63
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +9 -6
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +3 -13
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +5 -80
- package/src/View/Components/ToolPanel/ToolPanelPopupSections.d.ts +17 -0
- package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +81 -0
- package/src/View/Components/ValueSelector/index.d.ts +29 -0
- package/src/View/Components/ValueSelector/index.js +112 -29
- package/src/View/Components/wizardColumnListStyles.d.ts +10 -0
- package/src/View/Components/wizardColumnListStyles.js +13 -0
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +4 -6
- 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 +73 -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 +99 -0
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +5 -3
- package/src/View/DataChangeHistory/buildActionColumnButton.js +33 -41
- package/src/View/DataChangeHistory/dataChangeHistoryHelpers.d.ts +15 -0
- package/src/View/DataChangeHistory/dataChangeHistoryHelpers.js +46 -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 +4 -5
- 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 +2 -7
- package/src/View/Export/Wizard/ReportRowsWizardSection.d.ts +2 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +2 -5
- package/src/View/FlashingCell/FlashingCellStyle.d.ts +4 -2
- package/src/View/FlashingCell/FlashingCellStyle.js +5 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +5 -9
- package/src/View/FlashingCell/Wizard/FlashingCellScopeSummary.d.ts +9 -0
- package/src/View/FlashingCell/Wizard/FlashingCellScopeSummary.js +10 -0
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +5 -1
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +0 -5
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +3 -8
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +101 -44
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +0 -1
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -6
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +55 -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 -9
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +4 -9
- 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 -3
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -2
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- 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 +77 -33
- package/src/View/Layout/Wizard/sections/ColumnsSection.d.ts +4 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +154 -275
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.d.ts +4 -1
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +146 -143
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.d.ts +5 -2
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +22 -10
- package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.d.ts +4 -1
- package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +21 -10
- package/src/View/Layout/Wizard/sections/RowGroupingSection.d.ts +5 -2
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +23 -12
- package/src/View/Layout/Wizard/sections/RowSelectionSection.js +7 -3
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +10 -10
- package/src/View/Layout/Wizard/sections/SortSection.d.ts +12 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +43 -18
- package/src/View/Layout/Wizard/sections/columnLayoutCards.d.ts +20 -0
- package/src/View/Layout/Wizard/sections/columnLayoutCards.js +167 -0
- package/src/View/Layout/Wizard/sections/columnLayoutHelpers.d.ts +30 -0
- package/src/View/Layout/Wizard/sections/columnLayoutHelpers.js +216 -0
- package/src/View/Layout/Wizard/sections/layoutWizardAccordionHelpers.d.ts +8 -0
- package/src/View/Layout/Wizard/sections/layoutWizardAccordionHelpers.js +72 -0
- package/src/View/Layout/Wizard/sections/layoutWizardColumns.d.ts +11 -0
- package/src/View/Layout/Wizard/sections/layoutWizardColumns.js +57 -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 -13
- 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 +11 -0
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +2 -0
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +13 -10
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.d.ts +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +137 -119
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +7 -13
- 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 +54 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +2 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +28 -6
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +8 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +46 -28
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +97 -42
- 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 +31 -45
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +10 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +93 -6
- package/src/View/UIHelper.d.ts +0 -2
- package/src/View/UIHelper.js +8 -24
- package/src/View/Wizard/CollapsibleWizardCard.d.ts +68 -0
- package/src/View/Wizard/CollapsibleWizardCard.js +90 -0
- package/src/View/Wizard/OnePageWizards.js +6 -6
- package/src/View/Wizard/SummaryColorTag.d.ts +24 -0
- package/src/View/Wizard/SummaryColorTag.js +79 -0
- package/src/View/Wizard/WizardTypeSelection.d.ts +34 -0
- package/src/View/Wizard/WizardTypeSelection.js +40 -0
- package/src/View/Wizard/rowGroupSummaryTags.d.ts +18 -0
- package/src/View/Wizard/rowGroupSummaryTags.js +21 -0
- package/src/View/Wizard/scopeSummaryTags.d.ts +6 -0
- package/src/View/Wizard/scopeSummaryTags.js +38 -0
- package/src/agGrid/AdaptableAgGrid.js +1 -1
- package/src/agGrid/AgGridAdapter.js +0 -5
- package/src/agGrid/AgGridColumnAdapter.js +1 -1
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +4 -7
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
- package/src/components/Card/index.js +5 -7
- package/src/components/CheckBox/index.js +2 -3
- package/src/components/CodeBlock/index.js +2 -3
- 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 +31 -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 +4 -1
- package/src/components/DragAndDropContext/ModuleManager.d.ts +15 -3
- package/src/components/DragAndDropContext/ModuleManager.js +43 -4
- 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 +13 -9
- package/src/components/DragAndDropContext/dragScope.d.ts +6 -0
- package/src/components/DragAndDropContext/dragScope.js +34 -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 -3
- package/src/components/ErrorBox/index.js +2 -3
- package/src/components/ExpressionEditor/BaseEditorInput.js +3 -3
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +3 -3
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +9 -9
- package/src/components/FieldWrap/index.js +2 -3
- package/src/components/Flex.js +2 -2
- package/src/components/FormLayout/index.d.ts +1 -1
- package/src/components/HelpBlock/index.js +3 -4
- package/src/components/IconSelector/IconSelector.d.ts +8 -0
- package/src/components/IconSelector/IconSelector.js +13 -8
- package/src/components/IconSelector/index.d.ts +1 -0
- package/src/components/IconSelector/index.js +3 -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 -3
- package/src/components/Tabs/index.js +4 -4
- package/src/components/Tag/Tag.d.ts +16 -0
- package/src/components/Tag/Tag.js +16 -5
- package/src/components/Tag/columnScopeTagHelpers.d.ts +8 -0
- package/src/components/Tag/columnScopeTagHelpers.js +12 -0
- package/src/components/Tag/index.d.ts +1 -1
- package/src/components/Tag/index.js +3 -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 -5
- package/src/components/Tree/TreeDropdown/index.js +3 -5
- package/src/components/WarningBox/index.js +2 -3
- 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.js +1 -1
- package/src/types.d.ts +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +0 -17
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +0 -295
- package/src/components/DropdownButton/DropdownButtonItem.d.ts +0 -12
- package/src/components/DropdownButton/DropdownButtonItem.js +0 -2
- package/src/components/DropdownButton/renderItem.d.ts +0 -14
- package/src/components/DropdownButton/renderItem.js +0 -14
- package/src/components/DropdownButton/useExpanded.d.ts +0 -24
- package/src/components/DropdownButton/useExpanded.js +0 -59
- package/src/components/NewDropdownButton/index.d.ts +0 -27
- package/src/components/NewDropdownButton/index.js +0 -28
|
@@ -6,6 +6,7 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const StyledColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/StyledColumnRedux"));
|
|
8
8
|
const StyledColumnWizard_1 = require("../View/StyledColumn/Wizard/StyledColumnWizard");
|
|
9
|
+
const SummaryColorTag_1 = require("../View/Wizard/SummaryColorTag");
|
|
9
10
|
const StyledColumnWizardStyleSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection");
|
|
10
11
|
const StyledColumnWizardGradientSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardGradientSection");
|
|
11
12
|
const StyledColumnWizardBulletSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardBulletSection");
|
|
@@ -84,26 +85,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
84
85
|
// Edit is common
|
|
85
86
|
if (styledColumn) {
|
|
86
87
|
if (!styledColumn.IsReadOnly) {
|
|
87
|
-
|
|
88
|
-
if (styledColumn.BadgeStyle) {
|
|
89
|
-
defaultCurrentSectionName = 'Badges';
|
|
90
|
-
}
|
|
91
|
-
else if (styledColumn.GradientStyle || styledColumn.PercentBarStyle) {
|
|
92
|
-
// Gradient + Percent Bar wizards now lead with the Ranges step.
|
|
93
|
-
defaultCurrentSectionName = 'Ranges';
|
|
94
|
-
}
|
|
95
|
-
else if (styledColumn.BulletChartStyle) {
|
|
96
|
-
defaultCurrentSectionName = 'Ranges';
|
|
97
|
-
}
|
|
98
|
-
else if (styledColumn.RangeBarStyle) {
|
|
99
|
-
defaultCurrentSectionName = 'Style';
|
|
100
|
-
}
|
|
101
|
-
else if (styledColumn.IconStyle) {
|
|
102
|
-
defaultCurrentSectionName = 'Mappings';
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
defaultCurrentSectionName = 'Style';
|
|
106
|
-
}
|
|
88
|
+
const defaultCurrentSectionName = (0, StyledColumnWizard_1.getStyledColumnEditDefaultSectionName)(styledColumn);
|
|
107
89
|
const popupParam = {
|
|
108
90
|
action: 'Edit',
|
|
109
91
|
source: 'ColumnMenu',
|
|
@@ -295,7 +277,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
295
277
|
if (styledColumn.PercentBarStyle) {
|
|
296
278
|
specificTypeItems.push({
|
|
297
279
|
name: 'Style',
|
|
298
|
-
values: (0, StyledColumnWizardStyleSection_1.getStyledColumnPercentBarStyleViewValues)(styledColumn),
|
|
280
|
+
values: (0, SummaryColorTag_1.summaryStringsToTagContents)((0, StyledColumnWizardStyleSection_1.getStyledColumnPercentBarStyleViewValues)(styledColumn)),
|
|
299
281
|
});
|
|
300
282
|
specificTypeItems.push({
|
|
301
283
|
name: 'Preview',
|
|
@@ -305,7 +287,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
305
287
|
if (styledColumn.GradientStyle) {
|
|
306
288
|
specificTypeItems.push({
|
|
307
289
|
name: 'Style',
|
|
308
|
-
values: (0, StyledColumnWizardGradientSection_1.getStyledColumnGradientStyleViewValues)(styledColumn),
|
|
290
|
+
values: (0, SummaryColorTag_1.summaryStringsToTagContents)((0, StyledColumnWizardGradientSection_1.getStyledColumnGradientStyleViewValues)(styledColumn)),
|
|
309
291
|
});
|
|
310
292
|
specificTypeItems.push({
|
|
311
293
|
name: 'Preview',
|
|
@@ -320,7 +302,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
320
302
|
});
|
|
321
303
|
specificTypeItems.push({
|
|
322
304
|
name: 'Style',
|
|
323
|
-
values: (0, StyledColumnWizardBulletSection_1.getStyledColumnBulletStyleViewValues)(styledColumn),
|
|
305
|
+
values: (0, SummaryColorTag_1.summaryStringsToTagContents)((0, StyledColumnWizardBulletSection_1.getStyledColumnBulletStyleViewValues)(styledColumn)),
|
|
324
306
|
});
|
|
325
307
|
specificTypeItems.push({
|
|
326
308
|
name: 'Preview',
|
|
@@ -330,7 +312,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
330
312
|
if (styledColumn.RatingStyle) {
|
|
331
313
|
specificTypeItems.push({
|
|
332
314
|
name: 'Style',
|
|
333
|
-
values: (0, StyledColumnWizardRatingSection_1.getStyledColumnRatingStyleViewValues)(styledColumn),
|
|
315
|
+
values: (0, SummaryColorTag_1.summaryStringsToTagContents)((0, StyledColumnWizardRatingSection_1.getStyledColumnRatingStyleViewValues)(styledColumn)),
|
|
334
316
|
});
|
|
335
317
|
specificTypeItems.push({
|
|
336
318
|
name: 'Preview',
|
|
@@ -344,7 +326,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
344
326
|
});
|
|
345
327
|
specificTypeItems.push({
|
|
346
328
|
name: 'Display',
|
|
347
|
-
values: (0, StyledColumnWizardRangeBarSection_1.getStyledColumnRangeBarDisplayViewValues)(styledColumn),
|
|
329
|
+
values: (0, SummaryColorTag_1.summaryStringsToTagContents)((0, StyledColumnWizardRangeBarSection_1.getStyledColumnRangeBarDisplayViewValues)(styledColumn)),
|
|
348
330
|
});
|
|
349
331
|
specificTypeItems.push({
|
|
350
332
|
name: 'Preview',
|
|
@@ -358,7 +340,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
358
340
|
});
|
|
359
341
|
specificTypeItems.push({
|
|
360
342
|
name: 'Style',
|
|
361
|
-
values: (0, StyledColumnWizardIconSection_1.getStyledColumnIconStyleViewValues)(styledColumn),
|
|
343
|
+
values: (0, SummaryColorTag_1.summaryStringsToTagContents)((0, StyledColumnWizardIconSection_1.getStyledColumnIconStyleViewValues)(styledColumn)),
|
|
362
344
|
});
|
|
363
345
|
specificTypeItems.push({
|
|
364
346
|
name: 'Preview',
|
|
@@ -372,7 +354,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
372
354
|
});
|
|
373
355
|
specificTypeItems.push({
|
|
374
356
|
name: 'Style',
|
|
375
|
-
values: (0, StyledColumnBadgeSection_1.getStyledColumnBadgeStyleViewValues)(styledColumn, this.api),
|
|
357
|
+
values: (0, SummaryColorTag_1.summaryStringsToTagContents)((0, StyledColumnBadgeSection_1.getStyledColumnBadgeStyleViewValues)(styledColumn, this.api)),
|
|
376
358
|
});
|
|
377
359
|
specificTypeItems.push({
|
|
378
360
|
name: 'Preview',
|
|
@@ -382,7 +364,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
382
364
|
if (styledColumn.SparklineStyle) {
|
|
383
365
|
specificTypeItems.push({
|
|
384
366
|
name: 'Style',
|
|
385
|
-
values: (0, StyledColumnSparklineSettingsSection_1.getStyledColumnSparklineStyleViewValues)(styledColumn),
|
|
367
|
+
values: (0, SummaryColorTag_1.summaryStringsToTagContents)((0, StyledColumnSparklineSettingsSection_1.getStyledColumnSparklineStyleViewValues)(styledColumn)),
|
|
386
368
|
});
|
|
387
369
|
specificTypeItems.push({
|
|
388
370
|
name: 'Preview',
|
|
@@ -404,6 +386,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
404
386
|
{
|
|
405
387
|
name: 'Column',
|
|
406
388
|
values: [this.api.columnApi.getFriendlyNameForColumnId(styledColumn.ColumnId)],
|
|
389
|
+
tagVariant: 'column',
|
|
407
390
|
},
|
|
408
391
|
{
|
|
409
392
|
name: 'Rows',
|
|
@@ -5,6 +5,7 @@ const getCustomSortColumnViewItems = (customSort, api) => {
|
|
|
5
5
|
return {
|
|
6
6
|
name: 'Column',
|
|
7
7
|
values: [api.columnApi.getFriendlyNameForColumnId(customSort.ColumnId)],
|
|
8
|
+
tagVariant: 'column',
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
exports.getCustomSortColumnViewItems = getCustomSortColumnViewItems;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { AdaptableObjectItemView } from '../../Interface/IModule';
|
|
2
3
|
import { AdaptableApi, Report } from '../../../../types';
|
|
3
4
|
export declare const getExportColumnsViewItems: (report: Report, api: AdaptableApi) => AdaptableObjectItemView;
|
|
5
|
+
export declare const renderExportColumnsView: (report: Report, api: AdaptableApi) => React.ReactNode;
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getExportColumnsViewItems = void 0;
|
|
3
|
+
exports.renderExportColumnsView = exports.getExportColumnsViewItems = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const Tag_1 = require("../../../components/Tag/Tag");
|
|
7
|
+
const columnScopeTagHelpers_1 = require("../../../components/Tag/columnScopeTagHelpers");
|
|
4
8
|
const getExportColumnsViewItems = (report, api) => {
|
|
5
9
|
return {
|
|
6
10
|
name: 'Columns',
|
|
7
11
|
values: [...api.exportApi.internalApi.getReportColumnScopeShortDescription(report)],
|
|
12
|
+
tagVariant: (0, columnScopeTagHelpers_1.reportColumnTagsUseColumnVariant)(report) ? 'column' : undefined,
|
|
8
13
|
};
|
|
9
14
|
};
|
|
10
15
|
exports.getExportColumnsViewItems = getExportColumnsViewItems;
|
|
16
|
+
const renderExportColumnsView = (report, api) => {
|
|
17
|
+
const { values } = (0, exports.getExportColumnsViewItems)(report, api);
|
|
18
|
+
if (!values?.length) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
return React.createElement(Tag_1.TagList, {
|
|
22
|
+
tags: values,
|
|
23
|
+
variant: (0, columnScopeTagHelpers_1.reportColumnTagsUseColumnVariant)(report) ? 'column' : undefined,
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
exports.renderExportColumnsView = renderExportColumnsView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getExportRowsViewItems = void 0;
|
|
3
|
+
exports.renderExportRowsView = exports.getExportRowsViewItems = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const ExpressionPreview_1 = require("../../../components/ExpressionEditor/ExpressionPreview");
|
|
6
6
|
const Tag_1 = require("../../../components/Tag");
|
|
@@ -18,3 +18,7 @@ const getExportRowsViewItems = (report, api) => {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
exports.getExportRowsViewItems = getExportRowsViewItems;
|
|
21
|
+
const renderExportRowsView = (report, api) => {
|
|
22
|
+
return (0, exports.getExportRowsViewItems)(report, api).view;
|
|
23
|
+
};
|
|
24
|
+
exports.renderExportRowsView = renderExportRowsView;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AdaptableApi, PivotLayout, TableLayout } from '../../../types';
|
|
2
|
+
export declare function getTableAggregationSummaryValues(layout: TableLayout, api: AdaptableApi): string[];
|
|
3
|
+
export declare function getPivotAggregationSummaryValues(layout: PivotLayout, api: AdaptableApi): string[];
|
|
4
|
+
export declare function getLayoutTableAggregationViewItems(layout: TableLayout, api: AdaptableApi): {
|
|
5
|
+
name: string;
|
|
6
|
+
values: string[];
|
|
7
|
+
}[];
|
|
8
|
+
export declare function getLayoutPivotAggregationViewItems(layout: PivotLayout, api: AdaptableApi): {
|
|
9
|
+
name: string;
|
|
10
|
+
values: string[];
|
|
11
|
+
}[];
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTableAggregationSummaryValues = getTableAggregationSummaryValues;
|
|
4
|
+
exports.getPivotAggregationSummaryValues = getPivotAggregationSummaryValues;
|
|
5
|
+
exports.getLayoutTableAggregationViewItems = getLayoutTableAggregationViewItems;
|
|
6
|
+
exports.getLayoutPivotAggregationViewItems = getLayoutPivotAggregationViewItems;
|
|
7
|
+
const AggregationColumns_1 = require("../../../AdaptableState/Common/AggregationColumns");
|
|
8
|
+
const IGNORED_AGG_COLUMN_IDS = new Set(['Source', 'Uuid', 'AdaptableVersion']);
|
|
9
|
+
const GRAND_TOTAL_ROW_LABELS = {
|
|
10
|
+
off: 'None',
|
|
11
|
+
top: 'Top',
|
|
12
|
+
bottom: 'Bottom',
|
|
13
|
+
pinnedTop: 'Pinned Top',
|
|
14
|
+
pinnedBottom: 'Pinned Bottom',
|
|
15
|
+
};
|
|
16
|
+
const PIVOT_LAYOUT_TOTAL_LABELS = {
|
|
17
|
+
off: 'None',
|
|
18
|
+
before: 'Before',
|
|
19
|
+
after: 'After',
|
|
20
|
+
};
|
|
21
|
+
function getGrandTotalRowKey(layout) {
|
|
22
|
+
const value = layout.GrandTotalRow;
|
|
23
|
+
if (value == null || value === false) {
|
|
24
|
+
return 'off';
|
|
25
|
+
}
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
function getGrandTotalRowLabel(layout) {
|
|
29
|
+
return GRAND_TOTAL_ROW_LABELS[getGrandTotalRowKey(layout)];
|
|
30
|
+
}
|
|
31
|
+
function getPivotLayoutTotalKey(value) {
|
|
32
|
+
if (value == null || value === false) {
|
|
33
|
+
return 'off';
|
|
34
|
+
}
|
|
35
|
+
if (value === 'before') {
|
|
36
|
+
return 'before';
|
|
37
|
+
}
|
|
38
|
+
if (value === 'after') {
|
|
39
|
+
return 'after';
|
|
40
|
+
}
|
|
41
|
+
return 'off';
|
|
42
|
+
}
|
|
43
|
+
function getPivotLayoutTotalLabel(value) {
|
|
44
|
+
return PIVOT_LAYOUT_TOTAL_LABELS[getPivotLayoutTotalKey(value)];
|
|
45
|
+
}
|
|
46
|
+
function formatAggregationTag(columnId, aggFn, columnIdToFriendlyName) {
|
|
47
|
+
if (IGNORED_AGG_COLUMN_IDS.has(columnId)) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
let aggFnName = '';
|
|
51
|
+
if (typeof aggFn === 'string') {
|
|
52
|
+
aggFnName = aggFn;
|
|
53
|
+
}
|
|
54
|
+
else if (typeof aggFn === 'object' && aggFn?.type === 'weightedAverage') {
|
|
55
|
+
aggFnName = AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME;
|
|
56
|
+
}
|
|
57
|
+
if (!aggFnName) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return `${aggFnName}(${columnIdToFriendlyName(columnId)})`;
|
|
61
|
+
}
|
|
62
|
+
function getTableAggregationSummaryValues(layout, api) {
|
|
63
|
+
const columnIdToFriendlyName = (columnId) => api.columnApi.getFriendlyNameForColumnId(columnId);
|
|
64
|
+
const values = (layout.TableAggregationColumns || [])
|
|
65
|
+
.map(({ ColumnId, AggFunc }) => formatAggregationTag(ColumnId, AggFunc, columnIdToFriendlyName))
|
|
66
|
+
.filter((value) => Boolean(value));
|
|
67
|
+
if (getGrandTotalRowKey(layout) !== 'off') {
|
|
68
|
+
values.push(`Grand Total Row: ${getGrandTotalRowLabel(layout)}`);
|
|
69
|
+
}
|
|
70
|
+
return values;
|
|
71
|
+
}
|
|
72
|
+
function getPivotAggregationSummaryValues(layout, api) {
|
|
73
|
+
const columnIdToFriendlyName = (columnId) => api.columnApi.getFriendlyNameForColumnId(columnId);
|
|
74
|
+
const values = (layout.PivotAggregationColumns || [])
|
|
75
|
+
.map(({ ColumnId, AggFunc }) => formatAggregationTag(ColumnId, AggFunc, columnIdToFriendlyName))
|
|
76
|
+
.filter((value) => Boolean(value));
|
|
77
|
+
if (getGrandTotalRowKey(layout) !== 'off') {
|
|
78
|
+
values.push(`Grand Total Row: ${getGrandTotalRowLabel(layout)}`);
|
|
79
|
+
}
|
|
80
|
+
if (getPivotLayoutTotalKey(layout.PivotGrandTotal) !== 'off') {
|
|
81
|
+
values.push(`Pivot Grand Total: ${getPivotLayoutTotalLabel(layout.PivotGrandTotal)}`);
|
|
82
|
+
}
|
|
83
|
+
if (getPivotLayoutTotalKey(layout.PivotColumnTotal) !== 'off') {
|
|
84
|
+
values.push(`Pivot Column Total: ${getPivotLayoutTotalLabel(layout.PivotColumnTotal)}`);
|
|
85
|
+
}
|
|
86
|
+
return values;
|
|
87
|
+
}
|
|
88
|
+
function getLayoutTableAggregationViewItems(layout, api) {
|
|
89
|
+
const values = getTableAggregationSummaryValues(layout, api);
|
|
90
|
+
if (!values.length) {
|
|
91
|
+
return [];
|
|
92
|
+
}
|
|
93
|
+
return [
|
|
94
|
+
{
|
|
95
|
+
name: 'Aggregations',
|
|
96
|
+
values,
|
|
97
|
+
},
|
|
98
|
+
];
|
|
99
|
+
}
|
|
100
|
+
function getLayoutPivotAggregationViewItems(layout, api) {
|
|
101
|
+
const values = getPivotAggregationSummaryValues(layout, api);
|
|
102
|
+
if (!values.length) {
|
|
103
|
+
return [];
|
|
104
|
+
}
|
|
105
|
+
return [
|
|
106
|
+
{
|
|
107
|
+
name: 'Aggregations',
|
|
108
|
+
values,
|
|
109
|
+
},
|
|
110
|
+
];
|
|
111
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AdaptableApi, Layout, TableLayout } from '../../../types';
|
|
2
|
+
export declare const TABLE_COLUMNS_SETTINGS_PANEL_LABELS: {
|
|
3
|
+
visibility: string;
|
|
4
|
+
pinning: string;
|
|
5
|
+
sizing: string;
|
|
6
|
+
sorting: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const TABLE_COLUMNS_WIZARD_SUBSECTION_LABELS: {
|
|
9
|
+
visibility: string;
|
|
10
|
+
pinning: string;
|
|
11
|
+
sizing: string;
|
|
12
|
+
sorting: string;
|
|
13
|
+
};
|
|
14
|
+
export type TableColumnsSummaryLabels = {
|
|
15
|
+
readonly visibility: string;
|
|
16
|
+
readonly pinning: string;
|
|
17
|
+
readonly sizing: string;
|
|
18
|
+
readonly sorting: string;
|
|
19
|
+
};
|
|
20
|
+
export type TableColumnsSummaryGroup = {
|
|
21
|
+
label: string;
|
|
22
|
+
values: string[];
|
|
23
|
+
emptyLabel: string;
|
|
24
|
+
};
|
|
25
|
+
export declare function getTableColumnsVisibilitySummaryValues(layout: TableLayout, api: AdaptableApi): string[];
|
|
26
|
+
export declare function getTableColumnsPinningSummaryValues(layout: Layout, api: AdaptableApi): string[];
|
|
27
|
+
export declare function getTableColumnsSizingSummaryValues(layout: Layout, api: AdaptableApi): string[];
|
|
28
|
+
export declare function getTableColumnsSortingSummaryValues(layout: Layout, api: AdaptableApi): string[];
|
|
29
|
+
/** Matches legacy Layout settings panel behaviour (`layoutViewOptions.maxColumnsToDisplay`). */
|
|
30
|
+
export declare const DEFAULT_LAYOUT_VIEW_MAX_COLUMNS = 10;
|
|
31
|
+
/**
|
|
32
|
+
* Collapse a long column list for compact views (e.g. Layout settings panel).
|
|
33
|
+
* Keeps all items when the overflow is only 1 column; otherwise shows `+N more`.
|
|
34
|
+
*/
|
|
35
|
+
export declare function truncateColumnSummaryValues(values: string[], maxToDisplay?: number): string[];
|
|
36
|
+
export declare function getTableColumnsSummaryGroups(layout: TableLayout, api: AdaptableApi, labels?: TableColumnsSummaryLabels): TableColumnsSummaryGroup[];
|
|
37
|
+
export declare function getLayoutTableColumnsViewItems(layout: Layout, api: AdaptableApi, options?: {
|
|
38
|
+
maxColumnsToDisplay?: number;
|
|
39
|
+
}): {
|
|
40
|
+
name: string;
|
|
41
|
+
values: string[];
|
|
42
|
+
tagVariant: "column";
|
|
43
|
+
}[];
|
|
44
|
+
export declare function getLayoutPivotSortingViewItem(layout: Layout, api: AdaptableApi): {
|
|
45
|
+
name: string;
|
|
46
|
+
values: string[];
|
|
47
|
+
tagVariant: "column";
|
|
48
|
+
};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_LAYOUT_VIEW_MAX_COLUMNS = exports.TABLE_COLUMNS_WIZARD_SUBSECTION_LABELS = exports.TABLE_COLUMNS_SETTINGS_PANEL_LABELS = void 0;
|
|
4
|
+
exports.getTableColumnsVisibilitySummaryValues = getTableColumnsVisibilitySummaryValues;
|
|
5
|
+
exports.getTableColumnsPinningSummaryValues = getTableColumnsPinningSummaryValues;
|
|
6
|
+
exports.getTableColumnsSizingSummaryValues = getTableColumnsSizingSummaryValues;
|
|
7
|
+
exports.getTableColumnsSortingSummaryValues = getTableColumnsSortingSummaryValues;
|
|
8
|
+
exports.truncateColumnSummaryValues = truncateColumnSummaryValues;
|
|
9
|
+
exports.getTableColumnsSummaryGroups = getTableColumnsSummaryGroups;
|
|
10
|
+
exports.getLayoutTableColumnsViewItems = getLayoutTableColumnsViewItems;
|
|
11
|
+
exports.getLayoutPivotSortingViewItem = getLayoutPivotSortingViewItem;
|
|
12
|
+
exports.TABLE_COLUMNS_SETTINGS_PANEL_LABELS = {
|
|
13
|
+
visibility: 'Columns',
|
|
14
|
+
pinning: 'Pinning',
|
|
15
|
+
sizing: 'Sizing',
|
|
16
|
+
sorting: 'Sorting',
|
|
17
|
+
};
|
|
18
|
+
exports.TABLE_COLUMNS_WIZARD_SUBSECTION_LABELS = {
|
|
19
|
+
visibility: 'Visibility and Order',
|
|
20
|
+
pinning: 'Pinning',
|
|
21
|
+
sizing: 'Sizing',
|
|
22
|
+
sorting: 'Sorting',
|
|
23
|
+
};
|
|
24
|
+
function resolveDefaultColumnWidth(api) {
|
|
25
|
+
return (columnId) => api.internalApi.getAdaptableInstance().getDefaultColumnWidthForCol(columnId);
|
|
26
|
+
}
|
|
27
|
+
function hasExplicitLayoutSizing(columnId, sizing, resolveDefaultWidth) {
|
|
28
|
+
if (!sizing) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
if (sizing.Flex != null) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (sizing.MinWidth != null || sizing.MaxWidth != null) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
if (sizing.Width != null) {
|
|
38
|
+
return sizing.Width !== resolveDefaultWidth(columnId);
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function getLayoutExplicitSizedColumnIds(layout, resolveDefaultWidth) {
|
|
43
|
+
const sizing = layout.ColumnSizing ?? {};
|
|
44
|
+
return Object.keys(sizing).filter((columnId) => hasExplicitLayoutSizing(columnId, sizing[columnId], resolveDefaultWidth));
|
|
45
|
+
}
|
|
46
|
+
function formatExplicitColumnSizingBrief(columnId, sizing, resolveDefaultWidth) {
|
|
47
|
+
if (!hasExplicitLayoutSizing(columnId, sizing, resolveDefaultWidth)) {
|
|
48
|
+
return '';
|
|
49
|
+
}
|
|
50
|
+
const parts = [];
|
|
51
|
+
if (sizing?.Flex != null) {
|
|
52
|
+
parts.push(`flex ${sizing.Flex}`);
|
|
53
|
+
}
|
|
54
|
+
else if (sizing?.Width != null && sizing.Width !== resolveDefaultWidth(columnId)) {
|
|
55
|
+
parts.push(String(sizing.Width));
|
|
56
|
+
}
|
|
57
|
+
if (sizing?.MinWidth != null) {
|
|
58
|
+
parts.push(`min ${sizing.MinWidth}`);
|
|
59
|
+
}
|
|
60
|
+
if (sizing?.MaxWidth != null) {
|
|
61
|
+
parts.push(`max ${sizing.MaxWidth}`);
|
|
62
|
+
}
|
|
63
|
+
return parts.join(', ');
|
|
64
|
+
}
|
|
65
|
+
function getLayoutTableColumnIds(layout, api) {
|
|
66
|
+
return (layout.TableColumns ?? [])
|
|
67
|
+
.filter((columnId) => !api.columnApi.isAutoRowGroupColumn(columnId))
|
|
68
|
+
.filter((columnId) => !api.columnApi.isPivotResultColumn(columnId))
|
|
69
|
+
.filter((columnId) => !api.columnApi.isSelectionColumn(columnId));
|
|
70
|
+
}
|
|
71
|
+
function getLayoutPinnedColumnIds(layout, side) {
|
|
72
|
+
const pinning = layout.ColumnPinning ?? {};
|
|
73
|
+
return Object.entries(pinning)
|
|
74
|
+
.filter(([, pin]) => pin === side)
|
|
75
|
+
.map(([columnId]) => columnId);
|
|
76
|
+
}
|
|
77
|
+
function getTableColumnsVisibilitySummaryValues(layout, api) {
|
|
78
|
+
return getLayoutTableColumnIds(layout, api).map((columnId) => {
|
|
79
|
+
const name = api.columnApi.getFriendlyNameForColumnId(columnId, layout);
|
|
80
|
+
const customHeader = layout.ColumnHeaders?.[columnId]?.trim();
|
|
81
|
+
if (customHeader) {
|
|
82
|
+
return `${name} (header: ${customHeader})`;
|
|
83
|
+
}
|
|
84
|
+
return name;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function getTableColumnsPinningSummaryValues(layout, api) {
|
|
88
|
+
const leftPinned = getLayoutPinnedColumnIds(layout, 'left');
|
|
89
|
+
const rightPinned = getLayoutPinnedColumnIds(layout, 'right');
|
|
90
|
+
return [
|
|
91
|
+
...leftPinned.map((columnId) => `${api.columnApi.getFriendlyNameForColumnId(columnId, layout)} (left)`),
|
|
92
|
+
...rightPinned.map((columnId) => `${api.columnApi.getFriendlyNameForColumnId(columnId, layout)} (right)`),
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
function getTableColumnsSizingSummaryValues(layout, api) {
|
|
96
|
+
const resolveDefaultWidth = resolveDefaultColumnWidth(api);
|
|
97
|
+
return getLayoutExplicitSizedColumnIds(layout, resolveDefaultWidth).map((columnId) => {
|
|
98
|
+
const name = api.columnApi.getFriendlyNameForColumnId(columnId, layout);
|
|
99
|
+
const sizingBrief = formatExplicitColumnSizingBrief(columnId, layout.ColumnSizing?.[columnId], resolveDefaultWidth);
|
|
100
|
+
return `${name} (${sizingBrief})`;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function getTableColumnsSortingSummaryValues(layout, api) {
|
|
104
|
+
return (layout.ColumnSorts ?? []).map((sort) => `[${api.columnApi.getFriendlyNameForColumnId(sort.ColumnId, layout)}: ${sort.SortOrder}]`);
|
|
105
|
+
}
|
|
106
|
+
/** Matches legacy Layout settings panel behaviour (`layoutViewOptions.maxColumnsToDisplay`). */
|
|
107
|
+
exports.DEFAULT_LAYOUT_VIEW_MAX_COLUMNS = 10;
|
|
108
|
+
/**
|
|
109
|
+
* Collapse a long column list for compact views (e.g. Layout settings panel).
|
|
110
|
+
* Keeps all items when the overflow is only 1 column; otherwise shows `+N more`.
|
|
111
|
+
*/
|
|
112
|
+
function truncateColumnSummaryValues(values, maxToDisplay = exports.DEFAULT_LAYOUT_VIEW_MAX_COLUMNS) {
|
|
113
|
+
if (maxToDisplay <= 0 || values.length <= maxToDisplay + 1) {
|
|
114
|
+
return values;
|
|
115
|
+
}
|
|
116
|
+
const extra = values.length - maxToDisplay;
|
|
117
|
+
return [...values.slice(0, maxToDisplay), `+${extra} more`];
|
|
118
|
+
}
|
|
119
|
+
function getTableColumnsSummaryGroups(layout, api, labels = exports.TABLE_COLUMNS_SETTINGS_PANEL_LABELS) {
|
|
120
|
+
return [
|
|
121
|
+
{
|
|
122
|
+
label: labels.visibility,
|
|
123
|
+
values: getTableColumnsVisibilitySummaryValues(layout, api),
|
|
124
|
+
emptyLabel: 'No columns in this Layout',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
label: labels.pinning,
|
|
128
|
+
values: getTableColumnsPinningSummaryValues(layout, api),
|
|
129
|
+
emptyLabel: 'No columns pinned in this Layout',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
label: labels.sizing,
|
|
133
|
+
values: getTableColumnsSizingSummaryValues(layout, api),
|
|
134
|
+
emptyLabel: 'All columns use default sizing in this Layout',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
label: labels.sorting,
|
|
138
|
+
values: getTableColumnsSortingSummaryValues(layout, api),
|
|
139
|
+
emptyLabel: 'No column sorts in this Layout',
|
|
140
|
+
},
|
|
141
|
+
];
|
|
142
|
+
}
|
|
143
|
+
function getLayoutTableColumnsViewItems(layout, api, options) {
|
|
144
|
+
const maxColumnsToDisplay = options?.maxColumnsToDisplay ?? exports.DEFAULT_LAYOUT_VIEW_MAX_COLUMNS;
|
|
145
|
+
const optionalRowLabels = new Set([
|
|
146
|
+
exports.TABLE_COLUMNS_SETTINGS_PANEL_LABELS.pinning,
|
|
147
|
+
exports.TABLE_COLUMNS_SETTINGS_PANEL_LABELS.sizing,
|
|
148
|
+
exports.TABLE_COLUMNS_SETTINGS_PANEL_LABELS.sorting,
|
|
149
|
+
]);
|
|
150
|
+
return getTableColumnsSummaryGroups(layout, api).flatMap(({ label, values, emptyLabel }) => {
|
|
151
|
+
if (optionalRowLabels.has(label) && !values.length) {
|
|
152
|
+
return [];
|
|
153
|
+
}
|
|
154
|
+
const resolvedValues = values.length ? values : [emptyLabel];
|
|
155
|
+
const displayValues = label === exports.TABLE_COLUMNS_SETTINGS_PANEL_LABELS.visibility
|
|
156
|
+
? truncateColumnSummaryValues(resolvedValues, maxColumnsToDisplay)
|
|
157
|
+
: resolvedValues;
|
|
158
|
+
return [
|
|
159
|
+
{
|
|
160
|
+
name: label,
|
|
161
|
+
values: displayValues,
|
|
162
|
+
tagVariant: 'column',
|
|
163
|
+
},
|
|
164
|
+
];
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function getLayoutPivotSortingViewItem(layout, api) {
|
|
168
|
+
const values = getTableColumnsSortingSummaryValues(layout, api);
|
|
169
|
+
if (!values.length) {
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
name: 'Sorting',
|
|
174
|
+
values,
|
|
175
|
+
tagVariant: 'column',
|
|
176
|
+
};
|
|
177
|
+
}
|
|
@@ -8,6 +8,7 @@ const getLayoutSortViewItems = (layout, api) => {
|
|
|
8
8
|
return {
|
|
9
9
|
name: 'Sort',
|
|
10
10
|
values: (layout.ColumnSorts ?? []).map((customSort) => `[${columnIdToFriendlyName(customSort.ColumnId)}: ${customSort.SortOrder}]`),
|
|
11
|
+
tagVariant: 'column',
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
14
|
exports.getLayoutSortViewItems = getLayoutSortViewItems;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AdaptableApi, Layout, TableLayout } from '../../../types';
|
|
3
|
+
export declare const ROW_GROUP_DISPLAY_TYPE_LABELS: Record<NonNullable<TableLayout['RowGroupDisplayType']>, string>;
|
|
4
|
+
export declare const ROW_GROUP_DISPLAY_TYPE_DESCRIPTIONS: Record<NonNullable<TableLayout['RowGroupDisplayType']>, string>;
|
|
5
|
+
export declare const ROW_GROUP_BEHAVIOR_LABELS: Record<TableLayout['RowGroupValues']['RowGroupDefaultBehavior'], string>;
|
|
6
|
+
export declare const ROW_GROUP_BEHAVIOR_DESCRIPTIONS: Record<TableLayout['RowGroupValues']['RowGroupDefaultBehavior'], string>;
|
|
7
|
+
export declare function getRowGroupDisplayTypeLabel(layout: Layout): string;
|
|
8
|
+
export declare function getRowGroupDisplayTypeDescription(layout: Layout): string;
|
|
9
|
+
export declare function getRowGroupBehaviorLabel(layout: Layout): string;
|
|
10
|
+
export declare function getRowGroupBehaviorDescription(layout: Layout): string;
|
|
11
|
+
export declare function getTableRowGroupSummaryValues(layout: Layout, api: AdaptableApi): string[];
|
|
12
|
+
export declare function getLayoutTableRowGroupViewItems(layout: Layout, api: AdaptableApi): {
|
|
13
|
+
name: string;
|
|
14
|
+
view: () => React.FunctionComponentElement<{
|
|
15
|
+
layout: Layout;
|
|
16
|
+
api: AdaptableApi;
|
|
17
|
+
}>;
|
|
18
|
+
}[];
|
|
19
|
+
export declare function getPivotRowGroupSummaryValues(layout: Layout, api: AdaptableApi): string[];
|
|
20
|
+
export declare function getLayoutPivotRowGroupViewItems(layout: Layout, api: AdaptableApi): {
|
|
21
|
+
name: string;
|
|
22
|
+
view: () => React.FunctionComponentElement<{
|
|
23
|
+
layout: Layout;
|
|
24
|
+
api: AdaptableApi;
|
|
25
|
+
}>;
|
|
26
|
+
}[];
|