@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
|
@@ -12,7 +12,7 @@ import * as InternalRedux from '../../Redux/ActionsReducers/InternalRedux';
|
|
|
12
12
|
import * as BulkUpdateRedux from '../../Redux/ActionsReducers/BulkUpdateRedux';
|
|
13
13
|
import { connect } from 'react-redux';
|
|
14
14
|
import { Flex } from '../../components/Flex';
|
|
15
|
-
import
|
|
15
|
+
import { cn } from '../../lib/utils';
|
|
16
16
|
class BulkUpdateViewPanelComponent extends React.Component {
|
|
17
17
|
cleanupEvent;
|
|
18
18
|
constructor(props) {
|
|
@@ -54,15 +54,13 @@ class BulkUpdateViewPanelComponent extends React.Component {
|
|
|
54
54
|
const elementType = isToolbar ? 'DashboardToolbar' : 'ToolPanel';
|
|
55
55
|
const messageStyle = UIHelper.getMessageTypeByStatusColour(statusColour);
|
|
56
56
|
const infoStyle = messageStyle === 'Success' ? 'Info' : messageStyle;
|
|
57
|
-
return (_jsxs(Flex, { className:
|
|
57
|
+
return (_jsxs(Flex, { className: cn(valueSelectorDisabled ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__BulkUpdate__wrap twa:gap-1 twa:flex-row`, {
|
|
58
58
|
'twa:min-w-[300px] twa:max-w-[300px] twa:w-[300px] twa:flex-nowrap': isToolbar,
|
|
59
59
|
'twa:flex-1 twa:flex-wrap': !isToolbar,
|
|
60
|
-
}), flexWrap: isToolbar ? 'nowrap' : 'wrap', children: [_jsx(Flex, { className:
|
|
60
|
+
}), flexWrap: isToolbar ? 'nowrap' : 'wrap', children: [_jsx(Flex, { className: cn('twa:flex-1', {
|
|
61
61
|
'twa:min-w-[100px]': !isToolbar,
|
|
62
62
|
'twa:min-w-0': isToolbar,
|
|
63
|
-
}), children: _jsx(BulkUpdateValueSelector, { selectedGridCells: this.props.SelectedGridCells, newLabel: "New", existingLabel: "Existing",
|
|
64
|
-
listMinWidth: 160,
|
|
65
|
-
}, className: `ab-${elementType}__BulkUpdate__select twa:w-full`, disabled: valueSelectorDisabled, selectedColumnValue: this.props.BulkUpdateValue, selectedColumn: selectedColumn, api: this.props.api, onColumnValueChange: (columns) => this.onColumnValueSelectedChanged(columns) }) }), _jsxs(Flex, { className: "twa:flex-shrink-0 twa:gap-1", children: [_jsx(Flex, { className: "twa:flex twa:box-border twa:items-stretch", children: _jsx(ButtonApply, { className: `ab-${elementType}__BulkUpdate__apply twa:h-full`, onClick: () => this.onApplyClick(), style: applyStyle, tooltip: "Apply Bulk Update", disabled: valueOperationDisabled, accessLevel: this.props.accessLevel, children: 'Apply' }) }), _jsx(AdaptablePopover, { popoverMinWidth: 360, popoverMaxWidth: 500, popupPadding: 0, className: `ab-${elementType}__BulkUpdate__info`, headerText: "Preview Results", bodyText: [previewPanel], MessageType: infoStyle, useButton: true, showEvent: 'focus', hideEvent: "blur", disabled: valueSelectorDisabled || StringExtensions.IsNullOrEmpty(this.props.BulkUpdateValue) })] })] }));
|
|
63
|
+
}), children: _jsx(BulkUpdateValueSelector, { selectedGridCells: this.props.SelectedGridCells, newLabel: "New", existingLabel: "Existing", className: `ab-${elementType}__BulkUpdate__select twa:w-full`, disabled: valueSelectorDisabled, selectedColumnValue: this.props.BulkUpdateValue, selectedColumn: selectedColumn, api: this.props.api, onColumnValueChange: (columns) => this.onColumnValueSelectedChanged(columns) }) }), _jsxs(Flex, { className: "twa:flex-shrink-0 twa:gap-1", children: [_jsx(Flex, { className: "twa:flex twa:box-border twa:items-stretch", children: _jsx(ButtonApply, { className: `ab-${elementType}__BulkUpdate__apply twa:h-full`, onClick: () => this.onApplyClick(), style: applyStyle, tooltip: "Apply Bulk Update", disabled: valueOperationDisabled, accessLevel: this.props.accessLevel, children: 'Apply' }) }), _jsx(AdaptablePopover, { popoverMinWidth: 360, popoverMaxWidth: 500, popupPadding: 0, className: `ab-${elementType}__BulkUpdate__info`, headerText: "Preview Results", bodyText: [previewPanel], MessageType: infoStyle, useButton: true, showEvent: 'focus', hideEvent: "blur", disabled: valueSelectorDisabled || StringExtensions.IsNullOrEmpty(this.props.BulkUpdateValue) })] })] }));
|
|
66
64
|
}
|
|
67
65
|
onColumnValueSelectedChanged(selectedColumnValue) {
|
|
68
66
|
this.props.onBulkUpdateValueChange(selectedColumnValue);
|
|
@@ -6,6 +6,6 @@ export type CalculatedColumnExpressionWizardSectionProps = {
|
|
|
6
6
|
onChange: (data: CalculatedColumn) => void;
|
|
7
7
|
expressionType: ExpressionType;
|
|
8
8
|
};
|
|
9
|
-
export declare const renderCalculatedColumnExpressionSummary: (data: CalculatedColumn) => React.JSX.Element;
|
|
9
|
+
export declare const renderCalculatedColumnExpressionSummary: (data: CalculatedColumn, api: AdaptableApi) => React.JSX.Element;
|
|
10
10
|
export declare const isValidCalculatedColumnExpression: (data: CalculatedColumn, api: AdaptableApi) => true | string;
|
|
11
11
|
export declare const CalculatedColumnExpressionWizardSection: (props: CalculatedColumnExpressionWizardSectionProps) => React.JSX.Element;
|
|
@@ -20,8 +20,7 @@ const getExpressionTypeDescription = (expressionType) => {
|
|
|
20
20
|
return '';
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
export const renderCalculatedColumnExpressionSummary = (data) => {
|
|
24
|
-
const { api } = useOnePageAdaptableWizardContext();
|
|
23
|
+
export const renderCalculatedColumnExpressionSummary = (data, api) => {
|
|
25
24
|
return (_jsxs(Box, { className: "twa:text-2", children: ["Column scalar expression:", ' ', _jsx(CodeBlock, { children: api.internalApi.getAdaptableQueryExpressionText(data.Query) })] }));
|
|
26
25
|
};
|
|
27
26
|
export const isValidCalculatedColumnExpression = (data, api) => {
|
|
@@ -62,7 +62,7 @@ export const CalculatedColumnSettingsWizardSection = (props) => {
|
|
|
62
62
|
{ value: 'boolean', label: 'Boolean' },
|
|
63
63
|
{ value: 'numberArray', label: 'NumberArray' },
|
|
64
64
|
];
|
|
65
|
-
return (_jsx(Box, { "data-name": 'calculated-column-settings', children: _jsxs(Flex, { flexDirection: "column", className: "twa:gap-3 twa:p-3", children: [_jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Data Type" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose the data type for the Calculated Column values" })] }), _jsxs(Card.Body, { className: "twa:p-1 twa:gap-1", children: [_jsx(SingleSelect, { "data-name": "column-type", placeholder: "Select Data Type", items: options, value: dataType, onValueChange: (value) => handleDataTypeChange(value), className: "twa:max-w-[300px]" }), ErrorMessage ? (_jsx(Box, { className: "twa:text-2 twa:text-
|
|
65
|
+
return (_jsx(Box, { "data-name": 'calculated-column-settings', children: _jsxs(Flex, { flexDirection: "column", className: "twa:gap-3 twa:p-3", children: [_jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Data Type" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Choose the data type for the Calculated Column values" })] }), _jsxs(Card.Body, { className: "twa:p-1 twa:gap-1", children: [_jsx(SingleSelect, { "data-name": "column-type", placeholder: "Select Data Type", items: options, value: dataType, onValueChange: (value) => handleDataTypeChange(value), className: "twa:max-w-[300px]" }), ErrorMessage ? (_jsx(Box, { className: "twa:text-2 twa:text-destructive", children: ErrorMessage })) : null] })] }), _jsxs(Card, { shadow: false, children: [_jsxs(Card.Title, { children: [_jsx(Box, { className: "twa:font-medium", children: "Width" }), _jsx(Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Optional Column Width in pixels" })] }), _jsx(Card.Body, { className: "twa:p-1", children: _jsx(Input, { "data-name": "column-width", type: "number", className: "twa:max-w-[300px]", value: Width || '', onChange: (e) => handleSpecialColumnSettingsChange({
|
|
66
66
|
Width: Number(e.target.value),
|
|
67
67
|
}) }) })] }), _jsx(SpecialColumnSettingsWizardStep, { isEditable: false,
|
|
68
68
|
// @ts-ignore CalculatedColumn has a broader DataType
|
|
@@ -1,7 +1,33 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TypeRadio } from '../../Wizard/TypeRadio';
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
2
|
import { Box, Flex } from '../../../components/Flex';
|
|
4
|
-
import {
|
|
3
|
+
import { getWizardTypeSelectionGridColumns, WizardTypeSelectionCard, WizardTypeSelectionPreviewFrame, WizardTypeSelectionSection, } from '../../Wizard/WizardTypeSelection';
|
|
4
|
+
const CALCULATED_COLUMN_TYPE_OPTIONS = [
|
|
5
|
+
{
|
|
6
|
+
type: 'ScalarExpression',
|
|
7
|
+
label: 'Standard',
|
|
8
|
+
description: 'The calculated value is derived from other cells in the row',
|
|
9
|
+
expressionExample: '[price] * [quantity]',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
type: 'AggregatedScalarExpression',
|
|
13
|
+
label: 'Aggregated',
|
|
14
|
+
description: 'The calculated value is derived from other rows',
|
|
15
|
+
expressionExample: 'SUM([pnl], GROUP_BY([desk]))',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
type: 'CumulativeAggregatedExpression',
|
|
19
|
+
label: 'Cumulative',
|
|
20
|
+
description: 'The calculated value is derived cumulatively from other rows',
|
|
21
|
+
expressionExample: 'CUMUL(SUM([pnl]), OVER([tradeDate]))',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: 'QuantileAggregatedExpression',
|
|
25
|
+
label: 'Quantile',
|
|
26
|
+
description: 'The calculated value is derived from other rows using quantile aggregations',
|
|
27
|
+
expressionExample: 'QUANT([pnl], 4)',
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
const CALCULATED_COLUMN_TYPE_COUNT = CALCULATED_COLUMN_TYPE_OPTIONS.length;
|
|
5
31
|
export const CalculatedColumnTypeWizardSection = (props) => {
|
|
6
|
-
return (_jsx(Flex, { flexDirection: "column",
|
|
32
|
+
return (_jsx(Flex, { flexDirection: "column", "data-name": "calculated-column-type", className: "twa:h-full twa:min-h-0 twa:p-2", children: _jsx(WizardTypeSelectionSection, { headingId: "calculated-column-type-heading", title: "Calculated Column Type", dataName: "calculated-column-type-grid", columns: getWizardTypeSelectionGridColumns(CALCULATED_COLUMN_TYPE_COUNT), intro: _jsxs(_Fragment, { children: ["Click a card to choose one of ", CALCULATED_COLUMN_TYPE_COUNT, " calculated column types"] }), children: CALCULATED_COLUMN_TYPE_OPTIONS.map((option) => (_jsx(WizardTypeSelectionCard, { label: option.label, description: option.description, selected: props.type === option.type, dataName: `calculated-column-type-${option.type}`, minHeightClassName: "twa:min-h-[148px]", onSelect: () => props.onTypeChange(option.type), footer: _jsx(WizardTypeSelectionPreviewFrame, { children: _jsx(Box, { as: "code", className: "ab-CodeBlock twa:block twa:w-full twa:truncate twa:bg-transparent twa:p-0 twa:font-mono twa:text-2 twa:leading-snug twa:text-foreground twa:opacity-90", children: option.expressionExample }) }) }, option.type))) }) }));
|
|
7
33
|
};
|
|
@@ -3,13 +3,13 @@ import * as React from 'react';
|
|
|
3
3
|
import { EnumExtensions } from '../../Utilities/Extensions/EnumExtensions';
|
|
4
4
|
import { SummaryOperation } from '../../AdaptableState/Common/Enums';
|
|
5
5
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
6
|
+
import { cn } from '../../lib/utils';
|
|
6
7
|
import { CellSummaryPopover } from './CellSummaryPopover';
|
|
7
8
|
import * as GeneralConstants from '../../Utilities/Constants/GeneralConstants';
|
|
8
9
|
import { AdaptablePopover } from '../AdaptablePopover';
|
|
9
10
|
import * as InternalRedux from '../../Redux/ActionsReducers/InternalRedux';
|
|
10
11
|
import { connect } from 'react-redux';
|
|
11
12
|
import { Flex } from '../../components/Flex';
|
|
12
|
-
import clsx from 'clsx';
|
|
13
13
|
import { SingleSelect } from '../../components/NewSelect';
|
|
14
14
|
class CellSummaryViewPanelComponent extends React.Component {
|
|
15
15
|
cleanupEvent;
|
|
@@ -50,11 +50,11 @@ class CellSummaryViewPanelComponent extends React.Component {
|
|
|
50
50
|
const isToolbar = this.props.viewType === 'Toolbar';
|
|
51
51
|
const elementType = isToolbar ? 'DashboardToolbar' : 'ToolPanel';
|
|
52
52
|
const operationValue = this.getOperationValue() ?? 'N/A';
|
|
53
|
-
return (_jsxs(Flex, { className:
|
|
53
|
+
return (_jsxs(Flex, { className: cn(shouldDisable ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__CellSummary__wrap twa:gap-2 twa:flex-row`, {
|
|
54
54
|
'twa:min-w-[215px] twa:max-w-[215px] twa:w-[215px] twa:flex-nowrap': isToolbar,
|
|
55
55
|
'twa:flex-1 twa:flex-wrap': !isToolbar,
|
|
56
|
-
}), children: [_jsx(Flex, { className: "twa:flex-1", children: _jsx(SingleSelect, { ariaLabel: "Cell Summary Operation Selector", className: `ab-${elementType}__CellSummary__select twa:w-full`, disabled: shouldDisable, items: [...operationMenuItems, ...operationDefinitions], onValueChange: (x) => this.props.onCellSummaryOperationChange(x), value: this.props.CellSummaryOperation }) }), _jsx(Flex, { className: "twa:items-center twa:gap-1", children: _jsxs(_Fragment, { children: [_jsx(Flex, { className:
|
|
57
|
-
'twa:rounded-standard twa:text-
|
|
56
|
+
}), children: [_jsx(Flex, { className: "twa:flex-1", children: _jsx(SingleSelect, { ariaLabel: "Cell Summary Operation Selector", className: `ab-${elementType}__CellSummary__select twa:w-full`, disabled: shouldDisable, items: [...operationMenuItems, ...operationDefinitions], onValueChange: (x) => this.props.onCellSummaryOperationChange(x), value: this.props.CellSummaryOperation }) }), _jsx(Flex, { className: "twa:items-center twa:gap-1", children: _jsxs(_Fragment, { children: [_jsx(Flex, { className: cn(`ab-${elementType}__CellSummary__value twa:min-w-[50px]`, {
|
|
57
|
+
'twa:rounded-standard twa:text-info-foreground twa:bg-info twa:text-2': !isToolbar,
|
|
58
58
|
'twa:flex-1 twa:text-primary-foreground twa:justify-center': isToolbar,
|
|
59
59
|
}), children: operationValue }), _jsx(AdaptablePopover, { popoverMaxWidth: 360, className: "ab-ToolPanel__CellSummary__info", bodyText: [cellSummaryPopover], useButton: true, showEvent: 'focus', hideEvent: "blur", tooltipText: 'Show Cell Summaries', disabled: !this.props.CellSummary?.Count })] }) })] }));
|
|
60
60
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import SimpleButton from '../../components/SimpleButton';
|
|
3
3
|
import { useAdaptable } from '../AdaptableContext';
|
|
4
|
-
import
|
|
4
|
+
import { NewDropdownButton } from '../../components/DropdownButton';
|
|
5
5
|
import { AG_GRID_CHART_WINDOW } from '../../Utilities/Constants/GeneralConstants';
|
|
6
6
|
import { isAgChartDefinition, isExternalChartDefinition, } from '../../AdaptableState/ChartingState';
|
|
7
7
|
import { useAgChartState } from './useAgChartState';
|
|
@@ -16,7 +16,7 @@ const BaseShowChartButton = (props) => {
|
|
|
16
16
|
if (!chartContainers?.length) {
|
|
17
17
|
return (_jsx(SimpleButton, { "data-name": "show-chart-button", onClick: () => props.onShowChart(), variant: "text", tone: "success", icon: "visibility-on", tooltip: "Show Chart" }));
|
|
18
18
|
}
|
|
19
|
-
return (_jsx(
|
|
19
|
+
return (_jsx(NewDropdownButton, { "data-name": "show-chart-dropdown", items: props.containerOptions, children: "Open In..." }));
|
|
20
20
|
};
|
|
21
21
|
const ShowAgChartButton = (props) => {
|
|
22
22
|
const adaptableApi = useAdaptable().api;
|
|
@@ -29,13 +29,13 @@ const ShowAgChartButton = (props) => {
|
|
|
29
29
|
onClick: () => {
|
|
30
30
|
showChart(null);
|
|
31
31
|
},
|
|
32
|
-
...(chartContainers
|
|
33
|
-
? chartContainers?.map((contianerDef) => ({
|
|
34
|
-
label: contianerDef.name,
|
|
35
|
-
onClick: () => showChart(contianerDef),
|
|
36
|
-
}))
|
|
37
|
-
: []),
|
|
38
32
|
},
|
|
33
|
+
...(chartContainers
|
|
34
|
+
? chartContainers.map((contianerDef) => ({
|
|
35
|
+
label: contianerDef.name,
|
|
36
|
+
onClick: () => showChart(contianerDef),
|
|
37
|
+
}))
|
|
38
|
+
: []),
|
|
39
39
|
];
|
|
40
40
|
return (_jsx(BaseShowChartButton, { chartOpened: isOpen, onShowChart: showChart, onCloseChart: closeChart, containerOptions: containerOptions }));
|
|
41
41
|
};
|
|
@@ -10,6 +10,7 @@ import { ButtonNew } from '../Components/Buttons/ButtonNew';
|
|
|
10
10
|
import { ColumnSelector } from '../Components/Selectors/ColumnSelector';
|
|
11
11
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
12
12
|
import { Box, Flex } from '../../components/Flex';
|
|
13
|
+
import { formatColumnInspectorPinning, formatColumnInspectorSizing, formatColumnInspectorSorting, } from '../Layout/Wizard/sections/columnLayoutHelpers';
|
|
13
14
|
const BASE_CLASS_NAME = 'ab-AdaptableColumns';
|
|
14
15
|
const domProps = {
|
|
15
16
|
className: 'twa:flex-1 twa:min-h-0 twa:w-full',
|
|
@@ -35,11 +36,22 @@ const MODULES_WITH_SCOPE = [
|
|
|
35
36
|
'Shortcut',
|
|
36
37
|
'StyledColumn',
|
|
37
38
|
];
|
|
39
|
+
/** Column Info summary only — shows the resolved default width when layout has no explicit sizing. */
|
|
40
|
+
const formatColumnInfoSummaryWidth = (columnId, sizing, resolveDefaultWidth) => {
|
|
41
|
+
const explicit = formatColumnInspectorSizing(columnId, sizing, resolveDefaultWidth);
|
|
42
|
+
if (explicit !== 'Default') {
|
|
43
|
+
return explicit;
|
|
44
|
+
}
|
|
45
|
+
return String(resolveDefaultWidth(columnId));
|
|
46
|
+
};
|
|
38
47
|
const ColumnDefPreview = (props) => {
|
|
39
48
|
const adaptable = useAdaptable();
|
|
40
49
|
if (props.column) {
|
|
41
50
|
const api = adaptable.api;
|
|
42
51
|
const summary = api.columnApi.getColumnSummaryForColumnId(props.column.columnId);
|
|
52
|
+
const layout = api.layoutApi.getCurrentLayout();
|
|
53
|
+
const resolveDefaultWidth = (columnId) => adaptable.getDefaultColumnWidthForCol(columnId);
|
|
54
|
+
const columnSizing = layout.ColumnSizing?.[props.column.columnId];
|
|
43
55
|
const keyValuePairs = [
|
|
44
56
|
{
|
|
45
57
|
Key: 'Column Id',
|
|
@@ -85,9 +97,17 @@ const ColumnDefPreview = (props) => {
|
|
|
85
97
|
Key: 'Visible',
|
|
86
98
|
Value: props.column.visible ? 'Yes' : 'No',
|
|
87
99
|
},
|
|
100
|
+
{
|
|
101
|
+
Key: 'Pinning',
|
|
102
|
+
Value: formatColumnInspectorPinning(layout, props.column.columnId),
|
|
103
|
+
},
|
|
88
104
|
{
|
|
89
105
|
Key: 'Width',
|
|
90
|
-
Value: props.column.
|
|
106
|
+
Value: formatColumnInfoSummaryWidth(props.column.columnId, columnSizing, resolveDefaultWidth),
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
Key: 'Sorting',
|
|
110
|
+
Value: formatColumnInspectorSorting(layout, props.column.columnId),
|
|
91
111
|
},
|
|
92
112
|
{
|
|
93
113
|
Key: 'Row Grouped',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { PanelWithRow } from '../Panels/PanelWithRow';
|
|
3
|
+
import { cn } from '../../../lib/utils';
|
|
3
4
|
import { Box } from '../../../components/Flex';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
5
|
import { twMerge } from '../../../twMerge';
|
|
6
6
|
export const AdaptableObjectCollection = (props) => {
|
|
7
|
-
return (_jsxs(Box, { style: props.style, className: twMerge('ab-ObjectCollection twa:flex twa:flex-col', props.className), children: [_jsx(PanelWithRow, { border: "none", colItems: props.colItems }), _jsx("div", { className:
|
|
7
|
+
return (_jsxs(Box, { style: props.style, className: twMerge('ab-ObjectCollection twa:flex twa:flex-col', props.className), children: [_jsx(PanelWithRow, { border: "none", colItems: props.colItems }), _jsx("div", { className: cn('ab-ObjectCollection__items twa:shadow-none twa:flex-1', {
|
|
8
8
|
'twa:overflow-y-visible': props.allowOverflow,
|
|
9
9
|
'twa:overflow-y-auto': !props.allowOverflow,
|
|
10
10
|
}), children: props.items })] }));
|
|
@@ -5,6 +5,7 @@ import SimpleButton from '../../../components/SimpleButton';
|
|
|
5
5
|
import { useAdaptable } from '../../AdaptableContext';
|
|
6
6
|
import { Box, Flex } from '../../../components/Flex';
|
|
7
7
|
import { TagList } from '../../../components/Tag/Tag';
|
|
8
|
+
import { objectListActionButtonClassName } from './objectListActionButtonStyles';
|
|
8
9
|
const baseClassName = 'ab-Adaptable-Object-Compact-List';
|
|
9
10
|
const ICON_SIZE = 20;
|
|
10
11
|
export const AdaptableObjectCompactListItem = (props) => {
|
|
@@ -41,7 +42,7 @@ export const AdaptableObjectCompactListItem = (props) => {
|
|
|
41
42
|
? React.createElement(objectView.item.view, {
|
|
42
43
|
data: props.abObject,
|
|
43
44
|
})
|
|
44
|
-
: objectView.item.view, Boolean(objectView.item?.values && objectView.item?.values?.length) && (_jsx(Box, { className: `${baseClassName}__Item__Values`, children: _jsx(TagList, { tags: objectView.item.values.
|
|
45
|
+
: objectView.item.view, Boolean(objectView.item?.values && objectView.item?.values?.length) && (_jsx(Box, { className: `${baseClassName}__Item__Values`, children: _jsx(TagList, { tags: objectView.item.values, variant: objectView.item.tagVariant }) }))] }), suspendAction && unSuspendAction && (_jsx(SimpleButton, { onMouseDown: handleSuspendUnSuspend, tone: "neutral", variant: "text", iconSize: ICON_SIZE, icon: isSuspended ? 'resume' : 'pause', tooltip: isSuspended ? 'Resume' : 'Suspend', className: objectListActionButtonClassName('suspend', isSuspended ? 'twa:opacity-60' : undefined) })), _jsx(Flex, { className: "twa:ml-1 twa:flex-[0_0_auto] twa:gap-1", children: deleteAction && (_jsx(SimpleButton, { iconSize: ICON_SIZE, icon: "delete", variant: "text", onMouseDown: handleDelete, accessLevel: moduleAccessLevel, className: objectListActionButtonClassName('delete') })) })] }));
|
|
45
46
|
};
|
|
46
47
|
export const AdaptableObjectCompactList = (props) => {
|
|
47
48
|
const adaptable = useAdaptable();
|
|
@@ -64,7 +65,7 @@ export const AdaptableObjectCompactList = (props) => {
|
|
|
64
65
|
dispatch(unSuspendAllAction);
|
|
65
66
|
}
|
|
66
67
|
}, [isAtLeastOneAbObjectActive]);
|
|
67
|
-
return (_jsxs(Flex, { flexDirection: "column", className: baseClassName, children: [_jsxs(Flex, { className: `${baseClassName}__Header twa:text-3`, children: [_jsx(Flex, { className: `${baseClassName}__Title`, alignItems: 'center', children: props.module.moduleInfo.FriendlyName }), _jsx(Box, { className: "twa:flex-1" }), suspendAllAction && unSuspendAllAction && (_jsx(SimpleButton, { className: "twa:mr-2", onMouseDown: handleSuspendUnsuspendAll, tone:
|
|
68
|
+
return (_jsxs(Flex, { flexDirection: "column", className: baseClassName, children: [_jsxs(Flex, { className: `${baseClassName}__Header twa:text-3`, children: [_jsx(Flex, { className: `${baseClassName}__Title`, alignItems: 'center', children: props.module.moduleInfo.FriendlyName }), _jsx(Box, { className: "twa:flex-1" }), suspendAllAction && unSuspendAllAction && (_jsx(SimpleButton, { className: "twa:mr-2", onMouseDown: handleSuspendUnsuspendAll, tone: "neutral", variant: "raised", icon: isAtLeastOneAbObjectActive ? 'pause' : 'resume', accessLevel: accessLevel, children: isAtLeastOneAbObjectActive ? 'Suspend All' : 'Resume All' })), deleteAllAction && (_jsx(SimpleButton, { onMouseDown: () => dispatch(deleteAllAction), variant: "raised", tone: "neutral", accessLevel: accessLevel, children: "Clear All" }))] }), _jsx(Box, { className: `${baseClassName}__Body`, children: props.abObjects.map((abObject) => {
|
|
68
69
|
return (_jsx(AdaptableObjectCompactListItem, { abObject: abObject, module: props.module }, abObject.Uuid));
|
|
69
70
|
}) })] }));
|
|
70
71
|
};
|
|
@@ -3,6 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
4
|
import * as InternalRedux from '../../../Redux/ActionsReducers/InternalRedux';
|
|
5
5
|
import SimpleButton from '../../../components/SimpleButton';
|
|
6
|
+
import { cn } from '../../../lib/utils';
|
|
6
7
|
import AdaptableHelper from '../../../Utilities/Helpers/AdaptableHelper';
|
|
7
8
|
import { useAdaptable } from '../../AdaptableContext';
|
|
8
9
|
import { ButtonDelete } from '../Buttons/ButtonDelete';
|
|
@@ -11,8 +12,8 @@ import { ButtonShare } from '../Buttons/ButtonShare';
|
|
|
11
12
|
import { SuspendToggleButton } from '../Buttons/SuspendToggleButton/SuspendToggleButton';
|
|
12
13
|
import { Box, Flex } from '../../../components/Flex';
|
|
13
14
|
import { twMerge } from '../../../twMerge';
|
|
14
|
-
import clsx from 'clsx';
|
|
15
15
|
import { TagList } from '../../../components/Tag/Tag';
|
|
16
|
+
import { objectListActionButtonClassName } from './objectListActionButtonStyles';
|
|
16
17
|
const ICON_SIZE = 26;
|
|
17
18
|
const LIST_BASE_CLASS_NAME = 'ab-Adaptable-Object-List';
|
|
18
19
|
const ITEM_BASE_CLASS_NAME = `${LIST_BASE_CLASS_NAME}__Item`;
|
|
@@ -35,7 +36,7 @@ export const AdaptableObjectListItemView = (props) => {
|
|
|
35
36
|
dispatch(props.deleteAction);
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
|
-
const deleteActionButton = _jsx(ButtonDelete, { ...deleteActionProps });
|
|
39
|
+
const deleteActionButton = (_jsx(ButtonDelete, { ...deleteActionProps, className: twMerge(objectListActionButtonClassName('delete'), deleteActionProps.className) }));
|
|
39
40
|
return (_jsxs(Flex, { "data-name": "adaptable-object-list-item", "data-value": props.abObject.Uuid, as: "li", className: twMerge(baseClassName, 'twa:rounded-standard', props.className), style: props.style, children: [_jsx(Box, { className: `twa:flex-1 ${baseClassName}__rows twa:gap-2 twa:flex twa:flex-col`, children: props.items.filter?.(Boolean)?.map((tag, index) => {
|
|
40
41
|
const labelElement = typeof tag.label === 'function'
|
|
41
42
|
? React.createElement(tag.label, { key: index, data: props.abObject })
|
|
@@ -47,13 +48,13 @@ export const AdaptableObjectListItemView = (props) => {
|
|
|
47
48
|
data: props.abObject,
|
|
48
49
|
module: props.module,
|
|
49
50
|
})
|
|
50
|
-
: tag.view, Boolean(tag?.values && tag?.values?.length) ? (_jsx(TagList, { tags: tag.values.
|
|
51
|
+
: tag.view, Boolean(tag?.values && tag?.values?.length) ? (_jsx(TagList, { tags: tag.values, variant: tag.tagVariant })) : null, typeof tag.viewAfter === 'function'
|
|
51
52
|
? React.createElement(tag.viewAfter, {
|
|
52
53
|
data: props.abObject,
|
|
53
54
|
module: props.module,
|
|
54
55
|
})
|
|
55
56
|
: tag.viewAfter] })] }, `${index}-${tag.name}`));
|
|
56
|
-
}) }), props.showActions && (
|
|
57
|
+
}) }), props.showActions && (_jsx(Flex, { flexDirection: "column", className: `${baseClassName}__buttons twa:ml-3 twa:pl-3 twa:text-right twa:min-w-[80px]`, children: _jsxs(Flex, { className: "twa:justify-end twa:items-center twa:gap-1", children: [props.actions, props.teamSharingActivated && (_jsx(ButtonShare, { iconSize: ICON_SIZE, Header: `TeamSharing ${props.entityType}`, accessLevel: props.accessLevel, onShare: props.onShare, className: objectListActionButtonClassName('share') })), props.showEditButton && (_jsx(ButtonEdit, { iconSize: ICON_SIZE, disabled: props.editDisabled, accessLevel: props.accessLevel, className: objectListActionButtonClassName('edit'), onClick: () => props.handleOnEdit() })), props.suspendedEnabled && (_jsx(SuspendToggleButton, { iconSize: ICON_SIZE, className: objectListActionButtonClassName('suspend'), onSuspend: props.onSuspend, onUnSuspend: props.onUnSuspend, suspendableObject: props.abObject, accessLevel: props.accessLevel })), props.onDelete && (_jsx(SimpleButton, { "data-name": "delete", disabled: props.deleteDisabled, iconSize: ICON_SIZE, tooltip: props.deleteTooltip, icon: "delete", onClick: props.onDelete, variant: "text", className: objectListActionButtonClassName('delete') })), props.deleteAction ? deleteActionButton : null] }) }))] }));
|
|
57
58
|
};
|
|
58
59
|
export const AdaptableObjectListItem = (props) => {
|
|
59
60
|
const adaptable = useAdaptable();
|
|
@@ -71,7 +72,7 @@ export const AdaptableObjectListItem = (props) => {
|
|
|
71
72
|
const entityType = props.module.moduleInfo.FriendlyName;
|
|
72
73
|
const moduleAccessLevel = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule(props.module.moduleInfo.ModuleName);
|
|
73
74
|
const accessLevel = AdaptableHelper.getAccessLevelForObject(props.data.abObject, moduleAccessLevel);
|
|
74
|
-
const itemClassName =
|
|
75
|
+
const itemClassName = cn(props.className, props.data.className, ITEM_BASE_CLASS_NAME, props.data.abObject.IsSuspended &&
|
|
75
76
|
`${ITEM_BASE_CLASS_NAME}--is-suspended`);
|
|
76
77
|
const handleCloseWizard = React.useCallback(() => {
|
|
77
78
|
setIsEditWizardVisible(false);
|
|
@@ -104,5 +105,5 @@ export const AdaptableObjectListItem = (props) => {
|
|
|
104
105
|
return (_jsxs(_Fragment, { children: [_jsx(AdaptableObjectListItemView, { module: props.module, disableDeleteConfirmation: disableDeleteConfirmation, abObject: props.data.abObject, accessLevel: accessLevel, actions: actions, className: itemClassName, handleOnEdit: handleOnEdit, items: props.data.items, showActions: showActions, showEditButton: showEditButton, style: props.data.style, teamSharingActivated: teamSharingActivated, onShare: (config) => adaptable.api.teamSharingApi.shareAdaptableEntity(props.data.abObject, props.module.moduleInfo.ModuleName, config), entityType: entityType, deleteAction: deleteAction, deleteConfirmationMsg: deleteConfirmationMsg, deleteDisabled: props.deleteDisabled, deleteTooltip: props.deleteTooltip, editDisabled: isEditDisabled, suspendedEnabled: hasSuspend, onSuspend: () => dispatch(viewOptions.getSuspendAction(props.data.abObject)), onUnSuspend: () => dispatch(viewOptions.getUnSuspendAction(props.data.abObject)) }), isEditWizardVisible && EditWizard && (_jsx(EditWizard, { defaultCurrentSectionName: wizardStepName, moduleInfo: props.module.moduleInfo, data: props.data.abObject, configEntities: null, onCloseWizard: handleCloseWizard, onFinishWizard: handleCloseWizard }))] }));
|
|
105
106
|
};
|
|
106
107
|
export const AdaptableObjectList = (props) => {
|
|
107
|
-
return (_jsx("ul", { className:
|
|
108
|
+
return (_jsx("ul", { className: cn(LIST_BASE_CLASS_NAME, 'twa:list-none twa:p-0 twa:gap-3 twa:flex twa:flex-col', props.className), children: props?.items?.map((item, index) => (_jsx(AdaptableObjectListItem, { data: item, module: props.module, ...props.itemProps }, item.abObject.Uuid ?? index))) }));
|
|
108
109
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { cn } from '../../../lib/utils';
|
|
3
4
|
import { Flex, Box } from '../../../components/Flex';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
5
|
export class AdaptableObjectRow extends React.Component {
|
|
6
6
|
render() {
|
|
7
7
|
const colItems = this.props.colItems.map((colItem, index) => (_jsx(Box, { className: `ab-AdaptableObjectRow__cell twa:px-1`, style: { flex: colItem.Size }, "data-name": "list-group-cell", title: typeof colItem.Content === 'string' ? colItem.Content : undefined, children: colItem.Content }, index)));
|
|
8
|
-
const className =
|
|
8
|
+
const className = cn('ab-AdaptableObjectRow', 'twa:p-3', 'twa:m-0', this.props.isSuspended && 'ab-AdaptableObjectRow--is-suspended', this.props.className);
|
|
9
9
|
return (_jsx(Flex, { className: className, onClick: this.props.onClick, style: this.props.style, children: colItems }));
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { cn } from '../../../../lib/utils';
|
|
3
4
|
import { ACCESS_LEVEL_FULL, ACCESS_LEVEL_HIDDEN, } from '../../../../Utilities/Constants/GeneralConstants';
|
|
4
5
|
import { Box } from '../../../../components/Flex';
|
|
5
|
-
import clsx from 'clsx';
|
|
6
|
-
import { twMerge } from '../../../../twMerge';
|
|
7
6
|
const Glyphicon = ({ glyph, style }) => {
|
|
8
7
|
return _jsx("span", { style: style, className: `glyphicon glyphicon-${glyph}` });
|
|
9
8
|
};
|
|
@@ -54,7 +53,7 @@ export class ButtonBase extends React.Component {
|
|
|
54
53
|
if (this.props.icon) {
|
|
55
54
|
content = (_jsxs(_Fragment, { children: [this.props.iconPosition === 'end' ? text : null, " ", _jsx(Glyphicon, { glyph: this.props.icon }), ' ', this.props.iconPosition !== 'end' ? text : null] }));
|
|
56
55
|
}
|
|
57
|
-
let button = (_jsx(Box, { ...this.props, as: "button", style: this.props.style, className:
|
|
56
|
+
let button = (_jsx(Box, { ...this.props, as: "button", style: this.props.style, className: cn(baseClassName, `${baseClassName}--size-normal`, `${baseClassName}--style-normal`, isDisabled ? `${baseClassName}--disabled` : `${baseClassName}--enabled`, this.props.className), disabled: isDisabled, onClick: this.props.onClick, onMouseDown: this.props.onMouseDown || ((e) => e.preventDefault()), children: content }));
|
|
58
57
|
let buttonwithtooltip = _jsx("div", { children: button });
|
|
59
58
|
return hideToolTip ? button : buttonwithtooltip;
|
|
60
59
|
}
|
|
@@ -8,6 +8,8 @@ type ButtonNewProps = {
|
|
|
8
8
|
accessLevel?: SimpleButtonProps['accessLevel'];
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
onClick?: () => void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
dataName?: string;
|
|
11
13
|
};
|
|
12
14
|
export declare const ButtonNew: (props: ButtonNewProps) => React.JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -2,5 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import SimpleButton from '../../../components/SimpleButton';
|
|
3
3
|
import { twMerge } from '../../../twMerge';
|
|
4
4
|
export const ButtonNew = (props) => {
|
|
5
|
-
return (_jsx(SimpleButton, { "data-name":
|
|
5
|
+
return (_jsx(SimpleButton, { "data-name": props.dataName ?? 'new', tone: props.tone || 'accent', icon: "plus", variant: props.variant || 'raised', tooltip: props.tooltip || 'New', accessLevel: props.accessLevel, disabled: props.disabled, onClick: props.onClick, className: twMerge(`twa:flex twa:flex-row twa:items-center`, props.className), children: props.children === undefined ? 'New' : props.children }));
|
|
6
6
|
};
|
|
@@ -5,9 +5,9 @@ import { ButtonClone } from './ButtonClone';
|
|
|
5
5
|
import { ButtonDelete } from './ButtonDelete';
|
|
6
6
|
import { ButtonShare } from './ButtonShare';
|
|
7
7
|
import { SuspendToggleButton } from './SuspendToggleButton/SuspendToggleButton';
|
|
8
|
+
import { cn } from '../../../lib/utils';
|
|
8
9
|
import { ACCESS_LEVEL_FULL, ACCESS_LEVEL_READ_ONLY, } from '../../../Utilities/Constants/GeneralConstants';
|
|
9
10
|
import { Flex } from '../../../components/Flex';
|
|
10
|
-
import clsx from 'clsx';
|
|
11
11
|
const stopPropagation = (e) => {
|
|
12
12
|
e.stopPropagation();
|
|
13
13
|
};
|
|
@@ -32,11 +32,11 @@ export class EntityListActionButtons extends React.Component {
|
|
|
32
32
|
};
|
|
33
33
|
render() {
|
|
34
34
|
const { justifyContent } = this.props;
|
|
35
|
-
const justifyContentClassName =
|
|
35
|
+
const justifyContentClassName = cn({
|
|
36
36
|
'twa:justify-start': justifyContent === 'start',
|
|
37
37
|
'twa:justify-center': justifyContent === 'center',
|
|
38
38
|
'twa:justify-end': justifyContent === 'end',
|
|
39
39
|
}) || 'twa:justify-center';
|
|
40
|
-
return (_jsxs(Flex, { className: `${justifyContentClassName} twa:m-0 twa:p-0`, onClick: stopPropagation, children: [this.props.showEdit && (_jsx(ButtonEdit, { onClick: () => (this.props.editClick ? this.props.editClick() : null), className: `twa:ml-0 twa:mr-[2px] twa:my-[2px] twa:text-
|
|
40
|
+
return (_jsxs(Flex, { className: `${justifyContentClassName} twa:m-0 twa:p-0`, onClick: stopPropagation, children: [this.props.showEdit && (_jsx(ButtonEdit, { onClick: () => (this.props.editClick ? this.props.editClick() : null), className: `twa:ml-0 twa:mr-[2px] twa:my-[2px] twa:text-action-edit-foreground twa:bg-action-edit twa:fill-action-edit-foreground`, disabled: this.props.overrideDisableEdit || this.props.accessLevel == ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipEdit, accessLevel: this.props.accessLevel })), this.props.showClone && (_jsx(ButtonClone, { onClick: () => (this.props.cloneClick ? this.props.cloneClick() : null), className: `twa:ml-0 twa:mr-[2px] twa:my-[2px] twa:text-action-clone-foreground twa:bg-action-clone twa:fill-action-clone-foreground`, children: null, disabled: this.props.overrideDisableClone || this.props.cloneAccessLevel == ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipClone, accessLevel: this.props.cloneAccessLevel })), this.props.showDelete && (_jsx(ButtonDelete, { "data-name": "delete", className: `twa:mx-[px] twa:my-[2px] twa:text-action-delete-foreground twa:bg-action-delete twa:fill-action-delete-foreground`, disabled: this.props.overrideDisableDelete || this.props.accessLevel == ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipDelete, ConfirmAction: this.props.confirmDeleteAction, ConfirmationMsg: 'Are you sure you want to delete this ' + this.props.entityType + '?', ConfirmationTitle: 'Delete ' + this.props.entityType, accessLevel: this.props.accessLevel })), this.props.showShare && (_jsx(ButtonShare, { className: `twa:mx-[1px] twa:my-[2px] twa:text-action-share-foreground twa:bg-action-share twa:fill-action-share-foreground`, onShare: (config) => this.props.shareClick ? this.props.shareClick(config) : null, Header: `TeamSharing ${this.props.entityType}`, disabled: this.props.overrideDisableShare || this.props.accessLevel == ACCESS_LEVEL_READ_ONLY, tooltip: this.props.overrideTooltipShare, accessLevel: this.props.accessLevel })), this.props.showSuspend && this.props.suspendableObject && (_jsx(SuspendToggleButton, { className: "twa:align-self-center", iconSize: 24, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend, suspendableObject: this.props.suspendableObject, disabled: this.props.accessLevel == ACCESS_LEVEL_READ_ONLY }))] }));
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import
|
|
3
|
+
import SimpleButton from '../../../../components/SimpleButton';
|
|
4
4
|
import { ACCESS_LEVEL_READ_ONLY } from '../../../../Utilities/Constants/GeneralConstants';
|
|
5
|
-
import
|
|
6
|
-
export const SuspendToggleButton = React.memo(({ suspendableObject, onUnSuspend, onSuspend, style, disabled, accessLevel, className }) => {
|
|
7
|
-
const
|
|
8
|
-
|
|
5
|
+
import { cn } from '../../../../lib/utils';
|
|
6
|
+
export const SuspendToggleButton = React.memo(({ suspendableObject, onUnSuspend, onSuspend, style, disabled, accessLevel, className, iconSize = 26, }) => {
|
|
7
|
+
const preparedDisabled = (accessLevel && accessLevel === ACCESS_LEVEL_READ_ONLY) || disabled;
|
|
8
|
+
const isSuspended = suspendableObject.IsSuspended;
|
|
9
|
+
const handleClick = React.useCallback(() => {
|
|
10
|
+
if (isSuspended) {
|
|
9
11
|
onUnSuspend(suspendableObject);
|
|
10
12
|
}
|
|
11
13
|
else {
|
|
12
14
|
onSuspend(suspendableObject);
|
|
13
15
|
}
|
|
14
|
-
}, [onUnSuspend,
|
|
15
|
-
|
|
16
|
-
const isSuspended = suspendableObject.IsSuspended;
|
|
17
|
-
return (_jsx(ToggleButton, { className: clsx(`ab-SuspendButton`, className), "data-name": suspendableObject.IsSuspended ? 'un-suspend' : 'suspend', disabled: preparedDisabled, style: style, onChange: handleOnChange, checked: !isSuspended, children: isSuspended ? 'inactive' : 'active' }));
|
|
16
|
+
}, [isSuspended, onSuspend, onUnSuspend, suspendableObject]);
|
|
17
|
+
return (_jsx(SimpleButton, { className: cn('ab-SuspendButton', isSuspended && 'twa:opacity-60', className), "data-name": isSuspended ? 'resume' : 'suspend', disabled: preparedDisabled, style: style, variant: "text", tone: "neutral", iconSize: iconSize, icon: isSuspended ? 'resume' : 'pause', tooltip: isSuspended ? 'Resume' : 'Suspend', accessLevel: accessLevel, onClick: handleClick }));
|
|
18
18
|
});
|
|
@@ -7,11 +7,10 @@ import Radio from '../../../components/Radio';
|
|
|
7
7
|
import { useAdaptable } from '../../AdaptableContext';
|
|
8
8
|
import { mapQlPredicateToAdaptablePredicate } from './utils';
|
|
9
9
|
import { Box, Flex } from '../../../components/Flex';
|
|
10
|
-
import clsx from 'clsx';
|
|
11
10
|
import { twMerge } from '../../../twMerge';
|
|
12
11
|
import { SingleSelect } from '../../../components/NewSelect';
|
|
13
12
|
import { isEmbeddedColumnFilterLocation } from './columnFilterLocation';
|
|
14
|
-
import { captureTab } from '../../../lib/utils';
|
|
13
|
+
import { cn, captureTab } from '../../../lib/utils';
|
|
15
14
|
const ColumnFilterPredicateDropdown = (props) => {
|
|
16
15
|
const predicateDef = usePredicateDef(props.predicate?.operator, props.predicateDefs);
|
|
17
16
|
const options = props.predicateDefs.map((predicateDef) => {
|
|
@@ -37,7 +36,14 @@ const ColumnFilterPredicateDropdown = (props) => {
|
|
|
37
36
|
operator: value,
|
|
38
37
|
args: [],
|
|
39
38
|
});
|
|
40
|
-
}, items: options,
|
|
39
|
+
}, items: options,
|
|
40
|
+
// For the "Add Condition" picker the current predicate is the top-level
|
|
41
|
+
// AND/OR predicate, which is not a selectable item. Use `null` (a proper
|
|
42
|
+
// controlled empty value) plus a placeholder rather than a fake string
|
|
43
|
+
// value: passing a non-item value makes base-ui's Select reconcile and
|
|
44
|
+
// fire a spurious `onValueChange` when the items change (e.g. switching
|
|
45
|
+
// the filter to another column), which previously crashed.
|
|
46
|
+
placeholder: "Add Condition", value: isAndOr ? null : props.predicate?.operator }) }));
|
|
41
47
|
};
|
|
42
48
|
const ColumnFilterEditor = (props) => {
|
|
43
49
|
return (_jsxs(Box, { className: "twa:mb-3 twa:overflow-x-hidden twa:p-0.5", children: [_jsxs(Flex, { className: "twa:mb-2", children: [_jsx(ColumnFilterPredicateDropdown, { columnId: props.columnId, disabled: props.disabled, predicate: props.predicate, predicateDefs: props.predicateDefs, onPredicateChange: props.onPredicateChange }), _jsx(Flex, { alignItems: "center", className: "twa:ml-2", children: _jsx(SimpleButton, { disabled: props.deleteDisabled, onClick: props.onDelete, variant: "text", icon: "delete" }) })] }), _jsx(ColumnFilterInputList, { columnId: props.columnId, disabled: props.disabled, predicate: props.predicate, onPredicateChange: props.onPredicateChange, predicateDefs: props.predicateDefs })] }));
|
|
@@ -125,6 +131,12 @@ export const ColumnFilterComponent = (props) => {
|
|
|
125
131
|
const isLastPredicateValid = true;
|
|
126
132
|
const filterPredicateDropdown = (_jsx(ColumnFilterPredicateDropdown, { columnId: props.columnId, disabled: props.disabled, predicate: currentPredicate, predicateDefs: props.predicateDefs, onPredicateChange: (predicate) => {
|
|
127
133
|
const predicateDef = props.predicateDefs.find((predicateDef) => predicateDef.operator === predicate.operator);
|
|
134
|
+
// Guard against the select emitting a value that is not a known
|
|
135
|
+
// predicate for the current column (e.g. a stale/reconciled value while
|
|
136
|
+
// switching columns).
|
|
137
|
+
if (!predicateDef) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
128
140
|
onNewPredicate(predicateDef);
|
|
129
141
|
}, targetProps: {
|
|
130
142
|
tone: 'neutral',
|
|
@@ -139,7 +151,7 @@ export const ColumnFilterComponent = (props) => {
|
|
|
139
151
|
.map((qlPredicate) => mapQlPredicateToAdaptablePredicate(qlPredicate))
|
|
140
152
|
.some((adaptablePredicate) => adaptable.api.predicateApi.isValidPredicate(adaptablePredicate));
|
|
141
153
|
};
|
|
142
|
-
return (_jsxs("div", { ref: rootRef, onKeyDown: handleFocusTrap, className: "twa:contents", children: [_jsxs(Flex, { flexDirection: "column", className:
|
|
154
|
+
return (_jsxs("div", { ref: rootRef, onKeyDown: handleFocusTrap, className: "twa:contents", children: [_jsxs(Flex, { flexDirection: "column", className: cn({
|
|
143
155
|
'twa:pb-2': !props.hideActionButtons,
|
|
144
156
|
'twa:mb-2': isEmbeddedColumnFilterLocation(props.location),
|
|
145
157
|
'twa:mt-2 twa:ml-2 twa:mr-2': props.location === 'columnMenu',
|
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import Panel from '../../../../components/Panel';
|
|
4
4
|
import SimpleButton from '../../../../components/SimpleButton';
|
|
5
5
|
import { Box, Flex } from '../../../../components/Flex';
|
|
6
|
-
import clsx from 'clsx';
|
|
7
6
|
import { useEffect, useLayoutEffect } from 'react';
|
|
7
|
+
import { cn } from '../../../../lib/utils';
|
|
8
8
|
const ColumnFilterMenuItem = ({ active, onClick, icon, label, }) => {
|
|
9
9
|
return (_jsxs(SimpleButton, { className: "twa:p-1 twa:w-full", variant: "text", tone: active ? 'info' : 'none', onClick: onClick, "aria-label": label, children: [_jsx(Box, { className: "twa:mr-2", children: icon }), _jsx(Box, { className: "twa:text-2", children: label })] }));
|
|
10
10
|
};
|
|
@@ -59,7 +59,7 @@ export const ColumnFilterMenu = (props) => {
|
|
|
59
59
|
}, [confirm]);
|
|
60
60
|
return (_jsx(Panel, { className: "twa:min-w-max", children: props.predicateDefs?.map((predicateDef, index) => {
|
|
61
61
|
const active = activeIndex === index;
|
|
62
|
-
return (_jsx(Flex, { className:
|
|
62
|
+
return (_jsx(Flex, { className: cn('twa:mb-1', active && 'twa:bg-primarylight'), onMouseDownCapture: (e) => {
|
|
63
63
|
e.stopPropagation();
|
|
64
64
|
e.preventDefault();
|
|
65
65
|
}, children: _jsx(ColumnFilterMenuItem, { onClick: () => confirm(predicateDef), icon: predicateDef.icon, label: predicateDef.label, active: active }) }, index));
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AdaptableColumn } from '../../../types';
|
|
3
|
+
import { ValueSelectorProps } from '../ValueSelector';
|
|
3
4
|
type NewColumnSelectorProps = {
|
|
4
5
|
availableColumns: AdaptableColumn[];
|
|
5
6
|
selected: string[];
|
|
6
7
|
singleSelect?: boolean;
|
|
8
|
+
/** External filter text (legacy — prefer `compactColumnList` inline search). */
|
|
7
9
|
columnFilterText?: string;
|
|
8
10
|
allowReorder?: boolean;
|
|
9
11
|
onChange?: (colIds: string[]) => void;
|
|
12
|
+
/** Layout wizard pattern: compact header with inline search beside selection controls. */
|
|
13
|
+
compactColumnList?: boolean;
|
|
14
|
+
compact?: ValueSelectorProps<AdaptableColumn, string>['compact'];
|
|
15
|
+
showFilterInput?: ValueSelectorProps<AdaptableColumn, string>['showFilterInput'];
|
|
16
|
+
filterPlaceholder?: string;
|
|
17
|
+
compactHeaderClassName?: string;
|
|
18
|
+
compactFilterClassName?: string;
|
|
19
|
+
hideShowSelectedOnly?: boolean;
|
|
20
|
+
optionClassName?: string;
|
|
21
|
+
className?: string;
|
|
10
22
|
};
|
|
11
23
|
export declare const NewColumnSelector: ({ allowReorder, ...props }: NewColumnSelectorProps) => React.JSX.Element;
|
|
12
24
|
export {};
|