@adaptabletools/adaptable-cjs 23.0.4 → 23.0.5-canary.1
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.js +0 -31
- package/index.css +0 -64
- package/index.js +0 -31
- package/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +0 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +1 -9
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +3 -39
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +44 -16
- package/src/AdaptableState/Aggregations/only.js +0 -11
- package/src/AdaptableState/Aggregations/weightedAverage.d.ts +0 -1
- package/src/AdaptableState/Aggregations/weightedAverage.js +3 -30
- package/src/AdaptableState/Common/AdaptableColumn.js +0 -1
- package/src/AdaptableState/Common/AdaptableForm.js +0 -49
- package/src/AdaptableState/Common/AdaptableFormatPresets.js +0 -13
- package/src/AdaptableState/Common/AdaptablePredicate.js +3 -125
- package/src/AdaptableState/Common/AggregationColumns.js +0 -10
- package/src/AdaptableState/Common/Enums.js +0 -3
- package/src/AdaptableState/Common/Menu.js +1 -7
- package/src/AdaptableState/Common/MenuItem.js +0 -2
- package/src/AdaptableState/Common/Types.js +2 -5
- package/src/AdaptableState/StatusBarState.js +0 -3
- package/src/AdaptableState/StyledColumns/BadgeStyle.js +0 -1
- package/src/AdaptableState/StyledColumns/Common/BarStyleProperties.js +0 -4
- package/src/AdaptableState/StyledColumns/Common/CellTextOptions.js +0 -5
- package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.js +0 -8
- package/src/AdaptableState/Uuid.js +0 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +0 -4
- package/src/Api/Implementation/AlertApiImpl.js +0 -21
- package/src/Api/Implementation/ApiBase.js +0 -24
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -1
- package/src/Api/Implementation/ChartingApiImpl.js +0 -3
- package/src/Api/Implementation/ColumnApiImpl.js +1 -15
- package/src/Api/Implementation/ColumnFilterApiImpl.js +0 -9
- package/src/Api/Implementation/ColumnScopeApiImpl.js +0 -21
- package/src/Api/Implementation/DashboardApiImpl.js +0 -1
- package/src/Api/Implementation/EntitlementApiImpl.js +0 -1
- package/src/Api/Implementation/ExportApiImpl.js +0 -10
- package/src/Api/Implementation/ExpressionApiImpl.js +0 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +0 -3
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -2
- package/src/Api/Implementation/GridApiImpl.js +1 -22
- package/src/Api/Implementation/GridFilterApiImpl.js +0 -2
- package/src/Api/Implementation/LayoutApiImpl.js +0 -18
- package/src/Api/Implementation/LayoutHelpers.js +0 -16
- package/src/Api/Implementation/NamedQueryApiImpl.js +0 -1
- package/src/Api/Implementation/PredicateApiImpl.js +0 -5
- package/src/Api/Implementation/RowFormApiImpl.js +0 -2
- package/src/Api/Implementation/StateApiImpl.js +0 -7
- package/src/Api/Implementation/SystemStatusApiImpl.js +0 -2
- package/src/Api/Implementation/TeamSharingApiImpl.js +0 -3
- package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -1
- package/src/Api/Internal/ActionColumnInternalApi.js +0 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
- package/src/Api/Internal/AdaptableInternalApi.js +1 -39
- package/src/Api/Internal/AlertInternalApi.js +1 -102
- package/src/Api/Internal/CalculatedColumnInternalApi.js +0 -17
- package/src/Api/Internal/ChartingInternalApi.js +0 -1
- package/src/Api/Internal/ColumnFilterInternalApi.js +0 -52
- package/src/Api/Internal/ColumnInternalApi.js +0 -32
- package/src/Api/Internal/CustomSortInternalApi.js +0 -5
- package/src/Api/Internal/DashboardInternalApi.js +0 -23
- package/src/Api/Internal/DataImportInternalApi.js +0 -1
- package/src/Api/Internal/EventInternalApi.js +0 -2
- package/src/Api/Internal/ExportInternalApi.js +1 -16
- package/src/Api/Internal/ExpressionInternalApi.js +0 -23
- package/src/Api/Internal/Fdc3InternalApi.js +0 -9
- package/src/Api/Internal/FlashingCellInternalApi.js +0 -5
- package/src/Api/Internal/FormatColumnInternalApi.js +5 -107
- package/src/Api/Internal/FreeTextColumnInternalApi.js +0 -8
- package/src/Api/Internal/GridFilterInternalApi.js +0 -3
- package/src/Api/Internal/GridInternalApi.js +0 -37
- package/src/Api/Internal/LayoutInternalApi.js +0 -18
- package/src/Api/Internal/NamedQueryInternalApi.js +0 -9
- package/src/Api/Internal/PredicateInternalApi.js +0 -23
- package/src/Api/Internal/RowFormInternalApi.js +0 -18
- package/src/Api/Internal/StateInternalApi.js +0 -25
- package/src/Api/Internal/StyledColumnInternalApi.js +0 -62
- package/src/Api/Internal/TeamSharingInternalApi.js +0 -9
- package/src/Redux/ActionsReducers/AlertRedux.js +0 -24
- package/src/Redux/ActionsReducers/ApplicationRedux.js +0 -9
- package/src/Redux/ActionsReducers/BulkUpdateRedux.js +0 -6
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +1 -16
- package/src/Redux/ActionsReducers/ChartingRedux.js +0 -24
- package/src/Redux/ActionsReducers/CommentsRedux.js +0 -24
- package/src/Redux/ActionsReducers/CustomSortRedux.js +0 -24
- package/src/Redux/ActionsReducers/DashboardRedux.js +0 -33
- package/src/Redux/ActionsReducers/ExportRedux.js +0 -36
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +0 -24
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +0 -36
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +1 -20
- package/src/Redux/ActionsReducers/InternalRedux.js +0 -42
- package/src/Redux/ActionsReducers/LayoutRedux.js +1 -67
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +0 -15
- package/src/Redux/ActionsReducers/NoteRedux.js +0 -14
- package/src/Redux/ActionsReducers/PluginsRedux.js +0 -3
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +0 -34
- package/src/Redux/ActionsReducers/PopupRedux.js +2 -6
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +0 -15
- package/src/Redux/ActionsReducers/ShortcutRedux.js +0 -24
- package/src/Redux/ActionsReducers/SmartEditRedux.js +0 -6
- package/src/Redux/ActionsReducers/StatusBarRedux.js +0 -6
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +0 -27
- package/src/Redux/ActionsReducers/SystemStatusRedux.js +0 -6
- package/src/Redux/ActionsReducers/TeamSharingRedux.js +0 -1
- package/src/Redux/ActionsReducers/ThemeRedux.js +0 -26
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +0 -22
- package/src/Redux/ActionsReducers/UserInterfaceRedux.js +0 -3
- package/src/Redux/ActionsReducers/utils.js +0 -6
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +0 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +0 -25
- package/src/Redux/Store/AdaptableStore.js +5 -301
- package/src/Strategy/AdaptableModuleBase.js +0 -35
- package/src/Strategy/AlertModule.js +0 -9
- package/src/Strategy/CellSummaryModule.js +0 -12
- package/src/Strategy/ChartingModule.js +0 -1
- package/src/Strategy/ColumnFilterModule.js +1 -11
- package/src/Strategy/CommentModule.js +0 -2
- package/src/Strategy/DashboardModule.js +0 -4
- package/src/Strategy/ExportModule.js +0 -1
- package/src/Strategy/FlashingCellModule.js +0 -8
- package/src/Strategy/FormatColumnModule.js +0 -3
- package/src/Strategy/FreeTextColumnModule.js +0 -3
- package/src/Strategy/LayoutModule.js +0 -26
- package/src/Strategy/NoteModule.js +0 -3
- package/src/Strategy/PlusMinusModule.js +0 -3
- package/src/Strategy/SettingsPanelModule.js +0 -1
- package/src/Strategy/ShortcutModule.js +0 -1
- package/src/Strategy/SmartEditModule.js +0 -5
- package/src/Strategy/StatusBarModule.js +0 -7
- package/src/Strategy/StyledColumnModule.js +1 -16
- package/src/Strategy/TeamSharingModule.js +0 -9
- package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.js +0 -5
- package/src/Utilities/Constants/DocumentationLinkConstants.js +0 -1
- package/src/Utilities/Constants/GeneralConstants.js +0 -10
- package/src/Utilities/Constants/ObjectDefaultConstants.js +0 -3
- package/src/Utilities/Constants/ReduxConstants.js +4 -8
- package/src/Utilities/Emitter.js +0 -9
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +0 -8
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +0 -15
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +0 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +0 -16
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +0 -9
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +7 -78
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +0 -9
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +2 -16
- package/src/Utilities/Extensions/ArrayExtensions.js +1 -63
- package/src/Utilities/Extensions/NumberExtensions.js +0 -27
- package/src/Utilities/Extensions/ObjectExtensions.js +0 -36
- package/src/Utilities/Extensions/StringExtensions.js +0 -27
- package/src/Utilities/Helpers/ActionColumnHelper.js +0 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +0 -8
- package/src/Utilities/Helpers/DateHelper.js +0 -10
- package/src/Utilities/Helpers/DisplayFormatHelper.js +0 -8
- package/src/Utilities/Helpers/Helper.js +3 -9
- package/src/Utilities/Helpers/PlusMinusHelper.js +0 -20
- package/src/Utilities/Helpers/QuickSearchHelper.js +0 -5
- package/src/Utilities/Helpers/Scheduling/CronExpression.js +0 -43
- package/src/Utilities/Helpers/Scheduling/ScheduledReportHelper.js +0 -4
- package/src/Utilities/Helpers/SettingsPanelHelper.js +40 -4
- package/src/Utilities/Helpers/StyleHelper.js +0 -56
- package/src/Utilities/Helpers/StyledColumns/BarStylesHelper.js +0 -46
- package/src/Utilities/Helpers/StyledColumns/GradientStyleHelper.js +0 -38
- package/src/Utilities/Helpers/StyledColumns/IconStyleHelper.js +0 -39
- package/src/Utilities/Helpers/StyledColumns/PercentBarStyleHelper.js +0 -1
- package/src/Utilities/Helpers/StyledColumns/SparklineStyleHelper.js +0 -5
- package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.js +0 -37
- package/src/Utilities/Helpers/TimingHelper.js +0 -13
- package/src/Utilities/ObjectFactory.js +2 -4
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +0 -7
- package/src/Utilities/Services/AlertService.js +0 -1
- package/src/Utilities/Services/AnnotationsService.js +0 -22
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +0 -8
- package/src/Utilities/Services/ChartingService.js +0 -9
- package/src/Utilities/Services/DataService.js +0 -11
- package/src/Utilities/Services/Fdc3Service.js +0 -3
- package/src/Utilities/Services/FlashingCellService.js +0 -6
- package/src/Utilities/Services/ModuleService.js +0 -8
- package/src/Utilities/Services/QueryLanguageService.js +2 -25
- package/src/Utilities/Services/RowFormService.js +0 -1
- package/src/Utilities/Services/RowSummaryService.js +1 -20
- package/src/Utilities/Services/TeamSharingService.js +0 -15
- package/src/Utilities/Services/ThemeService.js +0 -7
- package/src/Utilities/Services/ValidationService.js +0 -21
- package/src/Utilities/createAgStatusPanelComponent.js +0 -3
- package/src/Utilities/getExpressionViewItems.js +0 -2
- package/src/Utilities/getObjectTagsViewItems.js +0 -1
- package/src/Utilities/getScrollbarSize.js +0 -1
- package/src/Utilities/logDeprecation.js +0 -3
- package/src/Utilities/resolveContainerElement.js +0 -21
- package/src/Utilities/runIfNotResolvedIn.js +0 -7
- package/src/Utilities/sortColumnStateForVisibleColumns.js +2 -12
- package/src/Utilities/waitForTimeout.js +0 -1
- package/src/Utilities/wizardSelection.js +0 -2
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/AdaptableView.js +1 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -23
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -2
- package/src/View/AdaptableWizardView/Wizard.js +0 -12
- package/src/View/AdaptableWizardView/helper.js +0 -11
- package/src/View/Alert/ActiveAlertsPanel.js +0 -2
- package/src/View/Alert/AlertStatusSubPanel.js +0 -8
- package/src/View/Alert/Utilities/getAlertType.js +0 -7
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +0 -5
- package/src/View/Alert/Utilities/mapAlertDefinition.js +0 -3
- package/src/View/Alert/Wizard/AlertWizard.js +0 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +0 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +0 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +0 -1
- package/src/View/CalculatedColumn/utils.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopup.js +0 -3
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -7
- package/src/View/Charting/EditChartButton.js +1 -4
- package/src/View/Charting/ShowChartButton.js +0 -3
- package/src/View/Charting/useAgChartState.js +0 -5
- package/src/View/Charting/useChartingElements.js +0 -4
- package/src/View/Charting/useExternalChartState.js +0 -6
- package/src/View/ColumnInfo/ColumnInfo.js +7 -17
- package/src/View/Comments/CommentsEditor.js +1 -16
- package/src/View/Components/AdaptableButton/AdaptableButtonComponent.js +0 -1
- package/src/View/Components/AdaptableButton/AdaptableButtonView.js +0 -3
- package/src/View/Components/AdaptableDateInput/index.js +2 -9
- package/src/View/Components/AdaptableIconComponent/index.js +0 -4
- package/src/View/Components/AdaptableIconSelector/index.js +0 -3
- package/src/View/Components/AdaptableInput/index.js +0 -2
- package/src/View/Components/Badge/index.js +0 -8
- package/src/View/Components/Buttons/ButtonNewPage.js +1 -2
- package/src/View/Components/CellPopup/index.js +1 -2
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.js +0 -4
- package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.js +0 -4
- package/src/View/Components/ColumnFilter/ColumnFilter.js +3 -46
- package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +0 -2
- package/src/View/Components/ColumnFilter/FloatingFilter.js +1 -20
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +2 -16
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +1 -4
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +1 -6
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +0 -20
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.js +0 -5
- package/src/View/Components/ColumnFilter/utils.js +2 -9
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +0 -2
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +0 -1
- package/src/View/Components/EntityRulesEditor/index.js +1 -11
- package/src/View/Components/ExternalRenderer.js +1 -3
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -52
- package/src/View/Components/ModuleValueSelector/index.js +0 -2
- package/src/View/Components/Panels/PanelWithImage.js +1 -5
- package/src/View/Components/Panels/PanelWithRow.js +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +0 -6
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +0 -6
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -2
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +0 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +0 -3
- package/src/View/Components/Popups/AdaptableToaster.js +0 -2
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +0 -8
- package/src/View/Components/RangesComponent.js +0 -57
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +0 -3
- package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -6
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -18
- package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +0 -4
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
- package/src/View/Components/ValueSelector/index.js +0 -4
- package/src/View/Components/wizardColumnListStyles.js +0 -5
- package/src/View/Dashboard/CustomToolbar.js +1 -25
- package/src/View/Dashboard/PinnedToolbarsSelector.js +0 -1
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -22
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +0 -1
- package/src/View/DataImport/systemFileHandlers.js +1 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +0 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +0 -27
- package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +0 -1
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +0 -7
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +0 -12
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +0 -10
- package/src/View/GridFilter/GridFilterPopup.js +0 -1
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +0 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -31
- package/src/View/Layout/LayoutViewPanel.js +0 -2
- package/src/View/Layout/PivotDetailsPopoup.js +0 -2
- package/src/View/Layout/TransposedPopup.js +0 -7
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -6
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +0 -2
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -32
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +0 -3
- package/src/View/Layout/Wizard/sections/columnLayoutHelpers.js +0 -2
- package/src/View/Layout/Wizard/sections/layoutWizardColumns.js +0 -4
- package/src/View/Note/NotePopup.js +0 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +0 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +0 -4
- package/src/View/StatusBar/StatusBarPanel.js +0 -8
- package/src/View/StatusBar/StatusBarPopup.js +0 -2
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +0 -11
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +0 -28
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +0 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -25
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +0 -26
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +0 -40
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +0 -55
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +0 -15
- package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +0 -21
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextPreview.js +0 -10
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +0 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +0 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +0 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +0 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.js +0 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +0 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +0 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +0 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +0 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -21
- package/src/View/SystemStatus/SystemStatusPopup.js +0 -1
- package/src/View/TeamSharing/SharedEntityObjectView.js +0 -1
- package/src/View/Theme/ThemeSelector.js +0 -1
- package/src/View/UIHelper.js +0 -6
- package/src/View/UIInterfaces.js +0 -1
- package/src/View/Wizard/CollapsibleWizardCard.js +1 -8
- package/src/View/Wizard/OnePageWizards.js +2 -9
- package/src/View/Wizard/SummaryColorTag.js +0 -1
- package/src/View/Wizard/useKeyboardNavigation.js +1 -3
- package/src/agGrid/Adaptable.js +0 -12
- package/src/agGrid/AdaptableAgGrid.d.ts +0 -2
- package/src/agGrid/AdaptableAgGrid.js +3 -482
- package/src/agGrid/AdaptableFilterHandler.js +0 -5
- package/src/agGrid/AdaptableLogger.js +0 -6
- package/src/agGrid/AgGridAdapter.js +3 -90
- package/src/agGrid/AgGridColumnAdapter.js +6 -168
- package/src/agGrid/AgGridExportAdapter.js +4 -106
- package/src/agGrid/AgGridFilterAdapter.js +0 -5
- package/src/agGrid/AgGridFloatingFilterAdapter.js +0 -10
- package/src/agGrid/AgGridMenuAdapter.js +0 -143
- package/src/agGrid/AgGridModulesAdapter.js +0 -2
- package/src/agGrid/AgGridOptionsService.js +0 -2
- package/src/agGrid/AgGridThemeAdapter.js +0 -7
- package/src/agGrid/agGridDataTypeDefinitions.js +0 -8
- package/src/agGrid/cellRenderers/BadgeRenderer.js +0 -10
- package/src/agGrid/cellRenderers/BulletChartRenderer.js +1 -96
- package/src/agGrid/cellRenderers/IconRenderer.js +0 -55
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +0 -51
- package/src/agGrid/cellRenderers/RangeBarRenderer.js +1 -50
- package/src/agGrid/cellRenderers/RatingRenderer.js +0 -40
- package/src/agGrid/editors/AdaptableDateEditor/index.js +0 -18
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +0 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +0 -11
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +0 -9
- package/src/agGrid/index.js +0 -6
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -73
- package/src/components/CodeBlock/index.d.ts +0 -1
- package/src/components/CodeBlock/index.js +2 -3
- package/src/components/ColorPicker/ColorPicker.js +0 -6
- package/src/components/Combobox/VirtualizedList.js +0 -5
- package/src/components/Combobox/index.js +5 -63
- package/src/components/Dashboard/Dashboard.js +1 -4
- package/src/components/Datepicker/index.js +2 -97
- package/src/components/DragAndDropContext/TabList.js +2 -6
- package/src/components/Drawer/index.js +0 -7
- package/src/components/Dropdown/index.js +0 -1
- package/src/components/DropdownButton/index.js +0 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -16
- package/src/components/ExpressionEditor/EditorButton.js +0 -1
- package/src/components/ExpressionEditor/EditorInput.js +1 -7
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +0 -1
- package/src/components/ExpressionEditor/ExpressionPreview.js +4 -14
- package/src/components/ExpressionEditor/NamedQueryContext.js +0 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +1 -6
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +0 -12
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +0 -4
- package/src/components/ExpressionEditor/index.js +5 -14
- package/src/components/Icon/index.js +0 -2
- package/src/components/Input/NumberInput.js +0 -10
- package/src/components/Modal/Backdrop.js +0 -1
- package/src/components/OverlayTrigger/Overlay.js +0 -1
- package/src/components/OverlayTrigger/index.js +3 -15
- package/src/components/ProgressIndicator/ProgressIndicator.js +3 -16
- package/src/components/ResizeObserver/index.js +0 -7
- package/src/components/SimpleButton/index.js +2 -16
- package/src/components/Tabs/index.js +0 -3
- package/src/components/Tag/Tag.js +0 -1
- package/src/components/Tag/columnScopeTagHelpers.js +0 -2
- package/src/components/Textarea/index.js +1 -8
- package/src/components/Toggle/Toggle.js +1 -5
- package/src/components/Toggle/ToggleGroup.js +1 -3
- package/src/components/ToggleButton/index.js +1 -3
- package/src/components/Tree/TreeDropdown/index.js +2 -130
- package/src/components/Tree/treeUtils.js +0 -4
- package/src/components/WindowModal/WindowModal.js +1 -14
- package/src/components/WindowModal/useStacking.js +0 -7
- package/src/components/icons/bullet-chart.js +0 -4
- package/src/components/icons/icon-style.js +0 -4
- package/src/components/icons/index.js +26 -36
- package/src/components/icons/range-bar.js +0 -5
- package/src/components/icons/star.js +0 -1
- package/src/components/twUtils.js +3 -12
- package/src/components/ui/calendar.js +1 -9
- package/src/components/ui/combobox.js +0 -4
- package/src/components/utils/captureTabNavigation/getFocusableChildren.js +0 -1
- package/src/components/utils/useDraggable.js +0 -4
- package/src/components/utils/useProperty.js +0 -18
- package/src/devTools/index.js +0 -1
- package/src/env.js +2 -2
- package/src/layout-manager/src/LMEmitter.js +0 -5
- package/src/layout-manager/src/destructurePivotColumnId.js +0 -19
- package/src/layout-manager/src/index.js +2 -182
- package/src/layout-manager/src/isLayoutEqual.js +0 -1
- package/src/layout-manager/src/isPivotColumnTotal.js +0 -2
- package/src/layout-manager/src/normalizeLayoutModel.js +0 -27
- package/src/layout-manager/src/simplifyLayoutModel.js +0 -11
- package/src/layout-manager/src/sortColumnIdsByOrder.js +2 -12
- package/src/lib/utils.js +0 -1
- package/src/migration/AdaptableUpgradeHelper.js +0 -2
- package/src/migration/VersionUpgrade17.js +0 -33
- package/src/migration/VersionUpgrade20.js +1 -21
- package/src/migration/VersionUpgrade21.js +0 -3
- package/src/migration/VersionUpgrade22.js +0 -11
- package/src/migration/VersionUpgrade23.js +0 -73
- package/src/parser/src/evaluator.js +0 -1
- package/src/parser/src/index.js +0 -1
- package/src/parser/src/parser.js +4 -103
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +0 -5
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +0 -2
- package/src/parser/src/tokenizer.js +0 -2
- package/src/parser/src/utils.js +0 -1
- package/src/renderReactRoot.js +0 -12
- package/src/setupDevTools.js +0 -6
- package/src/twMerge.js +0 -1
- package/src/types.d.ts +1 -1
- package/src/types.js +0 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableState/Common/NamedObject.d.ts +0 -10
- package/src/AdaptableState/Common/NamedObject.js +0 -2
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +0 -35
- package/src/Utilities/ExpressionFunctions/groupingMap.js +0 -103
- package/src/Utilities/Interface/AdaptableToolPanelContext.d.ts +0 -4
- package/src/Utilities/Interface/AdaptableToolPanelContext.js +0 -2
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +0 -20
- package/src/Utilities/Services/Interface/IMetamodelService.js +0 -2
- package/src/Utilities/Services/MetamodelService.d.ts +0 -17
- package/src/Utilities/Services/MetamodelService.js +0 -167
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +0 -104
- package/src/View/Components/Buttons/EntityListActionButtons.d.ts +0 -38
- package/src/View/Components/Buttons/EntityListActionButtons.js +0 -47
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.d.ts +0 -12
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +0 -72
- package/src/View/Components/EntityRowItem.d.ts +0 -7
- package/src/View/Components/EntityRowItem.js +0 -12
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +0 -3
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +0 -9
- package/src/View/Components/ModuleProfile.d.ts +0 -8
- package/src/View/Components/ModuleProfile.js +0 -15
- package/src/View/Components/ModuleSummary/ModuleDetail.d.ts +0 -23
- package/src/View/Components/ModuleSummary/ModuleDetail.js +0 -20
- package/src/View/Components/ModuleSummary/ModuleHeader.d.ts +0 -15
- package/src/View/Components/ModuleSummary/ModuleHeader.js +0 -20
- package/src/View/Components/ModuleSummary/SummaryRowItem.d.ts +0 -7
- package/src/View/Components/ModuleSummary/SummaryRowItem.js +0 -17
- package/src/View/Components/SharedProps/ModuleSummaryProps.d.ts +0 -9
- package/src/View/Components/SharedProps/ModuleSummaryProps.js +0 -2
- package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.d.ts +0 -13
- package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.js +0 -2
- package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.d.ts +0 -14
- package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.js +0 -2
- package/src/View/Components/StyleVisualItem.d.ts +0 -9
- package/src/View/Components/StyleVisualItem.js +0 -45
- package/src/View/Components/WizardSummaryPage.d.ts +0 -7
- package/src/View/Components/WizardSummaryPage.js +0 -22
- package/src/components/Accordion.d.ts +0 -7
- package/src/components/Accordion.js +0 -38
- package/src/components/FlexWithFooter.d.ts +0 -9
- package/src/components/FlexWithFooter.js +0 -15
- package/src/components/NotifyResize/index.d.ts +0 -9
- package/src/components/NotifyResize/index.js +0 -38
- package/src/components/PopupWithFooter.d.ts +0 -14
- package/src/components/PopupWithFooter.js +0 -15
- package/src/components/SelectableList/index.d.ts +0 -15
- package/src/components/SelectableList/index.js +0 -100
- package/src/components/SizedContainer/index.d.ts +0 -17
- package/src/components/SizedContainer/index.js +0 -23
- package/src/components/Table/index.d.ts +0 -4
- package/src/components/Table/index.js +0 -9
- package/src/components/WizardPanel/index.d.ts +0 -9
- package/src/components/WizardPanel/index.js +0 -10
- package/src/components/icons/align-justify.d.ts +0 -3
- package/src/components/icons/align-justify.js +0 -6
- package/src/components/icons/column-info.d.ts +0 -3
- package/src/components/icons/column-info.js +0 -6
- package/src/components/icons/gradient-column.d.ts +0 -3
- package/src/components/icons/gradient-column.js +0 -6
- package/src/components/icons/invalid.d.ts +0 -3
- package/src/components/icons/invalid.js +0 -6
- package/src/components/icons/logout copy.d.ts +0 -3
- package/src/components/icons/logout copy.js +0 -6
- package/src/components/icons/smart-edit.d.ts +0 -3
- package/src/components/icons/smart-edit.js +0 -6
- package/src/components/icons/team-share.d.ts +0 -3
- package/src/components/icons/team-share.js +0 -6
- package/src/components/icons/unchecked.d.ts +0 -3
- package/src/components/icons/unchecked.js +0 -6
- package/src/components/icons/user-filter.d.ts +0 -3
- package/src/components/icons/user-filter.js +0 -6
- package/src/components/utils/useContainerScrollObserver/index.d.ts +0 -6
- package/src/components/utils/useContainerScrollObserver/index.js +0 -83
- package/src/components/utils/useGlobalEvent.d.ts +0 -1
- package/src/components/utils/useGlobalEvent.js +0 -12
- package/src/components/utils/useLatest.d.ts +0 -1
- package/src/components/utils/useLatest.js +0 -10
- package/src/components/utils/usePropState.d.ts +0 -2
- package/src/components/utils/usePropState.js +0 -11
- package/src/metamodel/adaptable-metamodel-model.d.ts +0 -26
- package/src/metamodel/adaptable-metamodel-model.js +0 -2
- package/src/metamodel/adaptable.metamodel.d.ts +0 -6244
- package/src/metamodel/adaptable.metamodel.js +0 -1
|
@@ -33,18 +33,13 @@ const FloatingFilterInputList = (props) => {
|
|
|
33
33
|
operator: props.predicate.operator,
|
|
34
34
|
args: inputs,
|
|
35
35
|
});
|
|
36
|
-
}, value: props.predicate.args,
|
|
37
|
-
// are not known ql operators for now
|
|
38
|
-
// should change when porting, it has knowledge about predicates
|
|
39
|
-
type: props.predicate.operator === 'In' ? 'In' : 'NotIn' }));
|
|
36
|
+
}, value: props.predicate.args, type: props.predicate.operator === 'In' ? 'In' : 'NotIn' }));
|
|
40
37
|
}
|
|
41
38
|
return ((0, jsx_runtime_1.jsx)("div", { className: (0, utils_2.cn)('twa:relative twa:w-full twa:flex twa:flex-row twa:[&>*:not(:first-child)]:border-l! twa:[&>*:not(:first-child)]:border-input-border!', {
|
|
42
39
|
'twa:**:[input]:min-h-auto!': 'make all inputs inside not have a height fixed',
|
|
43
|
-
// this is especially for the date picker filter
|
|
44
40
|
'twa:*:[[role=button]]:rounded-input': true,
|
|
45
41
|
'twa:*:[[role=button]]:absolute': 'make date picker absolute filter',
|
|
46
42
|
'twa:*:[[role=button]]:inset-y-0.5 twa:*:[[role=button]]:inset-x-0.5 twa:*:[[role=button]]:h-auto': 'make date picker - and give it some padding, so the focus is not cut off absolute outline filter',
|
|
47
|
-
// and this is for text and number inputs
|
|
48
43
|
'twa:*:[input]:rounded-input': true,
|
|
49
44
|
'twa:*:[input]:absolute': 'make inputs absolute filter',
|
|
50
45
|
'twa:*:[input]:inset-y-0.5 twa:*:[input]:inset-x-0.5 twa:*:[input]:h-auto': 'make inputs - and give it some padding, so the focus is not cut off absolute outline filter',
|
|
@@ -36,7 +36,6 @@ function useDistinctFilterColumnValues(options) {
|
|
|
36
36
|
const [isDistinctColumnValuesLoading, setIsDistinctColumnValuesLoading] = React.useState(false);
|
|
37
37
|
(0, react_1.useEffect)(() => {
|
|
38
38
|
if (valuesLoadTrigger === 0) {
|
|
39
|
-
// skip the first render
|
|
40
39
|
return;
|
|
41
40
|
}
|
|
42
41
|
let ignore = false;
|
|
@@ -86,15 +85,8 @@ function useDistinctFilterColumnValues(options) {
|
|
|
86
85
|
triggerValuesLoad,
|
|
87
86
|
};
|
|
88
87
|
}
|
|
89
|
-
/**
|
|
90
|
-
* This component was ported and modified to not know about colum filter and predicates.
|
|
91
|
-
* It should be further refactored to be easily ported;
|
|
92
|
-
*/
|
|
93
88
|
const FloatingFilterValues = (props) => {
|
|
94
89
|
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
95
|
-
// const evaluateInPredicateUsingTime = useAdaptableOptions(
|
|
96
|
-
// (options) => options.predicateOptions.evaluateInPredicateUsingTime
|
|
97
|
-
// );
|
|
98
90
|
const currentColumn = api.columnApi.getColumnWithColumnId(props.columnId);
|
|
99
91
|
const searchValueRef = React.useRef('');
|
|
100
92
|
const { isDistinctColumnValuesLoading, quickFilterValues, triggerValuesLoad } = useDistinctFilterColumnValues({
|
|
@@ -103,20 +95,14 @@ const FloatingFilterValues = (props) => {
|
|
|
103
95
|
});
|
|
104
96
|
const valueRef = React.useRef(props.value);
|
|
105
97
|
(0, react_1.useEffect)(() => {
|
|
106
|
-
// we used to load values initially on mount, without any condition
|
|
107
98
|
const value = valueRef.current;
|
|
108
|
-
// but we now optimize it - if there are no values to show (for which we would need a label)
|
|
109
|
-
// then we skip it altogether, so we'll only load onMenuOpen
|
|
110
99
|
if (!value || !Array.isArray(value) || value.length === 0) {
|
|
111
100
|
return;
|
|
112
101
|
}
|
|
113
|
-
// see 😅 usePreviousValuesProbablyBecauseOfAGGridUnnecessaryFilterRemountRef 😅
|
|
114
102
|
const filterHandler = api.filterApi.columnFilterApi.internalApi.getAdaptableFilterHandler(props.columnId);
|
|
115
103
|
const usePrevious = filterHandler && typeof filterHandler.getLastCachedFilterDisplayValues === 'function'
|
|
116
104
|
? !!filterHandler.getLastCachedFilterDisplayValues()
|
|
117
105
|
: false;
|
|
118
|
-
// however, if the `value` prop is a non-empty array, we need to load the values
|
|
119
|
-
// so we know which labels to show
|
|
120
106
|
triggerValuesLoad({
|
|
121
107
|
usePrevious,
|
|
122
108
|
});
|
|
@@ -124,14 +110,8 @@ const FloatingFilterValues = (props) => {
|
|
|
124
110
|
const quickFilterValuesRef = React.useRef(quickFilterValues);
|
|
125
111
|
quickFilterValuesRef.current = quickFilterValues;
|
|
126
112
|
(0, react_1.useEffect)(() => {
|
|
127
|
-
// since we did the optimization above,
|
|
128
|
-
// we now hit a scenario where the value is set via an API method
|
|
129
|
-
// so we also need to account for that - so whenever props.value changes, we need to check
|
|
130
|
-
// and if we previously didn't have a valid array
|
|
131
|
-
// and now we do, we need to load the values - if they are not already loaded
|
|
132
113
|
if (quickFilterValuesRef.current.values.length > 0 ||
|
|
133
114
|
quickFilterValuesRef.current.dataLoadIsComplete) {
|
|
134
|
-
// values have already been loaded, so we can skip
|
|
135
115
|
return;
|
|
136
116
|
}
|
|
137
117
|
const currentValue = props.value;
|
|
@@ -18,7 +18,6 @@ const useAdaptableFilterWrapper = (columnId, filterComponent, handleOnChangeOver
|
|
|
18
18
|
const column = api.columnApi.getColumnWithColumnId(columnId);
|
|
19
19
|
const columnFilterOptions = api.optionsApi.getFilterOptions().columnFilterOptions;
|
|
20
20
|
const qlPredicateDefs = React.useMemo(() => {
|
|
21
|
-
// this is NOT the ideal place to do this, but it is what it is: autoGroupCol should NOT have the 'Blanks'/'NonBlanks' predicates
|
|
22
21
|
const predicateDefs = api.filterApi.columnFilterApi
|
|
23
22
|
.getFilterPredicateDefsForColumn(column)
|
|
24
23
|
.filter((predDef) => {
|
|
@@ -38,7 +37,6 @@ const useAdaptableFilterWrapper = (columnId, filterComponent, handleOnChangeOver
|
|
|
38
37
|
? (0, utils_1.mapColumnFilterToQlPredicate)(columnFilter, column, qlPredicateDefs, columnFilterOptions, filterComponent, api)
|
|
39
38
|
: null;
|
|
40
39
|
const handleOnChange = (adaptablePredicate, logic = 'AND') => {
|
|
41
|
-
// make sure we always have the latest columnFiler
|
|
42
40
|
const columnFilter = adaptable.api.filterApi.columnFilterApi.getColumnFilterForColumn(columnId);
|
|
43
41
|
const newFilter = {
|
|
44
42
|
...columnFilter,
|
|
@@ -56,9 +54,6 @@ const useAdaptableFilterWrapper = (columnId, filterComponent, handleOnChangeOver
|
|
|
56
54
|
}
|
|
57
55
|
};
|
|
58
56
|
const handleClear = React.useCallback(() => dispatch(LayoutRedux.LayoutColumnFilterClear(columnId)), [columnId]);
|
|
59
|
-
/**
|
|
60
|
-
* Converts a QlPredicate to an AdaptablePredicate and dispatches the change.
|
|
61
|
-
*/
|
|
62
57
|
const handlePredicateChange = React.useCallback((newPredicate) => {
|
|
63
58
|
if (!newPredicate) {
|
|
64
59
|
handleClear();
|
|
@@ -5,9 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const Icon_1 = require("../../../components/Icon");
|
|
7
7
|
const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
|
|
8
|
-
const mapAdaptablePredicateDefToQlPredicateDef = (adaptablePredicateDef,
|
|
9
|
-
// used to determine values type
|
|
10
|
-
dataType) => {
|
|
8
|
+
const mapAdaptablePredicateDefToQlPredicateDef = (adaptablePredicateDef, dataType) => {
|
|
11
9
|
let icon = null;
|
|
12
10
|
if ((0, Icon_1.isAdaptableIcon)(adaptablePredicateDef.icon)) {
|
|
13
11
|
icon = react_1.default.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: adaptablePredicateDef.icon });
|
|
@@ -20,11 +18,9 @@ dataType) => {
|
|
|
20
18
|
});
|
|
21
19
|
if (adaptablePredicateDef.id === 'In' || adaptablePredicateDef.id === 'NotIn') {
|
|
22
20
|
if (['text', 'number', 'date'].includes(dataType)) {
|
|
23
|
-
// add array type
|
|
24
21
|
inputs.push(`${dataType}[]`);
|
|
25
22
|
}
|
|
26
23
|
if (['text[]', 'number[]'].includes(dataType)) {
|
|
27
|
-
// add array type
|
|
28
24
|
inputs.push(dataType);
|
|
29
25
|
}
|
|
30
26
|
}
|
|
@@ -43,7 +39,7 @@ dataType) => {
|
|
|
43
39
|
exports.mapAdaptablePredicateDefToQlPredicateDef = mapAdaptablePredicateDefToQlPredicateDef;
|
|
44
40
|
const mapAdaptablePredicateToQlPredicate = (adaptablePredicate) => {
|
|
45
41
|
return {
|
|
46
|
-
operator: adaptablePredicate.PredicateId,
|
|
42
|
+
operator: adaptablePredicate.PredicateId,
|
|
47
43
|
args: adaptablePredicate.Inputs,
|
|
48
44
|
};
|
|
49
45
|
};
|
|
@@ -59,7 +55,6 @@ const qlPredicateToString = (qlPredicate, predicateDefs) => {
|
|
|
59
55
|
if (typeof qlPredicate === 'object' &&
|
|
60
56
|
'operator' in qlPredicate &&
|
|
61
57
|
(qlPredicate.operator === 'AND' || qlPredicate.operator === 'OR')) {
|
|
62
|
-
// save to join args because there is no extra nesting
|
|
63
58
|
return qlPredicate.args
|
|
64
59
|
.filter((str) => str)
|
|
65
60
|
.map((arg) => (0, exports.qlPredicateToString)(arg, predicateDefs))
|
|
@@ -98,7 +93,6 @@ const mapColumnFilterToQlPredicate = (columnFilter, abColumn, qlPredicateDefs, c
|
|
|
98
93
|
args: (columnFilter?.Predicates ?? []).map?.(exports.mapAdaptablePredicateToQlPredicate),
|
|
99
94
|
};
|
|
100
95
|
if (qlPredicate.args.length === 0) {
|
|
101
|
-
// used when none is defined
|
|
102
96
|
let defaultQlPredicate = null;
|
|
103
97
|
switch (abColumn.dataType) {
|
|
104
98
|
case 'number':
|
|
@@ -187,7 +181,6 @@ const mapColumnFilterToQlPredicate = (columnFilter, abColumn, qlPredicateDefs, c
|
|
|
187
181
|
break;
|
|
188
182
|
}
|
|
189
183
|
if (defaultQlPredicate === null) {
|
|
190
|
-
// take the firstavailable one
|
|
191
184
|
if (qlPredicateDefs.length > 0) {
|
|
192
185
|
defaultQlPredicate = { operator: qlPredicateDefs[0].operator, args: [] };
|
|
193
186
|
}
|
|
@@ -39,7 +39,6 @@ const EntityRulePredicateEditor = (props) => {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
|
-
// no previous predicate, e.g. it was cleared
|
|
43
42
|
newPredicates = [newPredicateDef];
|
|
44
43
|
}
|
|
45
44
|
props.onChange({
|
|
@@ -65,7 +64,6 @@ const EntityRulePredicateEditor = (props) => {
|
|
|
65
64
|
label: col.label,
|
|
66
65
|
value: col.value,
|
|
67
66
|
}));
|
|
68
|
-
// use global scope or custom scope
|
|
69
67
|
let predicateColumnId = null;
|
|
70
68
|
if (predicate?.ColumnId && predicate.ColumnId !== '') {
|
|
71
69
|
predicateColumnId = predicate.ColumnId;
|
|
@@ -18,7 +18,6 @@ const EntityRulePredicatesEditor = (props) => {
|
|
|
18
18
|
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
19
19
|
const showDocumentationLinks = api.internalApi.isDocumentationLinksDisplayed();
|
|
20
20
|
const columnPredicateEnabled = props.data.Rule.Predicates.some((predicate) => predicate.ColumnId !== undefined);
|
|
21
|
-
// filter out predicates that are already in use
|
|
22
21
|
const defaultPredicateDefs = props.predicateDefs.filter((predicateDef) => {
|
|
23
22
|
return props.data.Rule?.Predicates?.every((rulePrediate) => rulePrediate.PredicateId !== predicateDef.id);
|
|
24
23
|
});
|
|
@@ -18,7 +18,6 @@ const QueryTab = (props) => {
|
|
|
18
18
|
const text = ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", children: [label, " ", (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2", children: "query" })] }));
|
|
19
19
|
return ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs.Tab, { style: { flex: 1 }, ...tabProps, children: !disabled && props.showRadio ? ((0, jsx_runtime_1.jsx)(Radio_1.default, { tabIndex: -1, className: "twa:m-0 twa:align-baseline", checked: type === props.value, children: text })) : (text) }));
|
|
20
20
|
};
|
|
21
|
-
// needed here to be considered a child Tab component, inside the Tabs component
|
|
22
21
|
Tabs_1.SupportedTabMenuComps.add(QueryTab);
|
|
23
22
|
const EntityRulesSummary = (props) => {
|
|
24
23
|
const { data } = props;
|
|
@@ -29,16 +28,7 @@ const EntityRulesSummary = (props) => {
|
|
|
29
28
|
!data?.Rule?.AggregatedBooleanExpression) {
|
|
30
29
|
return (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2", children: "No Rule defined" });
|
|
31
30
|
}
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
33
|
-
Flex_1.Box,
|
|
34
|
-
{ className: "twa:text-2", children: data.Rule.Predicates ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: data.Rule?.Predicates?.map?.((predicate, index) => (
|
|
35
|
-
// predicate id is not unique
|
|
36
|
-
((0, jsx_runtime_1.jsx)(
|
|
37
|
-
React.Fragment,
|
|
38
|
-
{ children: props.renderPredicate(predicateApi.predicateToString(predicate)) },
|
|
39
|
-
index
|
|
40
|
-
)))) })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: props.renderQueryExpression(internalApi.getAdaptableQueryExpressionText(data.Rule)) })) }
|
|
41
|
-
));
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-2", children: data.Rule.Predicates ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: data.Rule?.Predicates?.map?.((predicate, index) => ((0, jsx_runtime_1.jsx)(React.Fragment, { children: props.renderPredicate(predicateApi.predicateToString(predicate)) }, index))) })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: props.renderQueryExpression(internalApi.getAdaptableQueryExpressionText(data.Rule)) })) }));
|
|
42
32
|
};
|
|
43
33
|
exports.EntityRulesSummary = EntityRulesSummary;
|
|
44
34
|
const RuleTabTitle = (props) => {
|
|
@@ -33,9 +33,7 @@ const ExternalRenderer = ({ render, frameworkComponent, componentName = 'N/A', o
|
|
|
33
33
|
}
|
|
34
34
|
else if (frameworkComponent) {
|
|
35
35
|
onDestroy?.();
|
|
36
|
-
adaptableApi.internalApi.destroyFrameworkComponent(element, frameworkComponent,
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
componentName);
|
|
36
|
+
adaptableApi.internalApi.destroyFrameworkComponent(element, frameworkComponent, componentName);
|
|
39
37
|
}
|
|
40
38
|
};
|
|
41
39
|
}, []);
|
|
@@ -16,7 +16,6 @@ const columnFilterLocation_1 = require("../ColumnFilter/columnFilterLocation");
|
|
|
16
16
|
const AdaptableColumnFilter_1 = require("../ColumnFilter/AdaptableColumnFilter");
|
|
17
17
|
const TreeDropdown_2 = require("../../../components/Tree/TreeDropdown");
|
|
18
18
|
const baseClassName = 'ab-ListBoxFilterForm';
|
|
19
|
-
// used for displaying the date values in the input
|
|
20
19
|
function toDateDisplayValue(values) {
|
|
21
20
|
values = values.map((v) => {
|
|
22
21
|
if (!Array.isArray(v)) {
|
|
@@ -27,20 +26,6 @@ function toDateDisplayValue(values) {
|
|
|
27
26
|
return (0, TreeDropdown_1.toDisplayValueDefault)(values);
|
|
28
27
|
}
|
|
29
28
|
const dateOnChangeParser = (value) => {
|
|
30
|
-
/**
|
|
31
|
-
* the value looks like this:
|
|
32
|
-
* [
|
|
33
|
-
* ["2021","2021-01","2021-01-01"],
|
|
34
|
-
* ["2024","2024-02","2024-02-15T12:34:00"],
|
|
35
|
-
* ]
|
|
36
|
-
*/
|
|
37
|
-
// so first need to transfor the above to this:
|
|
38
|
-
/**
|
|
39
|
-
* [
|
|
40
|
-
* [2023, 12, 1, 1640668800000],
|
|
41
|
-
* [2023, 12, 3, 1738377600000]
|
|
42
|
-
* ]
|
|
43
|
-
*/
|
|
44
29
|
return value.map((v) => {
|
|
45
30
|
return v[v.length - 1];
|
|
46
31
|
});
|
|
@@ -51,7 +36,6 @@ const ColumnValuesSelect = (props) => {
|
|
|
51
36
|
const column = props.column;
|
|
52
37
|
let selectedColumnValues = props.value || EMPTY_ARRAY;
|
|
53
38
|
const rawOptionsFromProps = Array.isArray(props.options) ? props.options : EMPTY_ARRAY;
|
|
54
|
-
// Drop empty entries for all column types; Memoise them because Date cols can leak them when using `customInFilterValues` + `orderedValues`
|
|
55
39
|
const optionsFromProps = (0, react_1.useMemo)(() => {
|
|
56
40
|
if (rawOptionsFromProps === EMPTY_ARRAY) {
|
|
57
41
|
return rawOptionsFromProps;
|
|
@@ -69,20 +53,6 @@ const ColumnValuesSelect = (props) => {
|
|
|
69
53
|
return rawOptionsFromProps.filter((option) => !StringExtensions_1.StringExtensions.IsNullOrEmpty(option?.value));
|
|
70
54
|
}, [rawOptionsFromProps]);
|
|
71
55
|
const value = [];
|
|
72
|
-
// For `customInFilterValues` + `orderedValues` on a date column, the
|
|
73
|
-
// options arrive with raw `Date` objects as `value`. `GridFilterTreeDropdown`
|
|
74
|
-
// round-trips path keys via `JSON.stringify`/`JSON.parse`, which converts
|
|
75
|
-
// `Date` -> ISO string. The stored selection paths therefore become
|
|
76
|
-
// strings while the option/treePath values are still `Date` references —
|
|
77
|
-
// and `TreeSelectionState`'s internal DeepMap uses strict reference
|
|
78
|
-
// equality, so a clicked item never matches its tree path on the next
|
|
79
|
-
// render (no checkbox, click looks like a no-op).
|
|
80
|
-
//
|
|
81
|
-
// Normalise `Date` option values to ISO strings up front so every layer
|
|
82
|
-
// (treePaths, items, selectionMap, value, onChange output) speaks the
|
|
83
|
-
// same primitive. Tree-shaped date options (the default-values flow) use
|
|
84
|
-
// string values like "2024" / "2024-01" / "2024-01-01" already and pass
|
|
85
|
-
// through unchanged.
|
|
86
56
|
const dateOptions = (0, react_1.useMemo)(() => {
|
|
87
57
|
if (column.dataType !== 'date') {
|
|
88
58
|
return optionsFromProps;
|
|
@@ -101,14 +71,6 @@ const ColumnValuesSelect = (props) => {
|
|
|
101
71
|
return optionsFromProps.map(convert);
|
|
102
72
|
}, [column.dataType, optionsFromProps]);
|
|
103
73
|
if (column.dataType === 'date') {
|
|
104
|
-
// we might have a use-case where users might want to get rid of a tree level
|
|
105
|
-
// because it may contain only one child. currently,
|
|
106
|
-
// the value is an array of strings that have this form (ISOish)
|
|
107
|
-
// ["2021-01-01", "2021-10-02", "2021-01-03T12:00:00"]
|
|
108
|
-
// but we want the full path to each value
|
|
109
|
-
// but we can't compute that by simply splitting the strings by '-' or 'T',
|
|
110
|
-
// as if we do that, then we won't support removing a tree level
|
|
111
|
-
// so we have to compute the paths based on the options
|
|
112
74
|
const valueToPath = (0, react_1.useMemo)(() => {
|
|
113
75
|
const valueToPath = new Map();
|
|
114
76
|
const withOption = (option, parentPath = []) => {
|
|
@@ -123,9 +85,6 @@ const ColumnValuesSelect = (props) => {
|
|
|
123
85
|
}, [dateOptions]);
|
|
124
86
|
selectedColumnValues = selectedColumnValues
|
|
125
87
|
.map((v) => {
|
|
126
|
-
// Saved selections may be raw `Date` objects from older
|
|
127
|
-
// `orderedValues` snapshots; coerce to the same ISO string we use
|
|
128
|
-
// for option keys so the lookup still hits.
|
|
129
88
|
const key = v instanceof Date ? v.toISOString() : v;
|
|
130
89
|
return valueToPath.get(key);
|
|
131
90
|
})
|
|
@@ -135,7 +94,6 @@ const ColumnValuesSelect = (props) => {
|
|
|
135
94
|
? dateOptions
|
|
136
95
|
: optionsFromProps.filter((distinctValue) => {
|
|
137
96
|
let isActive = selectedColumnValues.indexOf(distinctValue.value) >= 0;
|
|
138
|
-
// special case for date objects, need to check against string values
|
|
139
97
|
if (!isActive && distinctValue.value && distinctValue.value instanceof Date) {
|
|
140
98
|
isActive = selectedColumnValues.some((dateStr) => (0, date_fns_1.isEqual)((0, DateHelper_1.parseDateValue)(dateStr), (0, DateHelper_1.parseDateValue)(distinctValue.value)));
|
|
141
99
|
}
|
|
@@ -163,23 +121,14 @@ const ColumnValuesSelect = (props) => {
|
|
|
163
121
|
: undefined;
|
|
164
122
|
const component = column.dataType === 'date' || column.columnId === GeneralConstants_1.AG_GRID_GROUPED_COLUMN ? ((0, jsx_runtime_1.jsx)(TreeDropdown_2.GridFilterTreeDropdown, { toDisplayValue: treeDropdownToDisplayValue, resizable: true, onValueChange: column.dataType === 'date'
|
|
165
123
|
? (value) => props.onChange(dateOnChangeParser(value))
|
|
166
|
-
: props.onChange, items: options,
|
|
167
|
-
// for dates, the treeDateOptions have ids that are numbers
|
|
168
|
-
// so we have to add the `toDateValue` function to convert the values to the correct format
|
|
169
|
-
value: selectedColumnValues, "data-name": "Select Values", primaryKey: 'value', isLoading: props.isLoading, onOpenChange: onOpenChange, showClear: (0, columnFilterLocation_1.isEmbeddedColumnFilterLocation)(location) })) : ((0, jsx_runtime_1.jsx)(Combobox_1.GridFilterCombobox, { disabled: props.disabled, ...selectProps, onOpenChange: onOpenChange, items: options, value: value, isLoading: props.isLoading, onValueChange: props.onChange, showClear: (0, columnFilterLocation_1.isEmbeddedColumnFilterLocation)(location) }, "select"));
|
|
124
|
+
: props.onChange, items: options, value: selectedColumnValues, "data-name": "Select Values", primaryKey: 'value', isLoading: props.isLoading, onOpenChange: onOpenChange, showClear: (0, columnFilterLocation_1.isEmbeddedColumnFilterLocation)(location) })) : ((0, jsx_runtime_1.jsx)(Combobox_1.GridFilterCombobox, { disabled: props.disabled, ...selectProps, onOpenChange: onOpenChange, items: options, value: value, isLoading: props.isLoading, onValueChange: props.onChange, showClear: (0, columnFilterLocation_1.isEmbeddedColumnFilterLocation)(location) }, "select"));
|
|
170
125
|
return ((0, jsx_runtime_1.jsx)("div", { className: (0, join_1.default)(baseClassName, 'twa:relative', props.isLoading && `${baseClassName}--loading`, !value.length && `${baseClassName}--empty`), onKeyDownCapture: (e) => {
|
|
171
126
|
if (e.key === 'Tab') {
|
|
172
|
-
// Prevent AG Grid from hijacking Tab; keep browser default focus navigation.
|
|
173
127
|
e.stopPropagation();
|
|
174
128
|
return;
|
|
175
129
|
}
|
|
176
130
|
const event = e.nativeEvent || e;
|
|
177
131
|
event.stopPropagation = () => {
|
|
178
|
-
// see #ensure-keyboard-navigation-works-in-column-values-filter
|
|
179
|
-
// we want to prevent ag grid from stopping the propagation of the event
|
|
180
|
-
// so that the event can be handled by the select component and thus makes keyboard navigation work
|
|
181
|
-
//
|
|
182
|
-
// the solution is to reassign the stopPropagation method to a function that does nothing
|
|
183
132
|
};
|
|
184
133
|
}, children: component }));
|
|
185
134
|
};
|
|
@@ -32,8 +32,6 @@ const ModuleValueSelector = (props) => {
|
|
|
32
32
|
return ArrayExtensions_1.default.sortArrayWithOrder(options, value, { sortUnorderedItems: true });
|
|
33
33
|
}, [allowReorder, options, value]);
|
|
34
34
|
const moduleFilter = (0, react_1.useCallback)((module, searchText) => {
|
|
35
|
-
// the module name is camelCased so I want to split it
|
|
36
|
-
// so we can also use spaces in the search text
|
|
37
35
|
const parts = module.split(/(?=[A-Z])/);
|
|
38
36
|
const withSpaces = parts.join(' ');
|
|
39
37
|
return (module.toLowerCase().includes(searchText.toLowerCase()) ||
|
|
@@ -9,9 +9,6 @@ const icons_1 = require("../../../components/icons");
|
|
|
9
9
|
const ButtonInfo_1 = require("../Buttons/ButtonInfo");
|
|
10
10
|
const twMerge_1 = require("../../../twMerge");
|
|
11
11
|
const Flex_1 = require("../../../components/Flex");
|
|
12
|
-
//We cannot destructure this.props using the react way in typescript which is a real pain as you
|
|
13
|
-
//need to transfer props individually as a consequence
|
|
14
|
-
//let { buttonContent, ...other } = this.props
|
|
15
12
|
class PanelWithImageCmp extends React.Component {
|
|
16
13
|
render() {
|
|
17
14
|
const IconCmp = icons_1.allIcons[(this.props.icon || this.props.glyphicon)];
|
|
@@ -20,8 +17,7 @@ class PanelWithImageCmp extends React.Component {
|
|
|
20
17
|
headerStyle.color = this.props.headerColor;
|
|
21
18
|
headerStyle.fill = this.props.headerColor;
|
|
22
19
|
}
|
|
23
|
-
let headerRow = ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:flex-1", children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "twa:min-h-[15px]", alignItems: "center", style: headerStyle, children: [IconCmp ? (0, jsx_runtime_1.jsx)(IconCmp, {}) : null, (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-2" }), this.props.header ?? '', (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-2", "data-name": "space-after" }), this.props.infoLink != null && !this.props.infoLinkDisabled && ((0, jsx_runtime_1.jsx)(ButtonInfo_1.ButtonInfo, { onClick: () => window.open(this.props.infoLink, '_blank'
|
|
24
|
-
) }))] }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:flex-1" }), this.props.button && React.cloneElement(this.props.button)] }) }));
|
|
20
|
+
let headerRow = ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:flex-1", children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "twa:min-h-[15px]", alignItems: "center", style: headerStyle, children: [IconCmp ? (0, jsx_runtime_1.jsx)(IconCmp, {}) : null, (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-2" }), this.props.header ?? '', (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-2", "data-name": "space-after" }), this.props.infoLink != null && !this.props.infoLinkDisabled && ((0, jsx_runtime_1.jsx)(ButtonInfo_1.ButtonInfo, { onClick: () => window.open(this.props.infoLink, '_blank') }))] }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { className: "twa:flex-1" }), this.props.button && React.cloneElement(this.props.button)] }) }));
|
|
25
21
|
return ((0, jsx_runtime_1.jsx)(Panel_1.default, { header: headerRow, variant: this.props.variant, style: this.props.style, bodyScroll: this.props.bodyScroll !== undefined ? this.props.bodyScroll : true, className: (0, twMerge_1.twMerge)('twa:rounded-none twa:border-none', this.props.className), bodyProps: {
|
|
26
22
|
...this.props.bodyProps,
|
|
27
23
|
className: (0, twMerge_1.twMerge)('twa:p-0', this.props.bodyProps?.className),
|
|
@@ -6,9 +6,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
7
7
|
const Panel_1 = tslib_1.__importDefault(require("../../../components/Panel"));
|
|
8
8
|
const Flex_1 = require("../../../components/Flex");
|
|
9
|
-
// We cannot destructure this.props using the react way in typescript which is a real pain as you
|
|
10
|
-
// need to transfer props individually as a consequence
|
|
11
|
-
// let { buttonContent, ...other } = this.props
|
|
12
9
|
class PanelWithRow extends React.Component {
|
|
13
10
|
render() {
|
|
14
11
|
const headerItems = this.props.colItems.map((colItem, index) => ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-bold twa:text-3 twa:px-1", style: {
|
|
@@ -25,11 +25,6 @@ const AdaptablePopup = (props) => {
|
|
|
25
25
|
const isWindowModal = settingsPanelOptions.popupType === 'window';
|
|
26
26
|
const modalContainer = (0, resolveContainerElement_1.resolveContainerElement)(adaptable.adaptableOptions?.containerOptions?.modalContainer, props.api.internalApi.buildBaseContext());
|
|
27
27
|
let friendlyName = null;
|
|
28
|
-
/**
|
|
29
|
-
* This means that it is not rendered in the context of Settings Panel
|
|
30
|
-
* - no topbar
|
|
31
|
-
* - no navigation
|
|
32
|
-
*/
|
|
33
28
|
let isStandalone = false;
|
|
34
29
|
let moduleViewContent = null;
|
|
35
30
|
let activeItem = null;
|
|
@@ -38,7 +33,6 @@ const AdaptablePopup = (props) => {
|
|
|
38
33
|
const firstMenuModule = firstMenuItem?.category;
|
|
39
34
|
let componentModule = props.componentModule;
|
|
40
35
|
let componentName = props.componentName;
|
|
41
|
-
// ts forces to check for General, there is no menu item General
|
|
42
36
|
const useFirstItem = !props.componentName;
|
|
43
37
|
if (useFirstItem &&
|
|
44
38
|
firstMenuModule !== 'General' &&
|
|
@@ -18,7 +18,6 @@ const AdaptablePopupBody = (props) => {
|
|
|
18
18
|
props.onHide();
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
// show share button if TeamSharing is active & user has edit rights
|
|
22
21
|
teamSharingActivated: props.api.teamSharingApi.isTeamSharingAvailable() &&
|
|
23
22
|
props.api.teamSharingApi.hasTeamSharingFullRights(),
|
|
24
23
|
modalContainer: modalContainer,
|
|
@@ -27,8 +26,6 @@ const AdaptablePopupBody = (props) => {
|
|
|
27
26
|
moduleInfo,
|
|
28
27
|
};
|
|
29
28
|
const BodyComponent = AdaptableViewFactory_1.AdaptableViewFactory?.[props?.componentName ?? moduleInfo.Popup] || AdaptablePopupModuleView_1.AdaptablePopupModuleView;
|
|
30
|
-
// key is to make sure state is reset between views
|
|
31
|
-
// most of the views use the `AdaptablePopupModuleView` component
|
|
32
29
|
return (0, jsx_runtime_1.jsx)(BodyComponent, { module: props.module, ...moduleProps }, props?.componentName);
|
|
33
30
|
};
|
|
34
31
|
exports.AdaptablePopupBody = AdaptablePopupBody;
|
|
@@ -22,10 +22,6 @@ const Panel_1 = tslib_1.__importDefault(require("../../../../components/Panel"))
|
|
|
22
22
|
const Tabs_1 = require("../../../../components/Tabs");
|
|
23
23
|
const DropdownButton_1 = require("../../../../components/DropdownButton");
|
|
24
24
|
const AdaptablePopupModuleView = (props) => {
|
|
25
|
-
/**
|
|
26
|
-
* This triggers a render for each state change.
|
|
27
|
-
* NOT sure this is still needed... It is here for historical reasons.
|
|
28
|
-
*/
|
|
29
25
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
30
26
|
const rerender = (0, useRerender_1.useRerender)();
|
|
31
27
|
(0, react_1.useEffect)(() => {
|
|
@@ -70,8 +66,6 @@ const AdaptablePopupModuleView = (props) => {
|
|
|
70
66
|
emptyContent = emptyView;
|
|
71
67
|
}
|
|
72
68
|
const toolTipText = moduleViewProperties.newTooltipText ?? `Create ${moduleInfo.FriendlyName}`;
|
|
73
|
-
// Some modules do not have new button
|
|
74
|
-
// e.g. filter
|
|
75
69
|
let newButton = null;
|
|
76
70
|
if (moduleViewProperties?.abObjectTypes?.length) {
|
|
77
71
|
const items = moduleViewProperties?.abObjectTypes.map((abObjectType) => {
|
|
@@ -7,7 +7,6 @@ const Flex_1 = require("../../../../components/Flex");
|
|
|
7
7
|
const utils_1 = require("../../../../lib/utils");
|
|
8
8
|
const PopupPanel = (props) => {
|
|
9
9
|
const baseClassName = 'ab-Adaptable-Popup__Panel';
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)('twa:flex-1 twa:flex twa:flex-col twa:gap-3 twa:p-1', props.className, baseClassName, props.scrollable === false ? 'twa:overflow-hidden' : 'twa:overflow-auto'), children: [(0, jsx_runtime_1.jsxs)("div", { className: `${baseClassName}__Header twa:flex`, children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-0", "data-name": "space-before" }), (0, jsx_runtime_1.jsx)("div", { className: `${baseClassName}__Header__Title`, children: props.headerText }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-2", "data-name": "space-after" }), props.infoLink != null && !props.infoLinkDisabled && ((0, jsx_runtime_1.jsx)(ButtonInfo_1.ButtonInfo, { tone: "none", variant: "text", iconSize: 24, onClick: () => window.open(props.infoLink, '_blank'
|
|
11
|
-
) }))] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1" }), props.button] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: (0, utils_1.cn)('twa:w-full twa:flex twa:flex-col twa:flex-1 twa:min-h-0', `${baseClassName}__Body`, props.bodyClassName), children: props.children })] }));
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: (0, utils_1.cn)('twa:flex-1 twa:flex twa:flex-col twa:gap-3 twa:p-1', props.className, baseClassName, props.scrollable === false ? 'twa:overflow-hidden' : 'twa:overflow-auto'), children: [(0, jsx_runtime_1.jsxs)("div", { className: `${baseClassName}__Header twa:flex`, children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-0", "data-name": "space-before" }), (0, jsx_runtime_1.jsx)("div", { className: `${baseClassName}__Header__Title`, children: props.headerText }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:mr-2", "data-name": "space-after" }), props.infoLink != null && !props.infoLinkDisabled && ((0, jsx_runtime_1.jsx)(ButtonInfo_1.ButtonInfo, { tone: "none", variant: "text", iconSize: 24, onClick: () => window.open(props.infoLink, '_blank') }))] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1" }), props.button] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: (0, utils_1.cn)('twa:w-full twa:flex twa:flex-col twa:flex-1 twa:min-h-0', `${baseClassName}__Body`, props.bodyClassName), children: props.children })] }));
|
|
12
11
|
};
|
|
13
12
|
exports.PopupPanel = PopupPanel;
|
|
@@ -23,7 +23,6 @@ const useMenuItems = () => {
|
|
|
23
23
|
const resolveNavigationItem = (moduleName) => {
|
|
24
24
|
const customSettingsPanel = settingsPanelOptions?.customSettingsPanels?.find?.((panel) => panel.name === moduleName);
|
|
25
25
|
if (customSettingsPanel) {
|
|
26
|
-
// @ts-ignore custom settings panel menu items are not part of the standard menu name union
|
|
27
26
|
return {
|
|
28
27
|
category: 'CustomSettingsPanel',
|
|
29
28
|
label: customSettingsPanel.name,
|
|
@@ -23,7 +23,6 @@ const AdaptablePopupAlert = (props) => {
|
|
|
23
23
|
header = `${header}: ${props.adaptableAlert.header}`;
|
|
24
24
|
}
|
|
25
25
|
let glyph = UIHelper_1.UIHelper.getGlyphByMessageType(messageType);
|
|
26
|
-
// we still need the defauld
|
|
27
26
|
const defaultForm = React.useMemo(() => {
|
|
28
27
|
return api.alertApi.internalApi.getDefaultAlertNotificationForm();
|
|
29
28
|
}, []);
|
|
@@ -55,8 +54,6 @@ const AdaptablePopupAlert = (props) => {
|
|
|
55
54
|
})
|
|
56
55
|
: msg] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:m-2", children: adaptableForm ? ((0, jsx_runtime_1.jsx)(AdaptableFormComponent_1.AdaptableFormComponent, { focusFirstButton: props.focusFirstButton, data: formData, formDef: adaptableForm, displayTitle: true, onChange: setFormData, api: api, context: context, onButtonClick: (button) => {
|
|
57
56
|
props.onClose();
|
|
58
|
-
// we want to give the current popup time to close
|
|
59
|
-
// and we reopen with a delay in case this button action causes another popup
|
|
60
57
|
setTimeout(() => {
|
|
61
58
|
button.onClick?.(button, context);
|
|
62
59
|
}, 20);
|
|
@@ -7,8 +7,6 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/Obje
|
|
|
7
7
|
const AdaptablePopupAlert_1 = require("./AdaptablePopupAlert");
|
|
8
8
|
const Toastify_1 = require("../../../components/Toastify");
|
|
9
9
|
const showToast = (props) => {
|
|
10
|
-
// we're doing this hack and not simply using props.api in order not to have a memory
|
|
11
|
-
// leak where the api is still kept around in memory by the toaster
|
|
12
10
|
let api = props.api;
|
|
13
11
|
const off = api.eventApi.on('AdaptableDestroy', () => {
|
|
14
12
|
Toastify_1.toast.dismiss();
|
|
@@ -18,14 +18,8 @@ const NoopComponent = () => {
|
|
|
18
18
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
19
19
|
};
|
|
20
20
|
exports.CUSTOM_WINDOW_FACTORY_ID = 'CUSTOM_WINDOW_FACTORY_ID';
|
|
21
|
-
/**
|
|
22
|
-
* Portals children into a target container element.
|
|
23
|
-
* Monitors the container with a MutationObserver — if the container is removed
|
|
24
|
-
* from the DOM, `onContainerRemoved` is called so callers can clean up React/Redux state.
|
|
25
|
-
*/
|
|
26
21
|
const ContainerPortal = ({ container, onContainerRemoved, children }) => {
|
|
27
22
|
React.useEffect(() => {
|
|
28
|
-
// If the container is already detached, clean up immediately
|
|
29
23
|
if (!document.contains(container)) {
|
|
30
24
|
onContainerRemoved();
|
|
31
25
|
return;
|
|
@@ -36,7 +30,6 @@ const ContainerPortal = ({ container, onContainerRemoved, children }) => {
|
|
|
36
30
|
observer.disconnect();
|
|
37
31
|
}
|
|
38
32
|
});
|
|
39
|
-
// Observe the entire document body for subtree removals
|
|
40
33
|
observer.observe(document.body, { childList: true, subtree: true });
|
|
41
34
|
return () => {
|
|
42
35
|
observer.disconnect();
|
|
@@ -70,7 +63,6 @@ const WindowPopups = () => {
|
|
|
70
63
|
Component = Component ?? NoopComponent;
|
|
71
64
|
componentNode = ((0, jsx_runtime_1.jsx)(Component, { api: adaptable.api, onDismiss: handleDismiss, popupProps: restPopupProps }));
|
|
72
65
|
}
|
|
73
|
-
// Transposed View: portal into custom container if configured
|
|
74
66
|
if (windowItem.FactoryId === windowFactory_1.WINDOW_SHOW_TRANSPOSED_VIEW) {
|
|
75
67
|
const transposedContainer = (0, resolveContainerElement_1.resolveContainerElement)(adaptable.adaptableOptions?.containerOptions?.transposedViewContainer, adaptable.api.internalApi.buildBaseContext());
|
|
76
68
|
if (transposedContainer) {
|