@adaptabletools/adaptable-cjs 22.0.0-canary.1 → 22.0.0-canary.10
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/agGrid.d.ts +9 -9
- package/agGrid.js +1 -0
- package/index.css +1280 -1400
- package/index.css.map +1 -1
- package/index.d.ts +66 -0
- package/index.js +85 -0
- package/package.json +3 -3
- package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -6
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
- package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
- package/src/AdaptableState/AdaptableState.d.ts +2 -0
- package/src/AdaptableState/AlertState.d.ts +5 -2
- package/src/AdaptableState/ChartingState.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
- package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
- package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
- package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.js +2 -0
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +17 -0
- package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
- package/src/AdaptableState/Common/NamedObject.js +2 -0
- package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
- package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
- package/src/AdaptableState/Common/Schedule.d.ts +8 -5
- package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +2 -2
- package/src/AdaptableState/Common/TransposeConfig.d.ts +12 -10
- package/src/AdaptableState/CustomSortState.d.ts +5 -1
- package/src/AdaptableState/DashboardState.d.ts +1 -1
- package/src/AdaptableState/ExportState.d.ts +1 -1
- package/src/AdaptableState/FlashingCellState.d.ts +6 -2
- package/src/AdaptableState/FormatColumnState.d.ts +5 -9
- package/src/AdaptableState/InitialState.d.ts +10 -1
- package/src/AdaptableState/InternalState.d.ts +2 -0
- package/src/AdaptableState/LayoutState.d.ts +7 -3
- package/src/AdaptableState/NamedQueryState.d.ts +1 -1
- package/src/AdaptableState/PlusMinusState.d.ts +5 -1
- package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
- package/src/AdaptableState/ShortcutState.d.ts +5 -1
- package/src/AdaptableState/StyledColumnState.d.ts +1 -1
- package/src/AdaptableState/ThemeState.d.ts +1 -1
- package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
- package/src/AdaptableState/UserInterfaceState.js +2 -0
- package/src/Api/AlertApi.d.ts +6 -0
- package/src/Api/CustomSortApi.d.ts +12 -3
- package/src/Api/DataSetApi.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +6 -0
- package/src/Api/FormatColumnApi.d.ts +10 -4
- package/src/Api/GridApi.d.ts +23 -12
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AlertApiImpl.js +6 -6
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +2 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ChartingApiImpl.js +6 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
- package/src/Api/Implementation/CommentsApiImpl.js +1 -0
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
- package/src/Api/Implementation/DashboardApiImpl.js +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
- package/src/Api/Implementation/DataImportApiImpl.js +1 -0
- package/src/Api/Implementation/DataSetApiImpl.js +1 -0
- package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
- package/src/Api/Implementation/EventApiImpl.js +16 -14
- package/src/Api/Implementation/ExportApiImpl.js +1 -0
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
- package/src/Api/Implementation/FilterApiImpl.js +3 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +10 -10
- package/src/Api/Implementation/GridApiImpl.js +35 -20
- package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/LayoutApiImpl.js +5 -1
- package/src/Api/Implementation/LayoutHelpers.js +7 -0
- package/src/Api/Implementation/NamedQueryApiImpl.js +3 -2
- package/src/Api/Implementation/NoteApiImpl.js +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
- package/src/Api/Implementation/PredicateApiImpl.js +1 -0
- package/src/Api/Implementation/RowFormApiImpl.js +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +4 -0
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
- package/src/Api/Implementation/SystemStatusApiImpl.js +8 -9
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +1 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -1
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/ColumnInternalApi.js +1 -1
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
- package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +1 -1
- package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
- package/src/Api/LayoutApi.d.ts +6 -0
- package/src/Api/PlusMinusApi.d.ts +6 -0
- package/src/Api/ScheduleApi.d.ts +6 -0
- package/src/Api/ShortcutApi.d.ts +6 -0
- package/src/Api/UserInterfaceApi.d.ts +17 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +17 -1
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +42 -3
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
- package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
- package/src/Redux/ActionsReducers/UserInterfaceRedux.js +26 -0
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
- package/src/Redux/Store/AdaptableStore.js +113 -57
- package/src/Strategy/AdaptableModuleBase.js +4 -0
- package/src/Strategy/AlertModule.js +5 -0
- package/src/Strategy/BulkUpdateModule.js +8 -8
- package/src/Strategy/CalculatedColumnModule.js +1 -0
- package/src/Strategy/CellSummaryModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +4 -0
- package/src/Strategy/DataChangeHistoryModule.js +1 -0
- package/src/Strategy/FlashingCellModule.js +6 -0
- package/src/Strategy/FormatColumnModule.js +4 -0
- package/src/Strategy/FreeTextColumnModule.js +1 -0
- package/src/Strategy/LayoutModule.js +6 -5
- package/src/Strategy/PlusMinusModule.js +7 -1
- package/src/Strategy/QuickSearchModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +5 -0
- package/src/Strategy/SettingsPanelModule.js +11 -7
- package/src/Strategy/ShortcutModule.js +6 -0
- package/src/Strategy/SmartEditModule.js +10 -10
- package/src/Strategy/TeamSharingModule.js +10 -10
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
- package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/StringExtensions.js +17 -0
- package/src/Utilities/Helpers/FormatHelper.js +9 -2
- package/src/Utilities/Helpers/StyleHelper.js +14 -0
- package/src/Utilities/MenuItem.js +18 -0
- package/src/Utilities/ObjectFactory.js +16 -3
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
- package/src/Utilities/Services/AlertService.js +6 -4
- package/src/Utilities/Services/AnnotationsService.js +4 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
- package/src/Utilities/Services/ChartingService.js +1 -0
- package/src/Utilities/Services/DataService.js +11 -3
- package/src/Utilities/Services/Fdc3Service.js +9 -7
- package/src/Utilities/Services/FlashingCellService.js +5 -0
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +2 -2
- package/src/Utilities/Services/ModuleService.js +5 -6
- package/src/Utilities/Services/QueryLanguageService.js +6 -5
- package/src/Utilities/Services/RowFormService.js +1 -0
- package/src/Utilities/Services/RowSummaryService.js +10 -7
- package/src/Utilities/Services/TeamSharingService.js +3 -1
- package/src/Utilities/Services/ThemeService.js +13 -15
- package/src/Utilities/Services/ValidationService.js +2 -1
- package/src/Utilities/createAgStatusPanelComponent.js +3 -0
- package/src/Utilities/logDeprecation.js +3 -4
- package/src/Utilities/resolveContainerElement.d.ts +23 -0
- package/src/Utilities/resolveContainerElement.js +47 -0
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/ActiveAlertsPanel.js +8 -0
- package/src/View/Alert/AlertViewPanel.js +13 -9
- package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +5 -2
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +48 -12
- package/src/View/Alert/Wizard/AlertWizard.js +12 -8
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
- package/src/View/Components/AdaptableDateInput/index.js +1 -1
- package/src/View/Components/Buttons/ButtonApply.js +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
- package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
- package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -2
- package/src/View/Components/CellPopup/index.js +1 -1
- package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
- package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
- package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +35 -0
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +18 -17
- package/src/View/Components/StyleComponent.d.ts +1 -0
- package/src/View/Components/StyleComponent.js +94 -24
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/WizardSummaryPage.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +40 -14
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
- package/src/View/Dashboard/CustomToolbar.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +4 -5
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -0
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
- package/src/View/Export/ExportDestinationPicker.js +1 -1
- package/src/View/Export/ExportStatusBar.js +4 -2
- package/src/View/Export/ExportViewPanel.js +25 -18
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +36 -15
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +13 -9
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +46 -51
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +22 -11
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
- package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/TransposedPopup.js +144 -138
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -0
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +35 -12
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +20 -15
- package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +14 -4
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +19 -10
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +2 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +25 -4
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +18 -14
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
- package/src/View/StateManagement/handleExportState.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
- package/src/View/Theme/ThemePopup.js +13 -16
- package/src/View/UIHelper.d.ts +4 -1
- package/src/View/UIHelper.js +24 -14
- package/src/agGrid/Adaptable.js +15 -11
- package/src/agGrid/AdaptableAgGrid.d.ts +12 -8
- package/src/agGrid/AdaptableAgGrid.js +257 -111
- package/src/agGrid/AdaptableFilterHandler.js +4 -0
- package/src/agGrid/AdaptableLogger.d.ts +3 -0
- package/src/agGrid/AdaptableLogger.js +10 -0
- package/src/agGrid/AgGridAdapter.js +19 -9
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
- package/src/agGrid/AgGridColumnAdapter.js +20 -22
- package/src/agGrid/AgGridExportAdapter.js +15 -14
- package/src/agGrid/AgGridFilterAdapter.js +4 -0
- package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
- package/src/agGrid/AgGridMenuAdapter.js +10 -1
- package/src/agGrid/AgGridModulesAdapter.js +2 -1
- package/src/agGrid/AgGridOptionsService.js +3 -0
- package/src/agGrid/AgGridThemeAdapter.js +4 -2
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
- package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
- package/src/agGrid/index.d.ts +6 -0
- package/src/agGrid/index.js +6 -0
- package/src/components/CheckBox/index.js +1 -1
- package/src/components/ColorPicker/ColorPicker.js +5 -4
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/Dropdown/Arrows.js +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/EditorInput.js +19 -3
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/components/Select/Select.js +78 -15
- package/src/components/Tree/TreeDropdown/index.js +2 -2
- package/src/components/overlayBaseZIndex.js +1 -1
- package/src/components/utils/useContainerScrollObserver/index.js +17 -14
- package/src/devTools/index.js +54 -53
- package/src/env.js +2 -2
- package/src/layout-manager/src/LMEmitter.js +11 -11
- package/src/layout-manager/src/LMLogger.js +7 -0
- package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -0
- package/src/layout-manager/src/index.js +81 -58
- package/src/layout-manager/src/normalizeLayoutModel.js +3 -0
- package/src/metamodel/adaptable.metamodel.d.ts +177 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.js +8 -3
- package/src/migration/VersionUpgrade.js +1 -0
- package/src/migration/VersionUpgrade17.js +5 -6
- package/src/migration/VersionUpgrade20.js +4 -4
- package/src/migration/VersionUpgrade22.d.ts +21 -0
- package/src/migration/VersionUpgrade22.js +191 -0
- package/src/parser/src/ExpressionEvaluationError.js +1 -0
- package/src/types.d.ts +9 -7
- package/themes/dark.css +30 -30
- package/themes/light.css +4 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -633
- package/src/View/Alert/AlertEntityRow.d.ts +0 -11
- package/src/View/Alert/AlertEntityRow.js +0 -33
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -63
- package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
- package/src/View/Components/Buttons/ButtonFunction.js +0 -13
- package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonGeneral.js +0 -12
- package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -8
- package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShow.js +0 -12
- package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShowChart.js +0 -12
- package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonUndo.js +0 -12
- package/src/View/Components/ExpressionWizard.d.ts +0 -24
- package/src/View/Components/ExpressionWizard.js +0 -82
- package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
- package/src/View/Components/FilterForm/Waiting.js +0 -19
- package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
- package/src/View/Components/Panels/PanelFooter.js +0 -14
- package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
- package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -20
- package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -31
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
- package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -50
- package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
- package/src/View/Components/WizardSummaryRow.d.ts +0 -9
- package/src/View/Components/WizardSummaryRow.js +0 -16
- package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
- package/src/View/CustomSort/CustomSortSummary.js +0 -110
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -24
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -73
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -73
- package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
- package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -61
- package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
- package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -40
- package/src/View/Filter/FilterSummary.d.ts +0 -18
- package/src/View/Filter/FilterSummary.js +0 -53
- package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
- package/src/View/FormatColumn/FormatColumnSummary.js +0 -95
- package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -93
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -99
- package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
- package/src/View/PlusMinus/PlusMinusSummary.js +0 -100
- package/src/View/Wizard/WizardLegend.d.ts +0 -12
- package/src/View/Wizard/WizardLegend.js +0 -28
- /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/AdaptableRowContext.js} +0 -0
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormatColumnSummary = exports.FormatColumnSummaryComponent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
7
|
-
const react_redux_1 = require("react-redux");
|
|
8
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
9
|
-
const FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FormatColumnRedux"));
|
|
10
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
11
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
12
|
-
const ModuleHeader_1 = require("../Components/ModuleSummary/ModuleHeader");
|
|
13
|
-
const ModuleDetail_1 = require("../Components/ModuleSummary/ModuleDetail");
|
|
14
|
-
const ModuleProfile_1 = require("../Components/ModuleProfile");
|
|
15
|
-
const StyleVisualItem_1 = require("../Components/StyleVisualItem");
|
|
16
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
17
|
-
const UIHelper_1 = require("../UIHelper");
|
|
18
|
-
const FormatColumnWizard_1 = require("./Wizard/FormatColumnWizard");
|
|
19
|
-
class FormatColumnSummaryComponent extends React.Component {
|
|
20
|
-
constructor(props) {
|
|
21
|
-
super(props);
|
|
22
|
-
this.onFinishWizard = (formatColumn) => {
|
|
23
|
-
if (this.props.FormatColumns.find((x) => x.Uuid == formatColumn.Uuid)) {
|
|
24
|
-
this.props.onEditFormatColumn(formatColumn);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
this.props.onAddFormatColumn(formatColumn);
|
|
28
|
-
}
|
|
29
|
-
this.setState({
|
|
30
|
-
editedAdaptableObject: null,
|
|
31
|
-
wizardStartIndex: 0,
|
|
32
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
const [formatColumn] = this.props.api.formatColumnApi.getFormatColumnsForColumn(this.props.summarisedColumn);
|
|
39
|
-
let noFormatColumn = formatColumn == null;
|
|
40
|
-
let formatColumnRow;
|
|
41
|
-
if (noFormatColumn) {
|
|
42
|
-
formatColumnRow = (React.createElement(ModuleHeader_1.ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: 'No Format Column Set', onNew: () => this.onNew(), newButtonTooltip: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel }));
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
formatColumnRow = (React.createElement(ModuleDetail_1.ModuleDetail, { key: this.props.moduleInfo.FriendlyName, item1: React.createElement(ModuleProfile_1.ModuleProfile, { moduleInfo: this.props.moduleInfo }), item2: React.createElement(StyleVisualItem_1.StyleVisualItem, { Style: formatColumn.Style }), configEnity: formatColumn, showShare: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(formatColumn), onShare: (config) => this.props.onShare(formatColumn, config), onDelete: FormatColumnRedux.FormatColumnDelete(formatColumn), showBold: true, accessLevel: this.props.accessLevel }));
|
|
46
|
-
}
|
|
47
|
-
return (React.createElement("div", null,
|
|
48
|
-
formatColumnRow,
|
|
49
|
-
this.state.editedAdaptableObject && (React.createElement(FormatColumnWizard_1.FormatColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.FormatColumns, wizardStartIndex: this.state.wizardStartIndex, onCloseWizard: this.onCloseWizard, onFinishWizard: this.onFinishWizard }))));
|
|
50
|
-
}
|
|
51
|
-
onNew() {
|
|
52
|
-
let configEntity = ObjectFactory_1.ObjectFactory.CreateEmptyFormatColumn();
|
|
53
|
-
configEntity.Scope = {
|
|
54
|
-
ColumnIds: [this.props.summarisedColumn.columnId],
|
|
55
|
-
};
|
|
56
|
-
this.setState({
|
|
57
|
-
editedAdaptableObject: configEntity,
|
|
58
|
-
wizardStartIndex: 1,
|
|
59
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
onEdit(formatColumn) {
|
|
63
|
-
let clonedObject = Helper_1.Helper.cloneObject(formatColumn);
|
|
64
|
-
this.setState({
|
|
65
|
-
editedAdaptableObject: clonedObject,
|
|
66
|
-
wizardStartIndex: 1,
|
|
67
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
onCloseWizard() {
|
|
71
|
-
this?.setState?.({
|
|
72
|
-
editedAdaptableObject: null,
|
|
73
|
-
wizardStartIndex: 0,
|
|
74
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
canFinishWizard() {
|
|
78
|
-
let formatColumn = this.state.editedAdaptableObject;
|
|
79
|
-
return formatColumn.Scope != undefined && UIHelper_1.UIHelper.IsNotEmptyStyle(formatColumn.Style);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
exports.FormatColumnSummaryComponent = FormatColumnSummaryComponent;
|
|
83
|
-
function mapStateToProps(state, ownProps) {
|
|
84
|
-
return {
|
|
85
|
-
FormatColumns: state.FormatColumn.FormatColumns,
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
function mapDispatchToProps(dispatch) {
|
|
89
|
-
return {
|
|
90
|
-
onAddFormatColumn: (FormatColumn) => dispatch(FormatColumnRedux.FormatColumnAdd(FormatColumn)),
|
|
91
|
-
onEditFormatColumn: (FormatColumn) => dispatch(FormatColumnRedux.FormatColumnEdit(FormatColumn)),
|
|
92
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.FormatColumnModuleId, config)),
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
exports.FormatColumnSummary = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(FormatColumnSummaryComponent);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModuleSummaryProps } from '../Components/SharedProps/ModuleSummaryProps';
|
|
3
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
4
|
-
import * as FreeTextColumnRedux from '../../Redux/ActionsReducers/FreeTextColumnRedux';
|
|
5
|
-
import { FreeTextColumn } from '../../AdaptableState/FreeTextColumnState';
|
|
6
|
-
export interface FreeTextColumnSummaryProps extends ModuleSummaryProps<FreeTextColumnSummaryComponent> {
|
|
7
|
-
FreeTextColumns: FreeTextColumn[];
|
|
8
|
-
onAddFreeTextColumn: (FreeTextColumn: FreeTextColumn) => FreeTextColumnRedux.FreeTextColumnAddAction;
|
|
9
|
-
onEditFreeTextColumn: (FreeTextColumn: FreeTextColumn) => FreeTextColumnRedux.FreeTextColumnEditAction;
|
|
10
|
-
}
|
|
11
|
-
export declare class FreeTextColumnSummaryComponent extends React.Component<FreeTextColumnSummaryProps, EditableConfigEntityState> {
|
|
12
|
-
constructor(props: FreeTextColumnSummaryProps);
|
|
13
|
-
render(): any;
|
|
14
|
-
onNew(): void;
|
|
15
|
-
onEdit(FreeTextColumn: FreeTextColumn): void;
|
|
16
|
-
onCloseWizard(): void;
|
|
17
|
-
onFinishWizard: (FreeTextColumn: FreeTextColumn) => void;
|
|
18
|
-
canFinishWizard(): boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare let FreeTextColumnSummary: import("react-redux").ConnectedComponent<typeof FreeTextColumnSummaryComponent, {
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
}>;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FreeTextColumnSummary = exports.FreeTextColumnSummaryComponent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
7
|
-
const react_redux_1 = require("react-redux");
|
|
8
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
9
|
-
const FreeTextColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FreeTextColumnRedux"));
|
|
10
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
11
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
12
|
-
const ModuleDetail_1 = require("../Components/ModuleSummary/ModuleDetail");
|
|
13
|
-
const ModuleProfile_1 = require("../Components/ModuleProfile");
|
|
14
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
15
|
-
const UIHelper_1 = require("../UIHelper");
|
|
16
|
-
const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
|
|
17
|
-
const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
|
|
18
|
-
const FreeTextColumnWizard_1 = require("./Wizard/FreeTextColumnWizard");
|
|
19
|
-
class FreeTextColumnSummaryComponent extends React.Component {
|
|
20
|
-
constructor(props) {
|
|
21
|
-
super(props);
|
|
22
|
-
this.onFinishWizard = (FreeTextColumn) => {
|
|
23
|
-
if (this.props.FreeTextColumns.find((x) => x.ColumnId == FreeTextColumn.ColumnId)) {
|
|
24
|
-
this.props.onEditFreeTextColumn(FreeTextColumn);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
this.props.onAddFreeTextColumn(FreeTextColumn);
|
|
28
|
-
}
|
|
29
|
-
this.setState({
|
|
30
|
-
editedAdaptableObject: null,
|
|
31
|
-
wizardStartIndex: 0,
|
|
32
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
let freeTextColumn = this.props.FreeTextColumns.find((c) => c.ColumnId == this.props.summarisedColumn.columnId);
|
|
39
|
-
let noFreeTextColumn = freeTextColumn == null;
|
|
40
|
-
let FreeTextColumnRow;
|
|
41
|
-
if (!noFreeTextColumn) {
|
|
42
|
-
let description = ArrayExtensions_1.ArrayExtensions.IsNotEmpty(freeTextColumn.FreeTextStoredValues)
|
|
43
|
-
? ' Stored values: ' + freeTextColumn.FreeTextStoredValues.length
|
|
44
|
-
: 'No stored values';
|
|
45
|
-
FreeTextColumnRow = (React.createElement(ModuleDetail_1.ModuleDetail, { key: this.props.moduleInfo.FriendlyName, item1: React.createElement(ModuleProfile_1.ModuleProfile, { moduleInfo: this.props.moduleInfo }), item2: description, configEnity: freeTextColumn, showShare: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(freeTextColumn), onShare: (config) => this.props.onShare(freeTextColumn, config), onDelete: FreeTextColumnRedux.FreeTextColumnDelete(freeTextColumn), showBold: true, accessLevel: this.props.accessLevel }));
|
|
46
|
-
}
|
|
47
|
-
return (React.createElement("div", null,
|
|
48
|
-
FreeTextColumnRow,
|
|
49
|
-
this.state.editedAdaptableObject && (React.createElement(FreeTextColumnWizard_1.FreeTextColumnWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.FreeTextColumns, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
|
|
50
|
-
}
|
|
51
|
-
onNew() {
|
|
52
|
-
let configEntity = ObjectFactory_1.ObjectFactory.CreateEmptyFreeTextColumn(this.props.api.gridApi.internalApi.deriveSpecialColumnSettingsFromAgGridDefaultColDef());
|
|
53
|
-
configEntity.ColumnId = this.props.summarisedColumn.columnId;
|
|
54
|
-
this.setState({
|
|
55
|
-
editedAdaptableObject: configEntity,
|
|
56
|
-
wizardStartIndex: 1,
|
|
57
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
onEdit(FreeTextColumn) {
|
|
61
|
-
let clonedObject = Helper_1.Helper.cloneObject(FreeTextColumn);
|
|
62
|
-
this.setState({
|
|
63
|
-
editedAdaptableObject: clonedObject,
|
|
64
|
-
wizardStartIndex: 0,
|
|
65
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
onCloseWizard() {
|
|
69
|
-
this.setState({
|
|
70
|
-
editedAdaptableObject: null,
|
|
71
|
-
wizardStartIndex: 0,
|
|
72
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
canFinishWizard() {
|
|
76
|
-
let FreeTextColumn = this.state.editedAdaptableObject;
|
|
77
|
-
return StringExtensions_1.StringExtensions.IsNotNullOrEmpty(FreeTextColumn.ColumnId);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
exports.FreeTextColumnSummaryComponent = FreeTextColumnSummaryComponent;
|
|
81
|
-
function mapStateToProps(state, ownProps) {
|
|
82
|
-
return {
|
|
83
|
-
FreeTextColumns: state.FreeTextColumn.FreeTextColumns,
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function mapDispatchToProps(dispatch) {
|
|
87
|
-
return {
|
|
88
|
-
onAddFreeTextColumn: (FreeTextColumn) => dispatch(FreeTextColumnRedux.FreeTextColumnAdd(FreeTextColumn)),
|
|
89
|
-
onEditFreeTextColumn: (FreeTextColumn) => dispatch(FreeTextColumnRedux.FreeTextColumnEdit(FreeTextColumn)),
|
|
90
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.FreeTextColumnModuleId, config)),
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
exports.FreeTextColumnSummary = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(FreeTextColumnSummaryComponent);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
3
|
-
interface AdaptableOptionsComponentProps {
|
|
4
|
-
api: AdaptableApi;
|
|
5
|
-
}
|
|
6
|
-
export declare const AdaptableOptionsComponent: (props: AdaptableOptionsComponentProps) => React.JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdaptableOptionsComponent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const PanelWithButton_1 = require("../../Components/Panels/PanelWithButton");
|
|
8
|
-
const ButtonMinimise_1 = require("../../Components/Buttons/ButtonMinimise");
|
|
9
|
-
const ButtonMaximise_1 = require("../../Components/Buttons/ButtonMaximise");
|
|
10
|
-
const AdaptableObjectCollection_1 = require("../../Components/AdaptableObjectCollection");
|
|
11
|
-
const AdaptableObjectRow_1 = require("../../Components/AdaptableObjectRow");
|
|
12
|
-
const AdaptablePopover_1 = require("../../AdaptablePopover");
|
|
13
|
-
const Flex_1 = require("../../../components/Flex");
|
|
14
|
-
const AdaptableOptionsComponent = (props) => {
|
|
15
|
-
const { api } = props;
|
|
16
|
-
const getAdaptableOptionsColItems = () => [
|
|
17
|
-
{ Content: 'Property', Size: 5 },
|
|
18
|
-
{ Content: 'Value', Size: 5 },
|
|
19
|
-
{ Content: '', Size: 2 },
|
|
20
|
-
];
|
|
21
|
-
const formatOptionValue = (optionValue) => {
|
|
22
|
-
if (optionValue == undefined || optionValue == null) {
|
|
23
|
-
return 'None';
|
|
24
|
-
}
|
|
25
|
-
const optionValueType = typeof optionValue;
|
|
26
|
-
switch (optionValueType) {
|
|
27
|
-
case 'string':
|
|
28
|
-
case 'number':
|
|
29
|
-
case 'bigint':
|
|
30
|
-
return optionValue;
|
|
31
|
-
case 'boolean':
|
|
32
|
-
return optionValue ? 'True' : 'False';
|
|
33
|
-
case 'function':
|
|
34
|
-
return 'Function';
|
|
35
|
-
case 'object':
|
|
36
|
-
if (Array.isArray(optionValue)) {
|
|
37
|
-
return `[${optionValue
|
|
38
|
-
.map((optionValueItem) => formatOptionValue(optionValueItem))
|
|
39
|
-
.join(', ')}]`;
|
|
40
|
-
}
|
|
41
|
-
if (optionValue instanceof HTMLElement) {
|
|
42
|
-
return 'HTMLElement';
|
|
43
|
-
}
|
|
44
|
-
default:
|
|
45
|
-
// should never happen, but just in case, to avoid a react runtime error
|
|
46
|
-
return 'Complex value';
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const buildGridInfoOptionEntry = (gridInfoOption) => {
|
|
50
|
-
const colItems = getAdaptableOptionsColItems();
|
|
51
|
-
colItems[0].Content = gridInfoOption.name;
|
|
52
|
-
const formattedOptionValue = formatOptionValue(gridInfoOption.value);
|
|
53
|
-
const isUserDefinedValue = gridInfoOption.value !== gridInfoOption.defaultValue;
|
|
54
|
-
colItems[1].Content = isUserDefinedValue ? (React.createElement(React.Fragment, null,
|
|
55
|
-
React.createElement("span", { style: { fontWeight: 'bold' } }, formattedOptionValue),
|
|
56
|
-
React.createElement("span", { style: { fontStyle: 'italic' } },
|
|
57
|
-
' ',
|
|
58
|
-
"(Default: ",
|
|
59
|
-
formatOptionValue(gridInfoOption.defaultValue),
|
|
60
|
-
")"))) : (formattedOptionValue);
|
|
61
|
-
let infoButton = React.createElement(AdaptablePopover_1.AdaptablePopover, { headerText: null, bodyText: [gridInfoOption.description] });
|
|
62
|
-
colItems[2].Content = infoButton;
|
|
63
|
-
return colItems;
|
|
64
|
-
};
|
|
65
|
-
const buildGridInfoOptionComponentContainer = (containerContainerName, gridInfoOptionContainer) => {
|
|
66
|
-
const gridInfoOptionComponents = gridInfoOptionContainer.items.map((gridInfoOption) => {
|
|
67
|
-
const gridOptionColItems = buildGridInfoOptionEntry(gridInfoOption);
|
|
68
|
-
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { key: `${gridInfoOption.name}`, colItems: gridOptionColItems });
|
|
69
|
-
});
|
|
70
|
-
return (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: getAdaptableOptionsColItems(), items: gridInfoOptionComponents }));
|
|
71
|
-
};
|
|
72
|
-
const [gridInfoOptions, setGridInfoOptions] = (0, react_1.useState)();
|
|
73
|
-
const [gridInfoContainerComponents, setGridInfoContainerComponents] = (0, react_1.useState)();
|
|
74
|
-
(0, react_1.useEffect)(() => {
|
|
75
|
-
const gridInfoOptions = api.internalApi.getMetamodelService().getGridInfoOptions();
|
|
76
|
-
const gridInfoContainerComponentMap = new Map();
|
|
77
|
-
gridInfoOptions.forEach((gridInfoOptionContainer, containerName) => {
|
|
78
|
-
gridInfoContainerComponentMap.set(containerName, buildGridInfoOptionComponentContainer(containerName, gridInfoOptionContainer));
|
|
79
|
-
});
|
|
80
|
-
setGridInfoContainerComponents(gridInfoContainerComponentMap);
|
|
81
|
-
setGridInfoOptions(gridInfoOptions);
|
|
82
|
-
}, []);
|
|
83
|
-
const [expandedComponentContainer, setExpandedComponentContainer] = (0, react_1.useState)('');
|
|
84
|
-
return (React.createElement(Flex_1.Box, { className: "ab-AdaptableOptions twa:p-2", "data-name": "gridInfo-adaptableOptions-content" }, gridInfoOptions &&
|
|
85
|
-
Array.from(gridInfoOptions.entries()).map(([containerName, container]) => (React.createElement(OptionContainerComponent, { key: containerName, name: containerName, label: container.containerLabel, viewMode: containerName === expandedComponentContainer ? 'expanded' : 'collapsed', onViewModeChange: (newViewMode) => setExpandedComponentContainer(newViewMode === 'expanded' ? containerName : '') }, gridInfoContainerComponents.get(containerName))))));
|
|
86
|
-
};
|
|
87
|
-
exports.AdaptableOptionsComponent = AdaptableOptionsComponent;
|
|
88
|
-
const OptionContainerComponent = (props) => {
|
|
89
|
-
const { viewMode, name, label, onViewModeChange, children } = props;
|
|
90
|
-
const requestViewModeChange = () => {
|
|
91
|
-
onViewModeChange(viewMode === 'expanded' ? 'collapsed' : 'expanded');
|
|
92
|
-
};
|
|
93
|
-
const panelButton = viewMode === 'expanded' ? (React.createElement(ButtonMinimise_1.ButtonMinimise, { onClick: () => requestViewModeChange(), tooltip: `Hide ${label}` })) : (React.createElement(ButtonMaximise_1.ButtonMaximise, { onClick: () => requestViewModeChange(), tooltip: `Show ${label}` }));
|
|
94
|
-
return (React.createElement(PanelWithButton_1.PanelWithButton, { className: `ab-OptionsContainer options-container-${name} twa:mb-3`, variant: "default", headerText: label, headerProps: {
|
|
95
|
-
className: `twa:text-3 twa:cursor-pointer ${viewMode === 'expanded' ? 'twa:font-extrabold' : 'twa:font-normal'}`,
|
|
96
|
-
'data-name': `options-container-header-${name}`,
|
|
97
|
-
onClick: () => requestViewModeChange(),
|
|
98
|
-
}, button: panelButton }, viewMode === 'expanded' && children));
|
|
99
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModuleSummaryProps } from '../Components/SharedProps/ModuleSummaryProps';
|
|
3
|
-
import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
|
|
4
|
-
import * as PlusMinusRedux from '../../Redux/ActionsReducers/PlusMinusRedux';
|
|
5
|
-
import { PlusMinusNudge } from '../../AdaptableState/PlusMinusState';
|
|
6
|
-
export interface PlusMinusSummaryProps extends ModuleSummaryProps<PlusMinusSummaryComponent> {
|
|
7
|
-
PlusMinusNudges: PlusMinusNudge[];
|
|
8
|
-
onAddPlusMinusNudge: (PlusMinus: PlusMinusNudge) => PlusMinusRedux.PlusMinusNudgeAddAction;
|
|
9
|
-
onEditPlusMinusNudge: (PlusMinus: PlusMinusNudge) => PlusMinusRedux.PlusMinusNudgeEditAction;
|
|
10
|
-
}
|
|
11
|
-
export declare class PlusMinusSummaryComponent extends React.Component<PlusMinusSummaryProps, EditableConfigEntityState> {
|
|
12
|
-
constructor(props: PlusMinusSummaryProps);
|
|
13
|
-
render(): any;
|
|
14
|
-
onNew(): void;
|
|
15
|
-
onEdit(PlusMinus: PlusMinusNudge): void;
|
|
16
|
-
onCloseWizard(): void;
|
|
17
|
-
onFinishWizard(): void;
|
|
18
|
-
canFinishWizard(): boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare let PlusMinusSummary: import("react-redux").ConnectedComponent<typeof PlusMinusSummaryComponent, {
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
}>;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlusMinusSummary = exports.PlusMinusSummaryComponent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
|
|
7
|
-
const react_redux_1 = require("react-redux");
|
|
8
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
9
|
-
const PlusMinusRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PlusMinusRedux"));
|
|
10
|
-
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
11
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
12
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
13
|
-
const ModuleHeader_1 = require("../Components/ModuleSummary/ModuleHeader");
|
|
14
|
-
const ModuleDetail_1 = require("../Components/ModuleSummary/ModuleDetail");
|
|
15
|
-
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
16
|
-
const UIHelper_1 = require("../UIHelper");
|
|
17
|
-
const PlusMinusWizard_1 = require("./Wizard/PlusMinusWizard");
|
|
18
|
-
class PlusMinusSummaryComponent extends React.Component {
|
|
19
|
-
constructor(props) {
|
|
20
|
-
super(props);
|
|
21
|
-
this.state = UIHelper_1.UIHelper.getEmptyConfigState();
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
let moduleSummaries = [];
|
|
25
|
-
// title row
|
|
26
|
-
let titleRow = (React.createElement(ModuleHeader_1.ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: Helper_1.Helper.returnItemCount(this.props.PlusMinusNudges.filter((item) => this.props.api.columnScopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)), this.props.moduleInfo.FriendlyName), onNew: () => this.onNew(), newButtonTooltip: 'Plus / Minus Rule', accessLevel: this.props.accessLevel }));
|
|
27
|
-
moduleSummaries.push(titleRow);
|
|
28
|
-
// existing items
|
|
29
|
-
this.props.PlusMinusNudges.map((item, index) => {
|
|
30
|
-
if (this.props.api.columnScopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)) {
|
|
31
|
-
let detailRow = (React.createElement(ModuleDetail_1.ModuleDetail, { key: 'PM' + index, item1: 'Nudge Value: ' + item.NudgeValue, item2: item.Rule?.BooleanExpression ? item.Rule.BooleanExpression : 'Always', configEnity: item, showShare: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(item), onShare: (config) => this.props.onShare(item, config), onDelete: PlusMinusRedux.PlusMinusNudgeDelete(item), accessLevel: this.props.accessLevel }));
|
|
32
|
-
moduleSummaries.push(detailRow);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
return (React.createElement("div", null,
|
|
36
|
-
moduleSummaries,
|
|
37
|
-
this.state.editedAdaptableObject && (React.createElement(PlusMinusWizard_1.PlusMinusWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: null, wizardStartIndex: this.state.wizardStartIndex, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: () => this.onFinishWizard() }))));
|
|
38
|
-
}
|
|
39
|
-
onNew() {
|
|
40
|
-
let configEntity = ObjectFactory_1.ObjectFactory.CreateEmptyPlusMinusNudge();
|
|
41
|
-
configEntity.Scope = {
|
|
42
|
-
ColumnIds: [this.props.summarisedColumn.columnId],
|
|
43
|
-
};
|
|
44
|
-
this.setState({
|
|
45
|
-
editedAdaptableObject: configEntity,
|
|
46
|
-
wizardStartIndex: 1,
|
|
47
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
onEdit(PlusMinus) {
|
|
51
|
-
this.setState({
|
|
52
|
-
editedAdaptableObject: Helper_1.Helper.cloneObject(PlusMinus),
|
|
53
|
-
wizardStartIndex: 1,
|
|
54
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
onCloseWizard() {
|
|
58
|
-
this.setState({
|
|
59
|
-
editedAdaptableObject: null,
|
|
60
|
-
wizardStartIndex: 0,
|
|
61
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
onFinishWizard() {
|
|
65
|
-
let plusMinusNudge = this.state.editedAdaptableObject;
|
|
66
|
-
if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
|
|
67
|
-
this.props.onEditPlusMinusNudge(plusMinusNudge);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
this.props.onAddPlusMinusNudge(plusMinusNudge);
|
|
71
|
-
}
|
|
72
|
-
this.setState({
|
|
73
|
-
editedAdaptableObject: null,
|
|
74
|
-
wizardStartIndex: 0,
|
|
75
|
-
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
canFinishWizard() {
|
|
79
|
-
let plusMinus = this.state.editedAdaptableObject;
|
|
80
|
-
if (!plusMinus.NudgeValue) {
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
exports.PlusMinusSummaryComponent = PlusMinusSummaryComponent;
|
|
87
|
-
function mapStateToProps(state, ownProps) {
|
|
88
|
-
return {
|
|
89
|
-
PlusMinusNudges: state.PlusMinus.PlusMinusNudges,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
function mapDispatchToProps(dispatch) {
|
|
93
|
-
return {
|
|
94
|
-
onAddPlusMinusNudge: (PlusMinusNudge) => dispatch(PlusMinusRedux.PlusMinusNudgeAdd(PlusMinusNudge)),
|
|
95
|
-
onEditPlusMinusNudge: (PlusMinusNudge) => dispatch(PlusMinusRedux.PlusMinusNudgeEdit(PlusMinusNudge)),
|
|
96
|
-
onClearPopupParams: () => dispatch(PopupRedux.PopupClearParam()),
|
|
97
|
-
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.PlusMinusModuleId, config)),
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
exports.PlusMinusSummary = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(PlusMinusSummaryComponent);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface WizardLegendProps extends React.ClassAttributes<WizardLegend> {
|
|
3
|
-
StepNames: string[];
|
|
4
|
-
ActiveStepName: string;
|
|
5
|
-
FriendlyName: string;
|
|
6
|
-
CanShowAllSteps: boolean;
|
|
7
|
-
onStepButtonClicked: (stepName: string) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare class WizardLegend extends React.Component<WizardLegendProps, {}> {
|
|
10
|
-
render(): any;
|
|
11
|
-
private onStepButtonClicked;
|
|
12
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WizardLegend = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
7
|
-
const Flex_1 = require("../../components/Flex");
|
|
8
|
-
class WizardLegend extends React.Component {
|
|
9
|
-
render() {
|
|
10
|
-
let count = this.props.StepNames.length - 1;
|
|
11
|
-
let activeStepIndex = this.props.StepNames.findIndex((s) => s == this.props.ActiveStepName);
|
|
12
|
-
let stepButtons = this.props.StepNames.map((s, index) => {
|
|
13
|
-
let isActiveStep = index == activeStepIndex;
|
|
14
|
-
let isDisabled = this.props.CanShowAllSteps
|
|
15
|
-
? false
|
|
16
|
-
: isActiveStep || index > activeStepIndex;
|
|
17
|
-
let lastStep = index == count;
|
|
18
|
-
return (React.createElement("div", { className: "ab-WizardLegend__step twa:inline-block", "data-name": s, key: index },
|
|
19
|
-
React.createElement(SimpleButton_1.default, { variant: isActiveStep ? 'raised' : 'outlined', tone: isActiveStep ? 'accent' : 'neutral', disabled: isDisabled, onClick: () => this.onStepButtonClicked(s) }, s),
|
|
20
|
-
lastStep == false && (React.createElement(Flex_1.Box, { "data-name": "separator", className: "ab-WizardLegend__step__separator twa:mx-2 twa:inline-block" }, "\u2014"))));
|
|
21
|
-
});
|
|
22
|
-
return React.createElement("div", null, stepButtons);
|
|
23
|
-
}
|
|
24
|
-
onStepButtonClicked(stepName) {
|
|
25
|
-
this.props.onStepButtonClicked(stepName);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.WizardLegend = WizardLegend;
|
|
File without changes
|