@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,7 +6,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
7
7
|
const react_redux_1 = require("react-redux");
|
|
8
8
|
const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
|
|
9
|
-
const
|
|
9
|
+
const DataChangeHistoryTable_1 = require("./DataChangeHistoryTable");
|
|
10
10
|
const InternalRedux_1 = require("../../Redux/ActionsReducers/InternalRedux");
|
|
11
11
|
const ButtonPlay_1 = require("../Components/Buttons/ButtonPlay");
|
|
12
12
|
const ButtonPause_1 = require("../Components/Buttons/ButtonPause");
|
|
@@ -14,42 +14,30 @@ const ButtonStop_1 = require("../Components/Buttons/ButtonStop");
|
|
|
14
14
|
const FormatHelper_1 = require("../../Utilities/Helpers/FormatHelper");
|
|
15
15
|
const Flex_1 = require("../../components/Flex");
|
|
16
16
|
class DataChangeHistoryPopupComponent extends React.Component {
|
|
17
|
-
constructor(props) {
|
|
18
|
-
super(props);
|
|
19
|
-
this.state = {
|
|
20
|
-
dataChangeHistoryAdaptableApi: undefined,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
17
|
render() {
|
|
24
|
-
const { changeHistoryMode, activationTime, suspensionTime, onChangeHistoryEnable, onChangeHistoryDisable, onChangeHistorySuspend, onChangeHistoryResume, } = this.props;
|
|
25
|
-
const adaptableContainerId = 'dataChangeHistoryAdaptableContainer';
|
|
26
|
-
const agGridContainerId = 'dataChangeHistoryAgGridContainer';
|
|
18
|
+
const { changeHistoryMode, activationTime, suspensionTime, onChangeHistoryEnable, onChangeHistoryDisable, onChangeHistorySuspend, onChangeHistoryResume, changeHistoryLog, } = this.props;
|
|
27
19
|
const enabled = changeHistoryMode === 'ACTIVE';
|
|
28
20
|
const disabled = changeHistoryMode === 'INACTIVE';
|
|
29
21
|
const suspended = changeHistoryMode === 'SUSPENDED';
|
|
30
|
-
const buttonPanel = ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-DataChangeHistoryPopup--button-panel twa:gap-1 twa:p-2", children: [disabled && ((0, jsx_runtime_1.jsx)(ButtonPlay_1.ButtonPlay, { className: "ab-DataChangeHistoryPopup--button-activate", "data-name": 'data-change-history--button-activate
|
|
22
|
+
const buttonPanel = ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-DataChangeHistoryPopup--button-panel twa:gap-1 twa:p-2", children: [disabled && ((0, jsx_runtime_1.jsx)(ButtonPlay_1.ButtonPlay, { className: "ab-DataChangeHistoryPopup--button-activate", "data-name": 'data-change-history--button-activate', variant: 'raised', tone: 'accent', tooltip: '', onClick: () => onChangeHistoryEnable(), children: "Activate" })), suspended && ((0, jsx_runtime_1.jsx)(ButtonPlay_1.ButtonPlay, { className: "ab-DataChangeHistoryPopup--button-resume", "data-name": 'data-change-history--button-resume', variant: 'outlined', tooltip: 'Resume tracking data changes', onClick: () => onChangeHistoryResume(), children: "Resume" })), enabled && ((0, jsx_runtime_1.jsx)(ButtonPause_1.ButtonPause, { className: "ab-DataChangeHistoryPopup--button-suspend", "data-name": 'data-change-history--button-suspend', variant: 'outlined', tooltip: 'Suspend tracking data changes', onClick: () => onChangeHistorySuspend(), children: "Suspend" })), (enabled || suspended) && ((0, jsx_runtime_1.jsx)(ButtonStop_1.ButtonStop, { className: "ab-DataChangeHistoryPopup--button-deactivate", "data-name": 'data-change-history--button-deactivate', variant: 'outlined', tooltip: 'Deactivate data change tracking', onClick: () => onChangeHistoryDisable(), children: "Deactivate" }))] }));
|
|
31
23
|
const dateFormat = `${this.props.api.optionsApi.getUserInterfaceOptions().dateInputOptions.dateFormat} HH:mm:ss`;
|
|
32
24
|
const statusPanel = ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-DataChangeHistoryPopup--status-panel twa:gap-1", alignItems: 'center', children: [enabled && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPanel--status-active twa:text-success twa:font-bold", children: "Active" }), !!activationTime && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:text-2 twa:italic", children: ["(since ", (0, FormatHelper_1.DateFormatter)(activationTime, { Pattern: dateFormat }), ")"] }))] })), suspended && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPopup--status-suspended twa:text-warn twa:font-bold", children: "Suspended" }), !!suspensionTime && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:text-2 twa:italic", children: ["(since ", (0, FormatHelper_1.DateFormatter)(suspensionTime, { Pattern: dateFormat }), ")"] }))] })), disabled && (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPopup--status-disabled twa:text-2" })] }));
|
|
33
25
|
const handleChangeUndo = (changeKey) => {
|
|
34
|
-
const changeToBeUndone =
|
|
26
|
+
const changeToBeUndone = changeHistoryLog[changeKey];
|
|
35
27
|
if (changeToBeUndone) {
|
|
36
28
|
this.props.api.dataChangeHistoryApi.undoDataChangeHistoryEntry(changeToBeUndone);
|
|
37
29
|
}
|
|
38
30
|
};
|
|
39
31
|
const handleClearRow = (changeKey) => {
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
this.props.api.dataChangeHistoryApi.clearDataChangeHistoryEntry(
|
|
32
|
+
const changeToBeCleared = changeHistoryLog[changeKey];
|
|
33
|
+
if (changeToBeCleared) {
|
|
34
|
+
this.props.api.dataChangeHistoryApi.clearDataChangeHistoryEntry(changeToBeCleared);
|
|
43
35
|
}
|
|
44
36
|
};
|
|
45
|
-
const agGridThemeMode = this.props.api.internalApi
|
|
46
|
-
.getAdaptableInstance()
|
|
47
|
-
.agGridThemeAdapter.getAgGridThemeMode();
|
|
48
|
-
const currentAgGridTheme = agGridThemeMode === 'legacy' ? this.props.api.themeApi.getAgGridCurrentThemeName() : '';
|
|
49
37
|
return ((0, jsx_runtime_1.jsx)(PopupPanel_1.PopupPanel, { headerText: this.props.moduleInfo.FriendlyName, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-DataChangeHistoryPopup twa:h-full", flexDirection: "column", children: [(0, jsx_runtime_1.jsx)(Flex_1.Flex, { style: {
|
|
50
38
|
color: 'var(--ab-dashboard__color)',
|
|
51
39
|
background: 'var(--ab-dashboard__background)',
|
|
52
|
-
}, children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: 'row', children: [buttonPanel, statusPanel] }) }), (0, jsx_runtime_1.
|
|
40
|
+
}, children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: 'row', children: [buttonPanel, statusPanel] }) }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "ab-DataChangeHistoryPopup--grid twa:flex-1 twa:self-stretch", "data-name": 'data-change-history--grid', flexDirection: 'column', children: (0, jsx_runtime_1.jsx)(DataChangeHistoryTable_1.DataChangeHistoryTable, { changeHistoryLog: changeHistoryLog, onUndoChange: handleChangeUndo, onClearRow: handleClearRow }) })] }) }));
|
|
53
41
|
}
|
|
54
42
|
}
|
|
55
43
|
function mapStateToProps(state, ownProps) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CellDataChangedInfo } from '../../AdaptableState/Common/CellDataChangedInfo';
|
|
3
|
+
export interface DataChangeHistoryTableProps {
|
|
4
|
+
changeHistoryLog: Record<string, CellDataChangedInfo>;
|
|
5
|
+
onUndoChange: (changeKey: string) => void;
|
|
6
|
+
onClearRow: (changeKey: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const DataChangeHistoryTable: React.FunctionComponent<DataChangeHistoryTableProps>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataChangeHistoryTable = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const React = tslib_1.__importStar(require("react"));
|
|
7
|
+
const InfiniteTable_1 = require("../../components/InfiniteTable");
|
|
8
|
+
const Flex_1 = require("../../components/Flex");
|
|
9
|
+
const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
|
|
10
|
+
const FormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/FormatHelper"));
|
|
11
|
+
const AdaptableContext_1 = require("../AdaptableContext");
|
|
12
|
+
const AdaptableButtonView_1 = require("../Components/AdaptableButton/AdaptableButtonView");
|
|
13
|
+
const buildActionColumnButton_1 = require("./buildActionColumnButton");
|
|
14
|
+
const dataChangeHistoryHelpers_1 = require("./dataChangeHistoryHelpers");
|
|
15
|
+
const tableDOMProps = {
|
|
16
|
+
style: {
|
|
17
|
+
height: '100%',
|
|
18
|
+
minWidth: '10rem',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
const columnTypes = {
|
|
22
|
+
default: {
|
|
23
|
+
align: 'start',
|
|
24
|
+
defaultFlex: 1,
|
|
25
|
+
defaultSortable: false,
|
|
26
|
+
style: { fontSize: 'var(--ab-font-size-3)' },
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
const headerOptions = {
|
|
30
|
+
alwaysReserveSpaceForSortIcon: false,
|
|
31
|
+
};
|
|
32
|
+
const DataChangeHistoryTable = (props) => {
|
|
33
|
+
const { changeHistoryLog, onUndoChange, onClearRow } = props;
|
|
34
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
35
|
+
const undoChangeEnabled = adaptable.api.entitlementApi.isModuleFullEntitlement(ModuleConstants_1.DataChangeHistoryModuleId);
|
|
36
|
+
const rowData = React.useMemo(() => (0, dataChangeHistoryHelpers_1.mapChangeHistoryRowData)(changeHistoryLog, adaptable), [changeHistoryLog, adaptable]);
|
|
37
|
+
const changeHistoryButtons = React.useMemo(() => (0, buildActionColumnButton_1.buildChangeHistoryButtons)(adaptable.adaptableOptions?.dataChangeHistoryOptions, adaptable.api, onUndoChange, onClearRow), [adaptable, onUndoChange, onClearRow]);
|
|
38
|
+
const showActionColumn = undoChangeEnabled && !!changeHistoryButtons?.length;
|
|
39
|
+
const primaryKeyHeader = adaptable.api.columnApi.getPrimaryKeyColumn()?.friendlyName ?? 'Row ID';
|
|
40
|
+
const dateFormat = `${adaptable.api.optionsApi.getUserInterfaceOptions().dateInputOptions.dateFormat} HH:mm:ss`;
|
|
41
|
+
const columnsMap = React.useMemo(() => {
|
|
42
|
+
const columns = {
|
|
43
|
+
primaryKeyValue: {
|
|
44
|
+
header: `Row (${primaryKeyHeader})`,
|
|
45
|
+
valueGetter: (params) => (0, dataChangeHistoryHelpers_1.getChangeHistoryRowChangeInfo)(params.data)?.primaryKeyValue ?? '',
|
|
46
|
+
},
|
|
47
|
+
changedColumnLabel: {
|
|
48
|
+
field: 'changedColumnLabel',
|
|
49
|
+
header: 'Column',
|
|
50
|
+
},
|
|
51
|
+
oldValue: {
|
|
52
|
+
header: 'Previous',
|
|
53
|
+
valueGetter: (params) => (0, dataChangeHistoryHelpers_1.formatChangeHistoryCellValue)((0, dataChangeHistoryHelpers_1.getChangeHistoryRowChangeInfo)(params.data)?.oldValue),
|
|
54
|
+
},
|
|
55
|
+
newValue: {
|
|
56
|
+
header: 'New',
|
|
57
|
+
valueGetter: (params) => (0, dataChangeHistoryHelpers_1.formatChangeHistoryCellValue)((0, dataChangeHistoryHelpers_1.getChangeHistoryRowChangeInfo)(params.data)?.newValue),
|
|
58
|
+
},
|
|
59
|
+
changedAt: {
|
|
60
|
+
header: 'Changed',
|
|
61
|
+
valueGetter: (params) => {
|
|
62
|
+
const changedAt = (0, dataChangeHistoryHelpers_1.getChangeHistoryRowChangeInfo)(params.data)?.changedAt;
|
|
63
|
+
return changedAt != null
|
|
64
|
+
? FormatHelper_1.default.DateFormatter(changedAt, { Pattern: dateFormat })
|
|
65
|
+
: '';
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
changeTriggerLabel: {
|
|
69
|
+
field: 'changeTriggerLabel',
|
|
70
|
+
header: 'Source',
|
|
71
|
+
defaultFlex: 0.75,
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
if (showActionColumn && changeHistoryButtons) {
|
|
75
|
+
columns.actions = {
|
|
76
|
+
header: ' ',
|
|
77
|
+
defaultWidth: 110,
|
|
78
|
+
render: (params) => {
|
|
79
|
+
const rowData = params.data;
|
|
80
|
+
if (!(0, dataChangeHistoryHelpers_1.getChangeHistoryRowChangeInfo)(rowData)) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "ab-ActionColumn twa:gap-0.5", children: changeHistoryButtons.map((button, index) => ((0, jsx_runtime_1.jsx)(AdaptableButtonView_1.AdaptableButtonView, { button: button, context: (0, buildActionColumnButton_1.buildDataChangeHistoryContext)(rowData, adaptable.api, onUndoChange, onClearRow), api: adaptable.api, defaults: AdaptableButtonView_1.ADAPTABLE_BUTTON_SURFACE_DEFAULTS.actionColumn }, index))) }));
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
return columns;
|
|
88
|
+
}, [
|
|
89
|
+
changeHistoryButtons,
|
|
90
|
+
dateFormat,
|
|
91
|
+
onClearRow,
|
|
92
|
+
onUndoChange,
|
|
93
|
+
primaryKeyHeader,
|
|
94
|
+
showActionColumn,
|
|
95
|
+
adaptable.api,
|
|
96
|
+
]);
|
|
97
|
+
return ((0, jsx_runtime_1.jsx)(InfiniteTable_1.DataSource, { data: rowData, primaryKey: "primaryKey", children: (0, jsx_runtime_1.jsx)(InfiniteTable_1.InfiniteTableGrid, { columnTypes: columnTypes, headerOptions: headerOptions, domProps: tableDOMProps, columns: columnsMap, columnPinning: showActionColumn ? { actions: 'end' } : undefined }) }));
|
|
98
|
+
};
|
|
99
|
+
exports.DataChangeHistoryTable = DataChangeHistoryTable;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { DataChangeHistoryContext } from '../../AdaptableOptions/DataChangeHistoryOptions';
|
|
2
|
+
import { AdaptableApi, AdaptableButton, DataChangeHistoryOptions } from '../../types';
|
|
3
|
+
import { DataChangeHistoryData } from './dataChangeHistoryHelpers';
|
|
4
|
+
export declare const buildDataChangeHistoryContext: (rowData: DataChangeHistoryData, parentAdapTableApi: AdaptableApi, onUndoChange: (changeKey: string) => void, onClearRow: (changeKey: string) => void) => DataChangeHistoryContext;
|
|
5
|
+
export declare const buildChangeHistoryButtons: (options: DataChangeHistoryOptions, parentAdapTableApi: AdaptableApi, onUndoChange: (changeKey: string) => void, onClearRow: (changeKey: string) => void) => AdaptableButton<DataChangeHistoryContext>[] | null;
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
5
|
-
|
|
3
|
+
exports.buildChangeHistoryButtons = exports.buildDataChangeHistoryContext = void 0;
|
|
4
|
+
const STUB_ACTION_COLUMN = {
|
|
5
|
+
columnId: 'undoActionColumn',
|
|
6
|
+
actionColumnButton: [],
|
|
7
|
+
};
|
|
8
|
+
const buildDataChangeHistoryContext = (rowData, parentAdapTableApi, onUndoChange, onClearRow) => {
|
|
9
|
+
const undoDataChange = () => onUndoChange(rowData.changeKey);
|
|
10
|
+
const clearRow = () => onClearRow(rowData.changeKey);
|
|
11
|
+
return {
|
|
12
|
+
actionColumn: STUB_ACTION_COLUMN,
|
|
13
|
+
primaryKeyValue: rowData.changeInfo.primaryKeyValue,
|
|
14
|
+
rowNode: undefined,
|
|
15
|
+
data: rowData,
|
|
16
|
+
...parentAdapTableApi.internalApi.buildBaseContext(),
|
|
17
|
+
isGroupNode: false,
|
|
18
|
+
undoDataChange,
|
|
19
|
+
clearRow,
|
|
20
|
+
dataChangedInfo: rowData.changeInfo,
|
|
21
|
+
parentAdapTableApi,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
exports.buildDataChangeHistoryContext = buildDataChangeHistoryContext;
|
|
25
|
+
const buildChangeHistoryButtons = (options, parentAdapTableApi, onUndoChange, onClearRow) => {
|
|
26
|
+
let changeHistoryButtons = options?.changeHistoryButton;
|
|
6
27
|
if (!changeHistoryButtons ||
|
|
7
28
|
(Array.isArray(changeHistoryButtons) && changeHistoryButtons.length === 0)) {
|
|
8
29
|
return null;
|
|
@@ -10,78 +31,49 @@ const buildActionColumnButton = (options, parentAdapTableApi, undoRowNode, clear
|
|
|
10
31
|
if (!Array.isArray(changeHistoryButtons)) {
|
|
11
32
|
changeHistoryButtons = [changeHistoryButtons];
|
|
12
33
|
}
|
|
13
|
-
const isGroupNode = (context) => context.adaptableApi.gridApi.isGroupRowNode(context.rowNode);
|
|
14
|
-
const onUndo = (context) => {
|
|
15
|
-
const rowNode = context.rowNode;
|
|
16
|
-
if (context.adaptableApi.gridApi.isGroupRowNode(rowNode)) {
|
|
17
|
-
// undo all children
|
|
18
|
-
const childrenNodes = context.rowNode?.childrenAfterFilter;
|
|
19
|
-
if (childrenNodes) {
|
|
20
|
-
childrenNodes.forEach((childNode) => undoRowNode(childNode));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
undoRowNode(rowNode);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
const onClearRow = (context) => {
|
|
28
|
-
const rowNode = context.rowNode;
|
|
29
|
-
clearRow(rowNode);
|
|
30
|
-
};
|
|
31
|
-
const buildContext = (context) => {
|
|
32
|
-
const dataChangedInfo = context.rowNode.data.changeInfo;
|
|
33
|
-
return {
|
|
34
|
-
...context,
|
|
35
|
-
isGroupNode: isGroupNode(context),
|
|
36
|
-
undoDataChange: () => onUndo(context),
|
|
37
|
-
clearRow: () => onClearRow(context),
|
|
38
|
-
dataChangedInfo,
|
|
39
|
-
parentAdapTableApi,
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
34
|
return changeHistoryButtons.map((actionColumnOption) => ({
|
|
43
35
|
label: (button, context) => {
|
|
44
36
|
if (typeof actionColumnOption.label !== 'function') {
|
|
45
37
|
return actionColumnOption.label;
|
|
46
38
|
}
|
|
47
|
-
return actionColumnOption.label(button,
|
|
39
|
+
return actionColumnOption.label(button, context);
|
|
48
40
|
},
|
|
49
41
|
buttonStyle: (button, context) => {
|
|
50
42
|
if (typeof actionColumnOption.buttonStyle !== 'function') {
|
|
51
43
|
return actionColumnOption.buttonStyle;
|
|
52
44
|
}
|
|
53
|
-
return actionColumnOption.buttonStyle(button,
|
|
45
|
+
return actionColumnOption.buttonStyle(button, context);
|
|
54
46
|
},
|
|
55
47
|
tooltip: (button, context) => {
|
|
56
48
|
if (typeof actionColumnOption.tooltip !== 'function') {
|
|
57
49
|
return actionColumnOption.tooltip;
|
|
58
50
|
}
|
|
59
|
-
return actionColumnOption.tooltip(button,
|
|
51
|
+
return actionColumnOption.tooltip(button, context);
|
|
60
52
|
},
|
|
61
53
|
disabled: (button, context) => {
|
|
62
54
|
if (typeof actionColumnOption.disabled !== 'function') {
|
|
63
55
|
return actionColumnOption.disabled;
|
|
64
56
|
}
|
|
65
|
-
return actionColumnOption.disabled(button,
|
|
57
|
+
return actionColumnOption.disabled(button, context);
|
|
66
58
|
},
|
|
67
59
|
onClick: (button, context) => {
|
|
68
60
|
if (actionColumnOption.action === 'undo') {
|
|
69
|
-
|
|
61
|
+
context.undoDataChange();
|
|
70
62
|
}
|
|
71
63
|
if (actionColumnOption.action === 'clear') {
|
|
72
|
-
|
|
64
|
+
context.clearRow();
|
|
73
65
|
}
|
|
74
66
|
if (typeof actionColumnOption.onClick === 'function') {
|
|
75
|
-
actionColumnOption.onClick(button,
|
|
67
|
+
actionColumnOption.onClick(button, context);
|
|
76
68
|
}
|
|
77
69
|
},
|
|
78
70
|
hidden: (button, context) => {
|
|
79
71
|
if (typeof actionColumnOption.hidden !== 'function') {
|
|
80
72
|
return actionColumnOption.hidden;
|
|
81
73
|
}
|
|
82
|
-
return actionColumnOption.hidden(button,
|
|
74
|
+
return actionColumnOption.hidden(button, context);
|
|
83
75
|
},
|
|
84
76
|
icon: actionColumnOption.icon,
|
|
85
77
|
}));
|
|
86
78
|
};
|
|
87
|
-
exports.
|
|
79
|
+
exports.buildChangeHistoryButtons = buildChangeHistoryButtons;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CellDataChangedInfo } from '../../AdaptableState/Common/CellDataChangedInfo';
|
|
2
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
3
|
+
export interface DataChangeHistoryData {
|
|
4
|
+
primaryKey: string;
|
|
5
|
+
changeKey: string;
|
|
6
|
+
changeTriggerLabel: string;
|
|
7
|
+
changedColumnLabel: string;
|
|
8
|
+
changeInfo: CellDataChangedInfo;
|
|
9
|
+
}
|
|
10
|
+
export declare const getColumnHeaderLabel: (columnId: string, mainAdaptableInstance: IAdaptable) => string;
|
|
11
|
+
export declare const getChangeTriggerLabel: (changeInfo: CellDataChangedInfo) => string;
|
|
12
|
+
export declare const isValidChangeHistoryLogEntry: (changeInfo: CellDataChangedInfo | undefined) => changeInfo is CellDataChangedInfo;
|
|
13
|
+
export declare const mapChangeHistoryRowData: (changeHistoryLog: Record<string, CellDataChangedInfo>, mainAdaptableInstance: IAdaptable) => DataChangeHistoryData[];
|
|
14
|
+
export declare const getChangeHistoryRowChangeInfo: (rowData: Partial<DataChangeHistoryData> | undefined) => CellDataChangedInfo | undefined;
|
|
15
|
+
export declare const formatChangeHistoryCellValue: (value: unknown) => string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatChangeHistoryCellValue = exports.getChangeHistoryRowChangeInfo = exports.mapChangeHistoryRowData = exports.isValidChangeHistoryLogEntry = exports.getChangeTriggerLabel = exports.getColumnHeaderLabel = void 0;
|
|
4
|
+
const headerMap = new Map();
|
|
5
|
+
const getColumnHeaderLabel = (columnId, mainAdaptableInstance) => {
|
|
6
|
+
if (!headerMap.has(columnId)) {
|
|
7
|
+
headerMap.set(columnId, mainAdaptableInstance.api.columnApi.getColumnWithColumnId(columnId)?.friendlyName ?? columnId);
|
|
8
|
+
}
|
|
9
|
+
return headerMap.get(columnId);
|
|
10
|
+
};
|
|
11
|
+
exports.getColumnHeaderLabel = getColumnHeaderLabel;
|
|
12
|
+
const getChangeTriggerLabel = (changeInfo) => {
|
|
13
|
+
return changeInfo.trigger === 'tick' ? 'Ticking' : 'User Edit';
|
|
14
|
+
};
|
|
15
|
+
exports.getChangeTriggerLabel = getChangeTriggerLabel;
|
|
16
|
+
const isValidChangeHistoryLogEntry = (changeInfo) => {
|
|
17
|
+
return !!changeInfo?.column?.columnId && changeInfo.changedAt != null;
|
|
18
|
+
};
|
|
19
|
+
exports.isValidChangeHistoryLogEntry = isValidChangeHistoryLogEntry;
|
|
20
|
+
const mapChangeHistoryRowData = (changeHistoryLog = {}, mainAdaptableInstance) => {
|
|
21
|
+
return Object.entries(changeHistoryLog)
|
|
22
|
+
.filter(([, changeInfo]) => (0, exports.isValidChangeHistoryLogEntry)(changeInfo))
|
|
23
|
+
.map(([changeKey, changeInfo]) => ({
|
|
24
|
+
primaryKey: `${changeKey}::${changeInfo.changedAt}`,
|
|
25
|
+
changeKey,
|
|
26
|
+
changeTriggerLabel: (0, exports.getChangeTriggerLabel)(changeInfo),
|
|
27
|
+
changedColumnLabel: (0, exports.getColumnHeaderLabel)(changeInfo.column.columnId, mainAdaptableInstance),
|
|
28
|
+
changeInfo,
|
|
29
|
+
}))
|
|
30
|
+
.sort((a, b) => b.changeInfo.changedAt - a.changeInfo.changedAt);
|
|
31
|
+
};
|
|
32
|
+
exports.mapChangeHistoryRowData = mapChangeHistoryRowData;
|
|
33
|
+
const getChangeHistoryRowChangeInfo = (rowData) => {
|
|
34
|
+
if (!(0, exports.isValidChangeHistoryLogEntry)(rowData?.changeInfo)) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
return rowData.changeInfo;
|
|
38
|
+
};
|
|
39
|
+
exports.getChangeHistoryRowChangeInfo = getChangeHistoryRowChangeInfo;
|
|
40
|
+
const formatChangeHistoryCellValue = (value) => {
|
|
41
|
+
if (value === null || value === undefined) {
|
|
42
|
+
return '';
|
|
43
|
+
}
|
|
44
|
+
return String(value);
|
|
45
|
+
};
|
|
46
|
+
exports.formatChangeHistoryCellValue = formatChangeHistoryCellValue;
|
|
@@ -69,7 +69,7 @@ const DataImportWizard = (props) => {
|
|
|
69
69
|
return columnsMap
|
|
70
70
|
? columnsMap.reduce((acc, colMap) => {
|
|
71
71
|
if (colMap.include && !colMap.abColumn) {
|
|
72
|
-
acc[colMap.field] = `Field ${colMap.field} does not have a
|
|
72
|
+
acc[colMap.field] = `Field ${colMap.field} does not have a corresponding column.`;
|
|
73
73
|
}
|
|
74
74
|
return acc;
|
|
75
75
|
}, {})
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
7
7
|
const CheckBox_1 = require("../../../../components/CheckBox");
|
|
8
|
-
const DropdownButton_1 =
|
|
8
|
+
const DropdownButton_1 = require("../../../../components/DropdownButton");
|
|
9
9
|
const HelpBlock_1 = tslib_1.__importDefault(require("../../../../components/HelpBlock"));
|
|
10
10
|
const icons_1 = require("../../../../components/icons");
|
|
11
11
|
const InfiniteTable_1 = require("../../../../components/InfiniteTable");
|
|
@@ -66,27 +66,40 @@ const ColumnsSection = (props) => {
|
|
|
66
66
|
abColumn: {
|
|
67
67
|
header: 'AdapTable Column',
|
|
68
68
|
render: (params) => {
|
|
69
|
-
|
|
69
|
+
console.log(params.data, allColumns);
|
|
70
|
+
const columnItems = allColumns
|
|
70
71
|
.filter((c) => !props.columnsMap?.find((cm) => cm.abColumn === c.value))
|
|
71
|
-
.map((col) => {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
onClick: () => {
|
|
75
|
-
handleColumnMapChange({
|
|
76
|
-
...params.data,
|
|
77
|
-
abColumn: col.value,
|
|
78
|
-
include: true,
|
|
79
|
-
});
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
});
|
|
83
|
-
return ((0, jsx_runtime_1.jsx)(DropdownButton_1.default, { showClearButton: true, onClear: () => {
|
|
72
|
+
.map((col) => ({
|
|
73
|
+
label: col.label,
|
|
74
|
+
onClick: () => {
|
|
84
75
|
handleColumnMapChange({
|
|
85
76
|
...params.data,
|
|
86
|
-
abColumn:
|
|
87
|
-
include:
|
|
77
|
+
abColumn: col.value,
|
|
78
|
+
include: true,
|
|
88
79
|
});
|
|
89
|
-
},
|
|
80
|
+
},
|
|
81
|
+
}));
|
|
82
|
+
const items = params.data?.abColumn
|
|
83
|
+
? [
|
|
84
|
+
{
|
|
85
|
+
label: 'Clear',
|
|
86
|
+
onClick: () => {
|
|
87
|
+
handleColumnMapChange({
|
|
88
|
+
...params.data,
|
|
89
|
+
abColumn: null,
|
|
90
|
+
include: false,
|
|
91
|
+
});
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{ separator: true },
|
|
95
|
+
...(columnItems.length
|
|
96
|
+
? columnItems
|
|
97
|
+
: [{ label: 'No other columns available', disabled: true }]),
|
|
98
|
+
]
|
|
99
|
+
: columnItems.length
|
|
100
|
+
? columnItems
|
|
101
|
+
: [{ label: 'No other columns available', disabled: true }];
|
|
102
|
+
return ((0, jsx_runtime_1.jsx)(DropdownButton_1.NewDropdownButton, { className: "twa:w-full", items: items, children: params.data?.abColumn?.friendlyName ??
|
|
90
103
|
params.data?.abColumn?.columnId ??
|
|
91
104
|
'Select Column' }));
|
|
92
105
|
},
|
|
@@ -107,7 +120,7 @@ const ColumnsSection = (props) => {
|
|
|
107
120
|
};
|
|
108
121
|
}, [props.columnsMap]);
|
|
109
122
|
if (!props.columnsMap) {
|
|
110
|
-
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-3", children: (0, jsx_runtime_1.jsxs)(HelpBlock_1.default, { className: "twa:text-
|
|
123
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:p-3", children: (0, jsx_runtime_1.jsxs)(HelpBlock_1.default, { className: "twa:text-destructive", children: ["No data has been imported. Go to the ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "Upload" }), " step and provide data."] }) }));
|
|
111
124
|
}
|
|
112
125
|
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", className: "twa:h-full", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", alignItems: "center", className: "twa:p-2 twa:gap-3 twa:border-b twa:mb-2 twa:border-b-foreground/20", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-5 twa:font-medium", children: "Columns" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:max-w-[520px]", children: "Map imported fields to AdapTable columns and choose which to include" })] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1 twa:min-h-0 twa:overflow-auto twa:p-3", children: (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:h-full twa:min-h-[300px]", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Column Mapping" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Match each data field to an AdapTable column. The primary key column cannot be excluded." })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { className: "twa:flex-1 twa:min-h-0", children: (0, jsx_runtime_1.jsx)(InfiniteTable_1.DataSource, { data: props.columnsMap, primaryKey: 'field', children: (0, jsx_runtime_1.jsx)(InfiniteTable_1.InfiniteTableGrid, { columnPinning: {
|
|
113
126
|
valid: 'end',
|
|
@@ -36,7 +36,7 @@ const DataPreview = (props) => {
|
|
|
36
36
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
37
37
|
const dataImportOptions = adaptable.api.optionsApi.getDataImportOptions();
|
|
38
38
|
if (!props.data) {
|
|
39
|
-
return ((0, jsx_runtime_1.jsxs)(HelpBlock_1.default, { color: 'var(--ab-color-
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(HelpBlock_1.default, { color: 'var(--ab-color-destructive)', children: ["No Data has been Imported. Go to ", (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: "Upload" }), " step and provide Data"] }));
|
|
40
40
|
}
|
|
41
41
|
const primaryKey = adaptable.api.optionsApi.getPrimaryKey();
|
|
42
42
|
const columns = React.useMemo(() => {
|
|
@@ -10,8 +10,8 @@ interface DataSetViewPanelComponentState {
|
|
|
10
10
|
CurrentDataSet: DataSet;
|
|
11
11
|
}
|
|
12
12
|
declare class DataSetViewPanelComponent extends React.Component<DataSetViewPanelComponentProps, DataSetViewPanelComponentState> {
|
|
13
|
-
getCurrentDataSet(): DataSet
|
|
14
|
-
getDataSets(): DataSet[];
|
|
13
|
+
getCurrentDataSet(): DataSet<any>;
|
|
14
|
+
getDataSets(): DataSet<any>[];
|
|
15
15
|
render(): React.JSX.Element;
|
|
16
16
|
onSelectedDataSetChanged(dataSetName: string): void;
|
|
17
17
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExportDestinationPicker = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const
|
|
5
|
+
const DropdownButton_1 = require("../../components/DropdownButton");
|
|
7
6
|
const icons_1 = require("../../components/icons");
|
|
8
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
9
8
|
const ButtonExport_1 = require("../Components/Buttons/ButtonExport");
|
|
10
|
-
const
|
|
9
|
+
const utils_1 = require("../../lib/utils");
|
|
11
10
|
const ExportDestinationPicker = ({ reportName, reportFormat, viewType, }) => {
|
|
12
11
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
13
12
|
const exportApi = adaptable.api.exportApi;
|
|
@@ -16,12 +15,12 @@ const ExportDestinationPicker = ({ reportName, reportFormat, viewType, }) => {
|
|
|
16
15
|
};
|
|
17
16
|
const supportedDestinations = exportApi.getSupportedExportDestinations(reportFormat);
|
|
18
17
|
if (supportedDestinations.length === 0 || supportedDestinations.length === 1) {
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)(ButtonExport_1.ButtonExport, { tooltip: 'Export Report', className: (0,
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(ButtonExport_1.ButtonExport, { tooltip: 'Export Report', className: (0, utils_1.cn)(viewType !== 'StatusBar' ? '' : undefined, ''), onClick: () => handleExport(supportedDestinations[0]), disabled: reportName == undefined || reportFormat == undefined }));
|
|
20
19
|
}
|
|
21
20
|
const destinationItems = supportedDestinations.map((destination) => ({
|
|
22
21
|
label: destination,
|
|
23
22
|
onClick: () => handleExport(destination),
|
|
24
23
|
}));
|
|
25
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(DropdownButton_1.NewDropdownButton, { "data-name": "report-export-selector", disabled: reportName == undefined || reportFormat == undefined, tooltip: "Export Report", variant: "text", items: destinationItems, children: (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: "export" }) }));
|
|
26
25
|
};
|
|
27
26
|
exports.ExportDestinationPicker = ExportDestinationPicker;
|
|
@@ -19,7 +19,7 @@ const ReportNameSelector_1 = require("./ReportNameSelector");
|
|
|
19
19
|
const ReportFormatSelector_1 = require("./ReportFormatSelector");
|
|
20
20
|
const ExportDestinationPicker_1 = require("./ExportDestinationPicker");
|
|
21
21
|
const Flex_1 = require("../../components/Flex");
|
|
22
|
-
const
|
|
22
|
+
const utils_1 = require("../../lib/utils");
|
|
23
23
|
const ExportViewPanel = (props) => {
|
|
24
24
|
const dispatch = (0, react_redux_1.useDispatch)();
|
|
25
25
|
const exportApi = props.api.exportApi;
|
|
@@ -38,7 +38,7 @@ const ExportViewPanel = (props) => {
|
|
|
38
38
|
: 'Are you sure you want to delete this report?';
|
|
39
39
|
const isToolbar = props.viewType === 'Toolbar';
|
|
40
40
|
const elementType = isToolbar ? 'DashboardToolbar' : 'ToolPanel';
|
|
41
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", className: (0,
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", className: (0, utils_1.cn)(`ab-${elementType}__CellSummary__wrap twa:gap-1 twa:flex-row`, {
|
|
42
42
|
'twa:min-w-[486px] twa:flex-nowrap': isToolbar,
|
|
43
43
|
'twa:flex-1 twa:flex-wrap': !isToolbar,
|
|
44
44
|
}), children: [(0, jsx_runtime_1.jsx)(ReportNameSelector_1.ReportNameSelector, { viewType: props.viewType, reportName: currentReportName, userReports: userReports, onReportNameSelected: (reportName) => exportApi.selectReport(reportName) }), (0, jsx_runtime_1.jsx)(ReportFormatSelector_1.ReportFormatSelector, { viewType: props.viewType, reportName: currentReportName, reportFormat: currentFormat, onReportFormatSelected: (reportFormat) => exportApi.selectFormat(reportFormat) }), (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: (0, join_1.default)(accessLevel == GeneralConstants.ACCESS_LEVEL_READ_ONLY
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Report } from '../../../AdaptableState/ExportState';
|
|
3
|
+
import { AdaptableApi } from '../../../types';
|
|
3
4
|
export type ReportColumnsWizardSectionProps = {
|
|
4
5
|
onChange: (data: Report) => void;
|
|
5
6
|
};
|
|
6
7
|
export declare const isValidReportColumnsScope: (report: Report) => true | "Column scope is not defined";
|
|
7
|
-
export declare const renderReportColumnsSummary: (report: Report) => React.
|
|
8
|
+
export declare const renderReportColumnsSummary: (report: Report, api: AdaptableApi) => React.ReactNode;
|
|
8
9
|
export declare const ReportColumnsWizardSection: (props: ReportColumnsWizardSectionProps) => React.JSX.Element;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ReportColumnsWizardSection = exports.renderReportColumnsSummary = exports.isValidReportColumnsScope = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
6
|
+
const getExportColumnsViewItems_1 = require("../../../Strategy/Utilities/Export/getExportColumnsViewItems");
|
|
6
7
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
7
8
|
const Flex_1 = require("../../../components/Flex");
|
|
8
9
|
const Card_1 = require("../../../components/Card");
|
|
@@ -14,13 +15,7 @@ const isValidReportColumnsScope = (report) => {
|
|
|
14
15
|
return true;
|
|
15
16
|
};
|
|
16
17
|
exports.isValidReportColumnsScope = isValidReportColumnsScope;
|
|
17
|
-
const renderReportColumnsSummary = (report) =>
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:text-2", children: [report.ReportColumnScope === 'AllColumns' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Include ", (0, jsx_runtime_1.jsx)("b", { children: "all Columns" }), " in the Report"] })) : null, report.ReportColumnScope === 'VisibleColumns' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Include ", (0, jsx_runtime_1.jsx)("b", { children: "only visible Columns" }), " in the Report"] })) : null, report.ReportColumnScope === 'ScopeColumns' ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, NewScopeComponent_1.renderScopeSummary)(report.Scope, {
|
|
19
|
-
scopeColumns: 'Report Columns',
|
|
20
|
-
scopeWholeRow: 'not available',
|
|
21
|
-
scopeDataTypes: 'Report will include columns with the following types',
|
|
22
|
-
}) })) : null] }));
|
|
23
|
-
};
|
|
18
|
+
const renderReportColumnsSummary = (report, api) => (0, getExportColumnsViewItems_1.renderExportColumnsView)(report, api);
|
|
24
19
|
exports.renderReportColumnsSummary = renderReportColumnsSummary;
|
|
25
20
|
const ReportColumnsWizardSection = (props) => {
|
|
26
21
|
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Report } from '../../../AdaptableState/ExportState';
|
|
3
|
+
import { AdaptableApi } from '../../../types';
|
|
3
4
|
export type ReportRowsWizardSectionProps = {
|
|
4
5
|
onChange: (data: Report) => void;
|
|
5
6
|
};
|
|
6
7
|
export declare const isValidReportRowsQuery: (report: Report) => true | "Rows query cannot be empty";
|
|
7
|
-
export declare const renderReportRowsSummary: (report: Report) => React.
|
|
8
|
+
export declare const renderReportRowsSummary: (report: Report, api: AdaptableApi) => React.ReactNode;
|
|
8
9
|
export declare const ReportRowsWizardSection: (props: ReportRowsWizardSectionProps) => React.JSX.Element;
|
|
@@ -4,8 +4,7 @@ exports.ReportRowsWizardSection = exports.renderReportRowsSummary = exports.isVa
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const ExpressionEditor_1 = require("../../../components/ExpressionEditor");
|
|
7
|
-
const
|
|
8
|
-
const Tag_1 = require("../../../components/Tag");
|
|
7
|
+
const getExportRowsViewItems_1 = require("../../../Strategy/Utilities/Export/getExportRowsViewItems");
|
|
9
8
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
10
9
|
const Flex_1 = require("../../../components/Flex");
|
|
11
10
|
const Card_1 = require("../../../components/Card");
|
|
@@ -17,9 +16,7 @@ const isValidReportRowsQuery = (report) => {
|
|
|
17
16
|
return true;
|
|
18
17
|
};
|
|
19
18
|
exports.isValidReportRowsQuery = isValidReportRowsQuery;
|
|
20
|
-
const renderReportRowsSummary = (report) =>
|
|
21
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:text-2", children: [report.ReportRowScope === 'AllRows' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Include ", (0, jsx_runtime_1.jsx)("b", { children: "all Rows" }), " in the Report"] })) : null, report.ReportRowScope === 'VisibleRows' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Include ", (0, jsx_runtime_1.jsx)("b", { children: "only visible Rows" }), " in the Report"] })) : null, report.ReportRowScope === 'ExpressionRows' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Include Rows matching the query:", ' ', (0, jsx_runtime_1.jsx)(Tag_1.Tag, { children: (0, jsx_runtime_1.jsx)(ExpressionPreview_1.ExpressionPreview, { query: report.Query }) })] })) : null] }));
|
|
22
|
-
};
|
|
19
|
+
const renderReportRowsSummary = (report, api) => (0, getExportRowsViewItems_1.renderExportRowsView)(report, api);
|
|
23
20
|
exports.renderReportRowsSummary = renderReportRowsSummary;
|
|
24
21
|
const ReportRowsWizardSection = (props) => {
|
|
25
22
|
const { api, data, moduleInfo } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { HTMLProps } from 'react';
|
|
2
2
|
import { FlashingCellDefinition } from '../../types';
|
|
3
3
|
import { FlexProps } from '../../components/Flex';
|
|
4
|
-
export
|
|
4
|
+
export declare const FLASHING_CELL_STYLE_PREVIEW_CLASS = "twa:!mt-0 twa:w-[5.5rem] twa:max-w-[5.5rem] twa:shrink-0 twa:!px-1.5 twa:!py-1 twa:text-2 twa:truncate";
|
|
5
|
+
export interface FlashingCellStyleProps extends Omit<HTMLProps<HTMLDivElement> & FlexProps, 'data'> {
|
|
5
6
|
data: FlashingCellDefinition;
|
|
7
|
+
className?: string;
|
|
6
8
|
}
|
|
7
9
|
export declare const FlashingCellStyle: React.FunctionComponent<FlashingCellStyleProps>;
|