@adaptabletools/adaptable-cjs 22.0.0-canary.1 → 22.0.0-canary.11
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 +27 -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 +11 -10
- package/src/Api/Implementation/GridApiImpl.js +38 -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
|
@@ -39,11 +39,11 @@ const DataTableEditor = ({ fields, dataFormatter, data: initialData, type = 'col
|
|
|
39
39
|
hasFriendlyNames && (React.createElement(CheckBox_1.CheckBox, { checked: showColumnIds, onChange: (checked) => setShowValues(checked), style: {
|
|
40
40
|
float: 'right',
|
|
41
41
|
margin: 0,
|
|
42
|
-
paddingTop: 'var(--ab-space
|
|
43
|
-
paddingBottom: 'var(--ab-space
|
|
42
|
+
paddingTop: 'var(--ab-base-space)',
|
|
43
|
+
paddingBottom: 'var(--ab-base-space)',
|
|
44
44
|
} }, labels?.showIds ?? 'Show Column IDs')),
|
|
45
45
|
React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { value: searchInputValue, OnTextChange: setSearchInputValue, placeholder: labels?.filterPlaceholder ?? 'Filter columns...', style: { flex: 1, marginBottom: 3 } })),
|
|
46
|
-
React.createElement(FormLayout_1.default, { className: "ab-ExpressionEditor__columns", gridColumnGap: "var(--ab-space
|
|
46
|
+
React.createElement(FormLayout_1.default, { className: "ab-ExpressionEditor__columns", gridColumnGap: "var(--ab-base-space)", gridRowGap: "var(--ab-base-space)", sizes: ['auto', '1fr'], style: { alignItems: 'stretch', overflow: 'auto' } }, fields
|
|
47
47
|
.filter((field) => {
|
|
48
48
|
if (!searchInputValue) {
|
|
49
49
|
return true;
|
|
@@ -6,7 +6,6 @@ const react_1 = require("react");
|
|
|
6
6
|
const BaseEditorInput_1 = require("./BaseEditorInput");
|
|
7
7
|
const editorButtonsSearch_1 = require("./editorButtonsSearch");
|
|
8
8
|
const EditorContext_1 = require("./EditorContext");
|
|
9
|
-
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
10
9
|
const editorButtonsAggregatedScalar_1 = require("./editorButtonsAggregatedScalar");
|
|
11
10
|
const aggregatedScalarExpressionFunctions_1 = require("../../Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions");
|
|
12
11
|
const editorButtonsCumulativeAggregatedScalar_1 = require("./editorButtonsCumulativeAggregatedScalar");
|
|
@@ -52,8 +51,25 @@ function EditorInput(props) {
|
|
|
52
51
|
};
|
|
53
52
|
}, [props.type]);
|
|
54
53
|
const { setSelectedFunction } = (0, EditorContext_1.useExpressionEditor)();
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
let queryName;
|
|
55
|
+
switch (props.type) {
|
|
56
|
+
case 'boolean':
|
|
57
|
+
queryName = 'Create an Expression that returns true / false';
|
|
58
|
+
break;
|
|
59
|
+
case 'scalar':
|
|
60
|
+
queryName = "Create an Expression that returns a single value of any type";
|
|
61
|
+
break;
|
|
62
|
+
case 'aggregatedScalar':
|
|
63
|
+
queryName = "Create an Expression that evaluates multiple rows and returns a value of any type";
|
|
64
|
+
break;
|
|
65
|
+
case 'cumulativeAggregatedScalar':
|
|
66
|
+
queryName = "Create a Cumulative Expression";
|
|
67
|
+
break;
|
|
68
|
+
case 'quantileAggregatedScalar':
|
|
69
|
+
queryName = "Create a Quantile Expression";
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
return (React.createElement(BaseEditorInput_1.BaseEditorInput, { type: 'main', value: props.value, placeholder: queryName, onChange: props.onChange, onSelectedFunctionChange: setSelectedFunction, expressionFunctions: expressionFunctions, editorButtons: props.type === 'aggregatedScalar'
|
|
57
73
|
? editorButtonsAggregatedScalar_1.editorButtonsAggregatedScalar
|
|
58
74
|
: props.type === 'cumulativeAggregatedScalar'
|
|
59
75
|
? editorButtonsCumulativeAggregatedScalar_1.editorButtonsCumulativeAggregatedScalar
|
|
@@ -19,6 +19,6 @@ const ExpressionFunctionDocumentation = (props) => {
|
|
|
19
19
|
React.createElement("pre", { className: signatureClassName }, example))))))),
|
|
20
20
|
props.expressionFunction.returnType && (React.createElement(Flex_1.Box, { "data-name": "expression-editor-documentation-examples" },
|
|
21
21
|
React.createElement("b", null, "Return Type"),
|
|
22
|
-
React.createElement(Tag_1.Tag, { className: "twa:bg-accentlight twa:text-accent twa:ml-3 twa:rounded-full" }, props.expressionFunction.returnType))))) : null;
|
|
22
|
+
React.createElement(Tag_1.Tag, { className: "twa:bg-accentlight twa:text-accent twa:ml-3 twa:rounded-full twa:py-1" }, props.expressionFunction.returnType))))) : null;
|
|
23
23
|
};
|
|
24
24
|
exports.ExpressionFunctionDocumentation = ExpressionFunctionDocumentation;
|
|
@@ -18,7 +18,7 @@ const defaultColumns = {
|
|
|
18
18
|
};
|
|
19
19
|
const PLACEHOLDER = React.createElement("div", null);
|
|
20
20
|
const FormLayout = (props) => {
|
|
21
|
-
let { placeholder = PLACEHOLDER, columns = ['label', 'children'], defaultComponent = Flex_1.Box, sizes = ['auto', '1fr'], gridColumnGap = 'var(--ab-space
|
|
21
|
+
let { placeholder = PLACEHOLDER, columns = ['label', 'children'], defaultComponent = Flex_1.Box, sizes = ['auto', '1fr'], gridColumnGap = 'calc(var(--ab-base-space) * 2)', gridRowGap = 'calc(var(--ab-base-space) * 2)', style, childrenToColumns = true, ...boxProps } = props;
|
|
22
22
|
columns = columns.map((c) => {
|
|
23
23
|
if (typeof c === 'string' || typeof c === 'number') {
|
|
24
24
|
c = {
|
|
@@ -159,7 +159,7 @@ const OverlayTrigger = React.forwardRef((givenProps, ref) => {
|
|
|
159
159
|
target = targetProp(target);
|
|
160
160
|
}
|
|
161
161
|
if (!target) {
|
|
162
|
-
adaptable.logger.warn('
|
|
162
|
+
adaptable.logger.warn('OverlayTrigger target not found. Ensure a child element is rendered inside the OverlayTrigger component.');
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
165
|
targetRef.current = target;
|
|
@@ -119,6 +119,7 @@ const doesOptionMatchValue = function (value) {
|
|
|
119
119
|
};
|
|
120
120
|
const Select = function (props) {
|
|
121
121
|
let maxLabelLength = 0;
|
|
122
|
+
const inputId = (0, react_1.useId)();
|
|
122
123
|
const computedCSSVars = (0, AdaptableComputedCSSVarsContext_1.useAdaptableComputedCSSVars)();
|
|
123
124
|
const CSS_VARS_VALUES = {
|
|
124
125
|
'--ab-cmp-select-menu__max-width': computedCSSVars['--ab-cmp-select-menu__max-width'] || '60vw',
|
|
@@ -130,14 +131,15 @@ const Select = function (props) {
|
|
|
130
131
|
// relevant for menulist search only
|
|
131
132
|
const menulistInputRef = React.useRef(null);
|
|
132
133
|
const [isSelectMenuOpen, setIsSelectMenuOpen] = (0, react_1.useState)(false);
|
|
133
|
-
const
|
|
134
|
+
const propsOnMenuOpen = props.onMenuOpen;
|
|
135
|
+
const openSelectMenu = React.useCallback(() => {
|
|
134
136
|
setIsSelectMenuOpen(true);
|
|
135
137
|
// it's a react-select bug, onMenuOpen is not called with controlled menuIsOpen
|
|
136
|
-
|
|
137
|
-
};
|
|
138
|
-
const closeSelectMenu = () => {
|
|
138
|
+
propsOnMenuOpen?.();
|
|
139
|
+
}, [propsOnMenuOpen]);
|
|
140
|
+
const closeSelectMenu = React.useCallback(() => {
|
|
139
141
|
setIsSelectMenuOpen(false);
|
|
140
|
-
};
|
|
142
|
+
}, []);
|
|
141
143
|
const ref = React.useRef(null);
|
|
142
144
|
const valueToOptionMap = new Map((props.options || []).map((opt) => {
|
|
143
145
|
let label = opt.label;
|
|
@@ -203,6 +205,18 @@ const Select = function (props) {
|
|
|
203
205
|
/**
|
|
204
206
|
* If on each render a new reference is passed, the menu will not open using the keyboard.
|
|
205
207
|
*/
|
|
208
|
+
/**
|
|
209
|
+
* Use refs for isSelectMenuOpen, openSelectMenu, and closeSelectMenu so that
|
|
210
|
+
* SelectContainer is stable across re-renders. If SelectContainer gets a new
|
|
211
|
+
* reference when menu opens/closes, react-select recreates its internal
|
|
212
|
+
* component tree, the DummyInput is removed from DOM, and focus is lost.
|
|
213
|
+
*/
|
|
214
|
+
const isSelectMenuOpenRef = React.useRef(isSelectMenuOpen);
|
|
215
|
+
isSelectMenuOpenRef.current = isSelectMenuOpen;
|
|
216
|
+
const openSelectMenuRef = React.useRef(openSelectMenu);
|
|
217
|
+
openSelectMenuRef.current = openSelectMenu;
|
|
218
|
+
const closeSelectMenuRef = React.useRef(closeSelectMenu);
|
|
219
|
+
closeSelectMenuRef.current = closeSelectMenu;
|
|
206
220
|
const SelectContainer = React.useMemo(() => {
|
|
207
221
|
return (selectContainerProps) => {
|
|
208
222
|
return (React.createElement(react_select_1.components.SelectContainer, { ...selectContainerProps, innerProps: {
|
|
@@ -215,15 +229,50 @@ const Select = function (props) {
|
|
|
215
229
|
if (!searchableInMenulist) {
|
|
216
230
|
return;
|
|
217
231
|
}
|
|
218
|
-
if (!
|
|
219
|
-
|
|
232
|
+
if (!isSelectMenuOpenRef.current) {
|
|
233
|
+
openSelectMenuRef.current();
|
|
220
234
|
e.stopPropagation();
|
|
221
235
|
e.preventDefault();
|
|
222
236
|
}
|
|
223
237
|
},
|
|
238
|
+
onKeyDownCapture: (e) => {
|
|
239
|
+
if (!searchableInMenulist) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
if (isSelectMenuOpenRef.current) {
|
|
243
|
+
if (e.key === 'Escape') {
|
|
244
|
+
closeSelectMenuRef.current();
|
|
245
|
+
e.stopPropagation();
|
|
246
|
+
e.preventDefault();
|
|
247
|
+
e.nativeEvent.stopImmediatePropagation();
|
|
248
|
+
// we do this because the focus is lost when the menu is closed
|
|
249
|
+
// and document.body is set as the active element
|
|
250
|
+
requestAnimationFrame(() => {
|
|
251
|
+
document.getElementById(inputId)?.focus();
|
|
252
|
+
// we need to do it again
|
|
253
|
+
// also don't store a ref to the input element
|
|
254
|
+
// but query the DOM again
|
|
255
|
+
// as the old ref is no longer in the DOM
|
|
256
|
+
// because of a react-select bug I presume
|
|
257
|
+
requestAnimationFrame(() => {
|
|
258
|
+
document.getElementById(inputId)?.focus();
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
// open the menu
|
|
265
|
+
if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {
|
|
266
|
+
openSelectMenuRef.current();
|
|
267
|
+
e.stopPropagation();
|
|
268
|
+
e.preventDefault();
|
|
269
|
+
e.nativeEvent.stopImmediatePropagation();
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
224
273
|
} }));
|
|
225
274
|
};
|
|
226
|
-
}, [
|
|
275
|
+
}, [searchableInMenulist]);
|
|
227
276
|
const resizable = props.resizable ?? false;
|
|
228
277
|
const ValueContainer = React.useMemo(() => {
|
|
229
278
|
return (props) => {
|
|
@@ -525,11 +574,25 @@ const Select = function (props) {
|
|
|
525
574
|
setInputValue(value);
|
|
526
575
|
props.onInputChange?.(value);
|
|
527
576
|
}, [props.onInputChange, isMulti]);
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
577
|
+
/**
|
|
578
|
+
* Use refs for selectedOption and renderSingleValue so that the
|
|
579
|
+
* SingleValue component function is stable across re-renders.
|
|
580
|
+
* If SingleValue gets a new reference on each render, selectComponents changes,
|
|
581
|
+
* react-select recreates its internal component tree, the DummyInput is removed
|
|
582
|
+
* from DOM, and focus is lost (the keyboard stops working).
|
|
583
|
+
* See the comment above SelectContainer about this exact issue.
|
|
584
|
+
*/
|
|
585
|
+
const selectedOptionRef = React.useRef(selectedOption);
|
|
586
|
+
selectedOptionRef.current = selectedOption;
|
|
587
|
+
const renderSingleValueRef = React.useRef(props.renderSingleValue);
|
|
588
|
+
renderSingleValueRef.current = props.renderSingleValue;
|
|
589
|
+
const SingleValue = React.useMemo(() => {
|
|
590
|
+
return (singleValueProps) => {
|
|
591
|
+
return (React.createElement(react_select_1.components.SingleValue, { ...singleValueProps }, renderSingleValueRef.current
|
|
592
|
+
? renderSingleValueRef.current(selectedOptionRef.current)
|
|
593
|
+
: singleValueProps.children));
|
|
594
|
+
};
|
|
595
|
+
}, []);
|
|
533
596
|
const selectComponents = (0, react_1.useMemo)(() => {
|
|
534
597
|
return {
|
|
535
598
|
SelectContainer,
|
|
@@ -550,7 +613,7 @@ const Select = function (props) {
|
|
|
550
613
|
MenuList,
|
|
551
614
|
]);
|
|
552
615
|
return (React.createElement(React.Fragment, null,
|
|
553
|
-
React.createElement(SelectComponent, { ref: ref, openMenuOnClick: searchableInMenulist ? false : undefined, openMenuOnFocus: searchableInMenulist ? false : undefined, menuIsOpen: searchableInMenulist ? isSelectMenuOpen : undefined, isSearchable: searchableInline, "aria-label": props['aria-label'], onKeyDown: props.onKeyDown, inputValue: inputValue, onInputChange: onInputChange, onFocus: onFocus, onBlur: onBlur, onMenuOpen: props.onMenuOpen, isLoading: props.isLoading, options: props.options, className: (0, clsx_1.default)(props.className, 'ab-Select'), isDisabled: disabled, menuPlacement: props.menuPlacement ?? 'auto', hideSelectedOptions: false, isMulti: isMulti, value: selectedOption, blurInputOnSelect: false, menuPosition: props.menuPosition ?? 'absolute',
|
|
616
|
+
React.createElement(SelectComponent, { ref: ref, openMenuOnClick: searchableInMenulist ? false : undefined, openMenuOnFocus: searchableInMenulist ? false : undefined, menuIsOpen: searchableInMenulist ? isSelectMenuOpen : undefined, isSearchable: searchableInline, "aria-label": props['aria-label'], onKeyDown: props.onKeyDown, inputValue: inputValue, inputId: inputId, onInputChange: onInputChange, onFocus: onFocus, onBlur: onBlur, onMenuOpen: props.onMenuOpen, isLoading: props.isLoading, options: props.options, className: (0, clsx_1.default)(props.className, 'ab-Select'), isDisabled: disabled, menuPlacement: props.menuPlacement ?? 'auto', hideSelectedOptions: false, isMulti: isMulti, value: selectedOption, blurInputOnSelect: false, menuPosition: props.menuPosition ?? 'absolute',
|
|
554
617
|
// This needed so the menu is not clipped by overflow: hidden
|
|
555
618
|
menuPortalTarget: (0, OverlayTrigger_1.ensurePortalElement)(), isClearable: props.isClearable, closeMenuOnSelect: props.closeMenuOnSelect, onChange: (option) => {
|
|
556
619
|
if (isMulti) {
|
|
@@ -640,7 +703,7 @@ const Select = function (props) {
|
|
|
640
703
|
valueContainer: (baseStyle) => {
|
|
641
704
|
return {
|
|
642
705
|
...baseStyle,
|
|
643
|
-
padding: props.size === 'small' ? `0 var(--ab-space
|
|
706
|
+
padding: props.size === 'small' ? `0 var(--ab-base-space)` : baseStyle.padding,
|
|
644
707
|
...props.styles?.valueContainer,
|
|
645
708
|
};
|
|
646
709
|
},
|
|
@@ -226,7 +226,7 @@ function TreeDropdown(props) {
|
|
|
226
226
|
};
|
|
227
227
|
if (!hasChildren) {
|
|
228
228
|
// @ts-ignore - don't leave any space for the > expand icon, as there are no children
|
|
229
|
-
treeListStyle['--infinite-group-row-column-nesting'] = 'var(--ab-space
|
|
229
|
+
treeListStyle['--infinite-group-row-column-nesting'] = 'calc(var(--ab-base-space) * 2)';
|
|
230
230
|
}
|
|
231
231
|
const treeList = (React.createElement(TreeList_1.TreeList, { primaryKey: props.primaryKey ?? 'id', treeFilterFunction: filterFunction, columnHeaderHeight: 30, onReady: ({ api }) => {
|
|
232
232
|
setTreeListApi(api);
|
|
@@ -254,7 +254,7 @@ function TreeDropdown(props) {
|
|
|
254
254
|
} }, children));
|
|
255
255
|
} },
|
|
256
256
|
React.createElement(FieldWrap_1.default, { style: props.fieldStyle, className: "twa:w-full" },
|
|
257
|
-
React.createElement(Input_1.default, { type: "text", readOnly: true, "data-name": "Select Values", placeholder: props.placeholder ?? 'Select a value', className: `twa:w-full ${props.clearable ? 'twa:pr-0' : ''}`, value: props.toDisplayValue ? props.toDisplayValue(value) : toDisplayValueDefault(value), onFocus: () => {
|
|
257
|
+
React.createElement(Input_1.default, { type: "text", readOnly: true, "data-name": "Select Values", "aria-expanded": visible, placeholder: props.placeholder ?? 'Select a value', className: `twa:w-full ${props.clearable ? 'twa:pr-0' : ''}`, value: props.toDisplayValue ? props.toDisplayValue(value) : toDisplayValueDefault(value), onFocus: () => {
|
|
258
258
|
if (!visible) {
|
|
259
259
|
setVisible(true);
|
|
260
260
|
}
|
|
@@ -3,21 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useContainerScrollObserver = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
class SectionSelector {
|
|
6
|
+
scrollTop = 0;
|
|
7
|
+
node;
|
|
8
|
+
boxHeight;
|
|
9
|
+
childrenHeights = [];
|
|
10
|
+
maxScrollTop;
|
|
6
11
|
constructor(node) {
|
|
7
|
-
this.scrollTop = 0;
|
|
8
|
-
this.childrenHeights = [];
|
|
9
|
-
this.select = (scrollTop) => {
|
|
10
|
-
this.refreshFromDOM();
|
|
11
|
-
const relativeCurrentHeight = (scrollTop * this.boxHeight) / this.maxScrollTop;
|
|
12
|
-
let heightSum = 0;
|
|
13
|
-
for (let i = 0, len = this.childrenHeights.length; i < len; i++) {
|
|
14
|
-
heightSum += this.childrenHeights[i];
|
|
15
|
-
if (heightSum > relativeCurrentHeight) {
|
|
16
|
-
return i;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return this.childrenHeights.length - 1;
|
|
20
|
-
};
|
|
21
12
|
this.node = node;
|
|
22
13
|
this.refreshFromDOM();
|
|
23
14
|
}
|
|
@@ -36,6 +27,18 @@ class SectionSelector {
|
|
|
36
27
|
height,
|
|
37
28
|
};
|
|
38
29
|
}
|
|
30
|
+
select = (scrollTop) => {
|
|
31
|
+
this.refreshFromDOM();
|
|
32
|
+
const relativeCurrentHeight = (scrollTop * this.boxHeight) / this.maxScrollTop;
|
|
33
|
+
let heightSum = 0;
|
|
34
|
+
for (let i = 0, len = this.childrenHeights.length; i < len; i++) {
|
|
35
|
+
heightSum += this.childrenHeights[i];
|
|
36
|
+
if (heightSum > relativeCurrentHeight) {
|
|
37
|
+
return i;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return this.childrenHeights.length - 1;
|
|
41
|
+
};
|
|
39
42
|
}
|
|
40
43
|
const useContainerScrollObserver = (callback) => {
|
|
41
44
|
const containerNodeRef = (0, react_1.useRef)(null);
|
package/src/devTools/index.js
CHANGED
|
@@ -27,66 +27,32 @@ function getColor(identifier) {
|
|
|
27
27
|
return color;
|
|
28
28
|
}
|
|
29
29
|
class DevToolsMarker {
|
|
30
|
+
adaptableId;
|
|
30
31
|
static create(adaptableId) {
|
|
31
32
|
return new DevToolsMarker(adaptableId);
|
|
32
33
|
}
|
|
34
|
+
markerDetails = {
|
|
35
|
+
label: '',
|
|
36
|
+
track: '',
|
|
37
|
+
trackGroup: undefined,
|
|
38
|
+
color: undefined,
|
|
39
|
+
details: [],
|
|
40
|
+
tooltip: undefined,
|
|
41
|
+
};
|
|
42
|
+
stopped = false;
|
|
33
43
|
constructor(adaptableId) {
|
|
34
44
|
this.adaptableId = adaptableId;
|
|
35
|
-
this.markerDetails = {
|
|
36
|
-
label: '',
|
|
37
|
-
track: '',
|
|
38
|
-
trackGroup: undefined,
|
|
39
|
-
color: undefined,
|
|
40
|
-
details: [],
|
|
41
|
-
tooltip: undefined,
|
|
42
|
-
};
|
|
43
|
-
this.stopped = false;
|
|
44
|
-
this.start = (startDetails) => {
|
|
45
|
-
if (this.markerDetails.startTs) {
|
|
46
|
-
return this;
|
|
47
|
-
}
|
|
48
|
-
const start = performance.now();
|
|
49
|
-
this.markerDetails.details = startDetails?.details ?? [];
|
|
50
|
-
this.markerDetails.startTs = start;
|
|
51
|
-
return this;
|
|
52
|
-
};
|
|
53
|
-
this.end = (markerDetails = {}) => {
|
|
54
|
-
if (this.stopped) {
|
|
55
|
-
return this;
|
|
56
|
-
}
|
|
57
|
-
this.stopped = true;
|
|
58
|
-
const start = markerDetails.startTs ?? this.markerDetails.startTs;
|
|
59
|
-
const end = markerDetails.endTs ?? this.markerDetails.endTs ?? performance.now();
|
|
60
|
-
let color = markerDetails.color || this.markerDetails.color || '';
|
|
61
|
-
const trackGroup = markerDetails.trackGroup ||
|
|
62
|
-
this.markerDetails.trackGroup ||
|
|
63
|
-
`AdapTable (${this.adaptableId})`;
|
|
64
|
-
const details = [...(this.markerDetails.details || []), ...(markerDetails.details || [])];
|
|
65
|
-
const tooltip = markerDetails.tooltip || this.markerDetails.tooltip;
|
|
66
|
-
const label = markerDetails.label || this.markerDetails.label || 'Unknown';
|
|
67
|
-
const track = markerDetails.track || this.markerDetails.track || 'Unknown';
|
|
68
|
-
if (!color) {
|
|
69
|
-
const identifier = `${trackGroup}:${track}:${label}`;
|
|
70
|
-
color = getColor(identifier);
|
|
71
|
-
}
|
|
72
|
-
performance.measure(label, {
|
|
73
|
-
start,
|
|
74
|
-
end,
|
|
75
|
-
detail: {
|
|
76
|
-
devtools: {
|
|
77
|
-
dataType: 'track-entry',
|
|
78
|
-
trackGroup,
|
|
79
|
-
track,
|
|
80
|
-
color: color || 'primary',
|
|
81
|
-
properties: details.length > 0 ? details.map((detail) => [detail.name, detail.value]) : undefined,
|
|
82
|
-
tooltipText: tooltip,
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
return this;
|
|
87
|
-
};
|
|
88
45
|
this.adaptableId = adaptableId;
|
|
89
46
|
}
|
|
47
|
+
start = (startDetails) => {
|
|
48
|
+
if (this.markerDetails.startTs) {
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
const start = performance.now();
|
|
52
|
+
this.markerDetails.details = startDetails?.details ?? [];
|
|
53
|
+
this.markerDetails.startTs = start;
|
|
54
|
+
return this;
|
|
55
|
+
};
|
|
90
56
|
get startTimestamp() {
|
|
91
57
|
return this.markerDetails.startTs;
|
|
92
58
|
}
|
|
@@ -136,6 +102,41 @@ class DevToolsMarker {
|
|
|
136
102
|
return acc;
|
|
137
103
|
}, {});
|
|
138
104
|
}
|
|
105
|
+
end = (markerDetails = {}) => {
|
|
106
|
+
if (this.stopped) {
|
|
107
|
+
return this;
|
|
108
|
+
}
|
|
109
|
+
this.stopped = true;
|
|
110
|
+
const start = markerDetails.startTs ?? this.markerDetails.startTs;
|
|
111
|
+
const end = markerDetails.endTs ?? this.markerDetails.endTs ?? performance.now();
|
|
112
|
+
let color = markerDetails.color || this.markerDetails.color || '';
|
|
113
|
+
const trackGroup = markerDetails.trackGroup ||
|
|
114
|
+
this.markerDetails.trackGroup ||
|
|
115
|
+
`AdapTable (${this.adaptableId})`;
|
|
116
|
+
const details = [...(this.markerDetails.details || []), ...(markerDetails.details || [])];
|
|
117
|
+
const tooltip = markerDetails.tooltip || this.markerDetails.tooltip;
|
|
118
|
+
const label = markerDetails.label || this.markerDetails.label || 'Unknown';
|
|
119
|
+
const track = markerDetails.track || this.markerDetails.track || 'Unknown';
|
|
120
|
+
if (!color) {
|
|
121
|
+
const identifier = `${trackGroup}:${track}:${label}`;
|
|
122
|
+
color = getColor(identifier);
|
|
123
|
+
}
|
|
124
|
+
performance.measure(label, {
|
|
125
|
+
start,
|
|
126
|
+
end,
|
|
127
|
+
detail: {
|
|
128
|
+
devtools: {
|
|
129
|
+
dataType: 'track-entry',
|
|
130
|
+
trackGroup,
|
|
131
|
+
track,
|
|
132
|
+
color: color || 'primary',
|
|
133
|
+
properties: details.length > 0 ? details.map((detail) => [detail.name, detail.value]) : undefined,
|
|
134
|
+
tooltipText: tooltip,
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
return this;
|
|
139
|
+
};
|
|
139
140
|
}
|
|
140
141
|
exports.DevToolsMarker = DevToolsMarker;
|
|
141
142
|
function areAdaptableProfileTracksEnabled(adaptableId) {
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
5
|
-
PUBLISH_TIMESTAMP:
|
|
6
|
-
VERSION: "22.0.0-canary.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1770996913801 || Date.now(),
|
|
6
|
+
VERSION: "22.0.0-canary.11" || '--current-version--',
|
|
7
7
|
};
|
|
@@ -5,20 +5,20 @@ const LMLogger_1 = require("./LMLogger");
|
|
|
5
5
|
function x(a, b) { }
|
|
6
6
|
const xtype = [1, '2'];
|
|
7
7
|
class LMEmitter extends LMLogger_1.LMLogger {
|
|
8
|
+
destroyed = false;
|
|
9
|
+
suspended = false;
|
|
8
10
|
constructor(options) {
|
|
9
11
|
super(options);
|
|
10
|
-
this.destroyed = false;
|
|
11
|
-
this.suspended = false;
|
|
12
|
-
/**
|
|
13
|
-
* For each supported event, we have a Set that holds all the callbacks that should be executed
|
|
14
|
-
* when the event is triggered.
|
|
15
|
-
*/
|
|
16
|
-
this.eventSets = {
|
|
17
|
-
gridLayoutChanged: new Set(),
|
|
18
|
-
columnDefsChanged: new Set(),
|
|
19
|
-
rowModelUpdated: new Set(),
|
|
20
|
-
};
|
|
21
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* For each supported event, we have a Set that holds all the callbacks that should be executed
|
|
15
|
+
* when the event is triggered.
|
|
16
|
+
*/
|
|
17
|
+
eventSets = {
|
|
18
|
+
gridLayoutChanged: new Set(),
|
|
19
|
+
columnDefsChanged: new Set(),
|
|
20
|
+
rowModelUpdated: new Set(),
|
|
21
|
+
};
|
|
22
22
|
on(event, callback) {
|
|
23
23
|
this.eventSets[event].add(callback);
|
|
24
24
|
return () => {
|
|
@@ -7,6 +7,13 @@ const performanceTime = (previousTime) => {
|
|
|
7
7
|
return Math.round(previousTime ? now - previousTime : now);
|
|
8
8
|
};
|
|
9
9
|
class LMLogger {
|
|
10
|
+
debugger;
|
|
11
|
+
infoLogger;
|
|
12
|
+
successLogger;
|
|
13
|
+
warnLogger;
|
|
14
|
+
errorLogger;
|
|
15
|
+
perfLogger;
|
|
16
|
+
debugId;
|
|
10
17
|
constructor(options) {
|
|
11
18
|
this.debugId = options.debugId;
|
|
12
19
|
this.debugger = (0, infinite_react_1.debug)(this.debugId ? `LayoutManager:${this.debugId}` : 'LayoutManager');
|
|
@@ -172,5 +172,6 @@ export interface PivotLayoutModel extends BaseLayoutModel {
|
|
|
172
172
|
* Display automatically calculated Totals within EACH Pivot Column Group, in the position specified
|
|
173
173
|
*/
|
|
174
174
|
PivotColumnTotal?: 'before' | 'after' | boolean;
|
|
175
|
+
PivotResultColumnsOrder?: string[] | boolean;
|
|
175
176
|
}
|
|
176
177
|
export type LayoutModel = TableLayoutModel | PivotLayoutModel;
|