@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
|
@@ -28,8 +28,7 @@ const StyledColumnSparklinePreview_1 = require("../View/StyledColumn/Wizard/Styl
|
|
|
28
28
|
const getObjectTagsViewItems_1 = require("../Utilities/getObjectTagsViewItems");
|
|
29
29
|
class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
30
30
|
constructor(api) {
|
|
31
|
-
super(ModuleConstants.StyledColumnModuleId, ModuleConstants.StyledColumnFriendlyName, 'brush', 'StyledColumnPopup',
|
|
32
|
-
'Create a Special Column Style e.g Gradient, Percent Bar or Badge', api);
|
|
31
|
+
super(ModuleConstants.StyledColumnModuleId, ModuleConstants.StyledColumnFriendlyName, 'brush', 'StyledColumnPopup', 'Create a Special Column Style e.g Gradient, Percent Bar or Badge', api);
|
|
33
32
|
}
|
|
34
33
|
getModuleAdaptableObjects(config) {
|
|
35
34
|
return this.api.styledColumnApi.getStyledColumns(config);
|
|
@@ -42,17 +41,13 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
42
41
|
}
|
|
43
42
|
createColumnMenuItems(column) {
|
|
44
43
|
let returnColumnMenuItems = [];
|
|
45
|
-
// Need a Column and an editable Module
|
|
46
44
|
if (column && this.isModuleEditable() && !column.isTreeColumn) {
|
|
47
45
|
let styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(column.columnId);
|
|
48
|
-
// First look at Sparkline Columns - needs to be editable array type
|
|
49
46
|
if (this.api.columnApi.hasNumericArrayDataType(column.columnId) &&
|
|
50
47
|
column.IsReadOnly !== true &&
|
|
51
48
|
this.api.styledColumnApi.canDisplaySparklines()) {
|
|
52
49
|
let sparklineColumnExists = column.isSparkline && Boolean(styledColumn);
|
|
53
50
|
if (column.isSparkline && !sparklineColumnExists) {
|
|
54
|
-
// do nothing as we only want to continue if there is no sparkline column or if its in state
|
|
55
|
-
// because if just one then it was created in AG Grid and we dont want to edit it
|
|
56
51
|
}
|
|
57
52
|
else {
|
|
58
53
|
const hasSparklineStyle = styledColumn != null && styledColumn.SparklineStyle != null;
|
|
@@ -72,17 +67,13 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
72
67
|
source: 'ColumnMenu',
|
|
73
68
|
value: styledColumn,
|
|
74
69
|
config: {
|
|
75
|
-
// New Styled Columns must land on the Settings step so the user
|
|
76
|
-
// can enter the (mandatory) Name. Edit jumps straight to Style.
|
|
77
70
|
defaultCurrentSectionName: hasSparklineStyle ? 'Style' : 'Settings',
|
|
78
71
|
},
|
|
79
72
|
};
|
|
80
73
|
returnColumnMenuItems.push(this.createMenuItemShowPopup(name, label + 'Sparkline Column', this.moduleInfo.Popup, this.getGlyphForStyledColumn(styledColumn), popupParam));
|
|
81
74
|
}
|
|
82
75
|
}
|
|
83
|
-
// Next do non sparkline
|
|
84
76
|
else if (!column.isSparkline) {
|
|
85
|
-
// Edit is common
|
|
86
77
|
if (styledColumn) {
|
|
87
78
|
if (!styledColumn.IsReadOnly) {
|
|
88
79
|
const defaultCurrentSectionName = (0, StyledColumnWizard_1.getStyledColumnEditDefaultSectionName)(styledColumn);
|
|
@@ -125,8 +116,6 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
125
116
|
defaultCurrentSectionName: 'Settings',
|
|
126
117
|
},
|
|
127
118
|
});
|
|
128
|
-
// Icon Style resolves one key → glyph per cell; array columns are
|
|
129
|
-
// unsupported (use Badge for per-element visuals).
|
|
130
119
|
const newIconButton = this.createMenuItemShowPopup('styled-column-icon-add', 'Create Icon Column', this.moduleInfo.Popup, 'icon-style', {
|
|
131
120
|
...popupParam,
|
|
132
121
|
value: {
|
|
@@ -140,8 +129,6 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
140
129
|
},
|
|
141
130
|
});
|
|
142
131
|
switch (column.dataType) {
|
|
143
|
-
// Number
|
|
144
|
-
// Create Styled Column - Gradient | Percent Bar | Badge
|
|
145
132
|
case 'number':
|
|
146
133
|
const emptyRanges = this.api.columnScopeApi.createCellColorRangesForScope({
|
|
147
134
|
ColumnIds: [column.columnId],
|
|
@@ -196,8 +183,6 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
196
183
|
...popupParam,
|
|
197
184
|
value: {
|
|
198
185
|
...newStyledColumn,
|
|
199
|
-
// Seed with column-wide bounds so the Style step opens
|
|
200
|
-
// with a valid (renderable) configuration.
|
|
201
186
|
RangeBarStyle: {
|
|
202
187
|
Min: 'Col-Min',
|
|
203
188
|
Max: 'Col-Max',
|
|
@@ -30,7 +30,6 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
30
30
|
}
|
|
31
31
|
onAdaptableReady() {
|
|
32
32
|
if (this.api.teamSharingApi.isTeamSharingAvailable()) {
|
|
33
|
-
// make sure there is no zombie import process remaining (in case a previous import crashed)
|
|
34
33
|
this.api.internalApi.dispatchReduxAction(TeamSharingRedux.TeamSharingCommitImport());
|
|
35
34
|
this.api.teamSharingApi.refreshTeamSharing();
|
|
36
35
|
}
|
|
@@ -49,25 +48,20 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
49
48
|
return 1000;
|
|
50
49
|
}
|
|
51
50
|
handleStateChanged(adaptableStateChangedInfo) {
|
|
52
|
-
// check if TeamSharing is activated
|
|
53
51
|
if (!this.api.teamSharingApi.isTeamSharingAvailable()) {
|
|
54
52
|
return;
|
|
55
53
|
}
|
|
56
|
-
// skip all teamsharing actions, otherwise we could get in an infinite loop
|
|
57
54
|
if (this.SKIP_TEAMSHARING_UPDATE_ACTIONS.includes(adaptableStateChangedInfo.action.type)) {
|
|
58
55
|
return;
|
|
59
56
|
}
|
|
60
|
-
// check if there is any changed adaptable object
|
|
61
57
|
const changedAdaptableObject = this.extractAdaptableObjectFromAction(adaptableStateChangedInfo.action);
|
|
62
58
|
if (!changedAdaptableObject) {
|
|
63
59
|
return;
|
|
64
60
|
}
|
|
65
|
-
// check if the changed adaptable object is active in TeamSharing
|
|
66
61
|
const activeSharedEntity = this.api.internalApi.getState().TeamSharing.ActiveSharedEntityMap[changedAdaptableObject.Uuid];
|
|
67
62
|
if (!activeSharedEntity) {
|
|
68
63
|
return;
|
|
69
64
|
}
|
|
70
|
-
// handle special case of LAYOUT_SAVE which might be called redundantly without actually changing the state
|
|
71
65
|
const isLayoutStateUnchanged = adaptableStateChangedInfo.action.type === LayoutRedux_1.LAYOUT_SAVE &&
|
|
72
66
|
(0, ObjectExtensions_1.isEqual)(adaptableStateChangedInfo.oldState.Layout, adaptableStateChangedInfo.newState.Layout);
|
|
73
67
|
if (isLayoutStateUnchanged) {
|
|
@@ -76,8 +70,6 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
76
70
|
this.api.internalApi.dispatchReduxAction((0, TeamSharingRedux_1.TeamSharingUpdateItem)(changedAdaptableObject, adaptableStateChangedInfo.userName));
|
|
77
71
|
}
|
|
78
72
|
extractAdaptableObjectFromAction(action) {
|
|
79
|
-
// this implementation is based on the assumption that any action which mutates an AdaptableObject has
|
|
80
|
-
// at most one(1) property which has an 'Uuid:TypeUuid' defined (and that is the AdaptableObject, of course)
|
|
81
73
|
if (!action) {
|
|
82
74
|
return;
|
|
83
75
|
}
|
|
@@ -161,7 +153,6 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
161
153
|
}
|
|
162
154
|
toViewAll() {
|
|
163
155
|
return ((this.api.teamSharingApi.getLoadedAdaptableSharedEntities() ?? [])
|
|
164
|
-
// only top level
|
|
165
156
|
.filter((sharedEntity) => !this.isSharedEntityADependency(sharedEntity))
|
|
166
157
|
.map((item) => this.toView(item)));
|
|
167
158
|
}
|
|
@@ -103,12 +103,7 @@ function getTableColumnsSizingSummaryValues(layout, api) {
|
|
|
103
103
|
function getTableColumnsSortingSummaryValues(layout, api) {
|
|
104
104
|
return (layout.ColumnSorts ?? []).map((sort) => `[${api.columnApi.getFriendlyNameForColumnId(sort.ColumnId, layout)}: ${sort.SortOrder}]`);
|
|
105
105
|
}
|
|
106
|
-
/** Matches legacy Layout settings panel behaviour (`layoutViewOptions.maxColumnsToDisplay`). */
|
|
107
106
|
exports.DEFAULT_LAYOUT_VIEW_MAX_COLUMNS = 10;
|
|
108
|
-
/**
|
|
109
|
-
* Collapse a long column list for compact views (e.g. Layout settings panel).
|
|
110
|
-
* Keeps all items when the overflow is only 1 column; otherwise shows `+N more`.
|
|
111
|
-
*/
|
|
112
107
|
function truncateColumnSummaryValues(values, maxToDisplay = exports.DEFAULT_LAYOUT_VIEW_MAX_COLUMNS) {
|
|
113
108
|
if (maxToDisplay <= 0 || values.length <= maxToDisplay + 1) {
|
|
114
109
|
return values;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AgGridRequiredModulesDocsLink = exports.FormatColumnPlaceholderDocsLink = exports.AlertMessageDocsLink = exports.AgGridModulesDocsLink = exports.AdaptableOptionsDocsLink = exports.LicenseDocsLink = exports.PrimaryKeyDocsLink = exports.PredicateDocsLink = exports.QuantileAggregatedScalarQueryDocsLink = exports.CumulativeAggregatedScalarQueryDocsLink = exports.AggregatedScalarQueryDocsLink = exports.AggregatedBooleanQueryDocsLink = exports.ObservableQueryDocsLink = exports.ScalarQueryDocsLink = exports.BooleanQueryDocsLink = exports.ExpressionEditorDocsLink = exports.HOST_URL_DOCS = exports.HOST_URL_ROOT = void 0;
|
|
4
4
|
exports.HOST_URL_ROOT = 'https://www.adaptabletools.com';
|
|
5
5
|
exports.HOST_URL_DOCS = `${exports.HOST_URL_ROOT}/docs`;
|
|
6
|
-
//export const HOST_URL_DOCS = 'http://localhost:3000';
|
|
7
6
|
exports.ExpressionEditorDocsLink = `${exports.HOST_URL_DOCS}/ui-expression-editor`;
|
|
8
7
|
exports.BooleanQueryDocsLink = `${exports.HOST_URL_DOCS}/adaptable-ql-expression-standard`;
|
|
9
8
|
exports.ScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/adaptable-ql-expression-standard`;
|
|
@@ -17,7 +17,6 @@ exports.ADAPTABLE = 'AdapTable';
|
|
|
17
17
|
exports.ADAPTABLE_ID = 'adaptable_id';
|
|
18
18
|
exports.ADAPTABLE_TOOLPANEL_ID = 'adaptable';
|
|
19
19
|
exports.ADAPTABLE_TOOLPANEL_COMPONENT = 'AdaptableToolPanel';
|
|
20
|
-
// from https://www.ag-grid.com/javascript-data-grid/side-bar/#string-configuration
|
|
21
20
|
exports.AGGRID_TOOLPANEL_FILTERS = 'filters';
|
|
22
21
|
exports.AGGRID_TOOLPANEL_COLUMNS = 'columns';
|
|
23
22
|
exports.READ_ONLY_STYLE = 'ab_readonly';
|
|
@@ -33,7 +32,6 @@ exports.AG_GRID_PIVOT_GRAND_TOTAL_COLUMN = 'PivotRowTotal_pivot_';
|
|
|
33
32
|
exports.AG_GRID_CHART_WINDOW = 'AG Grid Window';
|
|
34
33
|
exports.AG_GRID_GRAND_TOTAL_ROW_ID = 'rowGroupFooter_ROOT_NODE_ID';
|
|
35
34
|
exports.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = '(FDC3ActionColumn)';
|
|
36
|
-
// FIXME AFL - load this from DateInputOptions
|
|
37
35
|
exports.DEFAULT_DATE_FORMAT_PATTERN = 'dd-MM-yyyy';
|
|
38
36
|
exports.DEFAULT_DATE_FORMAT_PATTERN_WITH_TIME = 'dd-MM-yyyy HH:mm:ss';
|
|
39
37
|
exports.DEFAULT_STRING_DISPLAY_VALUE = 'Hello World';
|
|
@@ -41,12 +39,9 @@ exports.DEFAULT_INTEGER_DISPLAY_VALUE = 12345;
|
|
|
41
39
|
exports.DEFAULT_DOUBLE_DISPLAY_VALUE = 12345.6789;
|
|
42
40
|
exports.QUICK_SEARCH_DEBOUNCE_TIME = 350;
|
|
43
41
|
exports.MENU_SEPARATOR = '-';
|
|
44
|
-
// Live Report Throttle Time (used in OpenFin, IPushPull etc.)
|
|
45
42
|
exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = 2000;
|
|
46
|
-
// Validation
|
|
47
43
|
exports.SERVER_VALIDATION_HEADER = 'Server Validation Message';
|
|
48
44
|
exports.SERVER_VALIDATION_MESSAGE_TYPE = 'Info';
|
|
49
|
-
// System Report Name Constants
|
|
50
45
|
exports.ALL_DATA_REPORT = 'All Data';
|
|
51
46
|
exports.CURRENT_LAYOUT_REPORT = 'Current Layout';
|
|
52
47
|
exports.SELECTED_DATA_REPORT = 'Selected Data';
|
|
@@ -55,7 +50,6 @@ exports.SYSTEM_REPORT_NAMES = [
|
|
|
55
50
|
exports.ALL_DATA_REPORT,
|
|
56
51
|
exports.SELECTED_DATA_REPORT,
|
|
57
52
|
];
|
|
58
|
-
// Systen Report Format Constants
|
|
59
53
|
exports.EXCEL_FORMAT_REPORT = 'Excel';
|
|
60
54
|
exports.VISUAL_EXCEL_FORMAT_REPORT = 'VisualExcel';
|
|
61
55
|
exports.CSV_FORMAT_REPORT = 'CSV';
|
|
@@ -74,9 +68,7 @@ exports.SYSTEM_EXPORT_DESTINATIONS = [
|
|
|
74
68
|
exports.DOWNLOAD_EXPORT_DESTINATION,
|
|
75
69
|
exports.CLIPBOARD_EXPORT_DESTINATION,
|
|
76
70
|
];
|
|
77
|
-
// Theme Constants
|
|
78
71
|
exports.THEME_STYLE = `ab--theme-`;
|
|
79
|
-
// Layout UI Constants
|
|
80
72
|
exports.LAYOUT_NEW_TABLE_TOOLTIP = 'Create a new Table Layout';
|
|
81
73
|
exports.LAYOUT_NEW_PIVOT_TOOLTIP = 'Create a new Pivot Layout';
|
|
82
74
|
exports.LAYOUT_NEW_TABLE_OR_PIVOT_TOOLTIP = 'Create a new Layout';
|
|
@@ -84,7 +76,6 @@ exports.LAYOUT_SAVE_TOOLTIP = 'Save Changes to Current Layout';
|
|
|
84
76
|
exports.LAYOUT_EDIT_TOOLTIP = 'Edit Layout';
|
|
85
77
|
exports.LAYOUT_CLONE_TOOLTIP = 'Clone Layout';
|
|
86
78
|
exports.LAYOUT_DELETE_TOOLTIP = 'Delete Layout';
|
|
87
|
-
// Standalone Popups
|
|
88
79
|
exports.STANDALONE_MODULE_POPUPS = [
|
|
89
80
|
'BulkUpdate',
|
|
90
81
|
'SmartEdit',
|
|
@@ -92,7 +83,6 @@ exports.STANDALONE_MODULE_POPUPS = [
|
|
|
92
83
|
];
|
|
93
84
|
exports.OBSERVABLE_EXPRESSION_ROW_ADDED = 'ROW_ADDED';
|
|
94
85
|
exports.OBSERVABLE_EXPRESSION_ROW_REMOVED = 'ROW_REMOVED';
|
|
95
|
-
// Entitlement Access Level Constants
|
|
96
86
|
exports.ACCESS_LEVEL_FULL = 'Full';
|
|
97
87
|
exports.ACCESS_LEVEL_READ_ONLY = 'ReadOnly';
|
|
98
88
|
exports.ACCESS_LEVEL_HIDDEN = 'Hidden';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Object Factory
|
|
6
|
-
*/
|
|
7
4
|
exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = 1;
|
|
8
5
|
exports.ALERT_DEFAULT_MESSAGE_TYPE = 'Error';
|
|
9
6
|
exports.ALERT_DEFAULT_SHOW_POPUP = true;
|
|
@@ -4,14 +4,10 @@ exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_THEMES = exports.QUICK_SEAR
|
|
|
4
4
|
const Enums_1 = require("../../AdaptableState/Common/Enums");
|
|
5
5
|
const UIHelper_1 = require("../../View/UIHelper");
|
|
6
6
|
const GeneralConstants_1 = require("./GeneralConstants");
|
|
7
|
-
// Cells Summary
|
|
8
7
|
exports.CELL_SUMMARY_DEFAULT_OPERATION = Enums_1.SummaryOperation.Sum;
|
|
9
|
-
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.QUICK_SEARCH_DEFAULT_CURRENT_BACK_COLOR = (0, UIHelper_1.getSwatchColorVar)(20); // orange
|
|
14
|
-
// theme
|
|
15
|
-
// consts for Themes
|
|
8
|
+
exports.QUICK_SEARCH_DEFAULT_TEXT_BACK_COLOR = (0, UIHelper_1.getSwatchColorVar)(9);
|
|
9
|
+
exports.QUICK_SEARCH_DEFAULT_CELL_BACK_COLOR = (0, UIHelper_1.getSwatchColorVar)(10);
|
|
10
|
+
exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = (0, UIHelper_1.getSwatchColorVar)(1);
|
|
11
|
+
exports.QUICK_SEARCH_DEFAULT_CURRENT_BACK_COLOR = (0, UIHelper_1.getSwatchColorVar)(20);
|
|
16
12
|
exports.SYSTEM_THEMES = [GeneralConstants_1.LIGHT_THEME, GeneralConstants_1.DARK_THEME, GeneralConstants_1.OS_THEME];
|
|
17
13
|
exports.THEME_DEFAULT_CURRENT_THEME = GeneralConstants_1.LIGHT_THEME;
|
package/src/Utilities/Emitter.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/** based on emittery npm package, which is MIT */
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const anyMap = new WeakMap();
|
|
5
4
|
const eventsMap = new WeakMap();
|
|
6
5
|
const triggeredMap = new WeakMap();
|
|
7
6
|
const resolvedPromise = Promise.resolve();
|
|
8
|
-
//type EmitterCallback = (data?: any) => any;
|
|
9
7
|
function assertEventName(eventName) {
|
|
10
8
|
if (typeof eventName !== 'string') {
|
|
11
9
|
throw new TypeError('eventName must be a string');
|
|
@@ -19,8 +17,6 @@ function assertListener(listener) {
|
|
|
19
17
|
function getListeners(instance, eventName) {
|
|
20
18
|
const events = eventsMap.get(instance);
|
|
21
19
|
if (!events) {
|
|
22
|
-
// we're hitting this case only when calling `off` after the instance has been destroyed (so extremely rarely)
|
|
23
|
-
// so we want to return an empty set in order not to make the code throw an error
|
|
24
20
|
return new Set();
|
|
25
21
|
}
|
|
26
22
|
if (!events.has(eventName)) {
|
|
@@ -87,9 +83,6 @@ class Emittery {
|
|
|
87
83
|
}
|
|
88
84
|
destroy() {
|
|
89
85
|
this.clearListeners();
|
|
90
|
-
// should not be needed, since those maps are weak
|
|
91
|
-
// but let's do it anyway - some of our users suggested this Emitter class
|
|
92
|
-
// could be a source of memory leaks, so let's clean this up
|
|
93
86
|
anyMap.delete(this);
|
|
94
87
|
eventsMap.delete(this);
|
|
95
88
|
triggeredMap.delete(this);
|
|
@@ -180,7 +173,6 @@ class Emittery {
|
|
|
180
173
|
const staticListeners = [...listeners];
|
|
181
174
|
const staticAnyListeners = [...anyListeners];
|
|
182
175
|
await resolvedPromise;
|
|
183
|
-
/* eslint-disable no-await-in-loop */
|
|
184
176
|
for (const listener of staticListeners) {
|
|
185
177
|
if (listeners.has(listener)) {
|
|
186
178
|
await listener(eventData);
|
|
@@ -191,7 +183,6 @@ class Emittery {
|
|
|
191
183
|
await listener(eventName, eventData);
|
|
192
184
|
}
|
|
193
185
|
}
|
|
194
|
-
/* eslint-enable no-await-in-loop */
|
|
195
186
|
}
|
|
196
187
|
onAny(listener) {
|
|
197
188
|
assertListener(listener);
|
|
@@ -20,9 +20,6 @@ const aggregationScalarOperandMap = {
|
|
|
20
20
|
AVG: ['string', 'number'],
|
|
21
21
|
COUNT: ['string', 'number'],
|
|
22
22
|
};
|
|
23
|
-
// 0. optional non-capturing block of empty spaces
|
|
24
|
-
// 1. block containing a numeric value (any digits) (required)
|
|
25
|
-
// 2. block containing a single 'K', 'M' or 'B' letter (optional) (case insensitive)
|
|
26
23
|
const CRITERIA_REGEX = /^(?:\s*)(\d+)(K|M|B)?$/i;
|
|
27
24
|
exports.aggregatedBooleanExpressionFunctions = {
|
|
28
25
|
WHERE: {
|
|
@@ -144,9 +141,7 @@ exports.aggregatedBooleanExpressionFunctions = {
|
|
|
144
141
|
},
|
|
145
142
|
};
|
|
146
143
|
const buildBooleanAggregationParameter = (args, context, comparisonOperator, conditionFn) => {
|
|
147
|
-
// LHS
|
|
148
144
|
const aggregationOperand = extractScalarAggregationOperand(comparisonOperator, args[0]);
|
|
149
|
-
// RHS
|
|
150
145
|
const scalarOperand = extractScalarOperand(comparisonOperator, args[1], aggregationScalarOperandMap[aggregationOperand.name]);
|
|
151
146
|
return {
|
|
152
147
|
type: 'aggregationBoolean',
|
|
@@ -172,7 +167,6 @@ const extractScalarOperand = (consumingFunctionName, value, allowedTypes) => {
|
|
|
172
167
|
if (typeof value === 'number') {
|
|
173
168
|
return value;
|
|
174
169
|
}
|
|
175
|
-
// assertion is safe, we checked in the IF above
|
|
176
170
|
const stringValue = value;
|
|
177
171
|
const matchingResult = stringValue.match(CRITERIA_REGEX);
|
|
178
172
|
const numericString = matchingResult?.[1];
|
|
@@ -180,14 +174,12 @@ const extractScalarOperand = (consumingFunctionName, value, allowedTypes) => {
|
|
|
180
174
|
if (!numericString) {
|
|
181
175
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('Numeric abbreviation', `"${stringValue}" is invalid, expecting a number with a suffix for thousands(K), millions(M) or billions(B)"`);
|
|
182
176
|
}
|
|
183
|
-
// unit -> number
|
|
184
177
|
const numberUnitRatios = {
|
|
185
178
|
number: 1,
|
|
186
179
|
k: 1000,
|
|
187
180
|
m: 1000000,
|
|
188
181
|
b: 1000000000,
|
|
189
182
|
};
|
|
190
|
-
// numeric value
|
|
191
183
|
return (0, NumberExtensions_1.parseIntFn)(numericString) * numberUnitRatios[largeNumberUnit.toLowerCase()];
|
|
192
184
|
};
|
|
193
185
|
exports.aggregatedBooleanExpressionFunctionNames = (0, TypeExtensions_1.getTypedKeys)(exports.aggregatedBooleanExpressionFunctions);
|
|
@@ -64,8 +64,6 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
64
64
|
isOptional: true,
|
|
65
65
|
});
|
|
66
66
|
if (!!groupByParameter) {
|
|
67
|
-
// ensure the GROUP_BY is NOT on the CUMUL function
|
|
68
|
-
// it should be on the AGGREGATION function
|
|
69
67
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('GROUP_BY', `should be passed as an argument to the '${aggregationParameter.name}' aggregation function!`);
|
|
70
68
|
}
|
|
71
69
|
const cumulationExpressionEvaluation = mapAggregationToCumulation(aggregationParameter, overColumnParameter, context);
|
|
@@ -227,7 +225,6 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
227
225
|
}
|
|
228
226
|
const numericRowValue = (0, expressionFunctionUtils_1.getNumericValue)(rowValue);
|
|
229
227
|
if (weightParameter) {
|
|
230
|
-
// weighted average
|
|
231
228
|
const weightValue = (0, expressionFunctionUtils_1.getNumericValue)(context.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, weightParameter.value)) ?? 0;
|
|
232
229
|
aggregatedValue.sumOfValues =
|
|
233
230
|
aggregatedValue.sumOfValues + numericRowValue * weightValue;
|
|
@@ -517,7 +514,6 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
517
514
|
field: columnName,
|
|
518
515
|
initialValue: { sumOfValues: 0, values: [] },
|
|
519
516
|
reducer: (aggregatedValue, rowValue, rowNode) => {
|
|
520
|
-
// TODO: getNumericValue; allow numeric strings
|
|
521
517
|
if (typeof rowValue !== 'number' || isNaN(rowValue)) {
|
|
522
518
|
return aggregatedValue;
|
|
523
519
|
}
|
|
@@ -587,7 +583,6 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
587
583
|
return numericRowValue < minValue ? numericRowValue : minValue;
|
|
588
584
|
}
|
|
589
585
|
else {
|
|
590
|
-
// Date
|
|
591
586
|
return (0, date_fns_1.isAfter)((0, DateHelper_1.parseDateValue)(rowValue), (0, DateHelper_1.parseDateValue)(minValue))
|
|
592
587
|
? minValue
|
|
593
588
|
: rowValue;
|
|
@@ -651,7 +646,6 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
651
646
|
return numericRowValue > maxValue ? numericRowValue : maxValue;
|
|
652
647
|
}
|
|
653
648
|
else {
|
|
654
|
-
// Date
|
|
655
649
|
return (0, date_fns_1.isAfter)((0, DateHelper_1.parseDateValue)(rowValue), (0, DateHelper_1.parseDateValue)(maxValue))
|
|
656
650
|
? rowValue
|
|
657
651
|
: maxValue;
|
|
@@ -704,7 +698,6 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
704
698
|
const groupByColumnNames = groupByOperand?.value;
|
|
705
699
|
let quantReducer;
|
|
706
700
|
if (groupByColumnNames?.length) {
|
|
707
|
-
// do the heavy-lifting in done()
|
|
708
701
|
quantReducer = {
|
|
709
702
|
initialValue: {},
|
|
710
703
|
reducer: (nodeValueMap, rowValue, rowNode, rowIndex) => {
|
|
@@ -747,7 +740,6 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
747
740
|
};
|
|
748
741
|
}
|
|
749
742
|
else {
|
|
750
|
-
// in case of non-grouped quantiles, we are able to calculate the buckets beforehand (which is the most efficient)
|
|
751
743
|
const populationSize = context.adaptableApi.gridApi.getAllRowNodes()?.filter((rowNode) => {
|
|
752
744
|
const rowValue = context.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, quantileColumnName);
|
|
753
745
|
return isDefinedValue(rowValue);
|
|
@@ -1162,8 +1154,6 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
1162
1154
|
isOptional: true,
|
|
1163
1155
|
});
|
|
1164
1156
|
if (!!groupByParameter) {
|
|
1165
|
-
// ensure the GROUP_BY is NOT on the ABSOLUTE_DIFF function
|
|
1166
|
-
// it should be on the AGGREGATION function
|
|
1167
1157
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('GROUP_BY', `should be passed as an argument to the '${relativeValueParameter.name}' aggregation function!`);
|
|
1168
1158
|
}
|
|
1169
1159
|
const absoluteDiffExpressionEvaluation = mapWrappedAggregationToDiff(context, 'ABSOLUTE_DIFF', relativeValueParameter, absoluteDiffColumnName, columnType);
|
|
@@ -1192,8 +1182,6 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
1192
1182
|
isOptional: true,
|
|
1193
1183
|
});
|
|
1194
1184
|
if (!!groupByParameter) {
|
|
1195
|
-
// ensure the GROUP_BY is NOT on the ABSOLUTE_DIFF function
|
|
1196
|
-
// it should be on the AGGREGATION function
|
|
1197
1185
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('GROUP_BY', `should be passed as an argument to the '${relativeValueParameter.name}' aggregation function!`);
|
|
1198
1186
|
}
|
|
1199
1187
|
const percentDiffExpressionEvaluation = mapWrappedAggregationToDiff(context, 'PERCENT_DIFF', relativeValueParameter, percentDiffColumnName, columnType);
|
|
@@ -1296,7 +1284,6 @@ const mapAggregationToCumulation = (aggregationParameter, overColumnParameter, c
|
|
|
1296
1284
|
reducer: (cumulationBag, rowValue, rowNode) => {
|
|
1297
1285
|
if (isDefinedValue(rowValue)) {
|
|
1298
1286
|
if (aggregationEvaluation.context?.weightParam) {
|
|
1299
|
-
// weighted average
|
|
1300
1287
|
const weightValue = context.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, aggregationEvaluation.context.weightParam.value) ?? 0;
|
|
1301
1288
|
cumulationBag.currentValue =
|
|
1302
1289
|
cumulationBag.currentValue + rowValue * weightValue;
|
|
@@ -1394,7 +1381,6 @@ const mapWrappedAggregationToDiff = (context, diffWrapperFunction, aggregationPa
|
|
|
1394
1381
|
if (diffWrapperFunction === 'PERCENT_DIFF') {
|
|
1395
1382
|
return ((cellValue - aggregatedValue) / aggregatedValue) * 100;
|
|
1396
1383
|
}
|
|
1397
|
-
// should never happen
|
|
1398
1384
|
return null;
|
|
1399
1385
|
},
|
|
1400
1386
|
rowFilterFn: aggregationEvaluation.rowFilterFn,
|
|
@@ -1406,7 +1392,6 @@ const mapWrappedAggregationToDiff = (context, diffWrapperFunction, aggregationPa
|
|
|
1406
1392
|
return absoluteDiffExpressionEvaluation;
|
|
1407
1393
|
};
|
|
1408
1394
|
exports.aggregatedScalarExpressionFunctionNames = (0, TypeExtensions_1.getTypedKeys)(exports.aggregatedScalarExpressionFunctions);
|
|
1409
|
-
// !! mutates expressionEvaluation
|
|
1410
1395
|
const addGroupByParams = (groupByColumnNames, expressionEvaluation) => {
|
|
1411
1396
|
if (groupByColumnNames?.length) {
|
|
1412
1397
|
expressionEvaluation.aggregationParams.groupBy = groupByColumnNames.map((columnName) => ({
|
|
@@ -245,8 +245,6 @@ exports.booleanExpressionFunctions = {
|
|
|
245
245
|
returnType: 'boolean',
|
|
246
246
|
inputs: [
|
|
247
247
|
['number', 'number[]'],
|
|
248
|
-
// Date is currently not supported in select
|
|
249
|
-
// ['date', 'date[]'],
|
|
250
248
|
['text', 'text[]'],
|
|
251
249
|
],
|
|
252
250
|
},
|
|
@@ -315,7 +313,6 @@ exports.booleanExpressionFunctions = {
|
|
|
315
313
|
},
|
|
316
314
|
REGEX: {
|
|
317
315
|
handler(args) {
|
|
318
|
-
// dont need context as here we always want case insenstivity in the Regex
|
|
319
316
|
const firstInput = String(args[0]);
|
|
320
317
|
const regex = String(args[1]);
|
|
321
318
|
return RegExp(regex).test(firstInput);
|
|
@@ -26,9 +26,6 @@ class DeepMap {
|
|
|
26
26
|
let currentMap = this.map;
|
|
27
27
|
if (!keys.length) {
|
|
28
28
|
throw `Cannot set given keys - please provide a non-empty keys array.`;
|
|
29
|
-
// currentMap.set((EMPTY_KEY as unknown) as K, { value });
|
|
30
|
-
// this.length++;
|
|
31
|
-
// return this;
|
|
32
29
|
}
|
|
33
30
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
34
31
|
const key = keys[i];
|
|
@@ -55,7 +52,6 @@ class DeepMap {
|
|
|
55
52
|
let currentMap = this.map;
|
|
56
53
|
if (!keys.length) {
|
|
57
54
|
throw `Cannot get given keys - please provide a non-empty keys array.`;
|
|
58
|
-
// return currentMap.get((EMPTY_KEY as unknown) as K)?.value;
|
|
59
55
|
}
|
|
60
56
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
61
57
|
const key = keys[i];
|
|
@@ -95,10 +91,6 @@ class DeepMap {
|
|
|
95
91
|
let currentMap = this.map;
|
|
96
92
|
if (!keys.length) {
|
|
97
93
|
throw `Cannot delete given keys - please provide a non-empty keys array.`;
|
|
98
|
-
// if (currentMap.has(EMPTY_KEY as unknown as K)) {
|
|
99
|
-
// this.length--;
|
|
100
|
-
// }
|
|
101
|
-
// return currentMap.delete((EMPTY_KEY as unknown) as K);
|
|
102
94
|
}
|
|
103
95
|
let maps = [currentMap];
|
|
104
96
|
let result = false;
|
|
@@ -118,7 +110,6 @@ class DeepMap {
|
|
|
118
110
|
delete pair.map;
|
|
119
111
|
}
|
|
120
112
|
if (!pair.map) {
|
|
121
|
-
// pair is empty, so we can remove it altogether
|
|
122
113
|
currentMap.delete(key);
|
|
123
114
|
}
|
|
124
115
|
}
|
|
@@ -141,10 +132,8 @@ class DeepMap {
|
|
|
141
132
|
let parentMap = maps[maps.length - 1];
|
|
142
133
|
let pair = parentMap?.get(key);
|
|
143
134
|
if (pair) {
|
|
144
|
-
// pair.map === map ; which can be deleted
|
|
145
135
|
delete pair.map;
|
|
146
136
|
if (!pair.hasOwnProperty('value')) {
|
|
147
|
-
// whole pair can be successfully deleted from parentMap
|
|
148
137
|
parentMap.delete(key);
|
|
149
138
|
}
|
|
150
139
|
}
|
|
@@ -156,10 +145,6 @@ class DeepMap {
|
|
|
156
145
|
let currentMap = this.map;
|
|
157
146
|
if (!keys.length) {
|
|
158
147
|
throw `Cannot find existing given keys - please provide a non-empty keys array.`;
|
|
159
|
-
// return (
|
|
160
|
-
// currentMap.has((EMPTY_KEY as unknown) as K) &&
|
|
161
|
-
// currentMap.get((EMPTY_KEY as unknown) as K)?.value !== undefined
|
|
162
|
-
// );
|
|
163
148
|
}
|
|
164
149
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
165
150
|
const key = keys[i];
|
|
@@ -195,7 +180,6 @@ class DeepMap {
|
|
|
195
180
|
if (pair.hasOwnProperty('value')) {
|
|
196
181
|
fn(pair, keys, next);
|
|
197
182
|
}
|
|
198
|
-
// if it was called by fn, it won't be called again, as it's once-d
|
|
199
183
|
next();
|
|
200
184
|
}
|
|
201
185
|
visit = (fn) => {
|
|
@@ -7,8 +7,6 @@ const StringExtensions_1 = tslib_1.__importDefault(require("../Extensions/String
|
|
|
7
7
|
const operators_1 = require("rxjs/operators");
|
|
8
8
|
const NumberExtensions_1 = require("../Extensions/NumberExtensions");
|
|
9
9
|
const evaluator_1 = require("../../parser/src/evaluator");
|
|
10
|
-
// string functions may be case (in)sensitive, see internalApi.isTextComparisonCaseSensitive()
|
|
11
|
-
// if case is insensitive, we convert ALL involved strings to lower case
|
|
12
10
|
const getStringValues = (context, ...stringArguments) => {
|
|
13
11
|
return (0, exports.isTextSearchCaseInsensitive)(context)
|
|
14
12
|
? stringArguments.map((string) => string.toLowerCase())
|
|
@@ -21,13 +19,9 @@ const getStringValue = (context, stringArgument) => {
|
|
|
21
19
|
exports.getStringValue = getStringValue;
|
|
22
20
|
const isTextSearchCaseInsensitive = (context) => !context.adaptableApi.expressionApi.useCaseSensitivity();
|
|
23
21
|
exports.isTextSearchCaseInsensitive = isTextSearchCaseInsensitive;
|
|
24
|
-
// returns an observable which filters the source$ emissions and emits only if the CellDataChangedInfo relates to the given column
|
|
25
|
-
// optionally, if a filter function (where clause) is provided, it is also evaluated
|
|
26
22
|
const getDataChangeLog$ = (context, columnNameFilter) => {
|
|
27
23
|
let dataChangeLog$ = context.adaptableApi.internalApi.getDataService().cellDataChangeLog$;
|
|
28
|
-
// filter only the given column changes
|
|
29
24
|
dataChangeLog$ = dataChangeLog$.pipe((0, operators_1.filter)((dataChangeLog) => dataChangeLog.column.columnId === columnNameFilter));
|
|
30
|
-
// filter based on the WHERE clause
|
|
31
25
|
if (context.filterFn) {
|
|
32
26
|
dataChangeLog$ = dataChangeLog$.pipe((0, operators_1.filter)((value) => {
|
|
33
27
|
return context.filterFn(value.rowNode);
|
|
@@ -39,7 +33,6 @@ exports.getDataChangeLog$ = getDataChangeLog$;
|
|
|
39
33
|
const getGridChangeLog$ = (context, rowChangeType) => {
|
|
40
34
|
const gridChangeLog$ = context.adaptableApi.internalApi.getDataService().rowDataChangeLog$;
|
|
41
35
|
let gridChangeStream$ = gridChangeLog$.pipe((0, operators_1.filter)((rowDataChangedInfo) => rowDataChangedInfo.rowTrigger === rowChangeType));
|
|
42
|
-
// filter based on the WHERE clause
|
|
43
36
|
if (context.filterFn) {
|
|
44
37
|
gridChangeStream$ = gridChangeStream$.pipe((0, operators_1.filter)((value) => value.rowNodes.some((node) => context.filterFn(node))));
|
|
45
38
|
}
|
|
@@ -50,7 +43,6 @@ const handleWhereFunction = (args, context) => {
|
|
|
50
43
|
const reactiveExpressionNode = args[0];
|
|
51
44
|
const whereClauseExpressionNode = args[1];
|
|
52
45
|
const filterFn = (rowNode) => {
|
|
53
|
-
// whereClauseResult
|
|
54
46
|
return (0, evaluator_1.evaluateNode)(whereClauseExpressionNode, {
|
|
55
47
|
node: rowNode,
|
|
56
48
|
functions: context.whereClauseFunctions,
|
|
@@ -58,7 +50,6 @@ const handleWhereFunction = (args, context) => {
|
|
|
58
50
|
...context.adaptableApi.internalApi.buildBaseContext(),
|
|
59
51
|
});
|
|
60
52
|
};
|
|
61
|
-
// observableExpressionResult
|
|
62
53
|
return (0, exports.evaluateExpressionNode)(reactiveExpressionNode, context, filterFn);
|
|
63
54
|
};
|
|
64
55
|
exports.handleWhereFunction = handleWhereFunction;
|