@adaptabletools/adaptable 17.0.0-canary.0 → 17.0.0-canary.2
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 +1203 -1207
- package/base.css.map +1 -1
- package/index.css +28 -1989
- package/index.css.map +1 -1
- package/package.json +9 -110
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +2 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +16 -11
- package/src/AdaptableOptions/ActionRowOptions.d.ts +25 -3
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +3 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +10 -1
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +1 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +2 -2
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +110 -91
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
- package/src/AdaptableOptions/DateInputOptions.d.ts +1 -1
- package/src/AdaptableOptions/EditOptions.d.ts +2 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +3 -3
- package/src/AdaptableOptions/ExpressionOptions.d.ts +2 -2
- package/src/AdaptableOptions/Fdc3Options.d.ts +10 -4
- package/src/AdaptableOptions/GridFilterOptions.d.ts +18 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +10 -4
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -1
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +4 -4
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -16
- package/src/Api/ColumnApi.d.ts +4 -0
- package/src/Api/ColumnFilterApi.d.ts +2 -5
- package/src/Api/DashboardApi.d.ts +0 -11
- package/src/Api/EventApi.d.ts +2 -30
- package/src/Api/Events/ActionRowSubmitted.d.ts +1 -5
- package/src/Api/Events/AdaptableSearchState.d.ts +2 -7
- package/src/Api/Events/Fdc3MessageInfo.d.ts +1 -1
- package/src/Api/Events/GridFilterApplied.d.ts +2 -1
- package/src/Api/ExportApi.d.ts +0 -4
- package/src/Api/GridFilterApi.d.ts +26 -8
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +4 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnFilterApiImpl.js +3 -3
- package/src/Api/Implementation/ConfigApiImpl.js +1 -2
- package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -2
- package/src/Api/Implementation/DashboardApiImpl.js +0 -14
- package/src/Api/Implementation/ExportApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ExportApiImpl.js +0 -3
- package/src/Api/Implementation/GridApiImpl.js +2 -2
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +6 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +22 -3
- package/src/Api/Implementation/NamedQueryApiImpl.d.ts +2 -5
- package/src/Api/Implementation/NamedQueryApiImpl.js +2 -2
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -1
- package/src/Api/Implementation/OptionsApiImpl.js +3 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
- package/src/Api/Internal/ActionRowInternalApi.d.ts +1 -0
- package/src/Api/Internal/ActionRowInternalApi.js +17 -3
- package/src/Api/Internal/AlertInternalApi.d.ts +1 -7
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +2 -2
- package/src/Api/Internal/ColumnFilterInternalApi.js +9 -9
- package/src/Api/Internal/ColumnInternalApi.d.ts +0 -10
- package/src/Api/Internal/ColumnInternalApi.js +0 -28
- package/src/Api/Internal/Fdc3InternalApi.d.ts +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +6 -6
- package/src/Api/Internal/GridFilterInternalApi.d.ts +1 -1
- package/src/Api/Internal/GridFilterInternalApi.js +5 -5
- package/src/Api/Internal/GridInternalApi.js +31 -9
- package/src/Api/Internal/LayoutInternalApi.js +8 -0
- package/src/Api/Internal/PredicateInternalApi.js +3 -3
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +0 -3
- package/src/Api/Internal/StyledColumnInternalApi.js +0 -27
- package/src/Api/NamedQueryApi.d.ts +6 -5
- package/src/Api/OptionsApi.d.ts +5 -1
- package/src/PredefinedConfig/AlertState.d.ts +6 -6
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +1 -1
- package/src/PredefinedConfig/ChartingState.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptableAlert.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableMessageType.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +45 -58
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableScope.d.ts +5 -5
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -1
- package/src/PredefinedConfig/Common/ColumnFilter.d.ts +2 -2
- package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
- package/src/PredefinedConfig/Common/Fdc3Context.d.ts +133 -37
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +4 -4
- package/src/PredefinedConfig/Common/Schedule.d.ts +2 -2
- package/src/PredefinedConfig/Common/Types.d.ts +15 -15
- package/src/PredefinedConfig/ExportState.d.ts +4 -4
- package/src/PredefinedConfig/FlashingCellState.d.ts +4 -4
- package/src/PredefinedConfig/FormatColumnState.d.ts +4 -27
- package/src/PredefinedConfig/NotesState.d.ts +2 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -5
- package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +8 -13
- package/src/PredefinedConfig/SystemState.d.ts +3 -3
- package/src/PredefinedConfig/TeamSharingState.d.ts +3 -3
- package/src/PredefinedConfig/ToolPanelState.d.ts +1 -1
- package/src/PredefinedConfig/Uuid.d.ts +1 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +6 -1
- package/src/Redux/ActionsReducers/GridRedux.js +18 -0
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +37 -16
- package/src/Redux/ActionsReducers/LayoutRedux.js +69 -16
- package/src/Redux/Store/AdaptableReduxMerger.d.ts +1 -1
- package/src/Redux/Store/AdaptableStore.d.ts +2 -2
- package/src/Redux/Store/AdaptableStore.js +46 -19
- package/src/Strategy/AdaptableModuleBase.d.ts +0 -1
- package/src/Strategy/AdaptableModuleBase.js +0 -30
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/ChartingModule.js +8 -5
- package/src/Strategy/ColumnFilterModule.d.ts +2 -0
- package/src/Strategy/ColumnFilterModule.js +78 -40
- package/src/Strategy/CustomSortModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +1 -1
- package/src/Strategy/Interface/IModule.d.ts +3 -3
- package/src/Strategy/LayoutModule.js +5 -0
- package/src/Strategy/StyledColumnModule.js +2 -53
- package/src/Utilities/Constants/GeneralConstants.d.ts +3 -0
- package/src/Utilities/Constants/GeneralConstants.js +3 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +31 -23
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +1 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -2
- package/src/Utilities/Emitter.d.ts +2 -2
- package/src/Utilities/Emitter.js +2 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +55 -5
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +9 -0
- package/src/Utilities/ExpressionFunctions/deepMap.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +7 -7
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +7 -7
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +7 -7
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +11 -1
- package/src/Utilities/Extensions/TypeExtensions.d.ts +8 -8
- package/src/Utilities/Helpers/AdaptableHelper.js +4 -0
- package/src/Utilities/ObjectFactory.js +1 -1
- package/src/Utilities/Services/EntitlementService.d.ts +0 -1
- package/src/Utilities/Services/EntitlementService.js +0 -8
- package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -3
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +0 -6
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +1 -1
- package/src/Utilities/Services/LicenseService/index.js +181 -1
- package/src/Utilities/Services/MetamodelService.js +1 -1
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/license/LicenseDetails.d.ts +1 -1
- package/src/Utilities/license/decode.js +65 -1
- package/src/Utilities/license/hashing.js +43 -1
- package/src/Utilities/logDeprecation.d.ts +5 -3
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +1 -1
- package/src/View/Alert/AlertEmptyView.js +1 -1
- package/src/View/Alert/Utilities/getAvailablePredicates.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +20 -4
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +21 -24
- package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertWizard.js +1 -1
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +3 -9
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -18
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +5 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +5 -5
- package/src/View/ColumnInfo/ColumnInfo.js +7 -8
- package/src/View/Components/AdaptableDateInput/index.d.ts +2 -2
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +2 -2
- package/src/View/Components/Buttons/ButtonBase/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonOpen.d.ts +5 -0
- package/src/View/Components/Buttons/ButtonOpen.js +7 -0
- package/src/View/Components/Buttons/ButtonUnsuspend.d.ts +8 -0
- package/src/View/Components/Buttons/ButtonUnsuspend.js +17 -0
- package/src/View/Components/CellPopup/index.d.ts +1 -1
- package/src/View/Components/ColumnSelector/index.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.d.ts +2 -2
- package/src/View/Components/EntityRulesEditor/index.js +11 -3
- package/src/View/Components/ExternalRenderer.d.ts +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +24 -24
- package/src/View/Components/FilterForm/QuickFilterForm.js +3 -3
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterValues.js +2 -2
- package/src/View/Components/FilterForm/Waiting.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -2
- package/src/View/Components/PredicateEditor/PredicateEditor.js +10 -10
- package/src/View/Components/RangesComponent.js +11 -8
- package/src/View/Components/Selectors/ColumnSelector.d.ts +12 -17
- package/src/View/Components/Selectors/ColumnSelector.js +23 -42
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +18 -0
- package/src/View/Components/Selectors/ColumnSelectorOld.js +46 -0
- package/src/View/Components/Selectors/ColumnValueSelector.d.ts +4 -23
- package/src/View/Components/Selectors/ColumnValueSelector.js +34 -126
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +13 -0
- package/src/View/Components/Selectors/PermittedValuesSelector.js +46 -0
- package/src/View/Components/StyleComponent.d.ts +2 -3
- package/src/View/Components/StyleComponent.js +37 -40
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -2
- package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +1 -1
- package/src/View/Components/ValueSelector/index.d.ts +2 -2
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +1 -1
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.d.ts +1 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +4 -4
- package/src/View/Dashboard/DashboardToolbarFactory.js +0 -1
- package/src/View/Dashboard/PinnedDashboard.js +6 -3
- package/src/View/Dashboard/PinnedToolbarsSelector.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -1
- package/src/View/DataImport/DataImportPopup.js +1 -1
- package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +1 -1
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.d.ts +1 -1
- package/src/View/DataSet/DataSetViewPanel.js +3 -2
- package/src/View/Export/ExportViewPanel.js +12 -9
- package/src/View/Export/Wizard/ReportColumnsWizardSection.d.ts +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.d.ts +1 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +8 -8
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +10 -9
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +3 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -17
- package/src/View/GridFilter/GridFilterExpressionEditor.js +62 -9
- package/src/View/GridFilter/GridFilterPopup.js +36 -6
- package/src/View/GridFilter/GridFilterStatusbar.js +0 -1
- package/src/View/GridFilter/GridFilterViewPanel.d.ts +2 -26
- package/src/View/GridFilter/GridFilterViewPanel.js +49 -150
- package/src/View/GridFilter/NamedQuerySelector.d.ts +16 -0
- package/src/View/GridFilter/NamedQuerySelector.js +50 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +24 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +123 -0
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.d.ts +4 -0
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +27 -0
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +5 -3
- package/src/View/Layout/LayoutViewPanel.js +4 -3
- package/src/View/Layout/SaveLayoutButton.js +2 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +10 -0
- package/src/View/Layout/Wizard/sections/FilterSection.js +15 -17
- package/src/View/Layout/Wizard/sections/GridFilterSection.d.ts +9 -0
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +37 -0
- package/src/View/License/LicenseWatermark.js +61 -1
- package/src/View/NamedQuery/EditCurrentQueryButton.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +2 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +6 -5
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -7
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +4 -3
- package/src/View/SmartEdit/SmartEditViewPanel.js +7 -5
- package/src/View/SpecialColumnSettingsWizardStep.js +4 -1
- package/src/View/StateManagement/StateManagementPopup.js +6 -6
- package/src/View/StatusBar/StatusBarPopup.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +16 -8
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +20 -23
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +2 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +7 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +0 -8
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +2 -9
- package/src/View/SystemStatus/SystemStatusViewPanel.js +1 -1
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +1 -1
- package/src/View/Theme/ThemeEditor.d.ts +1 -1
- package/src/View/Theme/ThemeViewPanel.js +4 -3
- package/src/View/UIHelper.d.ts +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.d.ts +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
- package/src/View/Wizard/OnePageWizards.d.ts +2 -2
- package/src/agGrid/Adaptable.d.ts +20 -17
- package/src/agGrid/Adaptable.js +193 -190
- package/src/agGrid/AdaptableLogger.js +15 -15
- package/src/agGrid/CheckboxRenderer.d.ts +5 -0
- package/src/agGrid/CheckboxRenderer.js +5 -1
- package/src/agGrid/ColumnSetupInfo.d.ts +1 -1
- package/src/agGrid/agGridHelper.d.ts +0 -1
- package/src/agGrid/agGridHelper.js +16 -14
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +2 -2
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.d.ts +2 -2
- package/src/components/CheckBox/index.d.ts +1 -1
- package/src/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/src/components/ColorPicker/ColorPicker.js +1 -1
- package/src/components/ContainerProps.d.ts +2 -2
- package/src/components/Dashboard/Dashboard.d.ts +2 -2
- package/src/components/Dashboard/DashboardTab.d.ts +1 -1
- package/src/components/Dashboard/DashboardToolbar.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +2 -2
- package/src/components/Dialog/index.d.ts +2 -2
- package/src/components/Dropdown/index.d.ts +2 -2
- package/src/components/DropdownButton/DropdownButtonItem.d.ts +1 -1
- package/src/components/DropdownButton/index.d.ts +1 -1
- package/src/components/DropdownButton/renderItem.d.ts +1 -1
- package/src/components/DropdownButton/useExpanded.d.ts +1 -1
- package/src/components/EllipsisContainer/index.d.ts +1 -1
- package/src/components/EmptyContent/index.d.ts +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
- package/src/components/ExpressionEditor/NamedQueryContext.d.ts +1 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +45 -15
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +7 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +48 -33
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.d.ts +1 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +6 -6
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +2 -0
- package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +2 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +30 -0
- package/src/components/ExpressionEditor/index.d.ts +2 -1
- package/src/components/ExpressionEditor/index.js +81 -59
- package/src/components/FormLayout/index.d.ts +4 -4
- package/src/components/Input/NumberInput.d.ts +1 -1
- package/src/components/Input/index.d.ts +2 -2
- package/src/components/List/ListGroupItem/index.d.ts +2 -2
- package/src/components/Modal/Backdrop.d.ts +2 -2
- package/src/components/OverlayTrigger/index.d.ts +1 -1
- package/src/components/Panel/index.d.ts +1 -1
- package/src/components/Radio/index.d.ts +1 -1
- package/src/components/ResizeObserver/index.d.ts +1 -1
- package/src/components/Select/Select.d.ts +30 -0
- package/src/components/Select/Select.js +128 -0
- package/src/components/Select/index.d.ts +1 -0
- package/src/components/Select/index.js +1 -0
- package/src/components/SelectableList/index.d.ts +1 -1
- package/src/components/Tabs/index.d.ts +3 -3
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/Toggle/Toggle.d.ts +1 -1
- package/src/components/WarningBox/index.d.ts +4 -0
- package/src/components/WarningBox/index.js +7 -0
- package/src/components/WindowModal/WindowModal.d.ts +2 -2
- package/src/components/icons/DefaultIcon.d.ts +1 -1
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/resume.d.ts +3 -0
- package/src/components/icons/resume.js +4 -0
- package/src/components/utils/useContainerScrollObserver/index.d.ts +1 -1
- package/src/components/utils/uuid.d.ts +1 -1
- package/src/metamodel/adaptable-metamodel-model.d.ts +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +330 -27
- package/src/metamodel/adaptable.metamodel.js +9435 -1
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +3 -0
- package/src/parser/src/predicate/types.d.ts +2 -2
- package/src/parser/src/types.d.ts +23 -11
- package/src/renderReactRoot.d.ts +2 -4
- package/src/renderReactRoot.js +5 -46
- package/src/types.d.ts +6 -6
- package/themes/dark.css +1 -1
- package/themes/dark.css.map +1 -1
- package/themes/light.css +1 -1
- package/themes/light.css.map +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -0
- package/publishTimestamp.d.ts +0 -2
- package/publishTimestamp.js +0 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +0 -216
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +0 -6
- package/src/AdaptableOptions/FinancePluginOptions.js +0 -1
- package/src/Api/Events/ChexboxColumnClicked.d.ts +0 -24
- package/src/Api/Events/ChexboxColumnClicked.js +0 -1
- package/src/Api/Events/QueryRun.d.ts +0 -15
- package/src/Api/Events/QueryRun.js +0 -1
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +0 -41
- package/src/PredefinedConfig/ConditionalStyleState.js +0 -1
- package/version.d.ts +0 -2
- package/version.js +0 -1
- /package/src/AdaptableOptions/{FilterOptions.js → GridFilterOptions.js} +0 -0
|
@@ -4,11 +4,7 @@ import { IRowNode } from '@ag-grid-community/core';
|
|
|
4
4
|
/**
|
|
5
5
|
* Info passed into ActionRowSubmitted Event - can be `CreatedActionRowInfo` or `EditedActionRowInfo` or `DeletedActionRowInfo`
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
/**
|
|
9
|
-
* Type of Action Row - Created, Edited or Deleted
|
|
10
|
-
*/
|
|
11
|
-
export declare type ActionRowType = 'rowCreated' | 'rowEdited' | 'rowDeleted';
|
|
7
|
+
export type ActionRowSubmittedInfo<TData = any> = CreatedActionRowInfo<TData> | EditedActionRowInfo<TData> | DeletedActionRowInfo<TData>;
|
|
12
8
|
/**
|
|
13
9
|
* Info passed into ActionRowSubmitted Event for Created Rows
|
|
14
10
|
*/
|
|
@@ -7,19 +7,14 @@ export interface AdaptableSearchState {
|
|
|
7
7
|
* Current DataSet (if one selected)
|
|
8
8
|
*/
|
|
9
9
|
dataSet: DataSet | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Current Query
|
|
12
|
-
* @deprecated use gridFilter instead
|
|
13
|
-
*/
|
|
14
|
-
currentQuery: string | undefined;
|
|
15
10
|
/**
|
|
16
11
|
* Current Grid Filter
|
|
17
12
|
*/
|
|
18
13
|
gridFilter: string | undefined;
|
|
19
14
|
/**
|
|
20
|
-
* AST for
|
|
15
|
+
* AST for Grid Filter
|
|
21
16
|
*/
|
|
22
|
-
|
|
17
|
+
gridFilterAST: any;
|
|
23
18
|
/**
|
|
24
19
|
* Currently applied Column Filters
|
|
25
20
|
*/
|
|
@@ -5,7 +5,7 @@ import { AppIdentifier, ContextMetadata } from '@finos/fdc3';
|
|
|
5
5
|
/**
|
|
6
6
|
* EventInfo returned by FDC3 Message events
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type Fdc3MessageInfo = Fdc3MessageSentInfo | Fdc3MessageReceivedInfo;
|
|
9
9
|
/**
|
|
10
10
|
* Event Info for FDC3 Sent Message Event
|
|
11
11
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GridFilter } from '../../types';
|
|
1
2
|
import { BaseEventInfo } from './BaseEventInfo';
|
|
2
3
|
/**
|
|
3
4
|
* EventInfo returned by the GridFilterApplied event
|
|
@@ -6,7 +7,7 @@ export interface GridFilterAppliedInfo extends BaseEventInfo {
|
|
|
6
7
|
/**
|
|
7
8
|
* Current Grid Filter
|
|
8
9
|
*/
|
|
9
|
-
gridFilter:
|
|
10
|
+
gridFilter: GridFilter | undefined;
|
|
10
11
|
/**
|
|
11
12
|
* AST for Current Grid Filter Expression
|
|
12
13
|
*/
|
package/src/Api/ExportApi.d.ts
CHANGED
|
@@ -65,10 +65,6 @@ export interface ExportApi {
|
|
|
65
65
|
* @returns report schedule
|
|
66
66
|
*/
|
|
67
67
|
getReportSchedules(): ReportSchedule[];
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated use runReport instead
|
|
70
|
-
*/
|
|
71
|
-
sendReport(reportName: string, destination: 'Excel' | 'CSV' | 'Clipboard' | 'JSON' | string): void;
|
|
72
68
|
/**
|
|
73
69
|
* Sends a Report to a given destination
|
|
74
70
|
* @param reportName name of Report to send
|
|
@@ -1,21 +1,39 @@
|
|
|
1
|
+
import { GridFilter } from '../types';
|
|
1
2
|
/**
|
|
2
3
|
* Provides run-time access to Grid Filter section of Adaptable State.
|
|
3
4
|
*/
|
|
4
5
|
export interface GridFilterApi {
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
-
* @returns
|
|
7
|
+
* Retrieves the Grid Filter from the current Layout
|
|
8
|
+
* @returns Grid Filter
|
|
9
|
+
*/
|
|
10
|
+
getCurrentGridFilter(): GridFilter | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves the Grid Filter's Expression from the current layout
|
|
13
|
+
* @returns Grid Filter Expression
|
|
8
14
|
*/
|
|
9
15
|
getCurrentGridFilterExpression(): string | undefined;
|
|
10
16
|
/**
|
|
11
|
-
* Sets the
|
|
12
|
-
* @param
|
|
17
|
+
* Sets the Grid Filter (for the current layout)
|
|
18
|
+
* @param expression filter string
|
|
19
|
+
*/
|
|
20
|
+
setGridFilterExpression(expression: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* Clears the Grid Filter (for the current Layout)
|
|
13
23
|
*/
|
|
14
|
-
|
|
24
|
+
clearGridFilter(): void;
|
|
15
25
|
/**
|
|
16
|
-
* Opens the
|
|
26
|
+
* Opens the Expression Editor
|
|
17
27
|
*
|
|
18
|
-
* @param expression
|
|
28
|
+
* @param expression current Grid Filter expression
|
|
29
|
+
*/
|
|
30
|
+
openExpressionEditorForGridFilter(expression?: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* Suspends the Grid Filter
|
|
33
|
+
*/
|
|
34
|
+
suspendGridFilter(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Unsuspends the Grid Filter
|
|
19
37
|
*/
|
|
20
|
-
|
|
38
|
+
unSuspendGridFilter(): void;
|
|
21
39
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import * as GeneralConstants from '../../Utilities/Constants/GeneralConstants';
|
|
3
|
+
import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
3
4
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
4
5
|
import { ColumnInternalApi } from '../Internal/ColumnInternalApi';
|
|
5
6
|
export class ColumnApiImpl extends ApiBase {
|
|
@@ -329,4 +330,7 @@ export class ColumnApiImpl extends ApiBase {
|
|
|
329
330
|
this.isFreeTextColumn(columnId) ||
|
|
330
331
|
this.isActionColumn(columnId));
|
|
331
332
|
}
|
|
333
|
+
openColumnInfoSettingsPanel() {
|
|
334
|
+
this.showModulePopup(ModuleConstants.ColumnInfoModuleId);
|
|
335
|
+
}
|
|
332
336
|
}
|
|
@@ -33,7 +33,7 @@ export declare class ColumnFilterApiImpl extends ApiBase implements ColumnFilter
|
|
|
33
33
|
*
|
|
34
34
|
* @param filter
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
isColumnFilterActive(filter: ColumnFilter): boolean;
|
|
37
37
|
setColumnFilterForColumn(columnId: string, columnFilterConfig: ColumnFilterConfig): void;
|
|
38
38
|
suspendColumnFilter(columnFilter: ColumnFilter): void;
|
|
39
39
|
unSuspendColumnFilter(columnFilter: ColumnFilter): void;
|
|
@@ -91,7 +91,7 @@ export class ColumnFilterApiImpl extends ApiBase {
|
|
|
91
91
|
}
|
|
92
92
|
clearColumnFilters() {
|
|
93
93
|
this.dispatchAction(LayoutRedux.LayoutColumnFilterClearAll());
|
|
94
|
-
this.adaptable.
|
|
94
|
+
this.adaptable.clearColumnFiltering();
|
|
95
95
|
}
|
|
96
96
|
clearAndSetColumnFilters(columnFilters) {
|
|
97
97
|
this.clearColumnFilters();
|
|
@@ -114,7 +114,7 @@ export class ColumnFilterApiImpl extends ApiBase {
|
|
|
114
114
|
*
|
|
115
115
|
* @param filter
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
isColumnFilterActive(filter) {
|
|
118
118
|
if (!filter || !filter.Predicate || !filter.Predicate.PredicateId) {
|
|
119
119
|
return false;
|
|
120
120
|
}
|
|
@@ -166,7 +166,7 @@ export class ColumnFilterApiImpl extends ApiBase {
|
|
|
166
166
|
let columnFilterForColumn = this.getColumnFilterForColumn(columnId);
|
|
167
167
|
if (columnFilterForColumn) {
|
|
168
168
|
this.dispatchAction(LayoutRedux.LayoutColumnFilterClear(columnFilterForColumn));
|
|
169
|
-
this.adaptable.
|
|
169
|
+
this.adaptable.clearColumnFilteringForColumns([columnId]);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -96,9 +96,8 @@ export class ConfigApiImpl extends ApiBase {
|
|
|
96
96
|
const gridFilter = this.adaptable.api.gridFilterApi.getCurrentGridFilterExpression();
|
|
97
97
|
const adaptableSearchState = {
|
|
98
98
|
dataSet: this.adaptable.api.dataSetApi.getCurrentDataSet(),
|
|
99
|
-
currentQuery: gridFilter,
|
|
100
99
|
gridFilter: gridFilter,
|
|
101
|
-
|
|
100
|
+
gridFilterAST: gridFilter
|
|
102
101
|
? this.adaptable.api.expressionApi.getASTForExpression(gridFilter)
|
|
103
102
|
: null,
|
|
104
103
|
columnFilters: this.adaptable.api.columnFilterApi.getColumnFilters(),
|
|
@@ -15,9 +15,7 @@ export declare class DashboardApiImpl extends ApiBase implements DashboardApi {
|
|
|
15
15
|
getCustomDashboardButtonByLabel(buttonLabel: string): AdaptableButton<DashboardButtonContext> | undefined;
|
|
16
16
|
setModuleButtons(moduleButtons: AdaptableModuleButtons): void;
|
|
17
17
|
setDashboardTitle(title: string): void;
|
|
18
|
-
getCustomToolbarContentsDiv(customToolbarName: string): HTMLElement | null;
|
|
19
18
|
getCustomToolbarHTMLElement(customToolbarName: string): HTMLElement | null;
|
|
20
|
-
setCustomToolbarContents(customToolbarName: string, contents: string): void;
|
|
21
19
|
setCustomToolbarHTMLContent(customToolbarName: string, htmlContent: string): void;
|
|
22
20
|
getCustomToolbarByName(customToolbarName: string): CustomToolbar;
|
|
23
21
|
getTabByName(tabName: string): DashboardTab;
|
|
@@ -4,7 +4,6 @@ import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { SystemDashboardRefresh } from '../../Redux/ActionsReducers/SystemRedux';
|
|
6
6
|
import { DashboardInternalApi } from '../Internal/DashboardInternalApi';
|
|
7
|
-
import { logDeprecation } from '../../Utilities/logDeprecation';
|
|
8
7
|
export class DashboardApiImpl extends ApiBase {
|
|
9
8
|
constructor(adaptable) {
|
|
10
9
|
super(adaptable);
|
|
@@ -37,15 +36,6 @@ export class DashboardApiImpl extends ApiBase {
|
|
|
37
36
|
setDashboardTitle(title) {
|
|
38
37
|
this.dispatchAction(DashboardRedux.DashboardSetTitle(title));
|
|
39
38
|
}
|
|
40
|
-
getCustomToolbarContentsDiv(customToolbarName) {
|
|
41
|
-
logDeprecation(this.adaptable.logger, 'DashboardApi', 'getCustomToolbarContentsDiv', 'getCustomToolbarHTMLElement');
|
|
42
|
-
let customToolbar = this.getCustomToolbarByName(customToolbarName);
|
|
43
|
-
if (customToolbar) {
|
|
44
|
-
let divId = this.internalApi.getCustomToolbarRenderContainerId(customToolbarName);
|
|
45
|
-
return document.getElementById(divId);
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
39
|
getCustomToolbarHTMLElement(customToolbarName) {
|
|
50
40
|
let customToolbar = this.getCustomToolbarByName(customToolbarName);
|
|
51
41
|
if (!customToolbar) {
|
|
@@ -64,10 +54,6 @@ export class DashboardApiImpl extends ApiBase {
|
|
|
64
54
|
return document.getElementById(this.internalApi.getCustomToolbarComponentContainerId(customToolbarName));
|
|
65
55
|
}
|
|
66
56
|
}
|
|
67
|
-
setCustomToolbarContents(customToolbarName, contents) {
|
|
68
|
-
logDeprecation(this.adaptable.logger, 'DashboardApi', 'setCustomToolbarContents', 'setCustomToolbarHTMLContent');
|
|
69
|
-
this.setCustomToolbarHTMLContent(customToolbarName, contents);
|
|
70
|
-
}
|
|
71
57
|
setCustomToolbarHTMLContent(customToolbarName, htmlContent) {
|
|
72
58
|
let customRenderedContainer = this.getCustomToolbarHTMLElement(customToolbarName);
|
|
73
59
|
if (customRenderedContainer) {
|
|
@@ -20,7 +20,6 @@ export declare class ExportApiImpl extends ApiBase implements ExportApi {
|
|
|
20
20
|
getAvailableExportDestinations(): ExportDestination[];
|
|
21
21
|
getReports(): Report[];
|
|
22
22
|
getReportSchedules(): ReportSchedule[];
|
|
23
|
-
sendReport(reportName: string, destination: 'Excel' | 'CSV' | 'Clipboard' | 'JSON' | string): void;
|
|
24
23
|
runReport(reportName: string, destination: 'Excel' | 'CSV' | 'Clipboard' | 'JSON' | string): void;
|
|
25
24
|
runSystemReport(systemReportName: 'Visual Data' | 'All Data' | 'Current Data' | 'Selected Cells' | 'Selected Rows', destination: 'Excel' | 'CSV' | 'Clipboard' | 'JSON' | string): void;
|
|
26
25
|
selectReport(reportName: string): void;
|
|
@@ -72,9 +72,6 @@ export class ExportApiImpl extends ApiBase {
|
|
|
72
72
|
getReportSchedules() {
|
|
73
73
|
return this.getAdaptableState().Schedule.ReportSchedules;
|
|
74
74
|
}
|
|
75
|
-
sendReport(reportName, destination) {
|
|
76
|
-
this.runReport(reportName, destination);
|
|
77
|
-
}
|
|
78
75
|
runReport(reportName, destination) {
|
|
79
76
|
let report = this.getReportByName(reportName);
|
|
80
77
|
if (this.checkItemExists(report, reportName, 'Report')) {
|
|
@@ -105,10 +105,10 @@ export class GridApiImpl extends ApiBase {
|
|
|
105
105
|
return rowNode ? this.getNormalisedValueFromRowNode(rowNode, columnId) : undefined;
|
|
106
106
|
}
|
|
107
107
|
hideFilterForm() {
|
|
108
|
-
this.adaptable.
|
|
108
|
+
this.adaptable.hideColumnFilterForm();
|
|
109
109
|
}
|
|
110
110
|
applyGridFiltering() {
|
|
111
|
-
this.adaptable.
|
|
111
|
+
this.adaptable.applyColumnFiltering();
|
|
112
112
|
}
|
|
113
113
|
clearGridFiltering() {
|
|
114
114
|
// slightly round the houses but we have to call ColumnFilterAPI as it does it properly
|
|
@@ -2,10 +2,15 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
|
2
2
|
import { GridFilterApi } from '../GridFilterApi';
|
|
3
3
|
import { GridFilterInternalApi } from '../Internal/GridFilterInternalApi';
|
|
4
4
|
import { ApiBase } from './ApiBase';
|
|
5
|
+
import { GridFilter } from '../../types';
|
|
5
6
|
export declare class GridFilterApiImpl extends ApiBase implements GridFilterApi {
|
|
6
7
|
internalApi: GridFilterInternalApi;
|
|
7
8
|
constructor(adaptable: IAdaptable);
|
|
9
|
+
getCurrentGridFilter(): GridFilter | undefined;
|
|
8
10
|
getCurrentGridFilterExpression(): string | undefined;
|
|
9
11
|
setGridFilterExpression(filter: string): void;
|
|
10
|
-
|
|
12
|
+
clearGridFilter(): void;
|
|
13
|
+
openExpressionEditorForGridFilter(expression?: string): void;
|
|
14
|
+
suspendGridFilter(): void;
|
|
15
|
+
unSuspendGridFilter(): void;
|
|
11
16
|
}
|
|
@@ -8,14 +8,21 @@ export class GridFilterApiImpl extends ApiBase {
|
|
|
8
8
|
super(adaptable);
|
|
9
9
|
this.internalApi = new GridFilterInternalApi(adaptable);
|
|
10
10
|
}
|
|
11
|
+
getCurrentGridFilter() {
|
|
12
|
+
var _a;
|
|
13
|
+
return (_a = this.getLayoutApi().getCurrentLayout()) === null || _a === void 0 ? void 0 : _a.GridFilter;
|
|
14
|
+
}
|
|
11
15
|
getCurrentGridFilterExpression() {
|
|
12
|
-
|
|
13
|
-
return
|
|
16
|
+
const gridFilter = this.getCurrentGridFilter();
|
|
17
|
+
return gridFilter && !gridFilter.IsSuspended ? gridFilter.Expression : '';
|
|
14
18
|
}
|
|
15
19
|
setGridFilterExpression(filter) {
|
|
16
20
|
this.dispatchAction(LayoutRedux.LayoutGridFilterSet(filter));
|
|
17
21
|
}
|
|
18
|
-
|
|
22
|
+
clearGridFilter() {
|
|
23
|
+
this.dispatchAction(LayoutRedux.LayoutGridFilterClear());
|
|
24
|
+
}
|
|
25
|
+
openExpressionEditorForGridFilter(expression) {
|
|
19
26
|
const preparedQuery = expression !== null && expression !== void 0 ? expression : this.getCurrentGridFilterExpression();
|
|
20
27
|
this.getAdaptableApi().internalApi.showPopupWindow({
|
|
21
28
|
id: WINDOW_GRID_FILTER_EDITOR,
|
|
@@ -27,4 +34,16 @@ export class GridFilterApiImpl extends ApiBase {
|
|
|
27
34
|
},
|
|
28
35
|
});
|
|
29
36
|
}
|
|
37
|
+
suspendGridFilter() {
|
|
38
|
+
const gridFilter = this.getCurrentGridFilter();
|
|
39
|
+
if (gridFilter && !gridFilter.IsSuspended) {
|
|
40
|
+
this.dispatchAction(LayoutRedux.LayoutGridFilterSuspend());
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
unSuspendGridFilter() {
|
|
44
|
+
const gridFilter = this.getCurrentGridFilter();
|
|
45
|
+
if (gridFilter && gridFilter.IsSuspended) {
|
|
46
|
+
this.dispatchAction(LayoutRedux.LayoutGridFilterUnSuspend());
|
|
47
|
+
}
|
|
48
|
+
}
|
|
30
49
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
2
2
|
import { NamedQuery, NamedQueryState } from '../../types';
|
|
3
3
|
import { NamedQueryInternalApi } from '../Internal/NamedQueryInternalApi';
|
|
4
|
-
import { NamedQueryApi } from '../NamedQueryApi';
|
|
4
|
+
import { NamedQueryApi, NamedQueryValidationResult } from '../NamedQueryApi';
|
|
5
5
|
import { ApiBase } from './ApiBase';
|
|
6
6
|
export declare class NamedQueryApiImpl extends ApiBase implements NamedQueryApi {
|
|
7
7
|
internalApi: NamedQueryInternalApi;
|
|
@@ -11,10 +11,7 @@ export declare class NamedQueryApiImpl extends ApiBase implements NamedQueryApi
|
|
|
11
11
|
getNamedQueryState(): NamedQueryState;
|
|
12
12
|
getNamedQueries(): NamedQuery[];
|
|
13
13
|
getNamedQueryByName(namedQueryName: string): NamedQuery | undefined;
|
|
14
|
-
|
|
15
|
-
valid: boolean;
|
|
16
|
-
message: string;
|
|
17
|
-
};
|
|
14
|
+
isValidNamedQuery(namedQuery: NamedQuery): NamedQueryValidationResult;
|
|
18
15
|
openNamedQuerySettingsPanel(): void;
|
|
19
16
|
runNamedQuery(namedQuery: NamedQuery): void;
|
|
20
17
|
runQueryByName(queryName: string): void;
|
|
@@ -23,9 +23,9 @@ export class NamedQueryApiImpl extends ApiBase {
|
|
|
23
23
|
getNamedQueryByName(namedQueryName) {
|
|
24
24
|
return this.getNamedQueries().find((se) => se.Name == namedQueryName);
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
isValidNamedQuery(namedQuery) {
|
|
27
27
|
if (IsNullOrEmptyOrWhiteSpace(namedQuery === null || namedQuery === void 0 ? void 0 : namedQuery.Name)) {
|
|
28
|
-
return { valid: false, message: 'Query name cannot be blank' };
|
|
28
|
+
return { valid: false, message: 'Named Query name cannot be blank' };
|
|
29
29
|
}
|
|
30
30
|
// check that there is no other existing named query with the same name
|
|
31
31
|
const duplicate = this.getNamedQueries().find((q) => q.Name === namedQuery.Name && q.Uuid !== namedQuery.Uuid);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
|
-
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, NotesOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../../types';
|
|
2
|
+
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, NotesOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions, GridFilterOptions } from '../../types';
|
|
3
3
|
import { GroupingOptions } from '../../AdaptableOptions/GroupingOptions';
|
|
4
4
|
import { CustomSortOptions } from '../../AdaptableOptions/CustomSortOptions';
|
|
5
5
|
import { Fdc3Options } from '../../AdaptableOptions/Fdc3Options';
|
|
@@ -31,6 +31,7 @@ export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
|
|
|
31
31
|
getLayoutOptions(): LayoutOptions;
|
|
32
32
|
getMenuOptions(): MenuOptions;
|
|
33
33
|
getColumnFilterOptions(): ColumnFilterOptions;
|
|
34
|
+
getGridFilterOptions(): Readonly<GridFilterOptions<any>>;
|
|
34
35
|
getExpressionOptions(): ExpressionOptions;
|
|
35
36
|
getQuickSearchOptions(): QuickSearchOptions;
|
|
36
37
|
getFormatColumnOptions(): FormatColumnOptions;
|
|
@@ -75,6 +75,9 @@ export class OptionsApiImpl extends ApiBase {
|
|
|
75
75
|
getColumnFilterOptions() {
|
|
76
76
|
return this.getOptions().columnFilterOptions;
|
|
77
77
|
}
|
|
78
|
+
getGridFilterOptions() {
|
|
79
|
+
return this.getOptions().gridFilterOptions;
|
|
80
|
+
}
|
|
78
81
|
getExpressionOptions() {
|
|
79
82
|
return this.getOptions().expressionOptions;
|
|
80
83
|
}
|
|
@@ -61,10 +61,10 @@ export class UserInterfaceApiImpl extends ApiBase {
|
|
|
61
61
|
return undefined;
|
|
62
62
|
}
|
|
63
63
|
getPermittedValuesForColumn(column) {
|
|
64
|
-
|
|
64
|
+
const allPermittedValues = this.getPermittedValuesItems();
|
|
65
|
+
if (ArrayExtensions.IsNullOrEmpty(allPermittedValues)) {
|
|
65
66
|
return undefined;
|
|
66
67
|
}
|
|
67
|
-
const allPermittedValues = this.getPermittedValuesItems();
|
|
68
68
|
let permittedValuesColumn = this.getPermittedValuesForScope(column, allPermittedValues);
|
|
69
69
|
if (!permittedValuesColumn) {
|
|
70
70
|
return undefined;
|
|
@@ -12,6 +12,7 @@ export declare class ActionRowInternalApi extends ApiBase {
|
|
|
12
12
|
private getFormDescription;
|
|
13
13
|
private buildFormParamContext;
|
|
14
14
|
private buildActionRowFields;
|
|
15
|
+
private showColumnInActionRowForm;
|
|
15
16
|
private buidActionRowButtons;
|
|
16
17
|
private prepareEditData;
|
|
17
18
|
private isColumnEditable;
|
|
@@ -47,15 +47,29 @@ export class ActionRowInternalApi extends ApiBase {
|
|
|
47
47
|
type: type,
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
buildActionRowFields(
|
|
50
|
+
buildActionRowFields(actionRowType, rowNode) {
|
|
51
51
|
const relevantColumns = this.getAdaptableApi()
|
|
52
52
|
.columnApi.getColumns()
|
|
53
53
|
.filter((column) => {
|
|
54
54
|
// if there is NO rowNode, do NOT display the non-editable fields as they will be empty
|
|
55
55
|
return !!rowNode || this.isColumnEditable(column, rowNode);
|
|
56
56
|
})
|
|
57
|
-
.filter((column) => !this.getAdaptableApi().columnApi.internalApi.isActionRowButtonColumn(column.columnId)
|
|
58
|
-
|
|
57
|
+
.filter((column) => !this.getAdaptableApi().columnApi.internalApi.isActionRowButtonColumn(column.columnId) &&
|
|
58
|
+
this.showColumnInActionRowForm(column, actionRowType));
|
|
59
|
+
return relevantColumns.map((column) => this.buildFormField(actionRowType, column, rowNode));
|
|
60
|
+
}
|
|
61
|
+
showColumnInActionRowForm(adaptableColumn, actionRowType) {
|
|
62
|
+
const showColumnFn = this.getActionRowOptions().actionRowFormOptions.showColumninActionRowForm;
|
|
63
|
+
if (typeof showColumnFn === 'function') {
|
|
64
|
+
return showColumnFn({
|
|
65
|
+
adaptableApi: this.adaptable.api,
|
|
66
|
+
userName: this.getOptions().userName,
|
|
67
|
+
adaptableId: this.getOptions().adaptableId,
|
|
68
|
+
adaptableColumn,
|
|
69
|
+
actionRowType
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return true;
|
|
59
73
|
}
|
|
60
74
|
buidActionRowButtons(type, rowNode, formFields) {
|
|
61
75
|
// 1. check if there are custom user provided buttons
|
|
@@ -8,8 +8,6 @@ import { GridDataChangedInfo } from '../Events/GridDataChanged';
|
|
|
8
8
|
import { AdaptableScope } from '../../PredefinedConfig/Common/AdaptableScope';
|
|
9
9
|
import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
|
|
10
10
|
import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
|
|
11
|
-
import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
|
|
12
|
-
import { ButtonStyle } from '../../PredefinedConfig/Common/ButtonStyle';
|
|
13
11
|
import { IRowNode } from '@ag-grid-community/core';
|
|
14
12
|
export declare class AlertInternalApi extends ApiBase {
|
|
15
13
|
getExpressionForAlertRule(alertRule: AlertRule): string | undefined;
|
|
@@ -129,11 +127,7 @@ export declare class AlertInternalApi extends ApiBase {
|
|
|
129
127
|
* @param alert AdaptableAlert to check
|
|
130
128
|
*/
|
|
131
129
|
getAlertTypeForAdaptableAlert(alert: AdaptableAlert): 'cellChanged' | 'rowChanged' | 'generic';
|
|
132
|
-
getAdaptableFormFromAlertForm(alertForm: string | AlertButtonForm, context: any, defaultMessageType?: AdaptableMessageType):
|
|
133
|
-
buttons?: (Omit<AdaptableButton<AlertFormContext>, 'buttonStyle'> & {
|
|
134
|
-
buttonStyle?: ButtonStyle;
|
|
135
|
-
})[];
|
|
136
|
-
}) | undefined;
|
|
130
|
+
getAdaptableFormFromAlertForm(alertForm: string | AlertButtonForm, context: any, defaultMessageType?: AdaptableMessageType): AdaptableForm<AlertFormContext> | undefined;
|
|
137
131
|
getAdaptableAlerts(): AdaptableAlert[];
|
|
138
132
|
getAdaptableCellChangedAlerts(): AdaptableCellChangedAlert[];
|
|
139
133
|
getAdaptableRowChangedAlerts(): AdaptableRowChangedAlert[];
|
|
@@ -40,11 +40,11 @@ export declare class ColumnFilterInternalApi extends ApiBase {
|
|
|
40
40
|
*/
|
|
41
41
|
evaluateColumnFilter(columnFilter: ColumnFilter, node: IRowNode): boolean;
|
|
42
42
|
/**
|
|
43
|
-
* Checks if the filter action should trigger
|
|
43
|
+
* Checks if the filter action should trigger Column Filtering
|
|
44
44
|
*
|
|
45
45
|
* @param action Filtering Action
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
shouldNewColumnFilterTriggerColumnFiltering(action: LayoutColumnFilterAction | Redux.Action): boolean;
|
|
48
48
|
/**
|
|
49
49
|
* Fires Column Filter Applied Event - typically used to enable filtering on the server
|
|
50
50
|
*/
|
|
@@ -112,11 +112,11 @@ export class ColumnFilterInternalApi extends ApiBase {
|
|
|
112
112
|
return this.adaptable.api.predicateApi.handlePredicate(columnFilter.Predicate, predicateDefHandlerContext, true);
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
* Checks if the filter action should trigger
|
|
115
|
+
* Checks if the filter action should trigger Column Filtering
|
|
116
116
|
*
|
|
117
117
|
* @param action Filtering Action
|
|
118
118
|
*/
|
|
119
|
-
|
|
119
|
+
shouldNewColumnFilterTriggerColumnFiltering(action) {
|
|
120
120
|
// trigger filter change only:
|
|
121
121
|
// - new -> new filter is active
|
|
122
122
|
// - clear -> previous filters was active
|
|
@@ -128,13 +128,13 @@ export class ColumnFilterInternalApi extends ApiBase {
|
|
|
128
128
|
// filter -> suspend changes
|
|
129
129
|
var _a, _b;
|
|
130
130
|
const isNewAndActive = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_ADD &&
|
|
131
|
-
this.adaptable.api.columnFilterApi.
|
|
131
|
+
this.adaptable.api.columnFilterApi.isColumnFilterActive(action.columnFilter);
|
|
132
132
|
const isClearAndPreviousWasActive = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR &&
|
|
133
|
-
this.adaptable.api.columnFilterApi.
|
|
133
|
+
this.adaptable.api.columnFilterApi.isColumnFilterActive(action.columnFilter);
|
|
134
134
|
const isClearAllAtLeastOneActiveFilter = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL &&
|
|
135
135
|
this.adaptable.api.columnFilterApi
|
|
136
136
|
.getColumnFilters()
|
|
137
|
-
.some((columnFilter) => this.adaptable.api.columnFilterApi.
|
|
137
|
+
.some((columnFilter) => this.adaptable.api.columnFilterApi.isColumnFilterActive(columnFilter));
|
|
138
138
|
let isEditTrigger = false;
|
|
139
139
|
if (action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_EDIT) {
|
|
140
140
|
const newFilter = action.columnFilter;
|
|
@@ -144,16 +144,16 @@ export class ColumnFilterInternalApi extends ApiBase {
|
|
|
144
144
|
isEditTrigger = true;
|
|
145
145
|
// new filter is active
|
|
146
146
|
}
|
|
147
|
-
else if (this.adaptable.api.columnFilterApi.
|
|
147
|
+
else if (this.adaptable.api.columnFilterApi.isColumnFilterActive(newFilter)) {
|
|
148
148
|
isEditTrigger = true;
|
|
149
149
|
}
|
|
150
|
-
else if (this.adaptable.api.columnFilterApi.
|
|
150
|
+
else if (this.adaptable.api.columnFilterApi.isColumnFilterActive(previous)) {
|
|
151
151
|
// previous filter was active
|
|
152
152
|
isEditTrigger = true;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
const isSetAndActive = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_SET &&
|
|
156
|
-
this.adaptable.api.columnFilterApi.
|
|
156
|
+
this.adaptable.api.columnFilterApi.isColumnFilterActive(action.columnFilter);
|
|
157
157
|
const isSuspendChanged = [
|
|
158
158
|
LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND,
|
|
159
159
|
LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND_ALL,
|
|
@@ -194,7 +194,7 @@ export class ColumnFilterInternalApi extends ApiBase {
|
|
|
194
194
|
return ArrayExtensions.areArraysNotEqual(oldFilters, newFilters);
|
|
195
195
|
}
|
|
196
196
|
getPredicateDefShortcuts(predicateDef) {
|
|
197
|
-
const shortcuts = this.getColumnFilterOptions().quickFilterWildcards;
|
|
197
|
+
const shortcuts = this.getColumnFilterOptions().quickFilterOptions.quickFilterWildcards;
|
|
198
198
|
let predicateShortcuts = predicateDef.shortcuts;
|
|
199
199
|
const predicateId = predicateDef.id;
|
|
200
200
|
if ((shortcuts === null || shortcuts === void 0 ? void 0 : shortcuts[predicateId]) && Array.isArray(shortcuts[predicateId])) {
|
|
@@ -23,15 +23,5 @@ export declare class ColumnInternalApi extends ApiBase {
|
|
|
23
23
|
* @param columnId columnId to look up
|
|
24
24
|
*/
|
|
25
25
|
getAgGridColumnForAdaptableColumn(columnId: string): Column;
|
|
26
|
-
/**
|
|
27
|
-
* Does Column use AdapTable's Filter Form
|
|
28
|
-
* @param columnId Column to Check
|
|
29
|
-
*/
|
|
30
|
-
usesAdaptableFilterForm(columnId: string): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Does Column use AdapTable's Quick Filter
|
|
33
|
-
* @param columnId Column to Check
|
|
34
|
-
*/
|
|
35
|
-
usesAdaptableQuickFilter(columnId: string): boolean;
|
|
36
26
|
isActionRowButtonColumn(columnId: string): boolean;
|
|
37
27
|
}
|
|
@@ -36,34 +36,6 @@ export class ColumnInternalApi extends ApiBase {
|
|
|
36
36
|
getAgGridColumnForAdaptableColumn(columnId) {
|
|
37
37
|
return this.adaptable.getAgGridColumnForColumnId(columnId);
|
|
38
38
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Does Column use AdapTable's Filter Form
|
|
41
|
-
* @param columnId Column to Check
|
|
42
|
-
*/
|
|
43
|
-
usesAdaptableFilterForm(columnId) {
|
|
44
|
-
const useAdaptableFilterForm = this.getColumnFilterOptions().useAdaptableFilterForm;
|
|
45
|
-
if (useAdaptableFilterForm == null || useAdaptableFilterForm == false) {
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
if (Array.isArray(useAdaptableFilterForm) && !useAdaptableFilterForm.includes(columnId)) {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
return true;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Does Column use AdapTable's Quick Filter
|
|
55
|
-
* @param columnId Column to Check
|
|
56
|
-
*/
|
|
57
|
-
usesAdaptableQuickFilter(columnId) {
|
|
58
|
-
const useAdaptableQuickFilter = this.getColumnFilterOptions().useAdaptableQuickFilter;
|
|
59
|
-
if (useAdaptableQuickFilter == null || useAdaptableQuickFilter == false) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
if (Array.isArray(useAdaptableQuickFilter) && !useAdaptableQuickFilter.includes(columnId)) {
|
|
63
|
-
return false;
|
|
64
|
-
}
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
39
|
isActionRowButtonColumn(columnId) {
|
|
68
40
|
return columnId === ADAPTABLE_ROW_ACTION_BUTTONS;
|
|
69
41
|
}
|
|
@@ -7,10 +7,10 @@ import { Fdc3IntentType, Fdc3StandardIntentType } from '../../PredefinedConfig/C
|
|
|
7
7
|
import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
|
|
8
8
|
import { ActionColumnContext } from '../../AdaptableOptions/ActionColumnOptions';
|
|
9
9
|
import { AdaptableIcon } from '../../PredefinedConfig/Common/AdaptableIcon';
|
|
10
|
-
export
|
|
10
|
+
export type WithContext<K> = K & {
|
|
11
11
|
contextType: Fdc3ContextType;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type WithIntent<K> = K & {
|
|
14
14
|
intentType: Fdc3IntentType;
|
|
15
15
|
};
|
|
16
16
|
export declare class Fdc3InternalApi extends ApiBase {
|