@adaptabletools/adaptable 12.2.2 → 14.0.0-canary.0
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/base.css +2 -2
- package/bundle.cjs.js +419 -143
- package/index.css +2 -2
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +3 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -2
- package/src/AdaptableOptions/ActionOptions.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +1 -5
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +1 -1
- package/src/AdaptableOptions/EntitlementOptions.d.ts +15 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/ChartingApi.d.ts +1 -1
- package/src/Api/ColumnApi.d.ts +1 -1
- package/src/Api/Events/ActionRowSubmitted.d.ts +1 -1
- package/src/Api/Events/AdaptableReady.d.ts +1 -1
- package/src/Api/Events/GridDataChanged.d.ts +1 -1
- package/src/Api/ExportApi.d.ts +5 -1
- package/src/Api/FilterApi.d.ts +1 -1
- package/src/Api/FinanceApi.d.ts +1 -1
- package/src/Api/FormatColumnApi.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +1 -1
- package/src/Api/GridApi.d.ts +4 -3
- package/src/Api/Implementation/ActionApiImpl.js +5 -5
- package/src/Api/Implementation/AlertApiImpl.js +9 -9
- package/src/Api/Implementation/ApiBase.js +3 -3
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +5 -2
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +1 -1
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -1
- package/src/Api/Implementation/ConfigApiImpl.js +2 -2
- package/src/Api/Implementation/DashboardApiImpl.js +2 -2
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -5
- package/src/Api/Implementation/ExportApiImpl.js +2 -2
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FilterApiImpl.js +6 -6
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
- package/src/Api/Implementation/GridApiImpl.js +12 -12
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.js +5 -5
- package/src/Api/Implementation/LayoutApiImpl.js +12 -12
- package/src/Api/Implementation/PredicateApiImpl.js +3 -3
- package/src/Api/Implementation/QueryApiImpl.js +6 -6
- package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -5
- package/src/Api/Implementation/ScopeApiImpl.js +3 -3
- package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +2 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +9 -9
- package/src/Api/Implementation/TeamSharingApiImpl.js +10 -10
- package/src/Api/InternalApi.d.ts +1 -1
- package/src/Api/StatusBarApi.d.ts +1 -1
- package/src/PredefinedConfig/ChartingState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +17 -17
- package/src/PredefinedConfig/Common/CellDataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridCell.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridRow.d.ts +1 -1
- package/src/PredefinedConfig/Uuid.js +1 -1
- package/src/Redux/ActionsReducers/AlertRedux.js +2 -2
- package/src/Redux/ActionsReducers/ChartingRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +2 -2
- package/src/Redux/ActionsReducers/CustomSortRedux.js +2 -2
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +2 -2
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +2 -2
- package/src/Redux/ActionsReducers/GridRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +2 -2
- package/src/Redux/ActionsReducers/ScheduleRedux.js +10 -10
- package/src/Redux/ActionsReducers/ShortcutRedux.js +2 -2
- package/src/Redux/ActionsReducers/SystemRedux.js +2 -2
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +8 -8
- package/src/Redux/Store/AdaptableReduxMerger.js +9 -9
- package/src/Redux/Store/AdaptableStore.js +23 -23
- package/src/Strategy/AlertModule.js +6 -6
- package/src/Strategy/CalculatedColumnModule.js +4 -4
- package/src/Strategy/ConditionalStyleModule.js +8 -8
- package/src/Strategy/CustomSortModule.js +3 -3
- package/src/Strategy/DashboardModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/DataSetModule.js +2 -2
- package/src/Strategy/ExportModule.js +4 -4
- package/src/Strategy/FilterModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +7 -7
- package/src/Strategy/FormatColumnModule.js +8 -8
- package/src/Strategy/FreeTextColumnModule.js +1 -1
- package/src/Strategy/LayoutModule.js +2 -2
- package/src/Strategy/PlusMinusModule.js +3 -3
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +2 -2
- package/src/Strategy/ShortcutModule.js +3 -3
- package/src/Strategy/StatusBarModule.d.ts +1 -1
- package/src/Strategy/TeamSharingModule.js +6 -6
- package/src/Strategy/ToolPanelModule.js +4 -4
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.js +2 -2
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +1 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
- package/src/Utilities/Constants/GeneralConstants.js +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +35 -35
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +18 -18
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +10 -10
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +48 -48
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +19 -19
- package/src/Utilities/Extensions/StringExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +5 -5
- package/src/Utilities/Helpers/DateHelper.js +9 -9
- package/src/Utilities/Helpers/FormatHelper.js +2 -2
- package/src/Utilities/Helpers/Helper.js +3 -9
- package/src/Utilities/Helpers/LoggingHelper.js +1 -1
- package/src/Utilities/Helpers/StyleHelper.js +1 -1
- package/src/Utilities/Interface/Preview.d.ts +1 -1
- package/src/Utilities/ObjectFactory.d.ts +1 -1
- package/src/Utilities/ObjectFactory.js +30 -30
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -1
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
- package/src/Utilities/Services/AlertService.js +3 -3
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +3 -3
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +1 -1
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +3 -3
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +2 -2
- package/src/Utilities/Services/ReportService.d.ts +1 -1
- package/src/Utilities/Services/ReportService.js +7 -7
- package/src/Utilities/Services/RowEditService.d.ts +1 -1
- package/src/Utilities/Services/TeamSharingService.js +1 -1
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/AdaptableView.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +10 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +1 -1
- package/src/View/AdaptableWizardView/Wizard.js +6 -6
- package/src/View/AdaptableWizardView/helper.d.ts +1 -1
- package/src/View/AdaptableWizardView/helper.js +1 -1
- package/src/View/Alert/ActiveAlertsPanel.js +2 -2
- package/src/View/Alert/AlertEmptyView.js +1 -1
- package/src/View/Alert/AlertEntityRow.js +1 -1
- package/src/View/Alert/AlertStatusSubPanel.js +3 -3
- package/src/View/Alert/AlertViewPanel.js +2 -2
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +5 -5
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertWizard.js +4 -4
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +2 -2
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +4 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +5 -5
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/ColorPicker.js +2 -2
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.js +4 -4
- package/src/View/Components/AdaptableInput/index.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +4 -4
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -4
- package/src/View/Components/AdaptableObjectRow/index.js +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +1 -1
- package/src/View/Components/Buttons/ButtonDelete.js +1 -1
- package/src/View/Components/ColumnSelector/index.js +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +3 -3
- package/src/View/Components/ExpressionWizard.js +1 -1
- package/src/View/Components/ExternalRenderer.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +7 -7
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +4 -4
- package/src/View/Components/FilterForm/QuickFilterForm.js +13 -13
- package/src/View/Components/ListBox/DualListBoxEditor.js +10 -10
- package/src/View/Components/ModuleValueSelector/index.js +6 -6
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelToolPanel/index.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.js +1 -1
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +8 -8
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +4 -4
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +1 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.js +5 -5
- package/src/View/Components/Popups/Utilities.js +5 -5
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +6 -6
- package/src/View/Components/RangesComponent.js +2 -2
- package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
- package/src/View/Components/TagValueSelector/index.js +2 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +2 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -6
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -6
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +6 -4
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/Components/ValueSelector/index.js +7 -7
- package/src/View/Components/WizardSummaryRow.js +1 -1
- package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +3 -3
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +9 -9
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
- package/src/View/Dashboard/CustomDashboardButton.js +2 -2
- package/src/View/Dashboard/CustomToolbarWrapper.js +7 -7
- package/src/View/Dashboard/Dashboard.js +4 -4
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/Dashboard/DashboardViewPanel.js +1 -1
- package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +7 -9
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -7
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +9 -9
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/DataSet/DataSetViewPanel.js +1 -1
- package/src/View/Export/ExportSelector.js +1 -1
- package/src/View/Export/ExportViewPanel.d.ts +2 -1
- package/src/View/Export/ExportViewPanel.js +14 -5
- package/src/View/Export/ReportExportDropdown.js +3 -3
- package/src/View/Export/Wizard/NewReportWizard.js +4 -4
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +2 -2
- package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -2
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -3
- package/src/View/Filter/ActiveFiltersPanel.js +1 -1
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterSummary.js +2 -2
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +7 -7
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +5 -5
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +5 -5
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +6 -6
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +5 -5
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +4 -4
- package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -2
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -4
- package/src/View/Layout/EditCurrentLayoutButton.js +1 -1
- package/src/View/Layout/LayoutCloneButton.js +1 -1
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +1 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- package/src/View/Layout/SaveLayoutButton.js +3 -3
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +5 -5
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +7 -7
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +8 -8
- package/src/View/Layout/Wizard/sections/FilterSection.js +5 -5
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +5 -5
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +5 -5
- package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +6 -6
- package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +3 -3
- package/src/View/Query/EditCurrentQueryButton.js +1 -1
- package/src/View/Query/ExpandedQueryPopup.js +3 -3
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/QueryViewPanel.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +3 -3
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +3 -3
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.js +2 -2
- package/src/View/QuickSearch/useQuickSearchDebounced.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +4 -4
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -2
- package/src/View/StateManagement/StateManagementViewPanel.js +1 -1
- package/src/View/StateManagement/components/ExportDropdown.js +2 -2
- package/src/View/StateManagement/components/LoadButton.js +1 -1
- package/src/View/StateManagement/handleExportState.js +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +5 -5
- package/src/View/StatusBar/StatusBarPopup.js +2 -2
- package/src/View/SystemStatus/SystemStatusEntityRow.js +1 -1
- package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -2
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.js +2 -2
- package/src/View/TeamSharing/SharedEntityDependencies.js +1 -1
- package/src/View/TeamSharing/SharedEntityObjectView.js +2 -2
- package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
- package/src/View/Theme/ThemePopup.js +1 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +1 -1
- package/src/View/Theme/ThemeViewPanel.js +2 -2
- package/src/View/Wizard/AdaptableWizard.js +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +5 -5
- package/src/View/Wizard/OnePageWizards.js +14 -12
- package/src/View/Wizard/useKeyboardNavigation.js +1 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +3 -3
- package/src/agGrid/Adaptable.d.ts +19 -11
- package/src/agGrid/Adaptable.js +157 -160
- package/src/agGrid/CheckboxRenderer.d.ts +1 -1
- package/src/agGrid/ColumnSetupInfo.d.ts +1 -1
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/FloatingFilterWrapper.js +1 -1
- package/src/agGrid/GroupCellRenderer.d.ts +1 -1
- package/src/agGrid/GroupCellRenderer.js +2 -2
- package/src/agGrid/PercentBarRenderer.js +1 -1
- package/src/agGrid/agGridHelper.d.ts +1 -1
- package/src/agGrid/agGridHelper.js +12 -13
- package/src/agGrid/agGridMenuHelper.d.ts +1 -1
- package/src/agGrid/agGridMenuHelper.js +5 -5
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
- package/src/agGrid/createAgStatusPanelComponent.js +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +3 -3
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +5 -5
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +4 -4
- package/src/agGrid/weightedAverage.d.ts +1 -1
- package/src/agGrid/weightedAverage.js +3 -3
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
- package/src/components/AdaptableIconComponent/index.js +14 -17
- package/src/components/CheckBox/index.js +3 -3
- package/src/components/CodeBlock/index.js +1 -1
- package/src/components/Dashboard/Dashboard.js +8 -8
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/Caption.js +7 -7
- package/src/components/Datepicker/CaptionLabel.js +4 -4
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Datepicker/index.js +10 -10
- package/src/components/Dialog/index.js +9 -9
- package/src/components/Dialog/useIsOpen.js +1 -1
- package/src/components/Dropdown/index.js +6 -6
- package/src/components/DropdownButton/index.js +7 -7
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/DropdownButton/useExpanded.js +4 -4
- package/src/components/EllipsisContainer/index.js +8 -8
- package/src/components/EmptyContent/index.js +1 -1
- package/src/components/ErrorBox/index.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +20 -7
- package/src/components/ExpressionEditor/EditorButton.js +1 -1
- package/src/components/ExpressionEditor/EditorContext.js +2 -2
- package/src/components/ExpressionEditor/EditorInput.js +2 -2
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +9 -9
- package/src/components/ExpressionEditor/NamedQueryContext.js +2 -2
- package/src/components/ExpressionEditor/index.js +8 -8
- package/src/components/FieldWrap/index.js +1 -1
- package/src/components/FileDroppable/index.js +4 -4
- package/src/components/FormLayout/index.js +4 -4
- package/src/components/HelpBlock/index.js +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/Input/index.js +1 -1
- package/src/components/List/GridList/index.js +1 -1
- package/src/components/List/ListGroup/index.js +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.js +2 -2
- package/src/components/Modal/Backdrop.js +5 -5
- package/src/components/Modal/index.js +5 -5
- package/src/components/NotifyResize/index.js +1 -1
- package/src/components/OverlayTrigger/Overlay.js +15 -15
- package/src/components/OverlayTrigger/getOverlayStyle.js +1 -1
- package/src/components/OverlayTrigger/index.js +24 -24
- package/src/components/OverlayTrigger/useAgGridClassName.js +2 -2
- package/src/components/Panel/index.js +3 -3
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/ProgressIndicator/ProgressIndicator.js +5 -5
- package/src/components/Radio/index.js +3 -3
- package/src/components/ResizeObserver/index.js +10 -10
- package/src/components/SelectableList/index.js +4 -4
- package/src/components/SimpleButton/index.js +3 -3
- package/src/components/StylePreview.js +1 -1
- package/src/components/Table/index.js +1 -1
- package/src/components/Tabs/index.js +6 -7
- package/src/components/Tag/Tag.js +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/Textarea/index.js +1 -1
- package/src/components/ToggleButton/index.js +1 -1
- package/src/components/WindowModal/WindowModal.js +4 -4
- package/src/components/WindowModal/useStacking.js +1 -1
- package/src/components/WizardPanel/index.js +1 -1
- package/src/components/icons/DefaultIcon.js +2 -2
- package/src/components/icons/index.js +1 -1
- package/src/components/utils/batchUpdate.js +1 -1
- package/src/components/utils/useAutoFocus.js +2 -2
- package/src/components/utils/useContainerScrollObserver/index.js +7 -7
- package/src/components/utils/useDraggable.js +5 -5
- package/src/components/utils/useLatest.js +2 -2
- package/src/components/utils/usePrevious.js +2 -2
- package/src/components/utils/usePropState.js +1 -1
- package/src/components/utils/useProperty.js +2 -2
- package/src/components/utils/useRerender.js +2 -2
- package/src/components/utils/useSelectionRange.js +3 -3
- package/src/components/utils/uuid.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +18 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/index.js +1 -1
- package/src/types.d.ts +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -20,22 +20,22 @@ class ToolPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
20
20
|
updateOldConfig() {
|
|
21
21
|
const deprecatedToolPanelConfigs = this.api.toolPanelApi.getToolPanelState().VisibleToolPanels;
|
|
22
22
|
if (deprecatedToolPanelConfigs === null || deprecatedToolPanelConfigs === void 0 ? void 0 : deprecatedToolPanelConfigs.length) {
|
|
23
|
-
LoggingHelper_1.LogAdaptableWarning(`Updating Obsolete VisibleToolPanels Config for ToolPanelState: [${deprecatedToolPanelConfigs}]`);
|
|
23
|
+
(0, LoggingHelper_1.LogAdaptableWarning)(`Updating Obsolete VisibleToolPanels Config for ToolPanelState: [${deprecatedToolPanelConfigs}]`);
|
|
24
24
|
const migratedToolPanelConfigs = deprecatedToolPanelConfigs.map((toolPanel) => ({
|
|
25
25
|
Name: toolPanel,
|
|
26
26
|
State: 'collapsed',
|
|
27
27
|
}));
|
|
28
|
-
this.api.internalApi.dispatchReduxAction(ToolPanelRedux_1.ToolPanelSetToolPanels(migratedToolPanelConfigs));
|
|
28
|
+
this.api.internalApi.dispatchReduxAction((0, ToolPanelRedux_1.ToolPanelSetToolPanels)(migratedToolPanelConfigs));
|
|
29
29
|
}
|
|
30
30
|
else if (!this.api.toolPanelApi.getToolPanelState().ToolPanels) {
|
|
31
31
|
// no predefined config provided, we will display all the panels collapsed (custom & module)
|
|
32
|
-
LoggingHelper_1.LogAdaptableInfo(`No predefined ToolPanels provided, displaying all available ones (custom&system)`);
|
|
32
|
+
(0, LoggingHelper_1.LogAdaptableInfo)(`No predefined ToolPanels provided, displaying all available ones (custom&system)`);
|
|
33
33
|
const defaultConfig = [];
|
|
34
34
|
this.api.toolPanelApi
|
|
35
35
|
.getCustomToolPanels()
|
|
36
36
|
.forEach((customToolPanel) => defaultConfig.push({ Name: customToolPanel.name }));
|
|
37
37
|
Types_1.ALL_TOOL_PANELS.forEach((moduleToolPanel) => defaultConfig.push({ Name: moduleToolPanel }));
|
|
38
|
-
this.api.internalApi.dispatchReduxAction(ToolPanelRedux_1.ToolPanelSetToolPanels(defaultConfig));
|
|
38
|
+
this.api.internalApi.dispatchReduxAction((0, ToolPanelRedux_1.ToolPanelSetToolPanels)(defaultConfig));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -4,8 +4,8 @@ exports.getAlertBehaviourViewItems = void 0;
|
|
|
4
4
|
const AdaptableContext_1 = require("../../../View/AdaptableContext");
|
|
5
5
|
const AlertBehaviourWizardSection_1 = require("../../../View/Alert/Wizard/AlertBehaviourWizardSection");
|
|
6
6
|
const BehaviourView = (props) => {
|
|
7
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
8
|
-
return AlertBehaviourWizardSection_1.renderAlertBehaviourSummary(props.data, adaptable.api, true);
|
|
7
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
8
|
+
return (0, AlertBehaviourWizardSection_1.renderAlertBehaviourSummary)(props.data, adaptable.api, true);
|
|
9
9
|
};
|
|
10
10
|
const getAlertBehaviourViewItems = (api) => {
|
|
11
11
|
return {
|
|
@@ -21,6 +21,6 @@ const getFormatColumnStyleViewItems = (formatColumn, api) => {
|
|
|
21
21
|
React.createElement(rebass_1.Box, { mb: 1 },
|
|
22
22
|
"Type: ",
|
|
23
23
|
styleType),
|
|
24
|
-
FormatColumnStyleWizardSection_1.renderFormatColumnStyleSummary(formatColumn, api)));
|
|
24
|
+
(0, FormatColumnStyleWizardSection_1.renderFormatColumnStyleSummary)(formatColumn, api)));
|
|
25
25
|
};
|
|
26
26
|
exports.getFormatColumnStyleViewItems = getFormatColumnStyleViewItems;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdaptableOptionsDocsLink = exports.LicenseDocsLink = exports.PrimaryKeyDocsLink = exports.PredicateDocsLink = exports.CumulativeAggregatedScalarQueryDocsLink = exports.AggregatedScalarQueryDocsLink = exports.AggregatedBooleanQueryDocsLink = exports.ObservableQueryDocsLink = exports.ScalarQueryDocsLink = exports.BooleanQueryDocsLink = exports.ExpressionEditorDocsLink = exports.HOST_URL_DOCS = void 0;
|
|
3
|
+
exports.AgGridModulesDocsLink = exports.AdaptableOptionsDocsLink = exports.LicenseDocsLink = exports.PrimaryKeyDocsLink = exports.PredicateDocsLink = exports.CumulativeAggregatedScalarQueryDocsLink = exports.AggregatedScalarQueryDocsLink = exports.AggregatedBooleanQueryDocsLink = exports.ObservableQueryDocsLink = exports.ScalarQueryDocsLink = exports.BooleanQueryDocsLink = exports.ExpressionEditorDocsLink = exports.HOST_URL_DOCS = void 0;
|
|
4
4
|
exports.HOST_URL_DOCS = 'https://docs.adaptabletools.com';
|
|
5
5
|
//export const HOST_URL_DOCS = 'http://localhost:3000';
|
|
6
6
|
exports.ExpressionEditorDocsLink = `${exports.HOST_URL_DOCS}/guide/ui-expression-editor`;
|
|
@@ -14,3 +14,4 @@ exports.PredicateDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptable-ql-predica
|
|
|
14
14
|
exports.PrimaryKeyDocsLink = `${exports.HOST_URL_DOCS}/guide/dev-guide-tutorial-primary-key`;
|
|
15
15
|
exports.LicenseDocsLink = `${exports.HOST_URL_DOCS}/guide/licensing`;
|
|
16
16
|
exports.AdaptableOptionsDocsLink = `${exports.HOST_URL_DOCS}/guide/reference-options-overview`;
|
|
17
|
+
exports.AgGridModulesDocsLink = `${exports.HOST_URL_DOCS}/TODO_TODO_TODO`;
|
|
@@ -40,8 +40,8 @@ Please!!!
|
|
|
40
40
|
//System Status
|
|
41
41
|
exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = 100;
|
|
42
42
|
// Quick Search
|
|
43
|
-
exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = UIHelper_1.getHexForName(UIHelper_1.LIGHT_YELLOW);
|
|
44
|
-
exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = UIHelper_1.getHexForName(UIHelper_1.BLACK);
|
|
43
|
+
exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = (0, UIHelper_1.getHexForName)(UIHelper_1.LIGHT_YELLOW);
|
|
44
|
+
exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = (0, UIHelper_1.getHexForName)(UIHelper_1.BLACK);
|
|
45
45
|
exports.QUICK_SEARCH_DEBOUNCE_TIME = 350;
|
|
46
46
|
// Cells Summary
|
|
47
47
|
exports.CELL_SUMMARY_DEFAULT_OPERATION = Enums_1.SummaryOperation.Sum;
|
|
@@ -49,13 +49,13 @@ exports.DefaultAdaptableOptions = {
|
|
|
49
49
|
defaultFlashDuration: 500,
|
|
50
50
|
defaultFlashTarget: 'cell',
|
|
51
51
|
defaultDownChangeStyle: {
|
|
52
|
-
BackColor: UIHelper_1.getHexForName(UIHelper_1.RED),
|
|
52
|
+
BackColor: (0, UIHelper_1.getHexForName)(UIHelper_1.RED),
|
|
53
53
|
},
|
|
54
54
|
defaultUpChangeStyle: {
|
|
55
|
-
BackColor: UIHelper_1.getHexForName(UIHelper_1.GREEN),
|
|
55
|
+
BackColor: (0, UIHelper_1.getHexForName)(UIHelper_1.GREEN),
|
|
56
56
|
},
|
|
57
57
|
defaultNeutralChangeStyle: {
|
|
58
|
-
BackColor: UIHelper_1.getHexForName(UIHelper_1.GRAY),
|
|
58
|
+
BackColor: (0, UIHelper_1.getHexForName)(UIHelper_1.GRAY),
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
61
|
adaptableQLOptions: {
|
|
@@ -20,7 +20,7 @@ const CRITERIA_REGEX = /^(?:\s*)(\d+)(K|M|B)?$/i;
|
|
|
20
20
|
exports.aggregatedBooleanExpressionFunctions = {
|
|
21
21
|
WHERE: {
|
|
22
22
|
handler(args, context) {
|
|
23
|
-
return expressionFunctionUtils_1.handleWhereFunction(args, context);
|
|
23
|
+
return (0, expressionFunctionUtils_1.handleWhereFunction)(args, context);
|
|
24
24
|
},
|
|
25
25
|
isHiddenFromMenu: true,
|
|
26
26
|
description: 'Splits 2 composed queries, allowing for a main query(lhs) to have a where clause query(rhs) defined',
|
|
@@ -35,7 +35,7 @@ exports.aggregatedBooleanExpressionFunctions = {
|
|
|
35
35
|
GROUP_BY: aggregatedScalarExpressionFunctions_1.aggregatedScalarExpressionFunctions['GROUP_BY'],
|
|
36
36
|
COL: {
|
|
37
37
|
handler(args, context) {
|
|
38
|
-
return expressionFunctionUtils_1.handleColumnFunction(args, context);
|
|
38
|
+
return (0, expressionFunctionUtils_1.handleColumnFunction)(args, context);
|
|
39
39
|
},
|
|
40
40
|
description: 'References a column by its unique identifier',
|
|
41
41
|
signatures: ['[colName]', 'COL(name: string)'],
|
|
@@ -172,5 +172,5 @@ const extractScalarOperand = (consumingFunctionName, value, allowedTypes) => {
|
|
|
172
172
|
b: 1000000000,
|
|
173
173
|
};
|
|
174
174
|
// numeric value
|
|
175
|
-
return parseInt_1.default(numericString) * numberUnitRatios[largeNumberUnit.toLowerCase()];
|
|
175
|
+
return (0, parseInt_1.default)(numericString) * numberUnitRatios[largeNumberUnit.toLowerCase()];
|
|
176
176
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpressionFunction } from '../../parser/src/types';
|
|
2
2
|
import { BaseParameter } from './expressionFunctionUtils';
|
|
3
|
-
import { RowNode } from '@ag-grid-community/
|
|
3
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
4
4
|
import { AggregateParams } from './scalarAggregationHelper';
|
|
5
5
|
/**
|
|
6
6
|
* List of all the AggregatedScalar Functions available in AdaptableQL
|
|
@@ -29,8 +29,8 @@ exports.aggregatedExpressionFunctions = [
|
|
|
29
29
|
exports.aggregatedScalarExpressionFunctions = {
|
|
30
30
|
CUMUL: {
|
|
31
31
|
handler(args, context) {
|
|
32
|
-
const aggregationParameter = expressionFunctionUtils_1.extractParameter('CUMUL', 'aggregationScalar', ['SUM', 'PERCENTAGE', 'AVG', 'MIN', 'MAX'], args);
|
|
33
|
-
const overColumnParameter = expressionFunctionUtils_1.extractParameter('CUMUL', 'operand', ['OVER'], args);
|
|
32
|
+
const aggregationParameter = (0, expressionFunctionUtils_1.extractParameter)('CUMUL', 'aggregationScalar', ['SUM', 'PERCENTAGE', 'AVG', 'MIN', 'MAX'], args);
|
|
33
|
+
const overColumnParameter = (0, expressionFunctionUtils_1.extractParameter)('CUMUL', 'operand', ['OVER'], args);
|
|
34
34
|
const cumulationExpressionEvaluation = mapAggregationToCumulation(aggregationParameter, overColumnParameter, context);
|
|
35
35
|
const result = {
|
|
36
36
|
name: 'CUMUL',
|
|
@@ -49,10 +49,10 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
49
49
|
},
|
|
50
50
|
SUM: {
|
|
51
51
|
handler(args, context) {
|
|
52
|
-
const sumColumnParameter = expressionFunctionUtils_1.extractColumnParameter('SUM', args);
|
|
52
|
+
const sumColumnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('SUM', args);
|
|
53
53
|
const sumColumnName = sumColumnParameter.value;
|
|
54
|
-
expressionFunctionUtils_1.validateColumnType(sumColumnName, ['Number'], 'SUM', context.adaptableApi);
|
|
55
|
-
const groupByParameter = expressionFunctionUtils_1.extractParameter('SUM', 'operand', ['GROUP_BY'], args, {
|
|
54
|
+
(0, expressionFunctionUtils_1.validateColumnType)(sumColumnName, ['Number'], 'SUM', context.adaptableApi);
|
|
55
|
+
const groupByParameter = (0, expressionFunctionUtils_1.extractParameter)('SUM', 'operand', ['GROUP_BY'], args, {
|
|
56
56
|
isOptional: true,
|
|
57
57
|
});
|
|
58
58
|
const aggregationExpressionEvaluation = {
|
|
@@ -66,7 +66,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
66
66
|
if (isUndefinedValue(rowValue)) {
|
|
67
67
|
return totalSum;
|
|
68
68
|
}
|
|
69
|
-
return totalSum + expressionFunctionUtils_1.getNumericValue(rowValue);
|
|
69
|
+
return totalSum + (0, expressionFunctionUtils_1.getNumericValue)(rowValue);
|
|
70
70
|
},
|
|
71
71
|
},
|
|
72
72
|
},
|
|
@@ -94,13 +94,13 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
94
94
|
PERCENTAGE: {
|
|
95
95
|
handler(args, context) {
|
|
96
96
|
var _a;
|
|
97
|
-
const percentageColumnParameter = expressionFunctionUtils_1.extractColumnParameter('PERCENTAGE', args);
|
|
97
|
+
const percentageColumnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('PERCENTAGE', args);
|
|
98
98
|
const percentageColumnName = percentageColumnParameter.value;
|
|
99
|
-
expressionFunctionUtils_1.validateColumnType(percentageColumnName, ['Number'], 'PERCENTAGE', context.adaptableApi);
|
|
100
|
-
const sumOperand = expressionFunctionUtils_1.extractParameter('PERCENTAGE', 'aggregationScalar', ['SUM'], args, {
|
|
99
|
+
(0, expressionFunctionUtils_1.validateColumnType)(percentageColumnName, ['Number'], 'PERCENTAGE', context.adaptableApi);
|
|
100
|
+
const sumOperand = (0, expressionFunctionUtils_1.extractParameter)('PERCENTAGE', 'aggregationScalar', ['SUM'], args, {
|
|
101
101
|
isOptional: true,
|
|
102
102
|
});
|
|
103
|
-
const groupByOperand = expressionFunctionUtils_1.extractParameter('PERCENTAGE', 'operand', ['GROUP_BY'], args, {
|
|
103
|
+
const groupByOperand = (0, expressionFunctionUtils_1.extractParameter)('PERCENTAGE', 'operand', ['GROUP_BY'], args, {
|
|
104
104
|
isOptional: true,
|
|
105
105
|
});
|
|
106
106
|
if (sumOperand && groupByOperand) {
|
|
@@ -123,13 +123,13 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
123
123
|
if (isUndefinedValue(rowValue)) {
|
|
124
124
|
return totalSum;
|
|
125
125
|
}
|
|
126
|
-
return totalSum + expressionFunctionUtils_1.getNumericValue(rowValue);
|
|
126
|
+
return totalSum + (0, expressionFunctionUtils_1.getNumericValue)(rowValue);
|
|
127
127
|
},
|
|
128
128
|
},
|
|
129
129
|
},
|
|
130
130
|
},
|
|
131
131
|
rowValueGetter: (rowNode, aggregationValue) => {
|
|
132
|
-
return ((expressionFunctionUtils_1.getNumericValue(context.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, percentageColumnName)) /
|
|
132
|
+
return (((0, expressionFunctionUtils_1.getNumericValue)(context.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, percentageColumnName)) /
|
|
133
133
|
aggregationValue) *
|
|
134
134
|
100);
|
|
135
135
|
},
|
|
@@ -160,13 +160,13 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
160
160
|
},
|
|
161
161
|
AVG: {
|
|
162
162
|
handler(args, context) {
|
|
163
|
-
const avgColumnParameter = expressionFunctionUtils_1.extractColumnParameter('AVG', args);
|
|
163
|
+
const avgColumnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('AVG', args);
|
|
164
164
|
const avgColumnName = avgColumnParameter.value;
|
|
165
|
-
expressionFunctionUtils_1.validateColumnType(avgColumnName, ['Number'], 'AVG', context.adaptableApi);
|
|
166
|
-
const groupByParameter = expressionFunctionUtils_1.extractParameter('AVG', 'operand', ['GROUP_BY'], args, {
|
|
165
|
+
(0, expressionFunctionUtils_1.validateColumnType)(avgColumnName, ['Number'], 'AVG', context.adaptableApi);
|
|
166
|
+
const groupByParameter = (0, expressionFunctionUtils_1.extractParameter)('AVG', 'operand', ['GROUP_BY'], args, {
|
|
167
167
|
isOptional: true,
|
|
168
168
|
});
|
|
169
|
-
const weightParameter = expressionFunctionUtils_1.extractParameter('AVG', 'operand', ['WEIGHT'], args, {
|
|
169
|
+
const weightParameter = (0, expressionFunctionUtils_1.extractParameter)('AVG', 'operand', ['WEIGHT'], args, {
|
|
170
170
|
isOptional: true,
|
|
171
171
|
});
|
|
172
172
|
const aggregationExpressionEvaluation = {
|
|
@@ -184,10 +184,10 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
184
184
|
if (isUndefinedValue(rowValue)) {
|
|
185
185
|
return aggregatedValue;
|
|
186
186
|
}
|
|
187
|
-
const numericRowValue = expressionFunctionUtils_1.getNumericValue(rowValue);
|
|
187
|
+
const numericRowValue = (0, expressionFunctionUtils_1.getNumericValue)(rowValue);
|
|
188
188
|
if (weightParameter) {
|
|
189
189
|
// weighted average
|
|
190
|
-
const weightValue = (_a = expressionFunctionUtils_1.getNumericValue(context.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, weightParameter.value))) !== null && _a !== void 0 ? _a : 0;
|
|
190
|
+
const weightValue = (_a = (0, expressionFunctionUtils_1.getNumericValue)(context.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, weightParameter.value))) !== null && _a !== void 0 ? _a : 0;
|
|
191
191
|
aggregatedValue.sumOfValues =
|
|
192
192
|
aggregatedValue.sumOfValues + numericRowValue * weightValue;
|
|
193
193
|
aggregatedValue.numberOfValues = aggregatedValue.numberOfValues + weightValue;
|
|
@@ -234,10 +234,10 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
234
234
|
},
|
|
235
235
|
MIN: {
|
|
236
236
|
handler(args, context) {
|
|
237
|
-
const minColumnParameter = expressionFunctionUtils_1.extractColumnParameter('MIN', args);
|
|
237
|
+
const minColumnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('MIN', args);
|
|
238
238
|
const minColumnName = minColumnParameter.value;
|
|
239
|
-
expressionFunctionUtils_1.validateColumnType(minColumnName, ['Number'], 'MIN', context.adaptableApi);
|
|
240
|
-
const groupByParameter = expressionFunctionUtils_1.extractParameter('MIN', 'operand', ['GROUP_BY'], args, {
|
|
239
|
+
(0, expressionFunctionUtils_1.validateColumnType)(minColumnName, ['Number'], 'MIN', context.adaptableApi);
|
|
240
|
+
const groupByParameter = (0, expressionFunctionUtils_1.extractParameter)('MIN', 'operand', ['GROUP_BY'], args, {
|
|
241
241
|
isOptional: true,
|
|
242
242
|
});
|
|
243
243
|
const aggregationExpressionEvaluation = {
|
|
@@ -251,7 +251,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
251
251
|
if (isUndefinedValue(rowValue)) {
|
|
252
252
|
return minValue;
|
|
253
253
|
}
|
|
254
|
-
const numericRowValue = expressionFunctionUtils_1.getNumericValue(rowValue);
|
|
254
|
+
const numericRowValue = (0, expressionFunctionUtils_1.getNumericValue)(rowValue);
|
|
255
255
|
return numericRowValue < minValue ? numericRowValue : minValue;
|
|
256
256
|
},
|
|
257
257
|
done: (minValue) => {
|
|
@@ -284,10 +284,10 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
284
284
|
},
|
|
285
285
|
MAX: {
|
|
286
286
|
handler(args, context) {
|
|
287
|
-
const maxColumnParameter = expressionFunctionUtils_1.extractColumnParameter('MAX', args);
|
|
287
|
+
const maxColumnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('MAX', args);
|
|
288
288
|
const maxColumnName = maxColumnParameter.value;
|
|
289
|
-
expressionFunctionUtils_1.validateColumnType(maxColumnName, ['Number'], 'MAX', context.adaptableApi);
|
|
290
|
-
const groupByParameter = expressionFunctionUtils_1.extractParameter('MAX', 'operand', ['GROUP_BY'], args, {
|
|
289
|
+
(0, expressionFunctionUtils_1.validateColumnType)(maxColumnName, ['Number'], 'MAX', context.adaptableApi);
|
|
290
|
+
const groupByParameter = (0, expressionFunctionUtils_1.extractParameter)('MAX', 'operand', ['GROUP_BY'], args, {
|
|
291
291
|
isOptional: true,
|
|
292
292
|
});
|
|
293
293
|
const aggregationExpressionEvaluation = {
|
|
@@ -301,7 +301,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
301
301
|
if (isUndefinedValue(rowValue)) {
|
|
302
302
|
return maxValue;
|
|
303
303
|
}
|
|
304
|
-
const numericRowValue = expressionFunctionUtils_1.getNumericValue(rowValue);
|
|
304
|
+
const numericRowValue = (0, expressionFunctionUtils_1.getNumericValue)(rowValue);
|
|
305
305
|
return numericRowValue > maxValue ? numericRowValue : maxValue;
|
|
306
306
|
},
|
|
307
307
|
done: (maxValue) => {
|
|
@@ -335,14 +335,14 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
335
335
|
QUANT: {
|
|
336
336
|
handler(args, context) {
|
|
337
337
|
var _a, _b, _c;
|
|
338
|
-
const quantileColumnParameter = expressionFunctionUtils_1.extractColumnParameter('QUANT', args);
|
|
338
|
+
const quantileColumnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('QUANT', args);
|
|
339
339
|
const quantileColumnName = quantileColumnParameter.value;
|
|
340
|
-
expressionFunctionUtils_1.validateColumnType(quantileColumnName, ['Number'], 'QUANT', context.adaptableApi);
|
|
340
|
+
(0, expressionFunctionUtils_1.validateColumnType)(quantileColumnName, ['Number'], 'QUANT', context.adaptableApi);
|
|
341
341
|
const qNumber = args.find((arg) => typeof arg === 'number');
|
|
342
342
|
if (qNumber == null || qNumber <= 0) {
|
|
343
343
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('QUANT', 'expects a positive number as argument');
|
|
344
344
|
}
|
|
345
|
-
const groupByOperand = expressionFunctionUtils_1.extractParameter('QUANT', 'operand', ['GROUP_BY'], args, {
|
|
345
|
+
const groupByOperand = (0, expressionFunctionUtils_1.extractParameter)('QUANT', 'operand', ['GROUP_BY'], args, {
|
|
346
346
|
isOptional: true,
|
|
347
347
|
});
|
|
348
348
|
const groupByColumnNames = groupByOperand === null || groupByOperand === void 0 ? void 0 : groupByOperand.value;
|
|
@@ -466,8 +466,8 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
466
466
|
},
|
|
467
467
|
OVER: {
|
|
468
468
|
handler(args, context) {
|
|
469
|
-
const columnParameter = expressionFunctionUtils_1.extractColumnParameter('OVER', args);
|
|
470
|
-
expressionFunctionUtils_1.validateColumnType(columnParameter.value, ['Number', 'Date'], 'OVER', context.adaptableApi);
|
|
469
|
+
const columnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('OVER', args);
|
|
470
|
+
(0, expressionFunctionUtils_1.validateColumnType)(columnParameter.value, ['Number', 'Date'], 'OVER', context.adaptableApi);
|
|
471
471
|
const result = {
|
|
472
472
|
type: 'operand',
|
|
473
473
|
name: 'OVER',
|
|
@@ -481,8 +481,8 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
481
481
|
},
|
|
482
482
|
WEIGHT: {
|
|
483
483
|
handler(args, context) {
|
|
484
|
-
const columnParameter = expressionFunctionUtils_1.extractColumnParameter('WEIGHT', args);
|
|
485
|
-
expressionFunctionUtils_1.validateColumnType(columnParameter.value, ['Number'], 'WEIGHT', context.adaptableApi);
|
|
484
|
+
const columnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('WEIGHT', args);
|
|
485
|
+
(0, expressionFunctionUtils_1.validateColumnType)(columnParameter.value, ['Number'], 'WEIGHT', context.adaptableApi);
|
|
486
486
|
const result = {
|
|
487
487
|
type: 'operand',
|
|
488
488
|
name: 'WEIGHT',
|
|
@@ -496,7 +496,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
496
496
|
},
|
|
497
497
|
GROUP_BY: {
|
|
498
498
|
handler(args, context) {
|
|
499
|
-
const columnParameters = expressionFunctionUtils_1.extractColumnParameters('GROUP_BY', args);
|
|
499
|
+
const columnParameters = (0, expressionFunctionUtils_1.extractColumnParameters)('GROUP_BY', args);
|
|
500
500
|
const result = {
|
|
501
501
|
type: 'operand',
|
|
502
502
|
name: 'GROUP_BY',
|
|
@@ -510,7 +510,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
510
510
|
},
|
|
511
511
|
COL: {
|
|
512
512
|
handler(args, context) {
|
|
513
|
-
return expressionFunctionUtils_1.handleColumnFunction(args, context);
|
|
513
|
+
return (0, expressionFunctionUtils_1.handleColumnFunction)(args, context);
|
|
514
514
|
},
|
|
515
515
|
description: 'References a column by its unique identifier',
|
|
516
516
|
signatures: ['[colName]', 'COL(name: string)'],
|
|
@@ -43,10 +43,10 @@ exports.booleanExpressionFunctions = {
|
|
|
43
43
|
EQ: {
|
|
44
44
|
handler(args, context) {
|
|
45
45
|
if (args[0] instanceof Date && args[1] instanceof Date) {
|
|
46
|
-
return isEqual_1.default(args[0], args[1]);
|
|
46
|
+
return (0, isEqual_1.default)(args[0], args[1]);
|
|
47
47
|
}
|
|
48
48
|
if (typeof args[0] === 'string' || typeof args[1] === 'string') {
|
|
49
|
-
const [first, second] = expressionFunctionUtils_1.getStringValues(context, String(args[0]), String(args[1]));
|
|
49
|
+
const [first, second] = (0, expressionFunctionUtils_1.getStringValues)(context, String(args[0]), String(args[1]));
|
|
50
50
|
return first == second;
|
|
51
51
|
}
|
|
52
52
|
return args[0] == args[1];
|
|
@@ -60,10 +60,10 @@ exports.booleanExpressionFunctions = {
|
|
|
60
60
|
NEQ: {
|
|
61
61
|
handler(args, context) {
|
|
62
62
|
if (args[0] instanceof Date && args[1] instanceof Date) {
|
|
63
|
-
return !isEqual_1.default(args[0], args[1]);
|
|
63
|
+
return !(0, isEqual_1.default)(args[0], args[1]);
|
|
64
64
|
}
|
|
65
65
|
if (typeof args[0] === 'string' || typeof args[1] === 'string') {
|
|
66
|
-
const [first, second] = expressionFunctionUtils_1.getStringValues(context, String(args[0]), String(args[1]));
|
|
66
|
+
const [first, second] = (0, expressionFunctionUtils_1.getStringValues)(context, String(args[0]), String(args[1]));
|
|
67
67
|
return first != second;
|
|
68
68
|
}
|
|
69
69
|
return args[0] != args[1];
|
|
@@ -77,10 +77,10 @@ exports.booleanExpressionFunctions = {
|
|
|
77
77
|
LT: {
|
|
78
78
|
handler(args, context) {
|
|
79
79
|
if (args[0] instanceof Date && args[1] instanceof Date) {
|
|
80
|
-
return isBefore_1.default(args[0], args[1]);
|
|
80
|
+
return (0, isBefore_1.default)(args[0], args[1]);
|
|
81
81
|
}
|
|
82
82
|
if (typeof args[0] === 'string' || typeof args[1] === 'string') {
|
|
83
|
-
const [first, second] = expressionFunctionUtils_1.getStringValues(context, String(args[0]), String(args[1]));
|
|
83
|
+
const [first, second] = (0, expressionFunctionUtils_1.getStringValues)(context, String(args[0]), String(args[1]));
|
|
84
84
|
return first < second;
|
|
85
85
|
}
|
|
86
86
|
return args[0] < args[1];
|
|
@@ -99,10 +99,10 @@ exports.booleanExpressionFunctions = {
|
|
|
99
99
|
LTE: {
|
|
100
100
|
handler(args, context) {
|
|
101
101
|
if (args[0] instanceof Date && args[1] instanceof Date) {
|
|
102
|
-
return isBefore_1.default(args[0], args[1]) || isEqual_1.default(args[0], args[1]);
|
|
102
|
+
return (0, isBefore_1.default)(args[0], args[1]) || (0, isEqual_1.default)(args[0], args[1]);
|
|
103
103
|
}
|
|
104
104
|
if (typeof args[0] === 'string' || typeof args[1] === 'string') {
|
|
105
|
-
const [first, second] = expressionFunctionUtils_1.getStringValues(context, String(args[0]), String(args[1]));
|
|
105
|
+
const [first, second] = (0, expressionFunctionUtils_1.getStringValues)(context, String(args[0]), String(args[1]));
|
|
106
106
|
return first <= second;
|
|
107
107
|
}
|
|
108
108
|
return args[0] <= args[1];
|
|
@@ -121,10 +121,10 @@ exports.booleanExpressionFunctions = {
|
|
|
121
121
|
GT: {
|
|
122
122
|
handler(args, context) {
|
|
123
123
|
if (args[0] instanceof Date && args[1] instanceof Date) {
|
|
124
|
-
return isAfter_1.default(args[0], args[1]);
|
|
124
|
+
return (0, isAfter_1.default)(args[0], args[1]);
|
|
125
125
|
}
|
|
126
126
|
if (typeof args[0] === 'string' || typeof args[1] === 'string') {
|
|
127
|
-
const [first, second] = expressionFunctionUtils_1.getStringValues(context, String(args[0]), String(args[1]));
|
|
127
|
+
const [first, second] = (0, expressionFunctionUtils_1.getStringValues)(context, String(args[0]), String(args[1]));
|
|
128
128
|
return first > second;
|
|
129
129
|
}
|
|
130
130
|
return args[0] > args[1];
|
|
@@ -143,10 +143,10 @@ exports.booleanExpressionFunctions = {
|
|
|
143
143
|
GTE: {
|
|
144
144
|
handler(args, context) {
|
|
145
145
|
if (args[0] instanceof Date && args[1] instanceof Date) {
|
|
146
|
-
return isAfter_1.default(args[0], args[1]) || isEqual_1.default(args[0], args[1]);
|
|
146
|
+
return (0, isAfter_1.default)(args[0], args[1]) || (0, isEqual_1.default)(args[0], args[1]);
|
|
147
147
|
}
|
|
148
148
|
if (typeof args[0] === 'string' || typeof args[1] === 'string') {
|
|
149
|
-
const [first, second] = expressionFunctionUtils_1.getStringValues(context, String(args[0]), String(args[1]));
|
|
149
|
+
const [first, second] = (0, expressionFunctionUtils_1.getStringValues)(context, String(args[0]), String(args[1]));
|
|
150
150
|
return first >= second;
|
|
151
151
|
}
|
|
152
152
|
return args[0] >= args[1];
|
|
@@ -193,7 +193,7 @@ exports.booleanExpressionFunctions = {
|
|
|
193
193
|
},
|
|
194
194
|
CONTAINS: {
|
|
195
195
|
handler(args, context) {
|
|
196
|
-
const [first, second] = expressionFunctionUtils_1.getStringValues(context, String(args[0]), String(args[1]));
|
|
196
|
+
const [first, second] = (0, expressionFunctionUtils_1.getStringValues)(context, String(args[0]), String(args[1]));
|
|
197
197
|
return first.indexOf(second) !== -1;
|
|
198
198
|
},
|
|
199
199
|
isPredicate: true,
|
|
@@ -203,7 +203,7 @@ exports.booleanExpressionFunctions = {
|
|
|
203
203
|
},
|
|
204
204
|
STARTS_WITH: {
|
|
205
205
|
handler(args, context) {
|
|
206
|
-
const [first, second] = expressionFunctionUtils_1.getStringValues(context, String(args[0]), String(args[1]));
|
|
206
|
+
const [first, second] = (0, expressionFunctionUtils_1.getStringValues)(context, String(args[0]), String(args[1]));
|
|
207
207
|
return first.startsWith(second);
|
|
208
208
|
},
|
|
209
209
|
isPredicate: true,
|
|
@@ -213,7 +213,7 @@ exports.booleanExpressionFunctions = {
|
|
|
213
213
|
},
|
|
214
214
|
ENDS_WITH: {
|
|
215
215
|
handler(args, context) {
|
|
216
|
-
const [first, second] = expressionFunctionUtils_1.getStringValues(context, String(args[0]), String(args[1]));
|
|
216
|
+
const [first, second] = (0, expressionFunctionUtils_1.getStringValues)(context, String(args[0]), String(args[1]));
|
|
217
217
|
return first.endsWith(second);
|
|
218
218
|
},
|
|
219
219
|
isPredicate: true,
|
|
@@ -224,11 +224,11 @@ exports.booleanExpressionFunctions = {
|
|
|
224
224
|
ANY_CONTAINS: {
|
|
225
225
|
handler(args, context) {
|
|
226
226
|
var _a;
|
|
227
|
-
const searchTerm = expressionFunctionUtils_1.getStringValue(context, String(args[0]));
|
|
227
|
+
const searchTerm = (0, expressionFunctionUtils_1.getStringValue)(context, String(args[0]));
|
|
228
228
|
return (_a = context.adaptableApi) === null || _a === void 0 ? void 0 : _a.columnApi.getColumns().some((column) => {
|
|
229
229
|
var _a;
|
|
230
230
|
const value = (_a = context.adaptableApi) === null || _a === void 0 ? void 0 : _a.gridApi.getDisplayValueFromRowNode(context.node, column.columnId);
|
|
231
|
-
const columnValue = expressionFunctionUtils_1.getStringValue(context, String(value));
|
|
231
|
+
const columnValue = (0, expressionFunctionUtils_1.getStringValue)(context, String(value));
|
|
232
232
|
return columnValue.indexOf(searchTerm) !== -1;
|
|
233
233
|
});
|
|
234
234
|
},
|
|
@@ -282,7 +282,7 @@ exports.booleanExpressionFunctions = {
|
|
|
282
282
|
const cycle = context.namedQueryCallStack.slice(firstIndex, lastIndex + 1);
|
|
283
283
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError(`${namedQueryName}`, ` contains a circular reference: ${cycle.join(' -> ')}`);
|
|
284
284
|
}
|
|
285
|
-
const queryEvaluationResult = src_1.evaluate(namedQuery.BooleanExpression, context);
|
|
285
|
+
const queryEvaluationResult = (0, src_1.evaluate)(namedQuery.BooleanExpression, context);
|
|
286
286
|
// remove query name from callstack
|
|
287
287
|
(_b = context.namedQueryCallStack) === null || _b === void 0 ? void 0 : _b.pop();
|
|
288
288
|
return queryEvaluationResult;
|
|
@@ -10,13 +10,13 @@ const evaluator_1 = require("../../parser/src/evaluator");
|
|
|
10
10
|
// string functions may be case (in)sensitive, see internalApi.isTextComparisonCaseSensitive()
|
|
11
11
|
// if case is insensitive, we convert ALL involved strings to lower case
|
|
12
12
|
const getStringValues = (context, ...stringArguments) => {
|
|
13
|
-
return exports.isTextSearchCaseInsensitive(context)
|
|
13
|
+
return (0, exports.isTextSearchCaseInsensitive)(context)
|
|
14
14
|
? stringArguments.map((string) => string.toLowerCase())
|
|
15
15
|
: stringArguments;
|
|
16
16
|
};
|
|
17
17
|
exports.getStringValues = getStringValues;
|
|
18
18
|
const getStringValue = (context, stringArgument) => {
|
|
19
|
-
return exports.isTextSearchCaseInsensitive(context) ? stringArgument.toLowerCase() : stringArgument;
|
|
19
|
+
return (0, exports.isTextSearchCaseInsensitive)(context) ? stringArgument.toLowerCase() : stringArgument;
|
|
20
20
|
};
|
|
21
21
|
exports.getStringValue = getStringValue;
|
|
22
22
|
const isTextSearchCaseInsensitive = (context) => !context.adaptableApi.internalApi.isTextComparisonCaseSensitive();
|
|
@@ -26,10 +26,10 @@ exports.isTextSearchCaseInsensitive = isTextSearchCaseInsensitive;
|
|
|
26
26
|
const getDataChangeLog$ = (context, columnNameFilter) => {
|
|
27
27
|
let dataChangeLog$ = context.adaptableApi.internalApi.getDataService().dataChangeLog$;
|
|
28
28
|
// filter only the given column changes
|
|
29
|
-
dataChangeLog$ = dataChangeLog$.pipe(operators_1.filter((dataChangeLog) => dataChangeLog.column.columnId === columnNameFilter));
|
|
29
|
+
dataChangeLog$ = dataChangeLog$.pipe((0, operators_1.filter)((dataChangeLog) => dataChangeLog.column.columnId === columnNameFilter));
|
|
30
30
|
// filter based on the WHERE clause
|
|
31
31
|
if (context.filterFn) {
|
|
32
|
-
dataChangeLog$ = dataChangeLog$.pipe(operators_1.filter((value) => context.filterFn(value.rowNode)));
|
|
32
|
+
dataChangeLog$ = dataChangeLog$.pipe((0, operators_1.filter)((value) => context.filterFn(value.rowNode)));
|
|
33
33
|
}
|
|
34
34
|
return dataChangeLog$;
|
|
35
35
|
};
|
|
@@ -39,7 +39,7 @@ const handleWhereFunction = (args, context) => {
|
|
|
39
39
|
const whereClauseExpressionNode = args[1];
|
|
40
40
|
const filterFn = (rowNode) => {
|
|
41
41
|
// whereClauseResult
|
|
42
|
-
return evaluator_1.evaluateNode(whereClauseExpressionNode, {
|
|
42
|
+
return (0, evaluator_1.evaluateNode)(whereClauseExpressionNode, {
|
|
43
43
|
node: rowNode,
|
|
44
44
|
adaptableApi: context.adaptableApi,
|
|
45
45
|
functions: context.whereClauseFunctions,
|
|
@@ -47,7 +47,7 @@ const handleWhereFunction = (args, context) => {
|
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
// observableExpressionResult
|
|
50
|
-
return evaluator_1.evaluateNode(reactiveExpressionNode, {
|
|
50
|
+
return (0, evaluator_1.evaluateNode)(reactiveExpressionNode, {
|
|
51
51
|
node: context.node,
|
|
52
52
|
adaptableApi: context.adaptableApi,
|
|
53
53
|
functions: context.functions,
|
|
@@ -57,15 +57,15 @@ const handleWhereFunction = (args, context) => {
|
|
|
57
57
|
};
|
|
58
58
|
exports.handleWhereFunction = handleWhereFunction;
|
|
59
59
|
const extractColumnParameter = (consumingFunctionName, args) => {
|
|
60
|
-
return exports.extractParameter(consumingFunctionName, 'config', ['COL'], args);
|
|
60
|
+
return (0, exports.extractParameter)(consumingFunctionName, 'config', ['COL'], args);
|
|
61
61
|
};
|
|
62
62
|
exports.extractColumnParameter = extractColumnParameter;
|
|
63
63
|
const extractColumnParameters = (consumingFunctionName, args) => {
|
|
64
|
-
return exports.extractParameters(consumingFunctionName, 'config', ['COL'], args);
|
|
64
|
+
return (0, exports.extractParameters)(consumingFunctionName, 'config', ['COL'], args);
|
|
65
65
|
};
|
|
66
66
|
exports.extractColumnParameters = extractColumnParameters;
|
|
67
67
|
const extractParameter = (consumingFunctionName, allowedType, allowedOperands, args, config) => {
|
|
68
|
-
const parameters = exports.extractParameters(consumingFunctionName, allowedType, allowedOperands, args, config);
|
|
68
|
+
const parameters = (0, exports.extractParameters)(consumingFunctionName, allowedType, allowedOperands, args, config);
|
|
69
69
|
if (parameters == undefined) {
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
@@ -104,7 +104,7 @@ const getNumericValue = (input) => {
|
|
|
104
104
|
if (typeof input === 'number') {
|
|
105
105
|
return input;
|
|
106
106
|
}
|
|
107
|
-
const numericValue = toNumber_1.default(input);
|
|
107
|
+
const numericValue = (0, toNumber_1.default)(input);
|
|
108
108
|
return isNaN(numericValue) ? 0 : numericValue;
|
|
109
109
|
};
|
|
110
110
|
exports.getNumericValue = getNumericValue;
|