@adaptabletools/adaptable 17.0.0-canary.0 → 17.0.0-canary.1
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 +10 -108
- 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 +192 -189
- package/src/agGrid/AdaptableLogger.js +14 -14
- 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 +15 -13
- 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/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
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
3
|
+
import * as SystemRedux from '../../Redux/ActionsReducers/SystemRedux';
|
|
4
|
+
import { GridFilterModuleId, NamedQueryModuleId } from '../../Utilities/Constants/ModuleConstants';
|
|
5
|
+
import StringExtensions from '../../Utilities/Extensions/StringExtensions';
|
|
6
|
+
import { useAdaptable } from '../AdaptableContext';
|
|
7
|
+
import * as PopupRedux from '../../Redux/ActionsReducers/PopupRedux';
|
|
8
|
+
export const useGridFilterExpressionEditor = () => {
|
|
9
|
+
var _a, _b, _c;
|
|
10
|
+
const adaptable = useAdaptable();
|
|
11
|
+
const dispatch = useDispatch();
|
|
12
|
+
const gridFilter = useSelector((state) => {
|
|
13
|
+
var _a;
|
|
14
|
+
return (_a = state.Layout.Layouts.find((l) => l.Name == state.Layout.CurrentLayout)) === null || _a === void 0 ? void 0 : _a.GridFilter;
|
|
15
|
+
});
|
|
16
|
+
const [isAdaptableReady, setIsAdaptableReady] = React.useState(false);
|
|
17
|
+
const [expression, setExpression] = React.useState(() => {
|
|
18
|
+
return adaptable.api.gridFilterApi.getCurrentGridFilterExpression();
|
|
19
|
+
});
|
|
20
|
+
const namedQueries = (_a = useSelector((state) => state.NamedQuery.NamedQueries)) !== null && _a !== void 0 ? _a : [];
|
|
21
|
+
const cachedQueries = (_b = useSelector((state) => state.System.CachedQueries)) !== null && _b !== void 0 ? _b : [];
|
|
22
|
+
const isSuspended = (_c = gridFilter === null || gridFilter === void 0 ? void 0 : gridFilter.IsSuspended) !== null && _c !== void 0 ? _c : false;
|
|
23
|
+
const onAddCachedQuery = (cachedQuery) => {
|
|
24
|
+
dispatch(SystemRedux.SystemCachedQueryAdd(cachedQuery));
|
|
25
|
+
};
|
|
26
|
+
React.useEffect(() => {
|
|
27
|
+
adaptable.api.eventApi.on('AdaptableReady', () => {
|
|
28
|
+
setIsAdaptableReady(true);
|
|
29
|
+
});
|
|
30
|
+
}, []);
|
|
31
|
+
React.useEffect(() => {
|
|
32
|
+
if ((gridFilter === null || gridFilter === void 0 ? void 0 : gridFilter.Expression) != expression) {
|
|
33
|
+
setExpression(gridFilter === null || gridFilter === void 0 ? void 0 : gridFilter.Expression);
|
|
34
|
+
}
|
|
35
|
+
}, [gridFilter === null || gridFilter === void 0 ? void 0 : gridFilter.Expression]);
|
|
36
|
+
const isExpressionValid = expression == '' ||
|
|
37
|
+
adaptable.api.internalApi
|
|
38
|
+
.getQueryLanguageService()
|
|
39
|
+
.validateBoolean(expression, NamedQueryModuleId).isValid;
|
|
40
|
+
const isExpressionNamedQuery = namedQueries.find((sq) => sq.BooleanExpression == expression) != null;
|
|
41
|
+
let availableColumns = adaptable.api.columnApi.getColumns().map((col) => {
|
|
42
|
+
return {
|
|
43
|
+
label: col.friendlyName,
|
|
44
|
+
onClick: () => setExpression(expression + `[${col.columnId}]`),
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
const clearQuery = () => {
|
|
48
|
+
adaptable.api.gridFilterApi.clearGridFilter();
|
|
49
|
+
setExpression('');
|
|
50
|
+
};
|
|
51
|
+
const runQuery = (newExpression = expression) => {
|
|
52
|
+
if (StringExtensions.IsNullOrEmpty(newExpression) &&
|
|
53
|
+
StringExtensions.IsNotNullOrEmpty(gridFilter === null || gridFilter === void 0 ? void 0 : gridFilter.Expression)) {
|
|
54
|
+
// user pressed enter key with an empty input => clear existing current query
|
|
55
|
+
adaptable.api.gridFilterApi.setGridFilterExpression('');
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (!adaptable.api.internalApi
|
|
59
|
+
.getQueryLanguageService()
|
|
60
|
+
.validateBoolean(newExpression, NamedQueryModuleId).isValid) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (StringExtensions.IsNotNullOrEmpty(expression)) {
|
|
64
|
+
let cachedQuery = {
|
|
65
|
+
expression: expression,
|
|
66
|
+
time: new Date(),
|
|
67
|
+
};
|
|
68
|
+
if (cachedQuery) {
|
|
69
|
+
onAddCachedQuery(cachedQuery);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
adaptable.api.gridFilterApi.setGridFilterExpression(newExpression);
|
|
73
|
+
};
|
|
74
|
+
const gridFilterAccessLevel = React.useMemo(() => {
|
|
75
|
+
return adaptable.api.internalApi
|
|
76
|
+
.getEntitlementService()
|
|
77
|
+
.getEntitlementAccessLevelForModule(GridFilterModuleId);
|
|
78
|
+
}, []);
|
|
79
|
+
const namedQueryModuleAccessLevel = adaptable.api.internalApi
|
|
80
|
+
.getEntitlementService()
|
|
81
|
+
.getEntitlementAccessLevelForModule(NamedQueryModuleId);
|
|
82
|
+
const onShowNamedQueries = (value, popup) => dispatch(PopupRedux.PopupShowScreen(NamedQueryModuleId, popup, {
|
|
83
|
+
action: 'New',
|
|
84
|
+
source: 'Other',
|
|
85
|
+
value,
|
|
86
|
+
}));
|
|
87
|
+
const saveQuery = () => {
|
|
88
|
+
const namedqueryPopuName = adaptable.api.internalApi
|
|
89
|
+
.getModuleService()
|
|
90
|
+
.getModuleById(NamedQueryModuleId).moduleInfo.Popup;
|
|
91
|
+
onShowNamedQueries(expression, namedqueryPopuName);
|
|
92
|
+
};
|
|
93
|
+
const suspendGridFilter = () => {
|
|
94
|
+
adaptable.api.gridFilterApi.suspendGridFilter();
|
|
95
|
+
};
|
|
96
|
+
const unSuspendGridFilter = () => {
|
|
97
|
+
adaptable.api.gridFilterApi.unSuspendGridFilter();
|
|
98
|
+
};
|
|
99
|
+
return {
|
|
100
|
+
namedQueryModuleAccessLevel,
|
|
101
|
+
cachedQueries,
|
|
102
|
+
expression,
|
|
103
|
+
setExpression,
|
|
104
|
+
isExpressionNamedQuery,
|
|
105
|
+
isExpressionValid,
|
|
106
|
+
isSuspended,
|
|
107
|
+
gridFilter,
|
|
108
|
+
isAdaptableReady,
|
|
109
|
+
namedQueries,
|
|
110
|
+
onAddCachedQuery,
|
|
111
|
+
availableColumns,
|
|
112
|
+
runQuery,
|
|
113
|
+
clearQuery,
|
|
114
|
+
onExpand: () => adaptable.api.gridFilterApi.openExpressionEditorForGridFilter(expression),
|
|
115
|
+
saveQuery,
|
|
116
|
+
suspendGridFilter,
|
|
117
|
+
unSuspendGridFilter,
|
|
118
|
+
setGridFilterExpression: (expression) => {
|
|
119
|
+
adaptable.api.gridFilterApi.setGridFilterExpression(expression);
|
|
120
|
+
},
|
|
121
|
+
gridFilterAccessLevel,
|
|
122
|
+
};
|
|
123
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useAdaptable } from '../AdaptableContext';
|
|
2
|
+
export const useGridFilterOptionsForExpressionEditorProps = () => {
|
|
3
|
+
const adaptable = useAdaptable();
|
|
4
|
+
const gridfilterOptions = adaptable.api.optionsApi.getGridFilterOptions();
|
|
5
|
+
switch (gridfilterOptions.availableFilterEditors) {
|
|
6
|
+
case 'Both':
|
|
7
|
+
return {
|
|
8
|
+
showQueryBuilder: true,
|
|
9
|
+
showExpressionEditor: true,
|
|
10
|
+
};
|
|
11
|
+
case 'QueryBuilder':
|
|
12
|
+
return {
|
|
13
|
+
showQueryBuilder: true,
|
|
14
|
+
showExpressionEditor: false,
|
|
15
|
+
};
|
|
16
|
+
case 'ExpressionEditor':
|
|
17
|
+
return {
|
|
18
|
+
showQueryBuilder: false,
|
|
19
|
+
showExpressionEditor: true,
|
|
20
|
+
};
|
|
21
|
+
default:
|
|
22
|
+
return {
|
|
23
|
+
showQueryBuilder: true,
|
|
24
|
+
showExpressionEditor: true,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Flex } from 'rebass';
|
|
3
|
-
import version from '../../../../
|
|
3
|
+
import { version } from '../../../../package.json';
|
|
4
4
|
import Panel from '../../../components/Panel';
|
|
5
5
|
import { Tabs } from '../../../components/Tabs';
|
|
6
6
|
import ArrayExtensions from '../../../Utilities/Extensions/ArrayExtensions';
|
|
@@ -24,6 +24,7 @@ export const GridInfoPopup = (props) => {
|
|
|
24
24
|
.getFreeTextColumns()
|
|
25
25
|
.map((c) => c.ColumnId);
|
|
26
26
|
const columnFilterDescription = props.api.columnFilterApi.internalApi.columnFiltersToString(props.api.columnFilterApi.getColumnFilters());
|
|
27
|
+
const gridFilterExpression = props.api.gridFilterApi.getCurrentGridFilterExpression();
|
|
27
28
|
const sorts = ArrayExtensions.IsNotNullOrEmpty(props.api.gridApi.getColumnSorts())
|
|
28
29
|
? props.api.gridApi.getColumnSorts().map((gs) => {
|
|
29
30
|
return props.api.columnApi.getFriendlyNameForColumnId(gs.ColumnId) + ': ' + gs.SortOrder;
|
|
@@ -35,6 +36,7 @@ export const GridInfoPopup = (props) => {
|
|
|
35
36
|
}
|
|
36
37
|
returnRows.push(createReadOnlyColItem(colItems, 'Sorted Columns', ArrayExtensions.IsNotNullOrEmpty(sorts) ? sorts.join('; ') : 'None'));
|
|
37
38
|
returnRows.push(createReadOnlyColItem(colItems, 'Column Filters', columnFilterDescription));
|
|
39
|
+
returnRows.push(createReadOnlyColItem(colItems, 'Grid Filter', gridFilterExpression));
|
|
38
40
|
returnRows.push(createReadOnlyColItem(colItems, 'All Rows', props.api.gridApi.getRowCount()));
|
|
39
41
|
returnRows.push(createReadOnlyColItem(colItems, 'Visible Rows', props.api.gridApi.getVisibleRowCount()));
|
|
40
42
|
returnRows.push(createReadOnlyColItem(colItems, 'Selected Rows', selectedRowInfo === null || selectedRowInfo === void 0 ? void 0 : selectedRowInfo.gridRows.length));
|
|
@@ -68,8 +70,8 @@ export const GridInfoPopup = (props) => {
|
|
|
68
70
|
React.createElement(Flex, { flexDirection: "column", flex: 1, height: "100%" },
|
|
69
71
|
React.createElement(Panel, { flex: 1 },
|
|
70
72
|
React.createElement(Tabs, null,
|
|
71
|
-
React.createElement(Tabs.Tab, null, "
|
|
72
|
-
React.createElement(Tabs.Tab, null, "
|
|
73
|
+
React.createElement(Tabs.Tab, null, "Grid Summary"),
|
|
74
|
+
React.createElement(Tabs.Tab, null, "Config"),
|
|
73
75
|
React.createElement(Tabs.Content, null,
|
|
74
76
|
React.createElement(AdaptableObjectCollection, { margin: 2, colItems: propValueColItems, items: gridSummaries })),
|
|
75
77
|
React.createElement(Tabs.Content, null,
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { connect } from 'react-redux';
|
|
3
3
|
import AdaptableHelper from '../../Utilities/Helpers/AdaptableHelper';
|
|
4
4
|
import { Flex } from 'rebass';
|
|
5
|
-
import DropdownButton from '../../components/DropdownButton';
|
|
6
5
|
import join from '../../components/utils/join';
|
|
7
6
|
import * as GeneralConstants from '../../Utilities/Constants/GeneralConstants';
|
|
8
7
|
import { ButtonSave } from '../Components/Buttons/ButtonSave';
|
|
@@ -12,6 +11,7 @@ import { ButtonDelete } from '../Components/Buttons/ButtonDelete';
|
|
|
12
11
|
import { ButtonClone } from '../Components/Buttons/ButtonClone';
|
|
13
12
|
import * as GridRedux from '../../Redux/ActionsReducers/GridRedux';
|
|
14
13
|
import * as LayoutRedux from '../../Redux/ActionsReducers/LayoutRedux';
|
|
14
|
+
import { Select } from '../../components/Select';
|
|
15
15
|
export const COMPONENT_LAYOUT_POPUP_NAME = 'LayoutEditorStandalonePopup';
|
|
16
16
|
class LayoutViewPanelComponent extends React.Component {
|
|
17
17
|
render() {
|
|
@@ -27,7 +27,7 @@ class LayoutViewPanelComponent extends React.Component {
|
|
|
27
27
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
28
28
|
return (React.createElement(Flex, { flexDirection: "row", className: `ab-${elementType}__Layout__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
29
29
|
React.createElement(Flex, { flex: 1 },
|
|
30
|
-
React.createElement(
|
|
30
|
+
React.createElement(Select, { style: { width: '100%' }, options: availableLayoutOptions, className: `ab-${elementType}__Layout__select`, value: layoutEntity ? layoutEntity.Name : null, onChange: (layout) => this.props.onSelectLayout(layout) })),
|
|
31
31
|
React.createElement(Flex, { flexDirection: "row", className: join(this.props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__Layout__wrap`) },
|
|
32
32
|
isManualSaveLayout && (React.createElement(ButtonSave, { className: `ab-${elementType}__Layout__save`, onClick: () => this.onSaveLayout(), tooltip: "Save Changes to Current Layout", disabled: !this.props.CanSave, accessLevel: accessLevel })),
|
|
33
33
|
React.createElement(ButtonEdit, { onClick: () => this.props.api.layoutApi.showLayoutEditor(layoutEntity.Name), tooltip: "Edit Layout", className: `ab-${elementType}__Layout__edit`, accessLevel: accessLevel }),
|
|
@@ -59,7 +59,8 @@ function mapDispatchToProps(dispatch) {
|
|
|
59
59
|
onSelectLayout: (layoutName) => dispatch(LayoutRedux.LayoutSelect(layoutName)),
|
|
60
60
|
onSaveLayout: (layout) => {
|
|
61
61
|
dispatch(LayoutRedux.LayoutSave(layout));
|
|
62
|
-
|
|
62
|
+
// Cannot be se to null, because it needs to be up to date when it is updated
|
|
63
|
+
dispatch(GridRedux.LayoutUpdateCurrentDraft(layout));
|
|
63
64
|
},
|
|
64
65
|
};
|
|
65
66
|
}
|
|
@@ -15,7 +15,8 @@ export const SaveLayoutButton = () => {
|
|
|
15
15
|
const isManualSaveLayout = !adaptable.api.layoutApi.shouldAutoSaveLayouts();
|
|
16
16
|
const handleSave = React.useCallback((layout) => {
|
|
17
17
|
dispatch(LayoutRedux.LayoutSave(layout));
|
|
18
|
-
|
|
18
|
+
// Cannot be se to null, because it needs to be up to date when it is updated
|
|
19
|
+
dispatch(GridRedux.LayoutUpdateCurrentDraft(layout));
|
|
19
20
|
}, []);
|
|
20
21
|
const isSaveEnabled = currentDraftLayout && !adaptable.api.layoutApi.internalApi.areDraftAndCurrentLayoutEqual();
|
|
21
22
|
if (!isManualSaveLayout) {
|
|
@@ -13,6 +13,7 @@ import { RowGroupingSection, RowGroupingSectionSummary } from './sections/RowGro
|
|
|
13
13
|
import { AggregationsSection, AggregationsSectionSummary, isAggregationsSectionValid, } from './sections/AggregationsSection';
|
|
14
14
|
import { SortSection, SortSectionSummary } from './sections/SortSection';
|
|
15
15
|
import { FilterSection, FilterSectionSummary, isColumnFiltersValid, } from './sections/FilterSection';
|
|
16
|
+
import { GridFilterSection, GridFilterSectionSummary, isGridFiltersValid, } from './sections/GridFilterSection';
|
|
16
17
|
export const LayoutWizard = (props) => {
|
|
17
18
|
var _a, _b;
|
|
18
19
|
const dispatch = useDispatch();
|
|
@@ -131,6 +132,15 @@ export const LayoutWizard = (props) => {
|
|
|
131
132
|
render: () => (React.createElement(Box, { p: 2, style: { height: '100%' } },
|
|
132
133
|
React.createElement(FilterSection, { onChange: (newLayout) => setLayout(newLayout) }))),
|
|
133
134
|
},
|
|
135
|
+
{
|
|
136
|
+
title: 'Grid Filter',
|
|
137
|
+
isVisible: () => layoutSupportedFeatures.GridFilter,
|
|
138
|
+
isValid: (layout) => isGridFiltersValid(layout, adaptable.api),
|
|
139
|
+
details: 'View Grid Filter',
|
|
140
|
+
renderSummary: () => React.createElement(GridFilterSectionSummary, null),
|
|
141
|
+
render: () => (React.createElement(Box, { p: 2, style: { height: '100%' } },
|
|
142
|
+
React.createElement(GridFilterSection, { onChange: (newLayout) => setLayout(newLayout) }))),
|
|
143
|
+
},
|
|
134
144
|
'-',
|
|
135
145
|
{
|
|
136
146
|
details: 'Review your Layout',
|
|
@@ -8,13 +8,13 @@ import { useOnePageAdaptableWizardContext } from '../../../Wizard/OnePageAdaptab
|
|
|
8
8
|
import { getLayoutFilterViewItems } from '../../../../Strategy/Utilities/Layout/getLayoutFilterViewItems';
|
|
9
9
|
import { Tag } from '../../../../components/Tag';
|
|
10
10
|
import { PredicateEditor } from '../../../Components/PredicateEditor/PredicateEditor';
|
|
11
|
-
import DropdownButton from '../../../../components/DropdownButton';
|
|
12
11
|
import FormLayout, { FormRow } from '../../../../components/FormLayout';
|
|
12
|
+
import { ColumnSelector } from '../../../Components/Selectors/ColumnSelector';
|
|
13
13
|
export const isColumnFiltersValid = (layout) => {
|
|
14
14
|
var _a, _b;
|
|
15
15
|
const invalidColumnFilters = (_b = ((_a = layout.ColumnFilters) !== null && _a !== void 0 ? _a : [])) === null || _b === void 0 ? void 0 : _b.filter((columnFilter) => { var _a; return !((_a = columnFilter === null || columnFilter === void 0 ? void 0 : columnFilter.Predicate) === null || _a === void 0 ? void 0 : _a.PredicateId); });
|
|
16
16
|
if (invalidColumnFilters.length > 0) {
|
|
17
|
-
return 'Please select a
|
|
17
|
+
return 'Please select a Predicate for each Column Filter';
|
|
18
18
|
}
|
|
19
19
|
return true;
|
|
20
20
|
};
|
|
@@ -22,7 +22,7 @@ export const FilterSectionSummary = () => {
|
|
|
22
22
|
const { data: layout } = useOnePageAdaptableWizardContext();
|
|
23
23
|
const adaptable = useAdaptable();
|
|
24
24
|
const fitlerViewItems = getLayoutFilterViewItems(layout, adaptable.api);
|
|
25
|
-
return (React.createElement(Box, null, fitlerViewItems.values.length ? (fitlerViewItems.values.map((value) => (React.createElement(Tag, { key: value, mb: 1, mr: 1 }, value)))) : (React.createElement(Tag, null, "No Filters"))));
|
|
25
|
+
return (React.createElement(Box, null, fitlerViewItems.values.length ? (fitlerViewItems.values.map((value) => (React.createElement(Tag, { key: value, mb: 1, mr: 1 }, value)))) : (React.createElement(Tag, null, "No Column Filters"))));
|
|
26
26
|
};
|
|
27
27
|
export const FilterSection = (props) => {
|
|
28
28
|
var _a;
|
|
@@ -39,30 +39,28 @@ export const FilterSection = (props) => {
|
|
|
39
39
|
}, [layout.ColumnFilters]);
|
|
40
40
|
const columnsOptions = React.useMemo(() => adaptable.api.columnApi
|
|
41
41
|
.getFilterableColumns()
|
|
42
|
-
.filter(
|
|
43
|
-
// filter out columns with filters already
|
|
44
|
-
(abColumn) => {
|
|
42
|
+
.filter((abColumn) => {
|
|
45
43
|
var _a;
|
|
46
44
|
return !((_a = layout.ColumnFilters) === null || _a === void 0 ? void 0 : _a.some((columnFilter) => abColumn.columnId === columnFilter.ColumnId));
|
|
47
45
|
})
|
|
48
46
|
.map(({ columnId }) => ({
|
|
49
47
|
label: adaptable.api.columnApi.getFriendlyNameForColumnId(columnId),
|
|
50
|
-
|
|
51
|
-
props.onChange(Object.assign(Object.assign({}, layout), { ColumnFilters: [
|
|
52
|
-
...layoutFilters,
|
|
53
|
-
{
|
|
54
|
-
ColumnId: columnId,
|
|
55
|
-
Predicate: null,
|
|
56
|
-
},
|
|
57
|
-
] }));
|
|
58
|
-
},
|
|
48
|
+
value: columnId,
|
|
59
49
|
})), [layout, layoutFilters]);
|
|
60
50
|
return (React.createElement(Tabs, { style: { height: '100%' } },
|
|
61
51
|
React.createElement(Tabs.Tab, null, "Column Filters"),
|
|
62
52
|
React.createElement(Tabs.Content, null,
|
|
63
53
|
React.createElement(FormLayout, { mb: 2 },
|
|
64
|
-
React.createElement(FormRow, { label: "Add
|
|
65
|
-
React.createElement(
|
|
54
|
+
React.createElement(FormRow, { label: "Add Column Filter" },
|
|
55
|
+
React.createElement(ColumnSelector, { filterColumn: (column) => column.filterable && !layoutFilters.some((f) => f.ColumnId === column.columnId), value: "none", onChange: (option) => {
|
|
56
|
+
props.onChange(Object.assign(Object.assign({}, layout), { ColumnFilters: [
|
|
57
|
+
...layoutFilters,
|
|
58
|
+
{
|
|
59
|
+
ColumnId: option,
|
|
60
|
+
Predicate: null,
|
|
61
|
+
},
|
|
62
|
+
] }));
|
|
63
|
+
} }))),
|
|
66
64
|
(layoutFilters === null || layoutFilters === void 0 ? void 0 : layoutFilters.length) > 0 && (React.createElement(Box, { p: 0, as: "ul" }, layoutFilters.map((columnFilter) => {
|
|
67
65
|
const predicateDefs = adaptable.api.columnFilterApi.getFilterPredicateDefsForColumnId(columnFilter.ColumnId);
|
|
68
66
|
const items = [
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AdaptableApi, Layout } from '../../../../../types';
|
|
3
|
+
export declare const isGridFiltersValid: (layout: Layout, api: AdaptableApi) => true | string;
|
|
4
|
+
export declare const GridFilterSectionSummary: React.FunctionComponent;
|
|
5
|
+
interface GridFilterSectionProps {
|
|
6
|
+
onChange: (data: Layout) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const GridFilterSection: React.FunctionComponent<GridFilterSectionProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Box } from 'rebass';
|
|
3
|
+
import { Tabs } from '../../../../components/Tabs';
|
|
4
|
+
import { useAdaptable } from '../../../AdaptableContext';
|
|
5
|
+
import { useOnePageAdaptableWizardContext } from '../../../Wizard/OnePageAdaptableWizard';
|
|
6
|
+
import { Tag } from '../../../../components/Tag';
|
|
7
|
+
import { ExpressionEditor } from '../../../../components/ExpressionEditor';
|
|
8
|
+
import { GridFilterModuleId } from '../../../../Utilities/Constants/ModuleConstants';
|
|
9
|
+
import StringExtensions from '../../../../Utilities/Extensions/StringExtensions';
|
|
10
|
+
import { useGridFilterOptionsForExpressionEditorProps } from '../../../GridFilter/useGridFilterOptionsForExpressionEditor';
|
|
11
|
+
export const isGridFiltersValid = (layout, api) => {
|
|
12
|
+
var _a;
|
|
13
|
+
const expression = (_a = layout === null || layout === void 0 ? void 0 : layout.GridFilter) === null || _a === void 0 ? void 0 : _a.Expression;
|
|
14
|
+
if (StringExtensions.IsNullOrEmpty(expression)) {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
return (api.internalApi.getQueryLanguageService().validateBoolean(expression, GridFilterModuleId)
|
|
18
|
+
.isValid || 'Invalid Expression');
|
|
19
|
+
};
|
|
20
|
+
export const GridFilterSectionSummary = () => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const { data: layout } = useOnePageAdaptableWizardContext();
|
|
23
|
+
return (React.createElement(Box, null, React.createElement(Tag, { mb: 1, mr: 1 }, (_b = (_a = layout === null || layout === void 0 ? void 0 : layout.GridFilter) === null || _a === void 0 ? void 0 : _a.Expression) !== null && _b !== void 0 ? _b : 'No Grid Filter')));
|
|
24
|
+
};
|
|
25
|
+
export const GridFilterSection = (props) => {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
const { api } = useAdaptable();
|
|
28
|
+
const { data: layout } = useOnePageAdaptableWizardContext();
|
|
29
|
+
const initialData = React.useMemo(() => api.internalApi.getQueryPreviewData(), []);
|
|
30
|
+
const expressionEditorProps = useGridFilterOptionsForExpressionEditorProps();
|
|
31
|
+
return (React.createElement(Tabs, { style: { height: '100%' } },
|
|
32
|
+
React.createElement(Tabs.Tab, null, "Grid Filters"),
|
|
33
|
+
React.createElement(Tabs.Content, null,
|
|
34
|
+
React.createElement(ExpressionEditor, Object.assign({}, expressionEditorProps, { allowSaveNamedQuery: false, type: 'boolean', module: GridFilterModuleId, value: (_b = (_a = layout === null || layout === void 0 ? void 0 : layout.GridFilter) === null || _a === void 0 ? void 0 : _a.Expression) !== null && _b !== void 0 ? _b : '', onChange: (expression) => {
|
|
35
|
+
props.onChange(Object.assign(Object.assign({}, layout), { GridFilter: Object.assign(Object.assign({}, layout.GridFilter), { Expression: expression }) }));
|
|
36
|
+
}, initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.namedQueryApi.getNamedQueries(), api: api })))));
|
|
37
|
+
};
|
|
@@ -1 +1,61 @@
|
|
|
1
|
-
import*
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Logo } from '../../components/Logo';
|
|
3
|
+
import { Flex } from 'rebass';
|
|
4
|
+
const style = {
|
|
5
|
+
border: '1px solid var(--ab-color-error)',
|
|
6
|
+
padding: '5px',
|
|
7
|
+
fontWeight: 600,
|
|
8
|
+
margin: '5px',
|
|
9
|
+
fontSize: '14px',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
color: 'var(--ab-color-text-on-defaultbackground)',
|
|
12
|
+
background: 'var(--ab-color-defaultbackground)',
|
|
13
|
+
};
|
|
14
|
+
const isStyleValid = (element) => {
|
|
15
|
+
const notAllowedProperties = [
|
|
16
|
+
['display', 'none'],
|
|
17
|
+
['opacity', '0'],
|
|
18
|
+
['position', 'absolute'],
|
|
19
|
+
['position', 'fixed'],
|
|
20
|
+
['position', 'relative'],
|
|
21
|
+
['visibility', 'hidden'],
|
|
22
|
+
];
|
|
23
|
+
for (const [prop, value] of notAllowedProperties) {
|
|
24
|
+
if (element.style[prop] === value) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
};
|
|
30
|
+
export const LicenseWatermark = (props) => {
|
|
31
|
+
const ref = React.useRef(null);
|
|
32
|
+
React.useEffect(() => {
|
|
33
|
+
const checkWatermark = () => {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
if (!((_a = ref.current) === null || _a === void 0 ? void 0 : _a.isConnected)) {
|
|
36
|
+
alert('It is not allowed to remove the Adaptable watermark.');
|
|
37
|
+
}
|
|
38
|
+
if (!isStyleValid(ref.current)) {
|
|
39
|
+
alert('It is not allowed to modify the Adaptable watermark.');
|
|
40
|
+
}
|
|
41
|
+
if ((_b = ref === null || ref === void 0 ? void 0 : ref.current) === null || _b === void 0 ? void 0 : _b.style) {
|
|
42
|
+
ref.current.style.border = style.border;
|
|
43
|
+
ref.current.style.padding = style.padding;
|
|
44
|
+
ref.current.style.fontWeight = `${style.fontWeight}`;
|
|
45
|
+
ref.current.style.margin = style.margin;
|
|
46
|
+
ref.current.style.fontSize = style.fontSize;
|
|
47
|
+
ref.current.style.color = style.color;
|
|
48
|
+
ref.current.style.background = style.background;
|
|
49
|
+
ref.current.style.display = 'flex';
|
|
50
|
+
ref.current.style.position = 'static';
|
|
51
|
+
ref.current.style.opacity = '1';
|
|
52
|
+
ref.current.style.visibility = 'visible';
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const timerId = setInterval(checkWatermark, 5000);
|
|
56
|
+
return () => clearTimeout(timerId);
|
|
57
|
+
}, []);
|
|
58
|
+
return (React.createElement(Flex, { style: style, ref: ref },
|
|
59
|
+
React.createElement(Logo, { style: { marginRight: 10 } }),
|
|
60
|
+
React.createElement("div", null, props.children)));
|
|
61
|
+
};
|
|
@@ -5,7 +5,7 @@ export const EditGridFilterButton = () => {
|
|
|
5
5
|
const adaptable = useAdaptable();
|
|
6
6
|
const handleClick = React.useCallback((event) => {
|
|
7
7
|
event.stopPropagation();
|
|
8
|
-
adaptable.api.gridFilterApi.
|
|
8
|
+
adaptable.api.gridFilterApi.openExpressionEditorForGridFilter();
|
|
9
9
|
}, []);
|
|
10
10
|
return React.createElement(SimpleButton, { variant: "text", iconSize: 15, onClick: handleClick, icon: "edit" });
|
|
11
11
|
};
|
|
@@ -8,7 +8,7 @@ import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableW
|
|
|
8
8
|
import AdaptableInput from '../../Components/AdaptableInput';
|
|
9
9
|
import { Tag } from '../../../components/Tag';
|
|
10
10
|
export const isValidNamedQuerySettings = (data, api) => {
|
|
11
|
-
const validationResult = api.namedQueryApi.
|
|
11
|
+
const validationResult = api.namedQueryApi.isValidNamedQuery(data);
|
|
12
12
|
const ErrorMessage = !validationResult.valid ? validationResult.message : null;
|
|
13
13
|
if (!ErrorMessage) {
|
|
14
14
|
return true;
|
|
@@ -30,14 +30,14 @@ export function NamedQueryWizard(props) {
|
|
|
30
30
|
return (React.createElement(OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, onFinish: handleFinish, sections: [
|
|
31
31
|
{
|
|
32
32
|
title: 'Expression',
|
|
33
|
-
details: "
|
|
33
|
+
details: "Build the Named Query's Expression",
|
|
34
34
|
renderSummary: renderNamedQueryExpressionSummary,
|
|
35
35
|
isValid: isValidNamedQueryExpression,
|
|
36
36
|
render: () => React.createElement(NamedQueryExpressionWizardSection, { onChange: setNamedQuery }),
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
title: 'Query Name',
|
|
40
|
-
details: 'Specify a unique
|
|
40
|
+
details: 'Specify a unique Name for the Named Query',
|
|
41
41
|
renderSummary: renderNamedQuerySettingsSummary,
|
|
42
42
|
isValid: isValidNamedQuerySettings,
|
|
43
43
|
render: () => {
|
|
@@ -36,7 +36,7 @@ const QuickSearchPopupComponent = (props) => {
|
|
|
36
36
|
React.createElement(Flex, { flexDirection: "column" },
|
|
37
37
|
React.createElement(FormLayout, { columns: [1, 2] },
|
|
38
38
|
React.createElement(FormRow, null,
|
|
39
|
-
React.createElement(CheckBox, { "data-name": "filter-quick-search-results", value: "existing", marginLeft: 1, marginRight: 3, checked: state.RunQueryAfterQuickSearch, disabled: StringExtensions.IsNotNullOrEmpty(searchText), onChange: onQuickSearchBehaviourChange }, "Filter Quick Search Results"))))),
|
|
39
|
+
React.createElement(CheckBox, { "data-name": "filter-quick-search-results", value: "existing", marginLeft: 1, marginRight: 3, checked: state.RunQueryAfterQuickSearch, disabled: StringExtensions.IsNotNullOrEmpty(searchText), onChange: onQuickSearchBehaviourChange }, "Filter using Quick Search Results"))))),
|
|
40
40
|
React.createElement(StyleComponent, { style: { height: '100%' }, api: props.api, Style: props.QuickSearchStyle, UpdateStyle: onUpdateStyle })));
|
|
41
41
|
};
|
|
42
42
|
function mapStateToProps(state, ownProps) {
|
|
@@ -3,8 +3,8 @@ import { Box } from 'rebass';
|
|
|
3
3
|
import { Tabs } from '../../../../components/Tabs';
|
|
4
4
|
import FormLayout, { FormRow } from '../../../../components/FormLayout';
|
|
5
5
|
import Input from '../../../../components/Input';
|
|
6
|
-
import DropdownButton from '../../../../components/DropdownButton';
|
|
7
6
|
import { CheckBox } from '../../../../components/CheckBox';
|
|
7
|
+
import { Select } from '../../../../components/Select';
|
|
8
8
|
const MESSAGE_TYPES = ['Success', 'Info', 'Warning', 'Error'];
|
|
9
9
|
export const ScheduleSettingsReminder = (props) => {
|
|
10
10
|
var _a, _b, _c, _d, _e;
|
|
@@ -39,7 +39,10 @@ export const ScheduleSettingsReminder = (props) => {
|
|
|
39
39
|
React.createElement(FormRow, { label: "Message" },
|
|
40
40
|
React.createElement(Input, { "data-name": "message", width: 300, onChange: handleMessageChange, placeholder: "Enter Reminder Message", type: "string", value: (_b = props.reminderSchedule) === null || _b === void 0 ? void 0 : _b.Message })),
|
|
41
41
|
React.createElement(FormRow, { label: "Type" },
|
|
42
|
-
React.createElement(
|
|
42
|
+
React.createElement(Box, { maxWidth: 300 },
|
|
43
|
+
React.createElement(Select, { "data-name": "message-type", placeholder: "Select Option", options: messageTypes, value: (_c = props.reminderSchedule) === null || _c === void 0 ? void 0 : _c.MessageType, onChange: (value) => {
|
|
44
|
+
props.onChange(Object.assign(Object.assign({}, props.reminderSchedule), { MessageType: value }));
|
|
45
|
+
} }))),
|
|
43
46
|
React.createElement(FormRow, { label: "" },
|
|
44
47
|
React.createElement(CheckBox, { "data-name": "display-notification", checked: (_d = props.reminderSchedule) === null || _d === void 0 ? void 0 : _d.DisplayNotification, onChange: handleDisplayNotificationChange }, "Show the Reminder as a Notification")),
|
|
45
48
|
React.createElement(FormRow, { label: "" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ReportSchedule, Report } from '../../../../PredefinedConfig/ExportState';
|
|
3
2
|
import { CustomDestination } from '../../../../AdaptableOptions/ExportOptions';
|
|
3
|
+
import { Report, ReportSchedule } from '../../../../PredefinedConfig/ExportState';
|
|
4
4
|
interface ReportScheduleProps {
|
|
5
5
|
report: ReportSchedule;
|
|
6
6
|
onChange: (reminder: ReportSchedule) => void;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Box } from 'rebass';
|
|
3
|
-
import { Tabs } from '../../../../components/Tabs';
|
|
4
3
|
import FormLayout, { FormRow } from '../../../../components/FormLayout';
|
|
5
|
-
import
|
|
4
|
+
import { Select } from '../../../../components/Select';
|
|
5
|
+
import { Tabs } from '../../../../components/Tabs';
|
|
6
6
|
const DESTINATIONS = ['Excel', 'CSV', 'Clipboard', 'JSON'];
|
|
7
7
|
export const ScheduleSettingsReport = (props) => {
|
|
8
8
|
var _a, _b;
|
|
9
9
|
const reportOptions = props.allReports.map((report) => ({
|
|
10
10
|
label: report.Name,
|
|
11
11
|
value: report.Name,
|
|
12
|
-
onClick: () => props.onChange(Object.assign(Object.assign({}, props.report), { ReportName: report.Name })),
|
|
13
12
|
}));
|
|
14
13
|
const customDestinationNames = props.customDestinations.map((destination) => destination.name);
|
|
15
14
|
const destinationOptions = [...DESTINATIONS, ...customDestinationNames].map((destination) => ({
|
|
@@ -25,7 +24,9 @@ export const ScheduleSettingsReport = (props) => {
|
|
|
25
24
|
React.createElement(Tabs.Content, null,
|
|
26
25
|
React.createElement(FormLayout, null,
|
|
27
26
|
React.createElement(FormRow, { label: "Export" },
|
|
28
|
-
React.createElement(
|
|
27
|
+
React.createElement(Box, { maxWidth: 300 },
|
|
28
|
+
React.createElement(Select, { "data-name": "select-export", options: reportOptions, value: (_a = props === null || props === void 0 ? void 0 : props.report) === null || _a === void 0 ? void 0 : _a.ReportName, placeholder: "Select Export", onChange: (value) => props.onChange(Object.assign(Object.assign({}, props.report), { ReportName: value })) }))),
|
|
29
29
|
React.createElement(FormRow, { label: "Destination" },
|
|
30
|
-
React.createElement(
|
|
30
|
+
React.createElement(Box, { maxWidth: 300 },
|
|
31
|
+
React.createElement(Select, { "data-name": "select-destination", options: destinationOptions, value: (_b = props === null || props === void 0 ? void 0 : props.report) === null || _b === void 0 ? void 0 : _b.ExportDestination, placeholder: "Select Destination", onChange: (value) => props.onChange(Object.assign(Object.assign({}, props.report), { ExportDestination: value })) }))))))));
|
|
31
32
|
};
|
|
@@ -5,10 +5,10 @@ import { shortcutOperationList } from '../shortcutOperations';
|
|
|
5
5
|
import FormLayout, { FormRow } from '../../../components/FormLayout';
|
|
6
6
|
import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
|
|
7
7
|
import { Tabs } from '../../../components/Tabs';
|
|
8
|
-
import DropdownButton from '../../../components/DropdownButton';
|
|
9
8
|
import { SummaryText } from '../../../View/Wizard/OnePageAdaptableWizard';
|
|
10
9
|
import { Tag } from '../../../components/Tag';
|
|
11
10
|
import HelpBlock from '../../../components/HelpBlock';
|
|
11
|
+
import { Select } from '../../../components/Select';
|
|
12
12
|
export const isSettingsValid = (data) => {
|
|
13
13
|
const shortcutKey = data.ShortcutKey && typeof data.ShortcutKey === 'string' ? '' : 'Shortcut key is not selected';
|
|
14
14
|
const shortcutValue = typeof data.ShortcutValue === 'number' ? '' : 'Shortcut value is not specified';
|
|
@@ -45,12 +45,11 @@ export const ShortcutSettingsWizard = (props) => {
|
|
|
45
45
|
const optionActions = shortcutOperationList.map((operation) => ({
|
|
46
46
|
value: operation,
|
|
47
47
|
label: operation,
|
|
48
|
-
onClick: () => handleOperationChange(operation),
|
|
48
|
+
// onClick: () => handleOperationChange(operation),
|
|
49
49
|
}));
|
|
50
50
|
const optionKeys = props.availableKeys.map((key) => ({
|
|
51
51
|
value: key,
|
|
52
52
|
label: key,
|
|
53
|
-
onClick: () => handleKeyChange(key),
|
|
54
53
|
}));
|
|
55
54
|
return (React.createElement(Box, { "data-name": "shortcut-column-settings" },
|
|
56
55
|
React.createElement(Tabs, { autoFocus: false },
|
|
@@ -59,20 +58,20 @@ export const ShortcutSettingsWizard = (props) => {
|
|
|
59
58
|
React.createElement(FormLayout, null,
|
|
60
59
|
React.createElement(FormRow, null,
|
|
61
60
|
' ',
|
|
62
|
-
React.createElement(HelpBlock, { fontSize: 2, mb: 0 }, "Keyboard key that, when pressed, triggers the
|
|
61
|
+
React.createElement(HelpBlock, { fontSize: 2, mb: 0 }, "Keyboard key that, when pressed, triggers the Shortcut")),
|
|
63
62
|
React.createElement(FormRow, { label: "Key" },
|
|
64
63
|
React.createElement(Flex, { flexDirection: "row" },
|
|
65
|
-
React.createElement(
|
|
64
|
+
React.createElement(Select, { "data-name": "shortcut-key", placeholder: "Select Key", options: optionKeys, onChange: (key) => handleKeyChange(key), value: shortcut.ShortcutKey || 'Select Key' }))),
|
|
66
65
|
React.createElement(FormRow, null,
|
|
67
66
|
' ',
|
|
68
67
|
React.createElement(HelpBlock, { fontSize: 2, mb: 0 }, "Mathematical operation performed on Cell's current value (using the Shortcut's 'value') - used to calculate the Cell's new total")),
|
|
69
68
|
React.createElement(FormRow, { label: "Operation" },
|
|
70
69
|
React.createElement(Flex, { flexDirection: "row" },
|
|
71
|
-
React.createElement(
|
|
70
|
+
React.createElement(Select, { "data-name": "shortcut-operation", placeholder: "Select Operation", options: optionActions, onChange: (operation) => handleOperationChange(operation), value: shortcut.ShortcutOperation }))),
|
|
72
71
|
React.createElement(FormRow, null,
|
|
73
72
|
' ',
|
|
74
73
|
React.createElement(HelpBlock, { fontSize: 2, mb: 0 }, "Number that is used - together with the 'Operation' and the current cell value - to calculate the new total for the cell")),
|
|
75
74
|
React.createElement(FormRow, { label: "Value" },
|
|
76
75
|
React.createElement(Flex, { flexDirection: "row" },
|
|
77
|
-
React.createElement(Input, { "data-name": "shortcut-value", flex: 1, marginRight: 3, onChange: handleOperationValueChange, placeholder: "Enter Number", type: "number", value: (_a = shortcut.ShortcutValue) !== null && _a !== void 0 ? _a : '' }))))))));
|
|
76
|
+
React.createElement(Input, { "data-name": "shortcut-value", style: { maxWidth: 100 }, flex: 1, marginRight: 3, onChange: handleOperationValueChange, placeholder: "Enter Number", type: "number", value: (_a = shortcut.ShortcutValue) !== null && _a !== void 0 ? _a : '' }))))))));
|
|
78
77
|
};
|