@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
|
@@ -9,6 +9,16 @@ export class ColumnFilterModule extends AdaptableModuleBase {
|
|
|
9
9
|
constructor(api) {
|
|
10
10
|
super(ModuleConstants.ColumnFilterModuleId, ModuleConstants.ColumnFilterFriendlyName, 'filter', 'FilterPopup', 'Advanced filtering capability allows users to see precisely the data they want', api);
|
|
11
11
|
}
|
|
12
|
+
setModuleEntitlement() {
|
|
13
|
+
if (!this.api.optionsApi.getColumnFilterOptions().useAdaptableColumnFiltering) {
|
|
14
|
+
this.AccessLevel = 'Hidden';
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.AccessLevel = this.api.internalApi
|
|
18
|
+
.getEntitlementService()
|
|
19
|
+
.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
12
22
|
getModuleAdaptableObjects() {
|
|
13
23
|
return this.api.columnFilterApi.getColumnFilters();
|
|
14
24
|
}
|
|
@@ -19,7 +29,7 @@ export class ColumnFilterModule extends AdaptableModuleBase {
|
|
|
19
29
|
return false;
|
|
20
30
|
}
|
|
21
31
|
updateOldConfig() {
|
|
22
|
-
// Note: have updated
|
|
32
|
+
// Note: have updated Dashboard and Status bar but NOT Tool Panels
|
|
23
33
|
// Update Module Buttons
|
|
24
34
|
let updateModuleButtons = false;
|
|
25
35
|
let moduleButtons = this.api.dashboardApi.getModuleButtons();
|
|
@@ -78,12 +88,11 @@ export class ColumnFilterModule extends AdaptableModuleBase {
|
|
|
78
88
|
}) });
|
|
79
89
|
});
|
|
80
90
|
if (updateStatusBars) {
|
|
81
|
-
console.log('wat', statusBars);
|
|
82
91
|
this.api.statusBarApi.setStatusBarPanels(statusBars);
|
|
83
92
|
}
|
|
84
93
|
}
|
|
85
94
|
handleAdaptableReady() {
|
|
86
|
-
if (this.api.optionsApi.getColumnFilterOptions().showQuickFilter == false) {
|
|
95
|
+
if (this.api.optionsApi.getColumnFilterOptions().quickFilterOptions.showQuickFilter == false) {
|
|
87
96
|
this.api.columnFilterApi.hideQuickFilterBar();
|
|
88
97
|
}
|
|
89
98
|
const columnFilters = this.api.columnFilterApi.getColumnFilters();
|
|
@@ -94,61 +103,90 @@ export class ColumnFilterModule extends AdaptableModuleBase {
|
|
|
94
103
|
});
|
|
95
104
|
}
|
|
96
105
|
addContextMenuItems(menuContext) {
|
|
97
|
-
let menuItemClickFunction = undefined;
|
|
98
106
|
if (!menuContext.isRowGroupColumn && this.isModuleAvailable()) {
|
|
99
107
|
if (menuContext.adaptableColumn &&
|
|
100
108
|
menuContext.adaptableColumn.filterable &&
|
|
101
109
|
menuContext.isSingleSelectedColumn &&
|
|
102
|
-
menuContext.gridCell != null
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
menuContext.gridCell != null &&
|
|
111
|
+
this.api.optionsApi.getColumnFilterOptions().useAdaptableColumnFiltering) {
|
|
112
|
+
const existingColumnFilter = this.getExistingColumnFilter(menuContext.adaptableColumn);
|
|
113
|
+
if (!existingColumnFilter) {
|
|
114
|
+
let isMultiple = menuContext.selectedCellInfo.gridCells.length > 1;
|
|
115
|
+
let clickFunction = isMultiple
|
|
116
|
+
? () => {
|
|
117
|
+
this.api.columnFilterApi.internalApi.createValuesColumnFilterForCells(menuContext.selectedCellInfo.gridCells);
|
|
118
|
+
}
|
|
119
|
+
: () => {
|
|
120
|
+
this.api.columnFilterApi.internalApi.createEqualityColumnFilterForCell(menuContext.selectedCellInfo.gridCells[0]);
|
|
121
|
+
};
|
|
122
|
+
return [
|
|
123
|
+
this.createColumnMenuItemClickFunction(isMultiple ? 'Filter on Cell Values' : 'Filter on Cell Value', this.moduleInfo.Glyph, clickFunction),
|
|
124
|
+
];
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
let filterSubMenuItems = [];
|
|
128
|
+
filterSubMenuItems.push(this.createColumnMenuItemReduxAction('Clear Filter', 'close', LayoutRedux.LayoutColumnFilterClear(existingColumnFilter)));
|
|
129
|
+
filterSubMenuItems.push(this.createColumnMenuItemClickFunction(existingColumnFilter.IsSuspended ? 'Unsuspend Filter' : 'Suspend Filter', existingColumnFilter.IsSuspended ? 'resume' : 'pause', existingColumnFilter.IsSuspended
|
|
130
|
+
? () => {
|
|
131
|
+
this.api.columnFilterApi.unSuspendColumnFilter(existingColumnFilter);
|
|
132
|
+
}
|
|
133
|
+
: () => {
|
|
134
|
+
this.api.columnFilterApi.suspendColumnFilter(existingColumnFilter);
|
|
135
|
+
}));
|
|
136
|
+
return [
|
|
137
|
+
{
|
|
138
|
+
label: this.moduleInfo.FriendlyName,
|
|
139
|
+
isVisible: true,
|
|
140
|
+
module: this.moduleInfo.ModuleName,
|
|
141
|
+
icon: {
|
|
142
|
+
name: this.moduleInfo.Glyph,
|
|
143
|
+
},
|
|
144
|
+
subItems: filterSubMenuItems,
|
|
145
|
+
},
|
|
146
|
+
];
|
|
147
|
+
}
|
|
112
148
|
}
|
|
113
149
|
}
|
|
114
|
-
return [menuItemClickFunction];
|
|
115
150
|
}
|
|
116
151
|
addColumnMenuItems(column) {
|
|
117
152
|
let filterSubMenuItems = [];
|
|
118
|
-
if (column &&
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
153
|
+
if (column &&
|
|
154
|
+
column.filterable &&
|
|
155
|
+
this.api.optionsApi.getColumnFilterOptions().useAdaptableColumnFiltering) {
|
|
156
|
+
if (this.api.gridApi.isQuickFilterAvailable()) {
|
|
157
|
+
const isFilterVisible = this.api.columnFilterApi.isQuickFilterVisible();
|
|
158
|
+
if (this.isModuleEditable() &&
|
|
159
|
+
this.api.optionsApi.getColumnFilterOptions().useAdaptableColumnFiltering) {
|
|
160
|
+
filterSubMenuItems.push(this.createColumnMenuItemReduxAction(isFilterVisible ? 'Hide Filter Bar' : 'Show Filter Bar', isFilterVisible ? 'unchecked' : 'check', isFilterVisible
|
|
161
|
+
? SystemRedux.SystemQuickFilterBarHide()
|
|
162
|
+
: SystemRedux.SystemQuickFilterBarShow()));
|
|
163
|
+
}
|
|
125
164
|
}
|
|
126
|
-
|
|
127
|
-
if (column && this.canCreateColumnMenuItem(column, 'ReadOnly', 'filter')) {
|
|
128
|
-
const existingColumnFilter = this.api.columnFilterApi
|
|
129
|
-
.getColumnFilters()
|
|
130
|
-
.find((x) => x.ColumnId == column.columnId);
|
|
165
|
+
const existingColumnFilter = this.getExistingColumnFilter(column);
|
|
131
166
|
if (existingColumnFilter) {
|
|
132
167
|
filterSubMenuItems.push(this.createColumnMenuItemReduxAction('Clear Filter', 'close', LayoutRedux.LayoutColumnFilterClear(existingColumnFilter)));
|
|
133
|
-
filterSubMenuItems.push(this.createColumnMenuItemReduxAction(existingColumnFilter.IsSuspended ? 'Unsuspend Filter' : 'Suspend Filter', existingColumnFilter.IsSuspended ? '
|
|
168
|
+
filterSubMenuItems.push(this.createColumnMenuItemReduxAction(existingColumnFilter.IsSuspended ? 'Unsuspend Filter' : 'Suspend Filter', existingColumnFilter.IsSuspended ? 'resume' : 'pause', existingColumnFilter.IsSuspended
|
|
134
169
|
? LayoutRedux.LayoutColumnFilterUnSuspend(existingColumnFilter)
|
|
135
170
|
: LayoutRedux.LayoutColumnFilterSuspend(existingColumnFilter)));
|
|
136
171
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
172
|
+
if (ArrayExtensions.IsNotNullOrEmpty(filterSubMenuItems)) {
|
|
173
|
+
return [
|
|
174
|
+
{
|
|
175
|
+
label: this.moduleInfo.FriendlyName,
|
|
176
|
+
isVisible: true,
|
|
177
|
+
module: this.moduleInfo.ModuleName,
|
|
178
|
+
icon: {
|
|
179
|
+
name: this.moduleInfo.Glyph,
|
|
180
|
+
},
|
|
181
|
+
subItems: filterSubMenuItems,
|
|
146
182
|
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
];
|
|
183
|
+
];
|
|
184
|
+
}
|
|
150
185
|
}
|
|
151
186
|
}
|
|
187
|
+
getExistingColumnFilter(column) {
|
|
188
|
+
return this.api.columnFilterApi.getColumnFilters().find((x) => x.ColumnId == column.columnId);
|
|
189
|
+
}
|
|
152
190
|
getTeamSharingAction() {
|
|
153
191
|
return {
|
|
154
192
|
ModuleEntities: this.api.columnFilterApi.getColumnFilters(),
|
|
@@ -69,7 +69,7 @@ export class CustomSortModule extends AdaptableModuleBase {
|
|
|
69
69
|
getUnSuspendAction: CustomSortRedux.CustomSortUnSuspend,
|
|
70
70
|
getSuspendAllAction: CustomSortRedux.CustomSortSuspendAll,
|
|
71
71
|
getUnSuspendAllAction: CustomSortRedux.CustomSortUnSuspendAll,
|
|
72
|
-
emptyView: "Click 'New' to create a custom Sort Order for a selected Column
|
|
72
|
+
emptyView: "Click 'New' to create a custom Sort Order for a selected Column",
|
|
73
73
|
getEditWizard() {
|
|
74
74
|
return CustomSortWizard;
|
|
75
75
|
},
|
|
@@ -20,8 +20,8 @@ export interface ModuleInfo {
|
|
|
20
20
|
Description: string;
|
|
21
21
|
HelpPage: string;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
24
|
-
export
|
|
23
|
+
export type TeamSharingReferences = TeamSharingReference[];
|
|
24
|
+
export type TeamSharingReference = {
|
|
25
25
|
Module: StrictExtract<AdaptableModule, 'CalculatedColumn' | 'FreeTextColumn' | 'NamedQuery' | 'Alert' | 'CustomSort' | 'FlashingCell' | 'FormatColumn' | 'PlusMinus' | 'Shortcut' | 'Schedule'>;
|
|
26
26
|
Reference: AdaptableObject;
|
|
27
27
|
};
|
|
@@ -82,7 +82,7 @@ export interface AdaptableObjectCompactView {
|
|
|
82
82
|
item: AdaptableObjectItemView;
|
|
83
83
|
abObject: AdaptableObject;
|
|
84
84
|
}
|
|
85
|
-
export
|
|
85
|
+
export type AdaptableModuleViewAction = React.FunctionComponent<React.PropsWithChildren<{
|
|
86
86
|
data: AdaptableObject;
|
|
87
87
|
accessLevel: AccessLevel;
|
|
88
88
|
}>>;
|
|
@@ -13,6 +13,7 @@ import { getLayoutSortViewItems } from './Utilities/Layout/getLayoutSortViewItem
|
|
|
13
13
|
import { WEIGHTED_AVERAGE_AGG_FN_NAME } from '../PredefinedConfig/Common/AggregationColumns';
|
|
14
14
|
import { SHOW_PIVOT_COLUMN_DETAILS } from '../View/Components/Popups/WindowPopups/windowFactory';
|
|
15
15
|
import flattenDeep from 'lodash/flattenDeep';
|
|
16
|
+
import StringExtensions from '../Utilities/Extensions/StringExtensions';
|
|
16
17
|
export class LayoutModule extends AdaptableModuleBase {
|
|
17
18
|
constructor(api) {
|
|
18
19
|
super(ModuleConstants.LayoutModuleId, ModuleConstants.LayoutFriendlyName, 'grid', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
|
|
@@ -386,6 +387,10 @@ export class LayoutModule extends AdaptableModuleBase {
|
|
|
386
387
|
})
|
|
387
388
|
.filter(Boolean),
|
|
388
389
|
},
|
|
390
|
+
(layout === null || layout === void 0 ? void 0 : layout.GridFilter) && StringExtensions.IsNotNullOrEmpty(layout.GridFilter.Expression) && {
|
|
391
|
+
name: 'Grid Filter',
|
|
392
|
+
values: [layout.GridFilter.Expression],
|
|
393
|
+
},
|
|
389
394
|
].filter(Boolean),
|
|
390
395
|
abObject: layout,
|
|
391
396
|
};
|
|
@@ -10,27 +10,6 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
10
10
|
constructor(api) {
|
|
11
11
|
super(ModuleConstants.StyledColumnModuleId, ModuleConstants.StyledColumnFriendlyName, 'brush', 'StyledColumnPopup', // to change
|
|
12
12
|
'Create a Special Column Style e.g Gradient or Percent Bar', api);
|
|
13
|
-
/**
|
|
14
|
-
* Use Case: Data (cell/row) has changed
|
|
15
|
-
* Action: Any CheckboxColumns need to be updated, as their disabled state may have changed
|
|
16
|
-
*/
|
|
17
|
-
this.api.internalApi
|
|
18
|
-
.getDataService()
|
|
19
|
-
.on('CellDataChanged', (cellDataChangedInfo) => {
|
|
20
|
-
const activeCheckboxColumnIds = this.api.columnApi
|
|
21
|
-
.getColumns()
|
|
22
|
-
.filter((aColumn) => {
|
|
23
|
-
const checkboxColumn = this.api.styledColumnApi.internalApi.getCheckBoxStyleStyledColumn(aColumn);
|
|
24
|
-
return checkboxColumn && !checkboxColumn.IsSuspended;
|
|
25
|
-
})
|
|
26
|
-
.map((aColumn) => aColumn.columnId);
|
|
27
|
-
// no need to refresh the CheckboxColumns if the change was triggered by one of them
|
|
28
|
-
if (!activeCheckboxColumnIds.includes(cellDataChangedInfo.column.columnId)) {
|
|
29
|
-
this.api.internalApi
|
|
30
|
-
.getAdaptableInstance()
|
|
31
|
-
.refreshCells(null, activeCheckboxColumnIds, true, true);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
13
|
}
|
|
35
14
|
updateOldConfig() {
|
|
36
15
|
const formatColumnsWithColumnStyles = this.api.formatColumnApi
|
|
@@ -102,7 +81,7 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
102
81
|
else if (!column.isSparkline) {
|
|
103
82
|
// Edit is common
|
|
104
83
|
if (styledColumn) {
|
|
105
|
-
if (!styledColumn.IsReadOnly
|
|
84
|
+
if (!styledColumn.IsReadOnly) {
|
|
106
85
|
let defaultCurrentSectionName = undefined;
|
|
107
86
|
if (styledColumn.BadgeStyle) {
|
|
108
87
|
defaultCurrentSectionName = 'Badges';
|
|
@@ -170,30 +149,6 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
170
149
|
break;
|
|
171
150
|
}
|
|
172
151
|
}
|
|
173
|
-
// Then do Checkbox - now removed as AG Grid 30 offers this
|
|
174
|
-
/*
|
|
175
|
-
if (column.dataType == 'Boolean' && !this.api.columnApi.isFreeTextColumn(column.columnId)) {
|
|
176
|
-
const hasCheckBox: boolean = styledColumn && styledColumn?.CheckBoxStyle;
|
|
177
|
-
if (hasCheckBox) {
|
|
178
|
-
returnColumnMenuItems.push(
|
|
179
|
-
this.createColumnMenuItemClickFunction('Remove Checkbox', 'unchecked', () => {
|
|
180
|
-
this.api.styledColumnApi.deleteStyledColumn(styledColumn);
|
|
181
|
-
})
|
|
182
|
-
);
|
|
183
|
-
} else {
|
|
184
|
-
returnColumnMenuItems.push(
|
|
185
|
-
this.createColumnMenuItemClickFunction('Show as Checkbox', 'checked', () => {
|
|
186
|
-
const styledColumn = ObjectFactory.CreateEmptyStyledColumn();
|
|
187
|
-
this.api.styledColumnApi.addStyledColumn({
|
|
188
|
-
...styledColumn,
|
|
189
|
-
ColumnId: column.columnId,
|
|
190
|
-
CheckBoxStyle: true,
|
|
191
|
-
});
|
|
192
|
-
})
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
*/
|
|
197
152
|
}
|
|
198
153
|
}
|
|
199
154
|
return returnColumnMenuItems;
|
|
@@ -205,9 +160,6 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
205
160
|
else if (styledColumn.PercentBarStyle) {
|
|
206
161
|
return 'percent';
|
|
207
162
|
}
|
|
208
|
-
else if (styledColumn.CheckBoxStyle) {
|
|
209
|
-
return 'check-circle';
|
|
210
|
-
}
|
|
211
163
|
else if (styledColumn.SparkLineStyle) {
|
|
212
164
|
return 'spark-line';
|
|
213
165
|
}
|
|
@@ -225,7 +177,7 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
225
177
|
}
|
|
226
178
|
toView(styledColumn) {
|
|
227
179
|
const specificTypeItems = [];
|
|
228
|
-
if (styledColumn.GradientStyle || styledColumn.PercentBarStyle
|
|
180
|
+
if (styledColumn.GradientStyle || styledColumn.PercentBarStyle) {
|
|
229
181
|
specificTypeItems.push({
|
|
230
182
|
name: 'Style',
|
|
231
183
|
view: () => {
|
|
@@ -291,9 +243,6 @@ export class StyledColumnModule extends AdaptableModuleBase {
|
|
|
291
243
|
else if (styledColumn.PercentBarStyle) {
|
|
292
244
|
type = 'Percent Bar';
|
|
293
245
|
}
|
|
294
|
-
else if (styledColumn.CheckBoxStyle) {
|
|
295
|
-
type = 'Check Box';
|
|
296
|
-
}
|
|
297
246
|
else if (styledColumn.SparkLineStyle) {
|
|
298
247
|
type = 'Spark Line';
|
|
299
248
|
}
|
|
@@ -34,6 +34,9 @@ export declare const ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = "(ActionRowBut
|
|
|
34
34
|
export declare const ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = "(FDC3ActionColumn)";
|
|
35
35
|
export declare const DEFAULT_DATE_FORMAT_PATTERN = "dd-MM-yyyy";
|
|
36
36
|
export declare const BLANK_DISTINCT_COLUMN_VALUE = "[BLANKS]";
|
|
37
|
+
export declare const DEFAULT_STRING_DISPLAY_VALUE = "Hello World";
|
|
38
|
+
export declare const DEFAULT_INTEGER_DISPLAY_VALUE = 12345;
|
|
39
|
+
export declare const DEFAULT_DOUBLE_DISPLAY_VALUE = 12345.6789;
|
|
37
40
|
export declare const SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE: number;
|
|
38
41
|
export declare const QUICK_SEARCH_DEFAULT_BACK_COLOR: string;
|
|
39
42
|
export declare const QUICK_SEARCH_DEFAULT_FORE_COLOR: string;
|
|
@@ -33,6 +33,9 @@ export const ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = '(ActionRowButtons)';
|
|
|
33
33
|
export const ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME = '(FDC3ActionColumn)';
|
|
34
34
|
export const DEFAULT_DATE_FORMAT_PATTERN = 'dd-MM-yyyy';
|
|
35
35
|
export const BLANK_DISTINCT_COLUMN_VALUE = '[BLANKS]';
|
|
36
|
+
export const DEFAULT_STRING_DISPLAY_VALUE = 'Hello World';
|
|
37
|
+
export const DEFAULT_INTEGER_DISPLAY_VALUE = 12345;
|
|
38
|
+
export const DEFAULT_DOUBLE_DISPLAY_VALUE = 12345.6789;
|
|
36
39
|
/*
|
|
37
40
|
Redux / State Defaults
|
|
38
41
|
Try to put all our Redux / State defaults here and ONLY reference from here - avoid magic numbers / strings.
|
|
@@ -178,17 +178,32 @@ export const DefaultAdaptableOptions = {
|
|
|
178
178
|
contextMenuItems: undefined,
|
|
179
179
|
},
|
|
180
180
|
columnFilterOptions: {
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
quickFilterOptions: {
|
|
182
|
+
hideQuickFilterDropdown: undefined,
|
|
183
|
+
hideQuickFilterInput: undefined,
|
|
184
|
+
quickFilterTrigger: 'mouseenter',
|
|
185
|
+
quickFilterValuesTrigger: 'mouseenter',
|
|
186
|
+
quickFilterDebounce: 250,
|
|
187
|
+
quickFilterHeight: null,
|
|
188
|
+
showQuickFilter: true,
|
|
189
|
+
quickFilterWildcards: {},
|
|
190
|
+
quickFilterValuesWidth: 180,
|
|
191
|
+
},
|
|
192
|
+
filterFormOptions: {
|
|
193
|
+
useAgGridFilterFormStyle: true,
|
|
194
|
+
defaultFilterFormTab: 'Values',
|
|
195
|
+
},
|
|
196
|
+
valuesFilterOptions: {
|
|
197
|
+
sortValuesFilter: false,
|
|
198
|
+
filterValuesUsingTime: false,
|
|
199
|
+
showDistinctFilteredValuesOnly: false,
|
|
200
|
+
maxFilterValuesToDisplay: 2000,
|
|
201
|
+
includeBlankFilterValues: false,
|
|
202
|
+
showValuesCount: undefined,
|
|
203
|
+
},
|
|
183
204
|
indicateFilteredColumns: true,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
useAdaptableQuickFilter: true,
|
|
187
|
-
clearFiltersOnStartUp: false,
|
|
188
|
-
quickFilterTrigger: 'mouseenter',
|
|
189
|
-
quickFilterValuesTrigger: 'mouseenter',
|
|
190
|
-
quickFilterDebounce: 250,
|
|
191
|
-
quickFilterHeight: null,
|
|
205
|
+
useAdaptableColumnFiltering: true,
|
|
206
|
+
clearColumnFiltersOnStartUp: false,
|
|
192
207
|
filterActionOnUserDataChange: {
|
|
193
208
|
applyFilter: GeneralConstants.FILTER_ALWAYS,
|
|
194
209
|
throttleDelay: 0,
|
|
@@ -198,22 +213,16 @@ export const DefaultAdaptableOptions = {
|
|
|
198
213
|
throttleDelay: 0,
|
|
199
214
|
},
|
|
200
215
|
autoApplyFilter: true,
|
|
201
|
-
sortColumnValuesInFilter: false,
|
|
202
216
|
defaultNumericColumnFilter: 'Equals',
|
|
203
217
|
defaultStringColumnFilter: 'Contains',
|
|
204
218
|
defaultDateColumnFilter: 'On',
|
|
205
|
-
defaultFilterFormTab: 'Values',
|
|
206
219
|
enableFilterOnSpecialColumns: true,
|
|
207
|
-
filterUsingTime: false,
|
|
208
|
-
maxFilterValuesToDisplay: 2000,
|
|
209
|
-
showQuickFilter: true,
|
|
210
|
-
showDistinctFilteredValuesOnly: false,
|
|
211
220
|
showClearFilterButton: false,
|
|
212
221
|
showSuspendFilterButton: false,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
222
|
+
},
|
|
223
|
+
gridFilterOptions: {
|
|
224
|
+
availableFilterEditors: 'Both',
|
|
225
|
+
clearGridFilterOnStartUp: false,
|
|
217
226
|
},
|
|
218
227
|
predicateOptions: {
|
|
219
228
|
customPredicateDefs: [],
|
|
@@ -228,11 +237,11 @@ export const DefaultAdaptableOptions = {
|
|
|
228
237
|
excludeColumnFromQuickSearch: undefined,
|
|
229
238
|
runQuickSearchOnRowGroups: true,
|
|
230
239
|
runQuickSearchOnPivotColumns: true,
|
|
231
|
-
|
|
240
|
+
clearQuickSearchOnStartUp: false,
|
|
232
241
|
quickSearchPlaceholder: 'Search',
|
|
233
242
|
filterResultsAfterQuickSearch: false,
|
|
234
243
|
runQuickSearchWithCaseSensitivity: false,
|
|
235
|
-
|
|
244
|
+
runBespokeQuickSearch: undefined,
|
|
236
245
|
},
|
|
237
246
|
stateOptions: {
|
|
238
247
|
debounceStateDelay: 400,
|
|
@@ -275,7 +284,6 @@ export const DefaultAdaptableOptions = {
|
|
|
275
284
|
permittedValues: undefined,
|
|
276
285
|
editLookUpItems: undefined,
|
|
277
286
|
showDocumentationLinks: true,
|
|
278
|
-
gridInfoSections: ['GridSummary', 'AdaptableOptions', 'ColumnInfo', 'AdaptableObjects'],
|
|
279
287
|
showAdapTableVersion: true,
|
|
280
288
|
},
|
|
281
289
|
toolPanelOptions: {
|
|
@@ -4,4 +4,4 @@ export declare const STANDALONE_MODULE_POPUPS: AdaptableModule[];
|
|
|
4
4
|
/**
|
|
5
5
|
* This constants determines the order and the items that appear in the navigation.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS: (AdaptableSettingsPanel | '-')[];
|
|
@@ -6,7 +6,7 @@ export const STANDALONE_MODULE_POPUPS = [
|
|
|
6
6
|
/**
|
|
7
7
|
* This constants determines the order and the items that appear in the navigation.
|
|
8
8
|
*/
|
|
9
|
-
export const
|
|
9
|
+
export const DEFAULT_SETTINGS_PANEL_NAVIGATION_ITEMS = [
|
|
10
10
|
'GridInfo',
|
|
11
11
|
'ColumnInfo',
|
|
12
12
|
'Dashboard',
|
|
@@ -29,7 +29,6 @@ export const DEFAULT_NAVIGATION_ITEMS = [
|
|
|
29
29
|
'QuickSearch',
|
|
30
30
|
'GridFilter',
|
|
31
31
|
'ColumnFilter',
|
|
32
|
-
'NamedQuery',
|
|
33
32
|
'DataSet',
|
|
34
33
|
'-',
|
|
35
34
|
'PlusMinus',
|
|
@@ -39,6 +38,7 @@ export const DEFAULT_NAVIGATION_ITEMS = [
|
|
|
39
38
|
'Charting',
|
|
40
39
|
'DataImport',
|
|
41
40
|
'Schedule',
|
|
41
|
+
'NamedQuery',
|
|
42
42
|
'StateManagement',
|
|
43
43
|
'TeamSharing',
|
|
44
44
|
'Notes',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** based on emittery npm package, which is MIT */
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type EmitterCallback = (data?: any) => any;
|
|
3
|
+
export type EmitterAnyCallback = (eventName: string, data?: any) => any;
|
|
4
4
|
declare class Emittery {
|
|
5
5
|
static mixin(emitteryPropertyName: string, methodNames: string[]): (target: any) => any;
|
|
6
6
|
constructor();
|
package/src/Utilities/Emitter.js
CHANGED
|
@@ -66,9 +66,9 @@ class Emittery {
|
|
|
66
66
|
enumerable: false,
|
|
67
67
|
get: getEmitteryProperty,
|
|
68
68
|
});
|
|
69
|
-
const emitteryMethodCaller = (methodName) => function
|
|
69
|
+
const emitteryMethodCaller = (methodName) => (function(...args) {
|
|
70
70
|
return this[emitteryPropertyName][methodName](...args);
|
|
71
|
-
};
|
|
71
|
+
});
|
|
72
72
|
for (const methodName of methodNames) {
|
|
73
73
|
Object.defineProperty(target.prototype, methodName, {
|
|
74
74
|
enumerable: false,
|
|
@@ -4,9 +4,9 @@ import { AggregatedScalarExpressionEvaluation } from './aggregatedScalarExpressi
|
|
|
4
4
|
/**
|
|
5
5
|
* List of all the Aggregation Functions available in AdaptableQL
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export type AggregatedBooleanFunctionName = 'WHERE' | 'COL' | 'GROUP_BY' | 'WEIGHT' | AggregationFunction | ComparisonFunction;
|
|
8
|
+
type AggregationFunction = 'SUM' | 'MIN' | 'MAX' | 'AVG' | 'COUNT';
|
|
9
|
+
type ComparisonFunction = 'EQ' | 'NEQ' | 'LT' | 'GT' | 'LTE' | 'GTE';
|
|
10
10
|
export interface BooleanAggregationParameter extends BaseParameter<'aggregationBoolean', AggregationFunction> {
|
|
11
11
|
scalarAggregation: ScalarAggregationOperand;
|
|
12
12
|
conditionValue: number;
|
|
@@ -5,9 +5,9 @@ import { AggregateParams } from './scalarAggregationHelper';
|
|
|
5
5
|
/**
|
|
6
6
|
* List of all the AggregatedScalar Functions available in AdaptableQL
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
|
|
8
|
+
export type AggregatedScalarFunctionName = ScalarAggregationFunction | OperandFunction;
|
|
9
|
+
export type ScalarAggregationFunction = 'SUM' | 'PERCENTAGE' | 'QUANT' | 'QUARTILE' | 'PERCENTILE' | 'AVG' | 'MIN' | 'MAX' | 'COUNT' | 'CUMUL';
|
|
10
|
+
type OperandFunction = 'COL' | 'OVER' | 'GROUP_BY' | 'WEIGHT';
|
|
11
11
|
export interface ScalarAggregationParameter extends BaseParameter<'aggregationScalar', ScalarAggregationFunction> {
|
|
12
12
|
value: AggregatedScalarExpressionEvaluation;
|
|
13
13
|
}
|
|
@@ -2,7 +2,7 @@ import { ExpressionFunction } from '../../parser/src/types';
|
|
|
2
2
|
/**
|
|
3
3
|
* List of all the Boolean Functions available in AdaptableQL
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type BooleanFunctionName = 'EQ' | 'NEQ' | 'GT' | 'LT' | 'GTE' | 'LTE' | 'AND' | 'OR' | 'NOT' | 'BETWEEN' | 'IN' | 'CONTAINS' | 'STARTS_WITH' | 'ENDS_WITH' | 'ANY_CONTAINS' | 'IS_NUMERIC' | 'REGEX' | 'IS_HOLIDAY' | 'IS_WORKDAY' | 'TRUE' | 'FALSE';
|
|
6
6
|
export declare const booleanExpressionFunctions: Record<BooleanFunctionName, ExpressionFunction>;
|
|
7
7
|
export declare const booleanExpressionFunctionsNames: BooleanFunctionName[];
|
|
8
8
|
export declare const isBooleanAdaptableQlFunction: (functionName: string) => functionName is BooleanFunctionName;
|
|
@@ -4,6 +4,7 @@ import isEqual from 'date-fns/isEqual';
|
|
|
4
4
|
import { ExpressionEvaluationError } from '../../parser/src/ExpressionEvaluationError';
|
|
5
5
|
import { getStringValue, getStringValues } from './expressionFunctionUtils';
|
|
6
6
|
import { getTypedKeys } from '../Extensions/TypeExtensions';
|
|
7
|
+
import { normalizeDateParam } from './dateUtils';
|
|
7
8
|
export const booleanExpressionFunctions = {
|
|
8
9
|
TRUE: {
|
|
9
10
|
handler: () => {
|
|
@@ -134,7 +135,6 @@ export const booleanExpressionFunctions = {
|
|
|
134
135
|
inputs: [
|
|
135
136
|
['number', 'number'],
|
|
136
137
|
['date', 'date'],
|
|
137
|
-
['text', 'text'],
|
|
138
138
|
],
|
|
139
139
|
},
|
|
140
140
|
LTE: {
|
|
@@ -162,7 +162,6 @@ export const booleanExpressionFunctions = {
|
|
|
162
162
|
inputs: [
|
|
163
163
|
['number', 'number'],
|
|
164
164
|
['date', 'date'],
|
|
165
|
-
['text', 'text'],
|
|
166
165
|
],
|
|
167
166
|
},
|
|
168
167
|
GT: {
|
|
@@ -190,7 +189,6 @@ export const booleanExpressionFunctions = {
|
|
|
190
189
|
inputs: [
|
|
191
190
|
['number', 'number'],
|
|
192
191
|
['date', 'date'],
|
|
193
|
-
['text', 'text'],
|
|
194
192
|
],
|
|
195
193
|
},
|
|
196
194
|
GTE: {
|
|
@@ -218,7 +216,6 @@ export const booleanExpressionFunctions = {
|
|
|
218
216
|
inputs: [
|
|
219
217
|
['number', 'number'],
|
|
220
218
|
['date', 'date'],
|
|
221
|
-
['text', 'text'],
|
|
222
219
|
],
|
|
223
220
|
},
|
|
224
221
|
BETWEEN: {
|
|
@@ -230,7 +227,7 @@ export const booleanExpressionFunctions = {
|
|
|
230
227
|
category: 'comparison',
|
|
231
228
|
description: 'Returns true if 1st input is between 2nd and 3rd inputs',
|
|
232
229
|
signatures: ['BETWEEN(input: number, lower: number, upper: number)'],
|
|
233
|
-
examples: ['BETWEEN(
|
|
230
|
+
examples: ['BETWEEN([col1], 10, 30)'],
|
|
234
231
|
returnType: 'boolean',
|
|
235
232
|
inputs: ['number', 'number', 'number'],
|
|
236
233
|
},
|
|
@@ -297,6 +294,59 @@ export const booleanExpressionFunctions = {
|
|
|
297
294
|
examples: ['ANY_CONTAINS("abc")'],
|
|
298
295
|
returnType: 'boolean',
|
|
299
296
|
},
|
|
297
|
+
IS_NUMERIC: {
|
|
298
|
+
handler(args) {
|
|
299
|
+
return !isNaN(Number(args[0]));
|
|
300
|
+
},
|
|
301
|
+
isHiddenFromMenu: false,
|
|
302
|
+
description: 'Returns true if input is numeric',
|
|
303
|
+
signatures: ['IS_NUMERIC(a: number)'],
|
|
304
|
+
examples: ['IS_NUMERIC([columnName])'],
|
|
305
|
+
category: 'maths',
|
|
306
|
+
returnType: 'boolean',
|
|
307
|
+
inputs: ['number'],
|
|
308
|
+
},
|
|
309
|
+
REGEX: {
|
|
310
|
+
handler(args) {
|
|
311
|
+
// dont need context as here we always want case insenstivity in the Regex
|
|
312
|
+
const firstInput = String(args[0]);
|
|
313
|
+
const regex = String(args[1]);
|
|
314
|
+
return RegExp(regex).test(firstInput);
|
|
315
|
+
},
|
|
316
|
+
isHiddenFromMenu: false,
|
|
317
|
+
description: 'Returns true if Regular Expression matches',
|
|
318
|
+
signatures: ['REGEX(a: string, b: pattern)'],
|
|
319
|
+
examples: ['REGEX([col1], "[A-Z]+")'],
|
|
320
|
+
inputs: ['text', 'text'],
|
|
321
|
+
category: 'strings',
|
|
322
|
+
returnType: 'boolean',
|
|
323
|
+
},
|
|
324
|
+
IS_HOLIDAY: {
|
|
325
|
+
handler(args, context) {
|
|
326
|
+
const dateToCheck = normalizeDateParam(args[0]);
|
|
327
|
+
return context.adaptableApi.calendarApi.isHoliday(dateToCheck);
|
|
328
|
+
},
|
|
329
|
+
isHiddenFromMenu: false,
|
|
330
|
+
description: 'Returns true if input date is a Holiday',
|
|
331
|
+
signatures: ['IS_HOLIDAY(a: date)'],
|
|
332
|
+
examples: ['IS_HOLIDAY([columnName])'],
|
|
333
|
+
category: 'dates',
|
|
334
|
+
returnType: 'boolean',
|
|
335
|
+
inputs: ['date'],
|
|
336
|
+
},
|
|
337
|
+
IS_WORKDAY: {
|
|
338
|
+
handler(args, context) {
|
|
339
|
+
const dateToCheck = normalizeDateParam(args[0]);
|
|
340
|
+
return context.adaptableApi.calendarApi.isWorkingDay(dateToCheck);
|
|
341
|
+
},
|
|
342
|
+
isHiddenFromMenu: false,
|
|
343
|
+
description: 'Returns true if input date is a Working Day',
|
|
344
|
+
signatures: ['IS_WORKDAY(a: date)'],
|
|
345
|
+
examples: ['IS_WORKDAY([columnName])'],
|
|
346
|
+
category: 'dates',
|
|
347
|
+
returnType: 'boolean',
|
|
348
|
+
inputs: ['date'],
|
|
349
|
+
},
|
|
300
350
|
};
|
|
301
351
|
export const booleanExpressionFunctionsNames = getTypedKeys(booleanExpressionFunctions);
|
|
302
352
|
export const isBooleanAdaptableQlFunction = (functionName) => {
|