@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
|
@@ -24,7 +24,7 @@ export const SystemPredicateDefs = [
|
|
|
24
24
|
label: 'Values',
|
|
25
25
|
icon: { text: 'IN' },
|
|
26
26
|
columnScope: { DataTypes: ['String', 'Number', 'Date'] },
|
|
27
|
-
moduleScope: ['
|
|
27
|
+
moduleScope: ['columnFilter', 'flashingcell', 'formatColumn', 'alert', 'badgeStyle'],
|
|
28
28
|
handler: ({ inputs, column, value, adaptableApi }) => {
|
|
29
29
|
if (inputs.length === 0) {
|
|
30
30
|
return true;
|
|
@@ -34,7 +34,7 @@ export const SystemPredicateDefs = [
|
|
|
34
34
|
}
|
|
35
35
|
if (column.dataType === 'Date') {
|
|
36
36
|
return inputs.some((input) => {
|
|
37
|
-
if (adaptableApi.optionsApi.getColumnFilterOptions().
|
|
37
|
+
if (adaptableApi.optionsApi.getColumnFilterOptions().valuesFilterOptions.filterValuesUsingTime) {
|
|
38
38
|
return isEqual(input, value);
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
@@ -64,7 +64,7 @@ export const SystemPredicateDefs = [
|
|
|
64
64
|
label: 'Exclude Values',
|
|
65
65
|
icon: { text: '!IN' },
|
|
66
66
|
columnScope: { DataTypes: ['String', 'Number', 'Date'] },
|
|
67
|
-
moduleScope: ['
|
|
67
|
+
moduleScope: ['columnFilter', 'flashingcell', 'formatColumn', 'alert', 'badgeStyle'],
|
|
68
68
|
handler: ({ inputs, column, value, adaptableApi }) => {
|
|
69
69
|
// basically negation of IN
|
|
70
70
|
if (inputs.length === 0) {
|
|
@@ -74,7 +74,7 @@ export const SystemPredicateDefs = [
|
|
|
74
74
|
return false;
|
|
75
75
|
}
|
|
76
76
|
if (column.dataType === 'Date') {
|
|
77
|
-
if (adaptableApi.optionsApi.getColumnFilterOptions().
|
|
77
|
+
if (adaptableApi.optionsApi.getColumnFilterOptions().valuesFilterOptions.filterValuesUsingTime) {
|
|
78
78
|
return inputs.every((input) => {
|
|
79
79
|
return !isEqual(input, value);
|
|
80
80
|
});
|
|
@@ -106,7 +106,7 @@ export const SystemPredicateDefs = [
|
|
|
106
106
|
label: 'Blanks',
|
|
107
107
|
icon: { name: 'unfilled-circle' },
|
|
108
108
|
columnScope: { All: true },
|
|
109
|
-
moduleScope: ['
|
|
109
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
110
110
|
handler: ({ value }) => Helper.isInputNullOrEmpty(value),
|
|
111
111
|
},
|
|
112
112
|
{
|
|
@@ -114,7 +114,7 @@ export const SystemPredicateDefs = [
|
|
|
114
114
|
label: 'Non Blanks',
|
|
115
115
|
icon: { name: 'filled-circle' },
|
|
116
116
|
columnScope: { All: true },
|
|
117
|
-
moduleScope: ['
|
|
117
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
118
118
|
handler: ({ value }) => Helper.isInputNotNullOrEmpty(value),
|
|
119
119
|
},
|
|
120
120
|
// Numeric System Filters
|
|
@@ -123,7 +123,7 @@ export const SystemPredicateDefs = [
|
|
|
123
123
|
label: 'Greater Than',
|
|
124
124
|
icon: { name: 'greater-than' },
|
|
125
125
|
columnScope: { DataTypes: ['Number'] },
|
|
126
|
-
moduleScope: ['
|
|
126
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
127
127
|
inputs: [{ type: 'number' }],
|
|
128
128
|
handler: ({ value, inputs }) => Number(value) > Number(inputs[0]),
|
|
129
129
|
toString: ({ inputs }) => `> ${inputs[0]}`,
|
|
@@ -134,7 +134,7 @@ export const SystemPredicateDefs = [
|
|
|
134
134
|
label: 'Less Than',
|
|
135
135
|
icon: { name: 'less-than' },
|
|
136
136
|
columnScope: { DataTypes: ['Number'] },
|
|
137
|
-
moduleScope: ['
|
|
137
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
138
138
|
inputs: [{ type: 'number' }],
|
|
139
139
|
handler: ({ value, inputs }) => Number(value) < Number(inputs[0]),
|
|
140
140
|
toString: ({ inputs }) => `< ${inputs[0]}`,
|
|
@@ -145,7 +145,7 @@ export const SystemPredicateDefs = [
|
|
|
145
145
|
label: 'Positive',
|
|
146
146
|
icon: { text: '>0' },
|
|
147
147
|
columnScope: { DataTypes: ['Number'] },
|
|
148
|
-
moduleScope: ['
|
|
148
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
149
149
|
handler: ({ value }) => Number(value) > 0,
|
|
150
150
|
},
|
|
151
151
|
{
|
|
@@ -153,7 +153,7 @@ export const SystemPredicateDefs = [
|
|
|
153
153
|
label: 'Negative',
|
|
154
154
|
icon: { text: '<0' },
|
|
155
155
|
columnScope: { DataTypes: ['Number'] },
|
|
156
|
-
moduleScope: ['
|
|
156
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
157
157
|
handler: ({ value }) => Number(value) < 0,
|
|
158
158
|
},
|
|
159
159
|
{
|
|
@@ -161,7 +161,7 @@ export const SystemPredicateDefs = [
|
|
|
161
161
|
label: 'Zero',
|
|
162
162
|
icon: { text: '=0' },
|
|
163
163
|
columnScope: { DataTypes: ['Number'] },
|
|
164
|
-
moduleScope: ['
|
|
164
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
165
165
|
handler: ({ value }) => {
|
|
166
166
|
if (typeof value === 'string' && !StringExtensions.IsNumeric(value)) {
|
|
167
167
|
return false;
|
|
@@ -177,7 +177,7 @@ export const SystemPredicateDefs = [
|
|
|
177
177
|
label: 'Equals',
|
|
178
178
|
icon: { name: 'equals' },
|
|
179
179
|
columnScope: { DataTypes: ['Number'] },
|
|
180
|
-
moduleScope: ['
|
|
180
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
181
181
|
inputs: [{ type: 'number' }],
|
|
182
182
|
handler: ({ value, inputs }) => {
|
|
183
183
|
const input = inputs[0];
|
|
@@ -195,7 +195,7 @@ export const SystemPredicateDefs = [
|
|
|
195
195
|
label: 'Not Equals',
|
|
196
196
|
icon: { name: 'not-equal' },
|
|
197
197
|
columnScope: { DataTypes: ['Number'] },
|
|
198
|
-
moduleScope: ['
|
|
198
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
199
199
|
inputs: [{ type: 'number' }],
|
|
200
200
|
handler: ({ value, inputs }) => {
|
|
201
201
|
const input = inputs[0];
|
|
@@ -213,7 +213,7 @@ export const SystemPredicateDefs = [
|
|
|
213
213
|
label: 'Between',
|
|
214
214
|
icon: { text: 'BE' },
|
|
215
215
|
columnScope: { DataTypes: ['Number'] },
|
|
216
|
-
moduleScope: ['
|
|
216
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
217
217
|
inputs: [{ type: 'number' }, { type: 'number' }],
|
|
218
218
|
handler: ({ value, inputs }) => Number(value) >= Number(inputs[0]) && Number(value) <= Number(inputs[1]),
|
|
219
219
|
toString: ({ inputs }) => `Between ${inputs[0]}:${inputs[1]}`,
|
|
@@ -224,7 +224,7 @@ export const SystemPredicateDefs = [
|
|
|
224
224
|
label: 'Not Between',
|
|
225
225
|
icon: { text: '!BE' },
|
|
226
226
|
columnScope: { DataTypes: ['Number'] },
|
|
227
|
-
moduleScope: ['
|
|
227
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
228
228
|
inputs: [{ type: 'number' }, { type: 'number' }],
|
|
229
229
|
handler: ({ value, inputs }) => Number(value) < Number(inputs[0]) || Number(value) > Number(inputs[1]),
|
|
230
230
|
toString: ({ inputs }) => `Not Between ${inputs[0]}:${inputs[1]}`,
|
|
@@ -252,7 +252,7 @@ export const SystemPredicateDefs = [
|
|
|
252
252
|
label: 'Equals',
|
|
253
253
|
icon: { name: 'equals' },
|
|
254
254
|
columnScope: { DataTypes: ['String'] },
|
|
255
|
-
moduleScope: ['
|
|
255
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
256
256
|
inputs: [{ type: 'text' }],
|
|
257
257
|
handler: ({ value, inputs, adaptableApi }) => {
|
|
258
258
|
if (!value) {
|
|
@@ -271,7 +271,7 @@ export const SystemPredicateDefs = [
|
|
|
271
271
|
label: 'Not Equals',
|
|
272
272
|
icon: { name: 'not-equal' },
|
|
273
273
|
columnScope: { DataTypes: ['String'] },
|
|
274
|
-
moduleScope: ['
|
|
274
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
275
275
|
inputs: [{ type: 'text' }],
|
|
276
276
|
handler: ({ value, inputs, adaptableApi }) => {
|
|
277
277
|
if (!value) {
|
|
@@ -290,7 +290,7 @@ export const SystemPredicateDefs = [
|
|
|
290
290
|
label: 'Contains',
|
|
291
291
|
icon: { name: 'contains' },
|
|
292
292
|
columnScope: { DataTypes: ['String'] },
|
|
293
|
-
moduleScope: ['
|
|
293
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
294
294
|
inputs: [{ type: 'text' }],
|
|
295
295
|
handler: ({ value, inputs, adaptableApi }) => {
|
|
296
296
|
if (!value) {
|
|
@@ -308,7 +308,7 @@ export const SystemPredicateDefs = [
|
|
|
308
308
|
label: 'Not Contains',
|
|
309
309
|
icon: { name: 'not-contains' },
|
|
310
310
|
columnScope: { DataTypes: ['String'] },
|
|
311
|
-
moduleScope: ['
|
|
311
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
312
312
|
inputs: [{ type: 'text' }],
|
|
313
313
|
handler: ({ value, inputs, adaptableApi }) => {
|
|
314
314
|
if (!value) {
|
|
@@ -326,7 +326,7 @@ export const SystemPredicateDefs = [
|
|
|
326
326
|
label: 'Starts With',
|
|
327
327
|
icon: { name: 'starts-with' },
|
|
328
328
|
columnScope: { DataTypes: ['String'] },
|
|
329
|
-
moduleScope: ['
|
|
329
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
330
330
|
inputs: [{ type: 'text' }],
|
|
331
331
|
handler: ({ value, inputs, adaptableApi }) => {
|
|
332
332
|
if (!value) {
|
|
@@ -344,7 +344,7 @@ export const SystemPredicateDefs = [
|
|
|
344
344
|
label: 'Ends With',
|
|
345
345
|
icon: { name: 'ends-with' },
|
|
346
346
|
columnScope: { DataTypes: ['String'] },
|
|
347
|
-
moduleScope: ['
|
|
347
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
348
348
|
inputs: [{ type: 'text' }],
|
|
349
349
|
handler: ({ value, inputs, adaptableApi }) => {
|
|
350
350
|
if (!value) {
|
|
@@ -362,7 +362,7 @@ export const SystemPredicateDefs = [
|
|
|
362
362
|
label: 'Regex',
|
|
363
363
|
icon: { name: 'regex' },
|
|
364
364
|
columnScope: { DataTypes: ['String'] },
|
|
365
|
-
moduleScope: ['
|
|
365
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn', 'badgeStyle'],
|
|
366
366
|
inputs: [{ type: 'text' }],
|
|
367
367
|
handler: ({ value, inputs }) => new RegExp(inputs[0]).test(value),
|
|
368
368
|
toString: ({ inputs }) => `Regex ${inputs[0]}`,
|
|
@@ -373,7 +373,7 @@ export const SystemPredicateDefs = [
|
|
|
373
373
|
label: 'Today',
|
|
374
374
|
icon: { name: 'calendar' },
|
|
375
375
|
columnScope: { DataTypes: ['Date'] },
|
|
376
|
-
moduleScope: ['
|
|
376
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
377
377
|
handler: ({ value }) => isToday(parseDateValue(value)),
|
|
378
378
|
},
|
|
379
379
|
{
|
|
@@ -381,7 +381,7 @@ export const SystemPredicateDefs = [
|
|
|
381
381
|
label: 'Yesterday',
|
|
382
382
|
icon: { name: 'calendar' },
|
|
383
383
|
columnScope: { DataTypes: ['Date'] },
|
|
384
|
-
moduleScope: ['
|
|
384
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
385
385
|
handler: ({ value }) => isYesterday(parseDateValue(value)),
|
|
386
386
|
},
|
|
387
387
|
{
|
|
@@ -389,7 +389,7 @@ export const SystemPredicateDefs = [
|
|
|
389
389
|
label: 'Tomorrow',
|
|
390
390
|
icon: { name: 'calendar' },
|
|
391
391
|
columnScope: { DataTypes: ['Date'] },
|
|
392
|
-
moduleScope: ['
|
|
392
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
393
393
|
handler: ({ value }) => isTomorrow(parseDateValue(value)),
|
|
394
394
|
},
|
|
395
395
|
{
|
|
@@ -397,7 +397,7 @@ export const SystemPredicateDefs = [
|
|
|
397
397
|
label: 'This Week',
|
|
398
398
|
icon: { name: 'calendar' },
|
|
399
399
|
columnScope: { DataTypes: ['Date'] },
|
|
400
|
-
moduleScope: ['
|
|
400
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
401
401
|
handler: ({ value }) => isThisWeek(parseDateValue(value)),
|
|
402
402
|
},
|
|
403
403
|
{
|
|
@@ -405,7 +405,7 @@ export const SystemPredicateDefs = [
|
|
|
405
405
|
label: 'This Month',
|
|
406
406
|
icon: { name: 'calendar' },
|
|
407
407
|
columnScope: { DataTypes: ['Date'] },
|
|
408
|
-
moduleScope: ['
|
|
408
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
409
409
|
handler: ({ value }) => isThisMonth(parseDateValue(value)),
|
|
410
410
|
},
|
|
411
411
|
{
|
|
@@ -413,7 +413,7 @@ export const SystemPredicateDefs = [
|
|
|
413
413
|
label: 'This Quarter',
|
|
414
414
|
icon: { name: 'calendar' },
|
|
415
415
|
columnScope: { DataTypes: ['Date'] },
|
|
416
|
-
moduleScope: ['
|
|
416
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
417
417
|
handler: ({ value }) => isThisQuarter(parseDateValue(value)),
|
|
418
418
|
},
|
|
419
419
|
{
|
|
@@ -421,7 +421,7 @@ export const SystemPredicateDefs = [
|
|
|
421
421
|
label: 'This Year',
|
|
422
422
|
icon: { name: 'calendar' },
|
|
423
423
|
columnScope: { DataTypes: ['Date'] },
|
|
424
|
-
moduleScope: ['
|
|
424
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
425
425
|
handler: ({ value }) => isThisYear(parseDateValue(value)),
|
|
426
426
|
},
|
|
427
427
|
{
|
|
@@ -429,7 +429,7 @@ export const SystemPredicateDefs = [
|
|
|
429
429
|
label: 'In Past',
|
|
430
430
|
icon: { name: 'calendar' },
|
|
431
431
|
columnScope: { DataTypes: ['Date'] },
|
|
432
|
-
moduleScope: ['
|
|
432
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
433
433
|
handler: ({ value }) => isPast(parseDateValue(value)),
|
|
434
434
|
},
|
|
435
435
|
{
|
|
@@ -437,7 +437,7 @@ export const SystemPredicateDefs = [
|
|
|
437
437
|
label: 'In Future',
|
|
438
438
|
icon: { name: 'calendar' },
|
|
439
439
|
columnScope: { DataTypes: ['Date'] },
|
|
440
|
-
moduleScope: ['
|
|
440
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
441
441
|
handler: ({ value }) => isFuture(parseDateValue(value)),
|
|
442
442
|
},
|
|
443
443
|
{
|
|
@@ -445,7 +445,7 @@ export const SystemPredicateDefs = [
|
|
|
445
445
|
label: 'After',
|
|
446
446
|
icon: { name: 'greater-than' },
|
|
447
447
|
columnScope: { DataTypes: ['Date'] },
|
|
448
|
-
moduleScope: ['
|
|
448
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
449
449
|
inputs: [{ type: 'date' }],
|
|
450
450
|
handler: ({ value, inputs }) => isAfter(parseDateValue(value), parseDateValue(inputs[0])),
|
|
451
451
|
toString: ({ inputs }) => `> ${inputs[0]}`,
|
|
@@ -455,7 +455,7 @@ export const SystemPredicateDefs = [
|
|
|
455
455
|
label: 'Before',
|
|
456
456
|
icon: { name: 'less-than' },
|
|
457
457
|
columnScope: { DataTypes: ['Date'] },
|
|
458
|
-
moduleScope: ['
|
|
458
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
459
459
|
inputs: [{ type: 'date' }],
|
|
460
460
|
handler: ({ value, inputs }) => isBefore(parseDateValue(value), parseDateValue(inputs[0])),
|
|
461
461
|
toString: ({ inputs }) => `< ${inputs[0]}`,
|
|
@@ -465,7 +465,7 @@ export const SystemPredicateDefs = [
|
|
|
465
465
|
label: 'Equals',
|
|
466
466
|
icon: { name: 'equals' },
|
|
467
467
|
columnScope: { DataTypes: ['Date'] },
|
|
468
|
-
moduleScope: ['
|
|
468
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
469
469
|
inputs: [{ type: 'date' }],
|
|
470
470
|
handler: ({ value, inputs }) => isSameDay(parseDateValue(value), parseDateValue(inputs[0])),
|
|
471
471
|
toString: ({ inputs }) => `= ${inputs[0]}`,
|
|
@@ -475,7 +475,7 @@ export const SystemPredicateDefs = [
|
|
|
475
475
|
label: 'NotEquals',
|
|
476
476
|
icon: { name: 'not-equal' },
|
|
477
477
|
columnScope: { DataTypes: ['Date'] },
|
|
478
|
-
moduleScope: ['
|
|
478
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
479
479
|
inputs: [{ type: 'date' }],
|
|
480
480
|
handler: ({ value, inputs }) => !isSameDay(parseDateValue(value), parseDateValue(inputs[0])),
|
|
481
481
|
toString: ({ inputs }) => `!= ${inputs[0]}`,
|
|
@@ -485,7 +485,7 @@ export const SystemPredicateDefs = [
|
|
|
485
485
|
label: 'Next Work Day',
|
|
486
486
|
icon: { name: 'calendar' },
|
|
487
487
|
columnScope: { DataTypes: ['Date'] },
|
|
488
|
-
moduleScope: ['
|
|
488
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
489
489
|
handler: ({ value, adaptableApi }) => isSameDay(parseDateValue(value), adaptableApi.calendarApi.getNextWorkingDay()),
|
|
490
490
|
},
|
|
491
491
|
{
|
|
@@ -493,7 +493,7 @@ export const SystemPredicateDefs = [
|
|
|
493
493
|
label: 'Last Work Day',
|
|
494
494
|
icon: { name: 'calendar' },
|
|
495
495
|
columnScope: { DataTypes: ['Date'] },
|
|
496
|
-
moduleScope: ['
|
|
496
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
497
497
|
handler: ({ value, adaptableApi }) => isSameDay(parseDateValue(value), adaptableApi.calendarApi.getPreviousWorkingDay()),
|
|
498
498
|
},
|
|
499
499
|
{
|
|
@@ -501,7 +501,7 @@ export const SystemPredicateDefs = [
|
|
|
501
501
|
label: 'Working Day',
|
|
502
502
|
icon: { name: 'calendar' },
|
|
503
503
|
columnScope: { DataTypes: ['Date'] },
|
|
504
|
-
moduleScope: ['
|
|
504
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
505
505
|
handler: ({ value, adaptableApi }) => adaptableApi.calendarApi.isWorkingDay(value),
|
|
506
506
|
},
|
|
507
507
|
{
|
|
@@ -509,7 +509,7 @@ export const SystemPredicateDefs = [
|
|
|
509
509
|
label: 'Holiday',
|
|
510
510
|
icon: { name: 'calendar' },
|
|
511
511
|
columnScope: { DataTypes: ['Date'] },
|
|
512
|
-
moduleScope: ['
|
|
512
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
513
513
|
handler: ({ value, adaptableApi }) => adaptableApi.calendarApi.isHoliday(value),
|
|
514
514
|
},
|
|
515
515
|
{
|
|
@@ -517,7 +517,7 @@ export const SystemPredicateDefs = [
|
|
|
517
517
|
label: 'Range',
|
|
518
518
|
icon: { name: 'date-range' },
|
|
519
519
|
columnScope: { DataTypes: ['Date'] },
|
|
520
|
-
moduleScope: ['
|
|
520
|
+
moduleScope: ['columnFilter'],
|
|
521
521
|
inputs: [{ type: 'date' }, { type: 'date' }],
|
|
522
522
|
handler: ({ value, inputs }) => new Date(value) >= new Date(inputs[0]) && new Date(value) <= new Date(inputs[1]),
|
|
523
523
|
},
|
|
@@ -527,7 +527,7 @@ export const SystemPredicateDefs = [
|
|
|
527
527
|
label: 'True',
|
|
528
528
|
icon: { text: 'T' },
|
|
529
529
|
columnScope: { DataTypes: ['Boolean'] },
|
|
530
|
-
moduleScope: ['
|
|
530
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
531
531
|
handler: ({ value }) => Boolean(value) === true,
|
|
532
532
|
},
|
|
533
533
|
{
|
|
@@ -535,7 +535,7 @@ export const SystemPredicateDefs = [
|
|
|
535
535
|
label: 'False',
|
|
536
536
|
icon: { text: 'F' },
|
|
537
537
|
columnScope: { DataTypes: ['Boolean'] },
|
|
538
|
-
moduleScope: ['
|
|
538
|
+
moduleScope: ['columnFilter', 'alert', 'flashingcell', 'formatColumn'],
|
|
539
539
|
handler: ({ value }) => Boolean(value) === false,
|
|
540
540
|
},
|
|
541
541
|
{
|
|
@@ -543,7 +543,7 @@ export const SystemPredicateDefs = [
|
|
|
543
543
|
label: 'BooleanToggle',
|
|
544
544
|
icon: { name: 'boolean-list' },
|
|
545
545
|
columnScope: { DataTypes: ['Boolean'] },
|
|
546
|
-
moduleScope: ['
|
|
546
|
+
moduleScope: ['columnFilter'],
|
|
547
547
|
inputs: [{ type: 'boolean' }],
|
|
548
548
|
// working with string aliases instead of booleans because the ColumnFilterAPI cannot handle falsy filter values (it ignores them)
|
|
549
549
|
handler: ({ value, inputs }) => {
|
|
@@ -557,7 +557,7 @@ export const SystemPredicateDefs = [
|
|
|
557
557
|
},
|
|
558
558
|
// Other System Filters
|
|
559
559
|
{
|
|
560
|
-
id: '
|
|
560
|
+
id: 'AnyChange',
|
|
561
561
|
label: 'Any Change',
|
|
562
562
|
columnScope: { All: true },
|
|
563
563
|
moduleScope: ['alert', 'flashingcell'],
|
|
@@ -576,19 +576,6 @@ export const SystemPredicateDefs = [
|
|
|
576
576
|
return (change / base) * 100 > threshold;
|
|
577
577
|
},
|
|
578
578
|
},
|
|
579
|
-
{
|
|
580
|
-
id: 'PrimaryKeyDuplicate',
|
|
581
|
-
label: 'Primary Key Duplicate',
|
|
582
|
-
columnScope: { All: true },
|
|
583
|
-
moduleScope: ['alert'],
|
|
584
|
-
handler: ({ value, column, adaptableApi, node }) => {
|
|
585
|
-
return (column === null || column === void 0 ? void 0 : column.isPrimaryKey)
|
|
586
|
-
? adaptableApi.gridApi.internalApi
|
|
587
|
-
.getDistinctRawValuesForColumn(column.columnId, node)
|
|
588
|
-
.includes(value)
|
|
589
|
-
: false;
|
|
590
|
-
},
|
|
591
|
-
},
|
|
592
579
|
{
|
|
593
580
|
id: 'ExistingValuesOnly',
|
|
594
581
|
label: 'Existing Values Only',
|
|
@@ -634,7 +621,7 @@ export const SystemPredicateDefs = [
|
|
|
634
621
|
},
|
|
635
622
|
},
|
|
636
623
|
];
|
|
637
|
-
export const SystemFilterPredicateIds = SystemPredicateDefs.filter((p) => p.moduleScope.includes('
|
|
624
|
+
export const SystemFilterPredicateIds = SystemPredicateDefs.filter((p) => p.moduleScope.includes('columnFilter')).map((p) => p.id);
|
|
638
625
|
export const SystemAlertPredicateIds = SystemPredicateDefs.filter((p) => p.moduleScope.includes('alert')).map((p) => p.id);
|
|
639
626
|
export const SystemFormatColumnPredicateIds = SystemPredicateDefs.filter((p) => p.moduleScope.includes('formatColumn')).map((p) => p.id);
|
|
640
627
|
export const SystemFlashingCellPredicateIds = SystemPredicateDefs.filter((p) => p.moduleScope.includes('flashingcell')).map((p) => p.id);
|
|
@@ -47,5 +47,5 @@ export interface AdaptableAggregatedScalarQuery {
|
|
|
47
47
|
/**
|
|
48
48
|
* An AdaptableQuery can be either a Boolean, Scalar, Observable, AggregatedBoolean, or AggregatedScalar expression
|
|
49
49
|
*/
|
|
50
|
-
export
|
|
50
|
+
export type AdaptableQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableScalarQuery, XOR<AdaptableObservableQuery, XOR<AdaptableAggregatedBooleanQuery, AdaptableAggregatedScalarQuery>>>>;
|
|
51
51
|
export declare const isReactiveQuery: (query: Partial<AdaptableQuery>) => boolean;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type ScopeDataType = 'String' | 'Number' | 'Boolean' | 'Date';
|
|
2
|
+
export type ScopeAll = {
|
|
3
3
|
All: true;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type ScopeDataTypes<Type = ScopeDataType> = {
|
|
6
6
|
DataTypes: Type[];
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ScopeColumnIds = {
|
|
9
9
|
ColumnIds: string[];
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Defines where a given Object / Module is active
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type AdaptableScope<Type = ScopeDataType> = ScopeAll | ScopeDataTypes<Type> | ScopeColumnIds;
|
|
@@ -15,4 +15,4 @@ export interface WeightedAverageAggregation {
|
|
|
15
15
|
/**
|
|
16
16
|
* Defines which Columns in a Layout display Aggregated values when Row-Grouped
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export type AggregationColumns = Record<string, string | true | WeightedAverageAggregation>;
|
|
@@ -35,8 +35,8 @@ export interface ColumnFilterPredicate extends AdaptablePredicate {
|
|
|
35
35
|
/**
|
|
36
36
|
* Array containing all System Filter Predicates
|
|
37
37
|
*/
|
|
38
|
-
export
|
|
38
|
+
export type SystemFilterPredicateIds = SystemFilterPredicateId[];
|
|
39
39
|
/**
|
|
40
40
|
* List of System Predicates available for Filters
|
|
41
41
|
*/
|
|
42
|
-
export
|
|
42
|
+
export type SystemFilterPredicateId = 'Values' | 'ExcludeValues' | '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' | 'InRange' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'WorkDay' | 'Holiday' | 'True' | 'False' | 'BooleanToggle';
|