@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
|
@@ -1 +1,43 @@
|
|
|
1
|
-
const
|
|
1
|
+
const DEFAULT_ReversedPolynomial = 0xedb88320;
|
|
2
|
+
/*
|
|
3
|
+
* CRC-32 implementation
|
|
4
|
+
*/
|
|
5
|
+
function generate(reversedPolynomial = DEFAULT_ReversedPolynomial) {
|
|
6
|
+
var table = new Array();
|
|
7
|
+
var i, j, n;
|
|
8
|
+
for (i = 0; i < 256; i++) {
|
|
9
|
+
n = i;
|
|
10
|
+
for (j = 8; j > 0; j--) {
|
|
11
|
+
if ((n & 1) == 1) {
|
|
12
|
+
n = (n >>> 1) ^ reversedPolynomial;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
n = n >>> 1;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
table[i] = n;
|
|
19
|
+
}
|
|
20
|
+
return table;
|
|
21
|
+
}
|
|
22
|
+
function crc32_initial() {
|
|
23
|
+
return 0xffffffff;
|
|
24
|
+
}
|
|
25
|
+
function crc32_add_byte(table, crc, byte) {
|
|
26
|
+
crc = (crc >>> 8) ^ table[byte ^ (crc & 0x000000ff)];
|
|
27
|
+
return crc;
|
|
28
|
+
}
|
|
29
|
+
function crc32_final(crc) {
|
|
30
|
+
crc = ~crc;
|
|
31
|
+
crc = crc < 0 ? 0xffffffff + crc + 1 : crc;
|
|
32
|
+
return crc;
|
|
33
|
+
}
|
|
34
|
+
export function compute_string(str, reversedPolynomial = DEFAULT_ReversedPolynomial) {
|
|
35
|
+
var table = generate(reversedPolynomial);
|
|
36
|
+
var crc = 0;
|
|
37
|
+
var i;
|
|
38
|
+
crc = crc32_initial();
|
|
39
|
+
for (i = 0; i < str.length; i++)
|
|
40
|
+
crc = crc32_add_byte(table, crc, str.charCodeAt(i));
|
|
41
|
+
crc = crc32_final(crc);
|
|
42
|
+
return `${crc}`;
|
|
43
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { AdaptableLogger } from '../agGrid/AdaptableLogger';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
2
|
+
type StringKey<T> = Extract<keyof T, string>;
|
|
3
|
+
export declare const logDeprecation: <T>(logger: AdaptableLogger, typeName: string, oldProp: Extract<keyof T, string>, newProp?: Extract<keyof T, string>, message?: string) => void;
|
|
4
|
+
export declare const logDeprecationExternal: <OLD_TYPE, NEW_TYPE>(logger: AdaptableLogger, oldTypeName: string, oldProp: Extract<keyof OLD_TYPE, string>, newTypeName: string, newProp: Extract<keyof NEW_TYPE, string>, message?: string) => void;
|
|
5
|
+
export declare const logDeprecationInternal: <T>(logger: AdaptableLogger, typeName: string, oldProp: Extract<keyof T, string>) => void;
|
|
6
|
+
export {};
|
|
@@ -16,6 +16,7 @@ export interface AdaptablePopoverProps extends React.ClassAttributes<React.Props
|
|
|
16
16
|
popoverMaxWidth?: number;
|
|
17
17
|
popupPadding?: number;
|
|
18
18
|
alignPosition?: OverlayShowParams['alignPosition'];
|
|
19
|
+
visible?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export declare class AdaptablePopover extends React.Component<React.PropsWithChildren<AdaptablePopoverProps>, {}> {
|
|
21
22
|
render(): JSX.Element;
|
|
@@ -34,7 +34,7 @@ export class AdaptablePopover extends React.Component {
|
|
|
34
34
|
// showTriangle
|
|
35
35
|
, {
|
|
36
36
|
// showTriangle
|
|
37
|
-
render: () => popoverClickRootClose, showEvent: (this.props.showEvent || 'mouseenter'), hideEvent: (this.props.hideEvent || 'mouseleave'), style: {
|
|
37
|
+
visible: this.props.visible, render: () => popoverClickRootClose, showEvent: (this.props.showEvent || 'mouseenter'), hideEvent: (this.props.hideEvent || 'mouseleave'), style: {
|
|
38
38
|
overflow: 'visible',
|
|
39
39
|
}, defaultZIndex: 100000, alignPosition: this.props.alignPosition }, useButton ? (React.createElement(ButtonInfo, { style: iconStyle, variant: "text", onClick: () => null, icon: showIcon && icon, tooltip: this.props.tooltipText }, this.props.children)) : (React.createElement("div", { title: this.props.tooltipText, tabIndex: 0, style: { cursor: 'pointer', display: 'inline-block' } },
|
|
40
40
|
this.props.children,
|
|
@@ -14,7 +14,7 @@ const GridOptionsForm = (props) => {
|
|
|
14
14
|
gridOptions = Object.assign(Object.assign({}, gridOptions), { enableRangeSelection: enableRangeSelection });
|
|
15
15
|
props.onChangedGridOptions(gridOptions);
|
|
16
16
|
} })),
|
|
17
|
-
React.createElement(FormRow, { label: "Show
|
|
17
|
+
React.createElement(FormRow, { label: "Show Filter Bar" },
|
|
18
18
|
React.createElement(CheckBox, { checked: (_a = gridOptions.defaultColDef) === null || _a === void 0 ? void 0 : _a.floatingFilter, onChange: (floatingFilter) => {
|
|
19
19
|
gridOptions = Object.assign(Object.assign({}, gridOptions), { defaultColDef: {
|
|
20
20
|
floatingFilter,
|
|
@@ -7,6 +7,6 @@ export const AlertEmptyView = (props) => {
|
|
|
7
7
|
.getEntitlementAccessLevelForModule(props.module.moduleInfo.ModuleName);
|
|
8
8
|
const text = accessLevel == 'ReadOnly'
|
|
9
9
|
? 'You have no Alert Definitions.'
|
|
10
|
-
: "Click 'New' to
|
|
10
|
+
: "Click 'New' to create a new Alert Definition. The Definition will include the Rule which triggers the Alert, and the behaviour of the Alert.";
|
|
11
11
|
return React.createElement(React.Fragment, null, text);
|
|
12
12
|
};
|
|
@@ -4,7 +4,7 @@ export const getAvailablePredicateDefinitions = (api, scope, alertType) => {
|
|
|
4
4
|
predicateDefs = api.alertApi.internalApi
|
|
5
5
|
.getAlertPredicateDefsForScope(scope)
|
|
6
6
|
.filter((predicateDef) => !['AddedRow', 'RemovedRow'].includes(predicateDef.id));
|
|
7
|
-
predicateDefs = [...predicateDefs].sort((a, b) => a.id === '
|
|
7
|
+
predicateDefs = [...predicateDefs].sort((a, b) => a.id === 'AnyChange' ? -1 : b.id === 'AnyChange' ? 1 : 0);
|
|
8
8
|
}
|
|
9
9
|
else if (alertType === 'RowChange') {
|
|
10
10
|
predicateDefs = api.alertApi.internalApi
|
|
@@ -4,7 +4,7 @@ import { AdaptableApi } from '../../../types';
|
|
|
4
4
|
import { AlertType } from '../Utilities/getAlertType';
|
|
5
5
|
export declare const renderAlertBehaviourWizardSummary: (alertDefinition: AlertDefinition) => JSX.Element;
|
|
6
6
|
export declare const renderAlertBehaviourSummary: (alert: AlertDefinition, api: AdaptableApi, allowWrap?: boolean) => JSX.Element;
|
|
7
|
-
|
|
7
|
+
type AlertBehaviourWizardSectionProps = {
|
|
8
8
|
onChange: (data: AlertDefinition) => void;
|
|
9
9
|
alertType: AlertType;
|
|
10
10
|
};
|
|
@@ -6,11 +6,11 @@ import { CodeBlock } from '../../../components/CodeBlock';
|
|
|
6
6
|
import { Box, Flex, Text } from 'rebass';
|
|
7
7
|
import { ValueOptionsTags } from '../../Components/ValueSelector';
|
|
8
8
|
import { StyleComponent } from '../../Components/StyleComponent';
|
|
9
|
-
import DropdownButton from '../../../components/DropdownButton';
|
|
10
9
|
import ObjectFactory from '../../../Utilities/ObjectFactory';
|
|
11
10
|
import { useAdaptable } from '../../AdaptableContext';
|
|
12
11
|
import { StylePreview } from '../../../components/StylePreview';
|
|
13
12
|
import Panel from '../../../components/Panel';
|
|
13
|
+
import { Select } from '../../../components/Select';
|
|
14
14
|
const HighlightStyle = (props) => {
|
|
15
15
|
const adaptable = useAdaptable();
|
|
16
16
|
const options = [
|
|
@@ -28,14 +28,30 @@ const HighlightStyle = (props) => {
|
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
];
|
|
31
|
+
const options2 = [
|
|
32
|
+
{
|
|
33
|
+
label: 'Use Message Type',
|
|
34
|
+
value: 'system',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: 'Custom Style',
|
|
38
|
+
value: 'custom',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
31
41
|
return (React.createElement(Box, { "data-name": props.dataName },
|
|
32
42
|
React.createElement(Flex, null,
|
|
33
43
|
React.createElement(CheckBox, { mr: 2, style: { alignItems: 'flex-start' }, checked: Boolean(props.highlight), onChange: (checked) => {
|
|
34
44
|
props.onChange(checked);
|
|
35
45
|
} }, props.label),
|
|
36
|
-
Boolean(props.highlight) && (React.createElement(
|
|
37
|
-
|
|
38
|
-
|
|
46
|
+
Boolean(props.highlight) && (React.createElement(Select, { options: options2, value: typeof props.highlight === 'boolean' ? 'system' : 'custom', onChange: (value) => {
|
|
47
|
+
if (value === 'system') {
|
|
48
|
+
props.onChange(true);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const initialStyle = ObjectFactory.CreateEmptyStyle();
|
|
52
|
+
props.onChange(initialStyle);
|
|
53
|
+
}
|
|
54
|
+
} }))),
|
|
39
55
|
typeof props.highlight === 'object' && (React.createElement(Panel, { margin: 2 },
|
|
40
56
|
React.createElement(Box, { paddingLeft: 3 },
|
|
41
57
|
React.createElement(StyleComponent, { headless: true, api: adaptable.api, Style: props.highlight, UpdateStyle: (style) => {
|
|
@@ -4,7 +4,7 @@ import { AdaptableAlert } from '../../../PredefinedConfig/Common/AdaptableAlert'
|
|
|
4
4
|
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
5
5
|
import { AlertFormContext } from '../../../types';
|
|
6
6
|
import { AlertType } from '../Utilities/getAlertType';
|
|
7
|
-
|
|
7
|
+
type AlertButtonsEditorProps = {
|
|
8
8
|
AlertButtons: AlertButton<AlertFormContext>[];
|
|
9
9
|
onChange: (buttons: AlertButton<AlertFormContext>[]) => void;
|
|
10
10
|
api: AdaptableApi;
|
|
@@ -3,12 +3,12 @@ import * as React from 'react';
|
|
|
3
3
|
import { sentenceCase } from 'sentence-case';
|
|
4
4
|
import SimpleButton from '../../../components/SimpleButton';
|
|
5
5
|
import Input from '../../../components/Input';
|
|
6
|
-
import DropdownButton from '../../../components/DropdownButton';
|
|
7
6
|
import FormLayout, { FormRow } from '../../../components/FormLayout';
|
|
8
7
|
import { CheckBox } from '../../../components/CheckBox';
|
|
9
8
|
import { cloneObject } from '../../../Utilities/Helpers/Helper';
|
|
10
9
|
import StringExtensions from '../../../Utilities/Extensions/StringExtensions';
|
|
11
10
|
import { AdaptableIconSelector } from '../../Components/AdaptableIconSelector';
|
|
11
|
+
import { Select } from '../../../components/Select';
|
|
12
12
|
export const AlertButtonsEditor = (props) => {
|
|
13
13
|
const { api, adaptableAlert } = props;
|
|
14
14
|
const onChange = (newButtons) => {
|
|
@@ -51,7 +51,7 @@ export const AlertButtonsEditor = (props) => {
|
|
|
51
51
|
}
|
|
52
52
|
return (React.createElement(React.Fragment, null,
|
|
53
53
|
React.createElement(Flex, { flexDirection: "row", alignItems: "center", justifyContent: "space-between" },
|
|
54
|
-
React.createElement(Text, { fontSize: 2, mt: 3, mb: 2 }, "Add buttons to Alert, and Actions to perform when button is clicked"),
|
|
54
|
+
React.createElement(Text, { fontSize: 2, mt: 3, mb: 2 }, "Add buttons to Alert Notification, and set Actions to perform when button is clicked"),
|
|
55
55
|
React.createElement(SimpleButton, { icon: "plus", onClick: () => {
|
|
56
56
|
onChange([
|
|
57
57
|
...(AlertButtons || []),
|
|
@@ -64,7 +64,7 @@ export const AlertButtonsEditor = (props) => {
|
|
|
64
64
|
]);
|
|
65
65
|
} }, "Add")),
|
|
66
66
|
AlertButtons.map((button, index) => {
|
|
67
|
-
var _a, _b
|
|
67
|
+
var _a, _b;
|
|
68
68
|
let buttonStyle = button.ButtonStyle;
|
|
69
69
|
let buttonLabel = button.Label;
|
|
70
70
|
let btnActions = [];
|
|
@@ -136,7 +136,7 @@ export const AlertButtonsEditor = (props) => {
|
|
|
136
136
|
React.createElement(FormLayout, { marginBottom: 2, paddingTop: 2 },
|
|
137
137
|
React.createElement(FormRow, { label: React.createElement(Text, { fontSize: 2, style: { whiteSpace: 'nowrap' } }, "Button Text") },
|
|
138
138
|
React.createElement(Flex, { flexDirection: "row" },
|
|
139
|
-
React.createElement(Input, { value: buttonLabel, style: { width: 80 }, onChange: (e) => {
|
|
139
|
+
React.createElement(Input, { value: buttonLabel, mr: 2, style: { width: 80 }, onChange: (e) => {
|
|
140
140
|
onChange(AlertButtons.map((btn, i) => {
|
|
141
141
|
if (i === index) {
|
|
142
142
|
return Object.assign(Object.assign({}, btn), { Label: e.target.value });
|
|
@@ -144,35 +144,32 @@ export const AlertButtonsEditor = (props) => {
|
|
|
144
144
|
return btn;
|
|
145
145
|
}));
|
|
146
146
|
} }),
|
|
147
|
-
React.createElement(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
StringExtensions.CapitaliseFirstLetter((_b = buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.variant) !== null && _b !== void 0 ? _b : 'raised'))),
|
|
158
|
-
React.createElement(DropdownButton, { columns: ['label'], marginLeft: 2, style: { minWidth: 120 }, items: [
|
|
147
|
+
React.createElement(Box, { mr: 2 },
|
|
148
|
+
React.createElement(Select, { options: ['text', 'outlined', 'raised'].map((variant) => {
|
|
149
|
+
return {
|
|
150
|
+
label: StringExtensions.CapitaliseFirstLetter(variant),
|
|
151
|
+
value: variant,
|
|
152
|
+
};
|
|
153
|
+
}), rederSingleValue: (option) => `Variant: ${option.label}`, value: buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.variant, onChange: (value) => {
|
|
154
|
+
setVariant(value);
|
|
155
|
+
} })),
|
|
156
|
+
React.createElement(Select, { options: [
|
|
159
157
|
{
|
|
160
|
-
label: 'Use Alert Tone',
|
|
158
|
+
label: 'Tone: Use Alert Tone',
|
|
161
159
|
value: 'text',
|
|
162
|
-
onClick: () => setTone(null),
|
|
163
160
|
},
|
|
164
161
|
...['success', 'info', 'error', 'warning', 'accent', 'neutral'].map((tone) => {
|
|
165
162
|
return {
|
|
166
163
|
label: StringExtensions.CapitaliseFirstLetter(tone),
|
|
167
164
|
value: tone,
|
|
168
|
-
onClick: () => setTone(tone),
|
|
169
165
|
};
|
|
170
166
|
}),
|
|
171
|
-
] }
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
167
|
+
], rederSingleValue: (option) => `Tone: ${option.label}`, onChange: (value) => {
|
|
168
|
+
if (value === 'text') {
|
|
169
|
+
setTone(null);
|
|
170
|
+
}
|
|
171
|
+
setTone(value);
|
|
172
|
+
}, value: (_b = buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.tone) !== null && _b !== void 0 ? _b : 'text' }),
|
|
176
173
|
React.createElement(SimpleButton, { icon: "close", tone: "error", disabled: AlertButtons.length <= 1, marginLeft: 1, variant: "text", tooltip: AlertButtons.length <= 1 ? 'Cannot remove last button' : 'Remove button', onClick: () => {
|
|
177
174
|
onChange(AlertButtons.filter((btn) => btn !== button));
|
|
178
175
|
} }))),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { AlertDefinition } from '../../../PredefinedConfig/AlertState';
|
|
3
3
|
import { AlertType } from '../Utilities/getAlertType';
|
|
4
4
|
export declare const renderAlertMessageSummary: () => JSX.Element;
|
|
5
|
-
|
|
5
|
+
type AlertDisplayWizardSectionProps = {
|
|
6
6
|
onChange: (data: AlertDefinition) => void;
|
|
7
7
|
alertType: AlertType;
|
|
8
8
|
};
|
|
@@ -10,7 +10,7 @@ interface AlertPreviewProps extends BoxProps {
|
|
|
10
10
|
focusFirstButton?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare const AlertPreview: React.FunctionComponent<AlertPreviewProps>;
|
|
13
|
-
|
|
13
|
+
type AlertNotificationWizardSectionProps = {
|
|
14
14
|
onChange: (data: AlertDefinition) => void;
|
|
15
15
|
alertType: AlertType;
|
|
16
16
|
};
|
|
@@ -66,7 +66,7 @@ export const AlertNotificationWizardSection = (props) => {
|
|
|
66
66
|
api.alertApi.internalApi.getDefaultAlertNotificationForm();
|
|
67
67
|
}
|
|
68
68
|
props.onChange(newAlertDefinition);
|
|
69
|
-
} }, "
|
|
69
|
+
} }, "Display a Notification when Alert is triggered (with action buttons)"),
|
|
70
70
|
((_b = data.AlertProperties) === null || _b === void 0 ? void 0 : _b.DisplayNotification) ? (typeof data.AlertForm === 'string' ? (React.createElement(Text, { fontSize: 2 }, "Alert buttons cannot be customized because form is dynamically driven")) : (React.createElement(AlertButtonsEditor, { alertType: props.alertType, AlertButtons: (_c = data.AlertForm) === null || _c === void 0 ? void 0 : _c.Buttons, api: api, adaptableAlert: adaptableAlert, onChange: (buttons) => {
|
|
71
71
|
props.onChange(Object.assign(Object.assign({}, data), { AlertForm: Object.assign(Object.assign({}, data.AlertForm), { Buttons: buttons }) }));
|
|
72
72
|
} }))) : null)),
|
|
@@ -59,7 +59,7 @@ export const AlertRulesWizardSection = (props) => {
|
|
|
59
59
|
if (props.alertType === 'RowChange') {
|
|
60
60
|
return React.createElement(RowChangeEditor, { alert: data, onChange: props.onChange });
|
|
61
61
|
}
|
|
62
|
-
return (React.createElement(EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "
|
|
62
|
+
return (React.createElement(EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "AnyChange", data: data, predicateDefs: predicateDefs, enablePredicateColumnId: enablePredicateColumnId, getPredicateDefsForColId: (colId) => getAvailablePredicateDefinitions(api, { ColumnIds: [colId] }, props.alertType), onChange: props.onChange, showAggregation: showAggregation, showObservable: showObservable, showBoolean: showBoolean, showPredicate: showPredicate, descriptions: {
|
|
63
63
|
selectPredicate: 'Create an Alert Rule - to be applied when data changes',
|
|
64
64
|
useBooleanQuery: (React.createElement(React.Fragment, null,
|
|
65
65
|
"Use an BooleanQuery if ",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AlertDefinition } from '../../../PredefinedConfig/AlertState';
|
|
3
3
|
import { AlertType } from '../Utilities/getAlertType';
|
|
4
|
-
|
|
4
|
+
type AlertScopeWizardSectionProps = {
|
|
5
5
|
onChange: (data: AlertDefinition) => void;
|
|
6
6
|
alertType: AlertType;
|
|
7
7
|
};
|
|
@@ -21,7 +21,7 @@ export const AlertScopeWizardSection = (props) => {
|
|
|
21
21
|
// when scope is changed, reset the rule to predicate of any
|
|
22
22
|
// if it was set to a predicate before
|
|
23
23
|
newData.Rule = {
|
|
24
|
-
Predicates: [{ PredicateId: '
|
|
24
|
+
Predicates: [{ PredicateId: 'AnyChange' }],
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
if (newData.Rule.ObservableExpression !== undefined && !api.scopeApi.scopeIsAll(Scope)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AlertType } from '../Utilities/getAlertType';
|
|
3
3
|
export declare const renderAlertTypeSummary: (alertType: AlertType) => JSX.Element;
|
|
4
|
-
|
|
4
|
+
type AlertBehaviourWizardSectionProps = {
|
|
5
5
|
onAlertTypeChange: (alertType: AlertType) => void;
|
|
6
6
|
alertType: AlertType | null;
|
|
7
7
|
};
|
|
@@ -113,7 +113,7 @@ export const AlertWizard = (props) => {
|
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
title: behaviourSpelling,
|
|
116
|
-
details: 'Configure ' + behaviourSpelling + ' for the Alert',
|
|
116
|
+
details: 'Configure ' + behaviourSpelling + 's for the Alert',
|
|
117
117
|
render: () => (React.createElement(Box, { padding: 2 },
|
|
118
118
|
React.createElement(AlertBehaviourWizardSection, { alertType: alertType, onChange: setAlertDefinition }))),
|
|
119
119
|
renderSummary: renderAlertBehaviourWizardSummary,
|
|
@@ -13,7 +13,7 @@ export const isValidAlertRules = (alert, api, context) => {
|
|
|
13
13
|
}
|
|
14
14
|
// boolean expressions may also be saved as named queries
|
|
15
15
|
if (context.namedQuery != false) {
|
|
16
|
-
const isValidName = api.namedQueryApi.
|
|
16
|
+
const isValidName = api.namedQueryApi.isValidNamedQuery(context.namedQuery);
|
|
17
17
|
if (!isValidName.valid) {
|
|
18
18
|
return isValidName.message;
|
|
19
19
|
}
|
|
@@ -5,15 +5,12 @@ import * as SystemRedux from '../../Redux/ActionsReducers/SystemRedux';
|
|
|
5
5
|
import { PanelWithImage } from '../Components/Panels/PanelWithImage';
|
|
6
6
|
import { AdaptablePopover } from '../AdaptablePopover';
|
|
7
7
|
import { StringExtensions } from '../../Utilities/Extensions/StringExtensions';
|
|
8
|
-
import { UIHelper } from '../UIHelper';
|
|
9
8
|
import { PreviewResultsPanel } from '../Components/PreviewResultsPanel';
|
|
10
9
|
import { PreviewHelper } from '../../Utilities/Helpers/PreviewHelper';
|
|
11
10
|
import { ColumnValueSelector } from '../Components/Selectors/ColumnValueSelector';
|
|
12
|
-
import {
|
|
13
|
-
import { Box, Flex } from 'rebass';
|
|
11
|
+
import { Flex } from 'rebass';
|
|
14
12
|
import SimpleButton from '../../components/SimpleButton';
|
|
15
13
|
import HelpBlock from '../../components/HelpBlock';
|
|
16
|
-
import AdaptableInput from '../Components/AdaptableInput';
|
|
17
14
|
class BulkUpdatePopupComponent extends React.Component {
|
|
18
15
|
constructor(props) {
|
|
19
16
|
super(props);
|
|
@@ -47,12 +44,9 @@ class BulkUpdatePopupComponent extends React.Component {
|
|
|
47
44
|
return (React.createElement(PanelWithImage, { bodyProps: { padding: 2 }, flex: 1, glyphicon: this.props.moduleInfo.Glyph, header: this.props.moduleInfo.FriendlyName, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), variant: "primary" },
|
|
48
45
|
col.dataType == 'Date' ? (React.createElement(React.Fragment, null,
|
|
49
46
|
React.createElement(HelpBlock, { marginTop: 2, marginBottom: 2 }, "Enter a date value. Alternatively, tick the checkbox and select from an existing column value."),
|
|
50
|
-
React.createElement(Box, null,
|
|
51
|
-
React.createElement(CheckBox, { marginLeft: 2, onChange: (checked) => this.onUseColumnValuesSelectorChanged(checked), checked: this.state.useSelector },
|
|
52
|
-
' ',
|
|
53
|
-
"Select from existing column values")),
|
|
54
47
|
React.createElement(Flex, { padding: 2, flexDirection: "row", alignItems: "center" },
|
|
55
|
-
React.createElement(Flex, { alignItems: "center", flexDirection: "row", flex: 1, marginRight: 2 },
|
|
48
|
+
React.createElement(Flex, { alignItems: "center", flexDirection: "row", flex: 1, marginRight: 2 },
|
|
49
|
+
React.createElement(ColumnValueSelector, { selectedGridCells: this.props.SelectedGridCells, selectedColumnValue: this.props.BulkUpdateValue, selectedColumn: col, api: this.props.api, onColumnValueChange: (values) => this.onColumnValueSelectedChanged(values), allowNew: false, style: { width: '100%', maxWidth: 'inherit' } })),
|
|
56
50
|
React.createElement(SimpleButton, { disabled: StringExtensions.IsNullOrEmpty(this.props.BulkUpdateValue) ||
|
|
57
51
|
this.props.PreviewInfo.previewValidationSummary.validationResult == 'All', onClick: () => {
|
|
58
52
|
this.onApplyClick();
|
|
@@ -46,7 +46,7 @@ class BulkUpdateViewPanelComponent extends React.Component {
|
|
|
46
46
|
fill: 'currentColor',
|
|
47
47
|
};
|
|
48
48
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
49
|
-
return (React.createElement(Flex, { flexDirection: "row", className: join(shouldDisable ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__BulkUpdate__wrap`), flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
49
|
+
return (React.createElement(Flex, { minWidth: 150, flexDirection: "row", className: join(shouldDisable ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__BulkUpdate__wrap`), flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
50
50
|
React.createElement(Flex, null,
|
|
51
51
|
React.createElement(ColumnValueSelector, { selectedGridCells: this.props.SelectedGridCells, newLabel: "New", existingLabel: "Existing", dropdownButtonProps: {
|
|
52
52
|
listMinWidth: 160,
|
|
@@ -82,7 +82,7 @@ class BulkUpdateViewPanelComponent extends React.Component {
|
|
|
82
82
|
}
|
|
83
83
|
onApplyBulkUpdate() {
|
|
84
84
|
this.props.onRunBulkUpdate();
|
|
85
|
-
this.props.onBulkUpdateValueChange(
|
|
85
|
+
this.props.onBulkUpdateValueChange(undefined);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
function mapStateToProps(state, ownProps) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
3
3
|
import { CalculatedColumn } from '../../../PredefinedConfig/CalculatedColumnState';
|
|
4
|
-
export
|
|
4
|
+
export type CalculatedColumnDefinitionWizardSectionProps = {
|
|
5
5
|
onChange: (data: CalculatedColumn) => void;
|
|
6
6
|
isEdit: boolean;
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { CalculatedColumn } from '../../../types';
|
|
3
3
|
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
4
4
|
import { ExpressionType } from './CalculatedColumnWizard';
|
|
5
|
-
export
|
|
5
|
+
export type CalculatedColumnExpressionWizardSectionProps = {
|
|
6
6
|
onChange: (data: CalculatedColumn) => void;
|
|
7
7
|
expressionType: ExpressionType;
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CalculatedColumn } from '../../../PredefinedConfig/CalculatedColumnState';
|
|
3
|
-
export
|
|
3
|
+
export type CalculatedColumnSettingsWizardSectionProps = {
|
|
4
4
|
onChange: (data: CalculatedColumn) => void;
|
|
5
5
|
isEdit: boolean;
|
|
6
6
|
};
|
|
@@ -4,12 +4,12 @@ import { Box, Flex } from 'rebass';
|
|
|
4
4
|
import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
|
|
5
5
|
import FormLayout, { FormRow } from '../../../components/FormLayout';
|
|
6
6
|
import Input from '../../../components/Input';
|
|
7
|
-
import DropdownButton from '../../../components/DropdownButton';
|
|
8
7
|
import ErrorBox from '../../../components/ErrorBox';
|
|
9
8
|
import { Tabs } from '../../../components/Tabs';
|
|
10
9
|
import { ValueOptionsTags } from '../../Components/ValueSelector';
|
|
11
10
|
import { SpecialColumnSettingsWizardStep } from '../../SpecialColumnSettingsWizardStep';
|
|
12
11
|
import { getCalculatedColumnSettingsTags } from '../Utilities/getCalculatedColumnSettingsTags';
|
|
12
|
+
import { Select } from '../../../components/Select';
|
|
13
13
|
export const renderCalculatedColumnSettingsSummary = (data) => {
|
|
14
14
|
const options = getCalculatedColumnSettingsTags(data.CalculatedColumnSettings);
|
|
15
15
|
return (React.createElement(Box, { fontSize: 2 },
|
|
@@ -33,13 +33,7 @@ export const CalculatedColumnSettingsWizardSection = (props) => {
|
|
|
33
33
|
};
|
|
34
34
|
const validCheck = isValidCalculatedColumnSettings(data);
|
|
35
35
|
const ErrorMessage = validCheck === true ? null : validCheck;
|
|
36
|
-
|
|
37
|
-
{ value: 'Number', label: 'Number' },
|
|
38
|
-
{ value: 'String', label: 'String' },
|
|
39
|
-
{ value: 'Date', label: 'Date' },
|
|
40
|
-
{ value: 'Boolean', label: 'Boolean' },
|
|
41
|
-
];
|
|
42
|
-
let { DataType: dataType } = (_a = data.CalculatedColumnSettings) !== null && _a !== void 0 ? _a : {};
|
|
36
|
+
const { DataType: dataType } = (_a = data.CalculatedColumnSettings) !== null && _a !== void 0 ? _a : {};
|
|
43
37
|
const { Width } = (_b = data.CalculatedColumnSettings) !== null && _b !== void 0 ? _b : {};
|
|
44
38
|
const handleSpecialColumnSettingsChange = (settings) => {
|
|
45
39
|
props.onChange(Object.assign(Object.assign({}, data), { CalculatedColumnSettings: Object.assign(Object.assign({}, data.CalculatedColumnSettings), settings) }));
|
|
@@ -50,6 +44,12 @@ export const CalculatedColumnSettingsWizardSection = (props) => {
|
|
|
50
44
|
handleSpecialColumnSettingsChange(Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.CalculatedColumnSettings), { DataType: computedDataType }));
|
|
51
45
|
}
|
|
52
46
|
}, []);
|
|
47
|
+
const options = [
|
|
48
|
+
{ value: 'Number', label: 'Number' },
|
|
49
|
+
{ value: 'String', label: 'String' },
|
|
50
|
+
{ value: 'Date', label: 'Date' },
|
|
51
|
+
{ value: 'Boolean', label: 'Boolean' },
|
|
52
|
+
];
|
|
53
53
|
return (React.createElement(Box, { "data-name": 'calculated-column-settings' },
|
|
54
54
|
React.createElement(Tabs, { autoFocus: false },
|
|
55
55
|
React.createElement(Tabs.Tab, null, "Column Settings"),
|
|
@@ -57,16 +57,7 @@ export const CalculatedColumnSettingsWizardSection = (props) => {
|
|
|
57
57
|
React.createElement(Flex, { flexDirection: "row" },
|
|
58
58
|
React.createElement(FormLayout, null,
|
|
59
59
|
React.createElement(FormRow, { label: "Data Type" },
|
|
60
|
-
React.createElement(
|
|
61
|
-
width: '300px',
|
|
62
|
-
whiteSpace: 'normal',
|
|
63
|
-
overflow: 'hidden',
|
|
64
|
-
maxWidth: 'inherit',
|
|
65
|
-
}, placeholder: "Select Data Type", showClearButton: true, onClear: () => handleDataTypeChange(null), columns: ['label'], items: options.map((item) => ({
|
|
66
|
-
value: item.value,
|
|
67
|
-
label: item.label,
|
|
68
|
-
onClick: () => handleDataTypeChange(item.value),
|
|
69
|
-
})) }, dataType ? dataType : 'Select Data Type')),
|
|
60
|
+
React.createElement(Select, { "data-name": "column-type", placeholder: "Select Data Type", options: options, value: dataType, onChange: (value) => handleDataTypeChange(value) })),
|
|
70
61
|
React.createElement(FormRow, { label: "Width" },
|
|
71
62
|
React.createElement(Input, { "data-name": "column-width", type: "number", width: 300, value: Width || '', onChange: (e) => handleSpecialColumnSettingsChange({
|
|
72
63
|
Width: Number(e.target.value),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ExpressionType } from './CalculatedColumnWizard';
|
|
3
|
-
|
|
3
|
+
type CalculatedColumnTypeWizardSectionProps = {
|
|
4
4
|
onTypeChange: (type: ExpressionType) => void;
|
|
5
5
|
type: ExpressionType;
|
|
6
6
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { CalculatedColumn } from '../../../types';
|
|
3
3
|
import { AdaptableOnePageWizardProps } from '../../Wizard/Interface/IAdaptableWizard';
|
|
4
4
|
export declare const calculatedColumnTypes: readonly ["ScalarExpression", "AggregatedScalarExpression", "CumulativeAggregatedExpression", "QuantileAggregatedExpression"];
|
|
5
|
-
export
|
|
5
|
+
export type ExpressionType = typeof calculatedColumnTypes[number];
|
|
6
6
|
export interface CalculatedColumnWizardProps extends AdaptableOnePageWizardProps<CalculatedColumn> {
|
|
7
7
|
}
|
|
8
8
|
export declare const CalculatedColumnWizard: (props: CalculatedColumnWizardProps) => JSX.Element;
|
|
@@ -81,8 +81,8 @@ export const CalculatedColumnWizard = (props) => {
|
|
|
81
81
|
},
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
title: '
|
|
85
|
-
details: 'Specify Column details',
|
|
84
|
+
title: 'Details',
|
|
85
|
+
details: 'Specify Calculated Column details',
|
|
86
86
|
isValid: isValidCalculatedColumnDefinition,
|
|
87
87
|
renderSummary: renderCalculatedColumnDefinitionSummary,
|
|
88
88
|
render: () => {
|
|
@@ -7,5 +7,9 @@ export const CellSummaryStatusBarSubPanelPopover = () => {
|
|
|
7
7
|
return cellSummary && cellSummary.Count ? (summary) : (
|
|
8
8
|
// the extra wrapper is added because the empty text is rendered
|
|
9
9
|
// inside a EmptyContent, hat has position absolute
|
|
10
|
-
React.createElement(
|
|
10
|
+
(React.createElement(
|
|
11
|
+
"div",
|
|
12
|
+
{ style: { position: 'relative', width: '100%', height: 80 } },
|
|
13
|
+
summary
|
|
14
|
+
)));
|
|
11
15
|
};
|
|
@@ -5,11 +5,11 @@ import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
|
5
5
|
import { CellSummaryPopover } from './CellSummaryPopover';
|
|
6
6
|
import { Flex } from 'rebass';
|
|
7
7
|
import * as GeneralConstants from '../../Utilities/Constants/GeneralConstants';
|
|
8
|
-
import DropdownButton from '../../components/DropdownButton';
|
|
9
8
|
import { AdaptablePopover } from '../AdaptablePopover';
|
|
10
9
|
import * as SystemRedux from '../../Redux/ActionsReducers/SystemRedux';
|
|
11
10
|
import * as GridRedux from '../../Redux/ActionsReducers/GridRedux';
|
|
12
11
|
import { connect } from 'react-redux';
|
|
12
|
+
import { Select } from '../../components/Select';
|
|
13
13
|
class CellSummaryViewPanelComponent extends React.Component {
|
|
14
14
|
constructor(props) {
|
|
15
15
|
super(props);
|
|
@@ -31,7 +31,7 @@ class CellSummaryViewPanelComponent extends React.Component {
|
|
|
31
31
|
let operationMenuItems = EnumExtensions.getNames(SummaryOperation).map((summaryOperation, index) => {
|
|
32
32
|
return {
|
|
33
33
|
label: summaryOperation,
|
|
34
|
-
|
|
34
|
+
value: summaryOperation,
|
|
35
35
|
};
|
|
36
36
|
});
|
|
37
37
|
const cellSummaryOperationDefinitions = this.props.api.cellSummaryApi.getCellSummaryOperationDefinitions();
|
|
@@ -39,7 +39,7 @@ class CellSummaryViewPanelComponent extends React.Component {
|
|
|
39
39
|
? []
|
|
40
40
|
: cellSummaryOperationDefinitions.map((operationDefinition) => {
|
|
41
41
|
return {
|
|
42
|
-
|
|
42
|
+
value: operationDefinition.operationName,
|
|
43
43
|
label: operationDefinition.operationName,
|
|
44
44
|
};
|
|
45
45
|
});
|
|
@@ -60,8 +60,8 @@ class CellSummaryViewPanelComponent extends React.Component {
|
|
|
60
60
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
61
61
|
return (React.createElement(Flex, { flexDirection: "row", className: shouldDisable ? GeneralConstants.READ_ONLY_STYLE : `ab-${elementType}__CellSummary__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
62
62
|
React.createElement(Flex, { flex: 1 },
|
|
63
|
-
React.createElement(
|
|
64
|
-
React.createElement(Flex, { alignItems: "center" }, React.createElement(React.Fragment, null,
|
|
63
|
+
React.createElement(Select, { style: { width: '100%' }, className: `ab-${elementType}__CellSummary__select`, disabled: shouldDisable, options: [...operationMenuItems, ...operationDefinitions], onChange: (x) => this.props.onCellSummaryOperationChange(x), value: this.props.CellSummaryOperation })),
|
|
64
|
+
React.createElement(Flex, { alignItems: "center", ml: 2 }, React.createElement(React.Fragment, null,
|
|
65
65
|
renderOperationValue(),
|
|
66
66
|
this.props.CellSummary != null && this.props.CellSummary.Count > 0 && (React.createElement(AdaptablePopover, { popoverMaxWidth: 360, className: "ab-ToolPanel__CellSummary__info", bodyText: [cellSummaryPopover], useButton: true, showEvent: 'focus', hideEvent: "blur" }))))));
|
|
67
67
|
}
|