@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
|
@@ -66,12 +66,12 @@ export class FormatColumnInternalApi extends ApiBase {
|
|
|
66
66
|
// we need to maintain the format columns order, therefore we will extract all 3 scope types in a single iteration
|
|
67
67
|
return formatColumns.filter((fc) => {
|
|
68
68
|
return (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
// this.getFormatColumnsWithColumnScope(formatColumns)
|
|
70
|
+
(this.adaptable.api.scopeApi.scopeHasColumns(fc.Scope) ||
|
|
71
|
+
// this.getFormatColumnsWithDataTypeScope(formatColumns)
|
|
72
|
+
this.adaptable.api.scopeApi.scopeHasDataType(fc.Scope) || // this.getFormatColumnsWithAllScope(formatColumns)
|
|
73
|
+
this.adaptable.api.scopeApi.scopeIsAll(fc.Scope))
|
|
74
|
+
);
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
export class GridFilterInternalApi extends ApiBase {
|
|
3
|
-
|
|
3
|
+
fireGridFilterAppliedEvent() {
|
|
4
4
|
if (this.adaptable.isLive) {
|
|
5
|
-
const
|
|
5
|
+
const currentGridFilter = this.getGridFilterApi().getCurrentGridFilter();
|
|
6
6
|
const adaptableApi = this.getAdaptableApi();
|
|
7
7
|
const gridFilterAppliedInfo = {
|
|
8
|
-
gridFilter:
|
|
9
|
-
gridFilterExpressionAST:
|
|
10
|
-
? adaptableApi.expressionApi.getASTForExpression(
|
|
8
|
+
gridFilter: currentGridFilter,
|
|
9
|
+
gridFilterExpressionAST: currentGridFilter
|
|
10
|
+
? adaptableApi.expressionApi.getASTForExpression(currentGridFilter === null || currentGridFilter === void 0 ? void 0 : currentGridFilter.Expression)
|
|
11
11
|
: null,
|
|
12
12
|
adaptableApi: adaptableApi,
|
|
13
13
|
userName: adaptableApi.optionsApi.getUserName(),
|
|
@@ -61,7 +61,10 @@ export class GridInternalApi extends ApiBase {
|
|
|
61
61
|
if (abColumn == undefined) {
|
|
62
62
|
return [];
|
|
63
63
|
}
|
|
64
|
-
const
|
|
64
|
+
const distinctValuesParams = {
|
|
65
|
+
visibleRowsOnly: false,
|
|
66
|
+
};
|
|
67
|
+
const returnValues = this.adaptable.getDistinctValuesForColumn(abColumn, distinctValuesParams);
|
|
65
68
|
return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
|
|
66
69
|
return cv.normalisedValue;
|
|
67
70
|
});
|
|
@@ -79,9 +82,12 @@ export class GridInternalApi extends ApiBase {
|
|
|
79
82
|
suppressClientSideFilter: false,
|
|
80
83
|
};
|
|
81
84
|
}
|
|
82
|
-
const
|
|
85
|
+
const distinctValuesParams = {
|
|
86
|
+
visibleRowsOnly: showFilteredRowsOnly,
|
|
87
|
+
};
|
|
88
|
+
const { gridCells, suppressClientSideFilter } = await this.adaptable.getDistinctFilterListValuesForColumn(abColumn, filter, distinctValuesParams);
|
|
83
89
|
let showValuesCount = false;
|
|
84
|
-
const showValuesCountFunction = this.getColumnFilterOptions().showValuesCount;
|
|
90
|
+
const showValuesCountFunction = this.getColumnFilterOptions().valuesFilterOptions.showValuesCount;
|
|
85
91
|
if (showValuesCountFunction) {
|
|
86
92
|
showValuesCount = showValuesCountFunction(abColumn);
|
|
87
93
|
}
|
|
@@ -108,7 +114,10 @@ export class GridInternalApi extends ApiBase {
|
|
|
108
114
|
if (abColumn == undefined) {
|
|
109
115
|
return [];
|
|
110
116
|
}
|
|
111
|
-
const
|
|
117
|
+
const distinctValuesParams = {
|
|
118
|
+
visibleRowsOnly: false,
|
|
119
|
+
};
|
|
120
|
+
const gridCells = await this.adaptable.getDistinctCustomSortValuesForColumn(abColumn, distinctValuesParams);
|
|
112
121
|
return this.sortDistinctValues(gridCells, abColumn).map((cv) => {
|
|
113
122
|
return cv.normalisedValue;
|
|
114
123
|
});
|
|
@@ -123,7 +132,10 @@ export class GridInternalApi extends ApiBase {
|
|
|
123
132
|
if (abColumn == undefined) {
|
|
124
133
|
return [];
|
|
125
134
|
}
|
|
126
|
-
const
|
|
135
|
+
const distinctValuesParams = {
|
|
136
|
+
visibleRowsOnly: false,
|
|
137
|
+
};
|
|
138
|
+
const gridCells = await this.adaptable.getDistinctBulkUpdateValuesForColumn(abColumn, selectedGridCells, distinctValuesParams);
|
|
127
139
|
return this.sortDistinctValues(gridCells, abColumn).map((cv) => {
|
|
128
140
|
return cv.normalisedValue;
|
|
129
141
|
});
|
|
@@ -137,7 +149,10 @@ export class GridInternalApi extends ApiBase {
|
|
|
137
149
|
if (abColumn == undefined) {
|
|
138
150
|
return [];
|
|
139
151
|
}
|
|
140
|
-
const
|
|
152
|
+
const distinctValuesParams = {
|
|
153
|
+
visibleRowsOnly: true,
|
|
154
|
+
};
|
|
155
|
+
const returnValues = this.adaptable.getDistinctValuesForColumn(abColumn, distinctValuesParams);
|
|
141
156
|
return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
|
|
142
157
|
return cv.normalisedValue;
|
|
143
158
|
});
|
|
@@ -166,7 +181,11 @@ export class GridInternalApi extends ApiBase {
|
|
|
166
181
|
if (abColumn == undefined) {
|
|
167
182
|
return [];
|
|
168
183
|
}
|
|
169
|
-
|
|
184
|
+
const distinctValuesParams = {
|
|
185
|
+
visibleRowsOnly: false,
|
|
186
|
+
skipRowNode: skipRowNode,
|
|
187
|
+
};
|
|
188
|
+
return this.adaptable.getDistinctValuesForColumn(abColumn, distinctValuesParams);
|
|
170
189
|
}
|
|
171
190
|
/**
|
|
172
191
|
* Gets all distinct visible raw values in the Column
|
|
@@ -177,7 +196,10 @@ export class GridInternalApi extends ApiBase {
|
|
|
177
196
|
if (abColumn == undefined) {
|
|
178
197
|
return [];
|
|
179
198
|
}
|
|
180
|
-
const
|
|
199
|
+
const distinctValuesParams = {
|
|
200
|
+
visibleRowsOnly: true,
|
|
201
|
+
};
|
|
202
|
+
const returnValues = this.adaptable.getDistinctValuesForColumn(abColumn, distinctValuesParams);
|
|
181
203
|
return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
|
|
182
204
|
return cv.rawValue;
|
|
183
205
|
});
|
|
@@ -185,7 +207,7 @@ export class GridInternalApi extends ApiBase {
|
|
|
185
207
|
sortDistinctValues(returnValues, column) {
|
|
186
208
|
// this does NOT into account Custom Sort - far too hard for now...
|
|
187
209
|
let sortOrder = SortOrder.Asc;
|
|
188
|
-
if (this.getColumnFilterOptions().
|
|
210
|
+
if (this.getColumnFilterOptions().valuesFilterOptions.sortValuesFilter) {
|
|
189
211
|
let columnSort = this.adaptable.api.gridApi.getColumnSortForColumn(column.columnId);
|
|
190
212
|
if (columnSort && columnSort.SortOrder == 'Desc') {
|
|
191
213
|
sortOrder = SortOrder.Desc;
|
|
@@ -4,6 +4,7 @@ import { DEFAULT_LAYOUT } from '../../Utilities/Constants/GeneralConstants';
|
|
|
4
4
|
import ObjectFactory from '../../Utilities/ObjectFactory';
|
|
5
5
|
import * as GridRedux from '../../Redux/ActionsReducers/GridRedux';
|
|
6
6
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
7
|
+
import { ColumnFilterModuleId, GridFilterModuleId, } from '../../Utilities/Constants/ModuleConstants';
|
|
7
8
|
export class LayoutInternalApi extends ApiBase {
|
|
8
9
|
/**
|
|
9
10
|
* Fires the `LayoutChanged` event
|
|
@@ -122,6 +123,13 @@ export class LayoutInternalApi extends ApiBase {
|
|
|
122
123
|
layoutSupportedFeatures.AggregationColumns = false;
|
|
123
124
|
layoutSupportedFeatures.PivotColumns = false;
|
|
124
125
|
}
|
|
126
|
+
if (!this.getColumnFilterOptions().useAdaptableColumnFiltering ||
|
|
127
|
+
this.getEntitlementApi().getEntitlementAccessLevelForModule(ColumnFilterModuleId) == 'Hidden') {
|
|
128
|
+
layoutSupportedFeatures.ColumnFilters = false;
|
|
129
|
+
}
|
|
130
|
+
if (this.getEntitlementApi().getEntitlementAccessLevelForModule(GridFilterModuleId) == 'Hidden') {
|
|
131
|
+
layoutSupportedFeatures.GridFilter = false;
|
|
132
|
+
}
|
|
125
133
|
return layoutSupportedFeatures;
|
|
126
134
|
}
|
|
127
135
|
updateCurrentDraftLayout(layout) {
|
|
@@ -13,7 +13,7 @@ export class PredicateInternalApi extends ApiBase {
|
|
|
13
13
|
*/
|
|
14
14
|
getFilterPredicateDefs(scope) {
|
|
15
15
|
var _a;
|
|
16
|
-
return this.mergeSystemAndCustomPredicates((_a = this.getSystemFilterPredicateIds(scope)) === null || _a === void 0 ? void 0 : _a.map((predicateId) => this.getPredicateApi().getPredicateDefById(predicateId)), this.getPredicateApi().getCustomPredicateDefs()).filter((predicateDef) => predicateDef.moduleScope.includes('
|
|
16
|
+
return this.mergeSystemAndCustomPredicates((_a = this.getSystemFilterPredicateIds(scope)) === null || _a === void 0 ? void 0 : _a.map((predicateId) => this.getPredicateApi().getPredicateDefById(predicateId)), this.getPredicateApi().getCustomPredicateDefs()).filter((predicateDef) => predicateDef.moduleScope.includes('columnFilter'));
|
|
17
17
|
}
|
|
18
18
|
getSystemFilterPredicateIds(scope) {
|
|
19
19
|
const systemFilterPredicates = this.getPredicateOptions().systemFilterPredicates;
|
|
@@ -22,8 +22,8 @@ export class PredicateInternalApi extends ApiBase {
|
|
|
22
22
|
adaptableApi: this.adaptable.api,
|
|
23
23
|
userName: this.getOptions().userName,
|
|
24
24
|
adaptableId: this.getOptions().adaptableId,
|
|
25
|
-
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('
|
|
26
|
-
moduleScope: '
|
|
25
|
+
systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'),
|
|
26
|
+
moduleScope: 'columnFilter',
|
|
27
27
|
columnScope: scope,
|
|
28
28
|
};
|
|
29
29
|
return systemFilterPredicates(systemPredicateContext);
|
|
@@ -59,7 +59,4 @@ export declare class StyledColumnInternalApi extends ApiBase {
|
|
|
59
59
|
hasStyledColumnRelativeCellRange(styledColumn: StyledColumn): boolean;
|
|
60
60
|
getApplicableBadge(styledColumn: StyledColumn, context: PredicateDefHandlerContext): BadgeStyleDefinition | null;
|
|
61
61
|
getBadgePredicateDefsForColumn(columnId: string): import("../../types").AdaptablePredicateDef<string>[];
|
|
62
|
-
getCheckBoxStyleStyledColumn(column: AdaptableColumn): StyledColumn | undefined;
|
|
63
|
-
isCheckBoxStyleStyledColumn(column: AdaptableColumn): boolean;
|
|
64
|
-
fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
|
|
65
62
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
3
|
-
import Helper from '../../Utilities/Helpers/Helper';
|
|
4
3
|
export class StyledColumnInternalApi extends ApiBase {
|
|
5
4
|
getMinValueForNumericColumn(column) {
|
|
6
5
|
if (column.dataType !== 'Number') {
|
|
@@ -278,30 +277,4 @@ export class StyledColumnInternalApi extends ApiBase {
|
|
|
278
277
|
.predicateApi.internalApi.getBadgeStylePredicateDefs(scope)
|
|
279
278
|
.filter((predicate) => this.adaptable.api.scopeApi.isColumnInScope(column, predicate.columnScope));
|
|
280
279
|
}
|
|
281
|
-
// Deprecated Checkbox Column functions
|
|
282
|
-
getCheckBoxStyleStyledColumn(column) {
|
|
283
|
-
var _a;
|
|
284
|
-
if (column.dataType != 'Boolean') {
|
|
285
|
-
return undefined;
|
|
286
|
-
}
|
|
287
|
-
const checkBoxFormatColumns = (_a = this.getAdaptableApi().styledColumnApi.getStyledColumnState().StyledColumns) === null || _a === void 0 ? void 0 : _a.filter((sc) => sc === null || sc === void 0 ? void 0 : sc.CheckBoxStyle);
|
|
288
|
-
const styledColumn = checkBoxFormatColumns.find((sc) => sc.ColumnId == column.columnId);
|
|
289
|
-
return styledColumn;
|
|
290
|
-
}
|
|
291
|
-
isCheckBoxStyleStyledColumn(column) {
|
|
292
|
-
const styledColumn = this.getCheckBoxStyleStyledColumn(column);
|
|
293
|
-
return Helper.objectExists(styledColumn);
|
|
294
|
-
}
|
|
295
|
-
fireCheckboxColumnClickedEvent(columnId, rowData, primaryKeyValue, isChecked) {
|
|
296
|
-
let checkboxColumnClickedInfo = {
|
|
297
|
-
adaptableApi: this.adaptable.api,
|
|
298
|
-
column: this.adaptable.api.columnApi.getColumnWithColumnId(columnId),
|
|
299
|
-
rowData: rowData,
|
|
300
|
-
primaryKeyValue: primaryKeyValue,
|
|
301
|
-
isChecked: isChecked,
|
|
302
|
-
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
303
|
-
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
304
|
-
};
|
|
305
|
-
this.adaptable.api.eventApi.emit('CheckboxColumnClicked', checkboxColumnClickedInfo);
|
|
306
|
-
}
|
|
307
280
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NamedQuery, NamedQueryState } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* Provides run-time access to Named
|
|
3
|
+
* Provides run-time access to Named Queries
|
|
4
4
|
*/
|
|
5
5
|
export interface NamedQueryApi {
|
|
6
6
|
/**
|
|
@@ -31,10 +31,7 @@ export interface NamedQueryApi {
|
|
|
31
31
|
* Checks if the given Named Query has a valid name
|
|
32
32
|
* @param namedQueryName Named Query
|
|
33
33
|
*/
|
|
34
|
-
|
|
35
|
-
valid: boolean;
|
|
36
|
-
message: string;
|
|
37
|
-
};
|
|
34
|
+
isValidNamedQuery(namedQuery: NamedQuery): NamedQueryValidationResult;
|
|
38
35
|
/**
|
|
39
36
|
* Opens Settings Panel with Query section selected and visible
|
|
40
37
|
*/
|
|
@@ -50,3 +47,7 @@ export interface NamedQueryApi {
|
|
|
50
47
|
*/
|
|
51
48
|
runQueryByName(queryName: string): void;
|
|
52
49
|
}
|
|
50
|
+
export interface NamedQueryValidationResult {
|
|
51
|
+
valid: boolean;
|
|
52
|
+
message: string;
|
|
53
|
+
}
|
package/src/Api/OptionsApi.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomSortOptions } from '../AdaptableOptions/CustomSortOptions';
|
|
2
2
|
import { DataSetOptions } from '../AdaptableOptions/DataSetOptions';
|
|
3
3
|
import { GroupingOptions } from '../AdaptableOptions/GroupingOptions';
|
|
4
|
-
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnFilterOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotesOptions, NotificationsOptions, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
|
|
4
|
+
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnFilterOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FlashingCellOptions, FormatColumnOptions, GridFilterOptions, LayoutOptions, MenuOptions, NotesOptions, NotificationsOptions, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
|
|
5
5
|
import { Fdc3Options } from '../AdaptableOptions/Fdc3Options';
|
|
6
6
|
import { ExpressionOptions } from '../AdaptableOptions/ExpressionOptions';
|
|
7
7
|
import { DataImportOptions } from '../AdaptableOptions/DataImportOptions';
|
|
@@ -109,6 +109,10 @@ export interface OptionsApi {
|
|
|
109
109
|
* Returns `AdaptableOptions.columnFilterOptions`
|
|
110
110
|
*/
|
|
111
111
|
getColumnFilterOptions(): Readonly<ColumnFilterOptions>;
|
|
112
|
+
/**
|
|
113
|
+
* Returns `AdaptableOptions.gridFilterOptions`
|
|
114
|
+
*/
|
|
115
|
+
getGridFilterOptions(): Readonly<GridFilterOptions>;
|
|
112
116
|
/**
|
|
113
117
|
* Returns `AdaptableOptions.flashingCellOptions`
|
|
114
118
|
*/
|
|
@@ -56,7 +56,7 @@ export interface AlertDefinition extends SuspendableObject {
|
|
|
56
56
|
/**
|
|
57
57
|
* Form triggered by an Alert which contains only Buttons
|
|
58
58
|
*/
|
|
59
|
-
export
|
|
59
|
+
export type AlertButtonForm = Omit<AdaptableForm<AlertFormContext>, 'title' | 'buttons' | 'description'> & {
|
|
60
60
|
Buttons?: AlertButton<AlertFormContext>[];
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
@@ -68,17 +68,17 @@ export interface AlertDefinitionPredicate extends AdaptableColumnPredicate {
|
|
|
68
68
|
/**
|
|
69
69
|
* The Alert Rule defined by either an AdaptablePredicate or an AdaptableQuery
|
|
70
70
|
*/
|
|
71
|
-
export
|
|
71
|
+
export type AlertRule = XOR<{
|
|
72
72
|
Predicates: AlertDefinitionPredicate[];
|
|
73
73
|
}, AdaptableAlertQuery>;
|
|
74
74
|
/**
|
|
75
75
|
* Alert Query which may be either a Boolean, Observable or AggregatedBoolean Expression
|
|
76
76
|
*/
|
|
77
|
-
export
|
|
77
|
+
export type AdaptableAlertQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableObservableQuery, AdaptableAggregatedBooleanQuery>>;
|
|
78
78
|
/**
|
|
79
79
|
* Actions available in an Alert
|
|
80
80
|
*/
|
|
81
|
-
export
|
|
81
|
+
export type AdaptableAlertAction = 'highlight-cell' | 'highlight-row' | 'jump-to-cell' | 'jump-to-row' | 'jump-to-column' | 'suspend' | 'undo';
|
|
82
82
|
/**
|
|
83
83
|
* Defines a button that appears in an Alert Form
|
|
84
84
|
*/
|
|
@@ -146,8 +146,8 @@ export interface AlertProperties {
|
|
|
146
146
|
/**
|
|
147
147
|
* Array containing all System Alert Predicates
|
|
148
148
|
*/
|
|
149
|
-
export
|
|
149
|
+
export type SystemAlertPredicateIds = SystemAlertPredicateId[];
|
|
150
150
|
/**
|
|
151
151
|
* List of System Predicates available for Alerts
|
|
152
152
|
*/
|
|
153
|
-
export
|
|
153
|
+
export type SystemAlertPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'WorkDay' | 'Holiday' | 'True' | 'False' | 'PercentChange' | 'ExistingValuesOnly' | 'NoDuplicateValues' | 'IsNumeric' | 'IsNotNumeric' | 'AddedRow' | 'RemovedRow' | 'Values' | 'ExcludeValues' | 'AnyChange';
|
|
@@ -46,4 +46,4 @@ export interface CalculatedColumnSettings extends SpecialColumnSettings {
|
|
|
46
46
|
/**
|
|
47
47
|
* Calculated Column Query which may be a Scalar or an AggregatedScalar Expression
|
|
48
48
|
*/
|
|
49
|
-
export
|
|
49
|
+
export type AdaptableCalculatedColumnQuery = XOR<AdaptableScalarQuery, AdaptableAggregatedScalarQuery>;
|
|
@@ -43,9 +43,12 @@ export interface ChartingState extends ConfigState {
|
|
|
43
43
|
* Wrappers around AG Grid Chart Models
|
|
44
44
|
*/
|
|
45
45
|
ChartDefinitions?: ChartDefinition[];
|
|
46
|
+
/**
|
|
47
|
+
* Definitions of External Charts
|
|
48
|
+
*/
|
|
46
49
|
ExternalChartDefinitions?: ExternalChartDefinition<unknown>[];
|
|
47
50
|
}
|
|
48
51
|
/**
|
|
49
52
|
* Aggregation function used in the Chart
|
|
50
53
|
*/
|
|
51
|
-
export
|
|
54
|
+
export type ChartingAggFunc = 'sum' | 'min' | 'max' | 'count' | 'avg' | 'first' | 'last';
|
|
@@ -5,11 +5,11 @@ import { AlertDefinition } from '../AlertState';
|
|
|
5
5
|
/**
|
|
6
6
|
* Defines an Alert fired by AdapTable
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type AdaptableAlert<TData = any> = AdaptableCellChangedAlert<TData> | AdaptableRowChangedAlert<TData> | AdaptableGenericAlert;
|
|
9
9
|
/**
|
|
10
10
|
* Type of AdapTable Alert: generic, cellChange or rowChange
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type AdaptableAlertType = 'generic' | 'cellChange' | 'rowChange';
|
|
13
13
|
/**
|
|
14
14
|
* Defines a generic AdapTable Alert
|
|
15
15
|
*/
|
|
@@ -2,7 +2,7 @@ import { AdaptableObject } from './AdaptableObject';
|
|
|
2
2
|
/**
|
|
3
3
|
* Type of data stored in an AdapTable Column
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type AdaptableColumnDataType = 'String' | 'Number' | 'Boolean' | 'Date' | 'Object' | 'StringArray' | 'NumberArray' | 'TupleNumberArray' | 'ObjectNumberArray' | 'Unknown';
|
|
6
6
|
/**
|
|
7
7
|
* Base class for AdapTable Column containing most important properties
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@ import { InitialGroupOrderComparatorParams, IRowNode } from '@ag-grid-community/
|
|
|
2
2
|
/**
|
|
3
3
|
* Standard comparer function used to evaluate custom sorts, returns -1, 0, 1 as required
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type AdaptableComparerFunction<TData = any> = (
|
|
6
6
|
/**
|
|
7
7
|
* First Cell to compare
|
|
8
8
|
*/
|
|
@@ -19,4 +19,4 @@ nodeA?: IRowNode<TData>,
|
|
|
19
19
|
* Second Row Node to compare
|
|
20
20
|
*/
|
|
21
21
|
nodeB?: IRowNode<TData>) => number;
|
|
22
|
-
export
|
|
22
|
+
export type AdaptableNodeComparerFunction<TData = any> = (params: InitialGroupOrderComparatorParams<TData>) => number;
|
|
@@ -3,7 +3,7 @@ import { BaseContext } from '../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Data which appears in an AdapTable Form
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type AdaptableFormData = Record<string, any>;
|
|
7
7
|
/**
|
|
8
8
|
* Defines a form which appears dynamically; used by Alerts & Export Custom Destinations
|
|
9
9
|
*/
|
|
@@ -56,5 +56,5 @@ export interface AdaptableFormField {
|
|
|
56
56
|
/**
|
|
57
57
|
* Types of Controls used in an AdapTable Form
|
|
58
58
|
*/
|
|
59
|
-
export
|
|
59
|
+
export type AdaptableFormFieldType = 'text' | 'select' | 'date' | 'number' | 'checkbox' | 'textOutput';
|
|
60
60
|
export declare function getDefaultAdaptableFormData<T extends BaseContext = BaseContext>(formDef?: AdaptableForm<T>): AdaptableFormData;
|
|
@@ -3,7 +3,7 @@ import { TypeHint } from './Types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Defines an icon to be used in AdapTable (e.g. in Dashboard Header, Buttons, Menu, etc.)
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type AdaptableIcon = AdaptableSystemIcon | AdaptableCustomIcon | AdaptableElementIcon;
|
|
7
7
|
/**
|
|
8
8
|
* Defines an icon from the System AdapTable icon set
|
|
9
9
|
*/
|
|
@@ -54,4 +54,4 @@ export interface AdaptableBaseIcon {
|
|
|
54
54
|
/**
|
|
55
55
|
* All AdapTable System Icon names
|
|
56
56
|
*/
|
|
57
|
-
export
|
|
57
|
+
export type AdaptableSystemIconName = 'add' | 'alert' | 'building' | 'laptop' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrow-expand' | 'paperclip' | 'unfilled-circle' | 'boolean-list' | 'broadcast' | 'brush' | 'spanner' | 'edit-table' | 'chart-and-grid' | 'calendar' | 'call' | 'cells' | 'fdc3' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'comment' | 'contains' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'dollar' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'lightning' | 'folder' | 'folder-open' | 'folder-shared' | 'color-palette' | 'horizontal-lines' | 'function' | 'greater-than' | 'greater-than-or-equal' | 'history' | 'home' | 'import-export' | 'info' | 'brain' | 'download' | 'grid' | 'interactions' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'mail' | 'menu' | 'minus' | 'multiplication' | 'money' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'order' | 'organisation' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'contact' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'science' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'resume' | 'starts-with' | 'assignment' | 'statusbar' | 'stop' | 'traffic-lights' | 'tab-unselected' | 'theme' | 'clipboard' | 'target' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'downloaded' | 'upload' | 'warning' | 'gradient' | 'badge' | 'italic' | 'bold' | 'align-left' | 'align-right' | 'align-center' | 'align-justify' | 'underline' | 'strikethrough' | 'overline' | 'case-upper' | 'case-lower' | 'case-sentence' | 'visibility-on' | 'visibility-off' | 'visibility-off-bold' | 'visibility-on-bold' | 'note' | 'import' | 'grid-filter';
|
|
@@ -24,7 +24,7 @@ export interface AdaptableObject {
|
|
|
24
24
|
/**
|
|
25
25
|
* AdaptableObjectTag Object Tag - currently supporting only plain string values, but open for future extensions, if needed
|
|
26
26
|
*/
|
|
27
|
-
export
|
|
27
|
+
export type AdaptableObjectTag = string;
|
|
28
28
|
/**
|
|
29
29
|
* Lookup criteria for finding specific Adaptable Objects; all given criteria will be composed with an AND operator
|
|
30
30
|
*/
|
|
@@ -42,7 +42,7 @@ export interface AdaptablePredicateDef<PREDICATE_TYPE = string> {
|
|
|
42
42
|
*/
|
|
43
43
|
columnScope: AdaptableScope;
|
|
44
44
|
/**
|
|
45
|
-
* Modules where
|
|
45
|
+
* Modules where Predicate can run
|
|
46
46
|
*/
|
|
47
47
|
moduleScope: PredicateModuleScope[];
|
|
48
48
|
/**
|
|
@@ -112,9 +112,9 @@ export interface PredicateDefToStringParams {
|
|
|
112
112
|
inputs: any[];
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
* Defines which
|
|
115
|
+
* Defines which Modules use the Predicate
|
|
116
116
|
*/
|
|
117
|
-
export
|
|
117
|
+
export type PredicateModuleScope = 'columnFilter' | 'alert' | 'flashingcell' | 'formatColumn' | 'badgeStyle';
|
|
118
118
|
/**
|
|
119
119
|
* Array of Predicate Defs which are shipped by AdapTable
|
|
120
120
|
*/
|