@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
|
@@ -50,7 +50,7 @@ export const CustomSortWizard = (props) => {
|
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
title: 'Sort Order',
|
|
53
|
-
details: '
|
|
53
|
+
details: 'Specify Custom Sort order - drag selected items to modify order',
|
|
54
54
|
isValid: isValidCustomSortOrder,
|
|
55
55
|
renderSummary: renderCustomSortValuesSummary,
|
|
56
56
|
render: () => (React.createElement(Box, { padding: 2, style: { height: '100%' } },
|
|
@@ -66,15 +66,15 @@ class DashboardPopupComponent extends React.Component {
|
|
|
66
66
|
};
|
|
67
67
|
return (React.createElement(PopupPanel, { headerText: this.props.moduleInfo.FriendlyName, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
68
68
|
React.createElement(Flex, { flex: 1, height: "100%", flexDirection: "column" },
|
|
69
|
-
areDashboardSettingsVisible && (React.createElement(Panel, { header: 'Dashboard
|
|
70
|
-
React.createElement(CheckBox, { mr: 3, "data-name": "collapse", className: `${baseClassName}__settings-option`, checked: this.props.IsCollapsed, onChange: (checked) => this.props.onSetDashboardCollapsed(checked) }, "
|
|
69
|
+
areDashboardSettingsVisible && (React.createElement(Panel, { header: 'Dashboard Mode', style: { height: 'auto', overflow: 'visible' }, variant: "default", borderRadius: "none" },
|
|
70
|
+
React.createElement(CheckBox, { mr: 3, "data-name": "collapse", className: `${baseClassName}__settings-option`, checked: this.props.IsCollapsed, onChange: (checked) => this.props.onSetDashboardCollapsed(checked) }, "Collapsed"),
|
|
71
71
|
' ',
|
|
72
|
-
this.props.api.optionsApi.getDashboardOptions().canFloat && (React.createElement(CheckBox, { mr: 3, "data-name": "floating", className: `${baseClassName}__settings-option`, checked: this.props.IsFloating, onChange: (checked) => this.props.onSetDashboardFloating(checked) }, "
|
|
72
|
+
this.props.api.optionsApi.getDashboardOptions().canFloat && (React.createElement(CheckBox, { mr: 3, "data-name": "floating", className: `${baseClassName}__settings-option`, checked: this.props.IsFloating, onChange: (checked) => this.props.onSetDashboardFloating(checked) }, "Floating")),
|
|
73
73
|
' ',
|
|
74
74
|
React.createElement(CheckBox, { "data-name": "hidden", className: `${baseClassName}__settings-option`, checked: this.props.IsHidden, onChange: (checked) => this.props.onSetDashboardHidden(checked) }, "Hidden"))),
|
|
75
75
|
React.createElement(Panel, { header: 'Dashboard Contents', style: { borderBottom: '1px solid var(--ab-color-primary)' }, variant: "default", borderRadius: "none", marginTop: 4 },
|
|
76
76
|
React.createElement(Flex, { className: `${baseClassName}__contents-selector`, flexDirection: "row", padding: 2 },
|
|
77
|
-
React.createElement(Radio, { marginLeft: 3, value: DashboardConfigView.Toolbars, checked: this.state.DashboardConfigView == DashboardConfigView.Toolbars, onChange: (_, e) => this.onDashboardConfigViewChanged(e) }, "Toolbars"),
|
|
77
|
+
React.createElement(Radio, { marginLeft: 3, value: DashboardConfigView.Toolbars, checked: this.state.DashboardConfigView == DashboardConfigView.Toolbars, onChange: (_, e) => this.onDashboardConfigViewChanged(e) }, "Tabs & Toolbars"),
|
|
78
78
|
React.createElement(Radio, { marginLeft: 3, value: DashboardConfigView.Buttons, checked: this.state.DashboardConfigView == DashboardConfigView.Buttons, onChange: (_, e) => this.onDashboardConfigViewChanged(e) }, "Buttons"),
|
|
79
79
|
React.createElement(Radio, { marginLeft: 3, value: DashboardConfigView.PinnedToolbars, checked: this.state.DashboardConfigView == DashboardConfigView.PinnedToolbars, onChange: (_, e) => this.onDashboardConfigViewChanged(e) }, "Pinned Toolbars")),
|
|
80
80
|
React.createElement(Box, { className: `${baseClassName}__Module-Selector`, "data-name": this.state.DashboardConfigView === DashboardConfigView.Toolbars
|
|
@@ -14,7 +14,6 @@ const SystemDashboardToolbarFactory = (props) => {
|
|
|
14
14
|
.getEntitlementAccessLevelForModule(props.toolbarName);
|
|
15
15
|
const moduleToolbarView = AdaptableViewPanelFactory.get(props.toolbarName);
|
|
16
16
|
if (!moduleToolbarView) {
|
|
17
|
-
console.log({ props });
|
|
18
17
|
return React.createElement(React.Fragment, null, "adasdasdas");
|
|
19
18
|
}
|
|
20
19
|
const moduleToolbarElement = React.createElement(moduleToolbarView, {
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
3
|
import { Box, Flex } from 'rebass';
|
|
4
|
+
import { useAdaptable } from '../AdaptableContext';
|
|
4
5
|
import { DashboardToolbarFactory } from './DashboardToolbarFactory';
|
|
5
6
|
export const PinnedDashboard = (props) => {
|
|
7
|
+
var _a;
|
|
8
|
+
const adaptable = useAdaptable();
|
|
6
9
|
const dashboardState = useSelector((state) => state.Dashboard);
|
|
7
|
-
const pinnedToolbars = dashboardState.PinnedToolbars;
|
|
10
|
+
const pinnedToolbars = ((_a = dashboardState.PinnedToolbars) !== null && _a !== void 0 ? _a : []).filter((tb) => adaptable.api.internalApi.getModuleService().isModuleAvailable(tb));
|
|
8
11
|
if (!pinnedToolbars || pinnedToolbars.length == 0) {
|
|
9
12
|
return React.createElement(React.Fragment, null);
|
|
10
13
|
}
|
|
11
|
-
return (React.createElement(Flex, { p: 1, className: "ab-Dashboard__pinned
|
|
12
|
-
return (React.createElement(Box, { key: index, mr:
|
|
14
|
+
return (React.createElement(Flex, { p: 1, className: "ab-Dashboard__pinned" }, pinnedToolbars.map((toolbar, index) => {
|
|
15
|
+
return (React.createElement(Box, { key: index, mr: 1, mb: 1, className: `ab-Dashboard__pinned-container ab-Dashboard__pinned-container--${toolbar}` },
|
|
13
16
|
React.createElement(Box, { className: "ab-Dashboard__toolbar-content" },
|
|
14
17
|
React.createElement(DashboardToolbarFactory, { toolbarName: toolbar }))));
|
|
15
18
|
})));
|
|
@@ -38,5 +38,5 @@ export const PinnedToolbarsSelector = (props) => {
|
|
|
38
38
|
editTabName: false,
|
|
39
39
|
}, onTabsChange: (tabs) => {
|
|
40
40
|
dispatch(DashboardSetPinnedToolbars(tabs[0].Items));
|
|
41
|
-
}, disabled: isDashboardDisabled, tabs: tabs, availableItems: toolbars, tabsTitle: 'Pinned Toolbars', unusedPanelTitle: "Available Pinned
|
|
41
|
+
}, disabled: isDashboardDisabled, tabs: tabs, availableItems: toolbars, tabsTitle: 'Pinned Toolbars', unusedPanelTitle: "Available Pinned Toolbars", dragItemText: "Drag into the Panel below" }));
|
|
42
42
|
};
|
|
@@ -114,7 +114,9 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
|
|
|
114
114
|
defaultAccessLevel: 'Hidden',
|
|
115
115
|
},
|
|
116
116
|
columnFilterOptions: {
|
|
117
|
-
|
|
117
|
+
quickFilterOptions: {
|
|
118
|
+
quickFilterTrigger: 'click',
|
|
119
|
+
},
|
|
118
120
|
},
|
|
119
121
|
layoutOptions: {
|
|
120
122
|
createDefaultLayout: false,
|
|
@@ -15,7 +15,7 @@ export const DataImportPopup = (props) => {
|
|
|
15
15
|
return (React.createElement(React.Fragment, null,
|
|
16
16
|
React.createElement(PopupPanel, { headerText: 'Data Import', glyphicon: 'import', infoLink: props.moduleInfo.HelpPage },
|
|
17
17
|
React.createElement(Box, null,
|
|
18
|
-
React.createElement(HelpBlock, { mb: 2, fontSize: 3 }, "Click the 'Import Data' button to
|
|
18
|
+
React.createElement(HelpBlock, { mb: 2, fontSize: 3 }, "Click the 'Import Data' button to Insert or Update data into AdapTable"),
|
|
19
19
|
React.createElement(SimpleButton, { icon: "import", variant: "raised", onClick: () => setIsWizardOpen(true) }, "Import Data"))),
|
|
20
20
|
isWizardOpen && (React.createElement(DataImportWizard, { onClose: () => {
|
|
21
21
|
var _a;
|
|
@@ -3,7 +3,7 @@ import { AdaptableColumn, DataImportValidationError } from '../../../types';
|
|
|
3
3
|
export interface ValidationErrorsMap {
|
|
4
4
|
[key: string]: DataImportValidationError[] | null;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type ColumnsMap = {
|
|
7
7
|
field: string;
|
|
8
8
|
abColumn?: AdaptableColumn;
|
|
9
9
|
include?: boolean;
|
|
@@ -2,8 +2,9 @@ import * as SystemRedux from '../../Redux/ActionsReducers/SystemRedux';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { StringExtensions } from '../../Utilities/Extensions/StringExtensions';
|
|
4
4
|
import { Flex } from 'rebass';
|
|
5
|
-
import DropdownButton from '../../components/DropdownButton';
|
|
6
5
|
import { connect } from 'react-redux';
|
|
6
|
+
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
7
|
+
import { Select } from '../../components/Select';
|
|
7
8
|
class DataSetViewPanelComponent extends React.Component {
|
|
8
9
|
getCurrentDataSet() {
|
|
9
10
|
return StringExtensions.IsNullOrEmpty(this.props.CurrentDataSetName)
|
|
@@ -26,7 +27,7 @@ class DataSetViewPanelComponent extends React.Component {
|
|
|
26
27
|
});
|
|
27
28
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
28
29
|
return (React.createElement(Flex, { flexDirection: "row", className: `ab-${elementType}__DataSet__wrap` },
|
|
29
|
-
React.createElement(
|
|
30
|
+
React.createElement(Select, { style: { width: '100%' }, placeholder: 'Select Data Set', disabled: ArrayExtensions.IsNullOrEmpty(availableDataSets), options: availableDataSets, value: currentDataSetName, className: `ab-${elementType}__DataSet__select`, onChange: (destination) => this.onSelectedDataSetChanged(destination) })));
|
|
30
31
|
}
|
|
31
32
|
onSelectedDataSetChanged(dataSetName) {
|
|
32
33
|
if (StringExtensions.IsNullOrEmpty(dataSetName)) {
|
|
@@ -7,7 +7,6 @@ import * as GeneralConstants from '../../Utilities/Constants/GeneralConstants';
|
|
|
7
7
|
import { VISUAL_DATA_REPORT } from '../../Utilities/Constants/GeneralConstants';
|
|
8
8
|
import AdaptableHelper from '../../Utilities/Helpers/AdaptableHelper';
|
|
9
9
|
import { Flex } from 'rebass';
|
|
10
|
-
import DropdownButton from '../../components/DropdownButton';
|
|
11
10
|
import join from '../../components/utils/join';
|
|
12
11
|
import { ButtonExport } from '../Components/Buttons/ButtonExport';
|
|
13
12
|
import { ButtonEdit } from '../Components/Buttons/ButtonEdit';
|
|
@@ -19,6 +18,7 @@ import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
|
19
18
|
import { connect } from 'react-redux';
|
|
20
19
|
import { SELECT_DESTINATION_STRING, SELECT_REPORT_STRING } from './constants';
|
|
21
20
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
21
|
+
import { Select } from '../../components/Select';
|
|
22
22
|
class ExportViewPanelComponent extends React.Component {
|
|
23
23
|
render() {
|
|
24
24
|
let currentReport = this.props.api.exportApi.getReportByName(this.props.CurrentReport);
|
|
@@ -26,7 +26,7 @@ class ExportViewPanelComponent extends React.Component {
|
|
|
26
26
|
? SELECT_REPORT_STRING
|
|
27
27
|
: this.props.CurrentReport;
|
|
28
28
|
const allReportNames = this.getAllReportNames();
|
|
29
|
-
|
|
29
|
+
const reportItems = allReportNames.map((report) => {
|
|
30
30
|
return {
|
|
31
31
|
label: report,
|
|
32
32
|
value: report,
|
|
@@ -46,19 +46,22 @@ class ExportViewPanelComponent extends React.Component {
|
|
|
46
46
|
...this.props.api.exportApi.getAvailableExportDestinations().map((destination) => ({
|
|
47
47
|
label: destination,
|
|
48
48
|
onClick: () => this.onSelectedDestinationChanged(destination),
|
|
49
|
-
|
|
49
|
+
value: destination,
|
|
50
|
+
isDisabled: !this.props.api.exportApi.internalApi.isDestinationEnabled(destination),
|
|
50
51
|
})),
|
|
51
52
|
...this.props.api.exportApi.getCustomDestinations().map((destination) => ({
|
|
52
53
|
label: destination.name,
|
|
53
54
|
onClick: () => this.onSelectedDestinationChanged(destination.name),
|
|
55
|
+
value: destination.name,
|
|
56
|
+
isDisabled: false,
|
|
54
57
|
})),
|
|
55
58
|
];
|
|
56
59
|
if ((currentReport === null || currentReport === void 0 ? void 0 : currentReport.Name) === VISUAL_DATA_REPORT) {
|
|
57
|
-
destinationItems.forEach((item) => (item.
|
|
60
|
+
destinationItems.forEach((item) => (item.isDisabled = item.label === ExportDestination.Excel ? false : true));
|
|
58
61
|
}
|
|
59
62
|
if (currentDestination &&
|
|
60
63
|
!destinationItems
|
|
61
|
-
.filter((destinationItem) => !destinationItem.
|
|
64
|
+
.filter((destinationItem) => !destinationItem.isDisabled)
|
|
62
65
|
.map((destinationItem) => destinationItem.label)
|
|
63
66
|
.includes(this.props.CurrentDestination)) {
|
|
64
67
|
// current destination is not available
|
|
@@ -75,10 +78,10 @@ class ExportViewPanelComponent extends React.Component {
|
|
|
75
78
|
};
|
|
76
79
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
77
80
|
return (React.createElement(Flex, { style: { gap: 5 }, flexDirection: "row", className: `ab-${elementType}__Export__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
78
|
-
React.createElement(Flex, { flex: 1 },
|
|
79
|
-
React.createElement(
|
|
80
|
-
React.createElement(Flex, { flex: 1 },
|
|
81
|
-
React.createElement(
|
|
81
|
+
React.createElement(Flex, { flex: 1, minWidth: 150 },
|
|
82
|
+
React.createElement(Select, { style: { width: '100%' }, placeholder: SELECT_REPORT_STRING, disabled: allReportNames.length == 0, className: `ab-${elementType}__Export__select`, options: reportItems, onChange: (report) => this.onSelectedReportChanged(report), value: currentReportId, isClearable: true })),
|
|
83
|
+
React.createElement(Flex, { flex: 1, minWidth: 150 },
|
|
84
|
+
React.createElement(Select, { style: { width: '100%' }, placeholder: SELECT_DESTINATION_STRING, disabled: currentReportId === SELECT_REPORT_STRING, options: destinationItems, value: currentDestinationId, className: `ab-${elementType}__Export__select`, onChange: (destination) => this.onSelectedDestinationChanged(destination) })),
|
|
82
85
|
React.createElement(Flex, { className: join(accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__Export__controls`), style: { width: '100%' } },
|
|
83
86
|
React.createElement(ButtonExport, { onClick: () => onApplyExport(), tooltip: "Export Report", className: `ab-${elementType}__Export__export`, disabled: currentReport == null || currentDestination == null }),
|
|
84
87
|
React.createElement(ButtonEdit, { onClick: () => this.props.onEditReport(this.props.moduleInfo.Popup), tooltip: "Edit Report", className: `ab-${elementType}__Export__edit`, disabled: currentReport == null || this.props.api.exportApi.isExternalReport(currentReport), accessLevel: accessLevel }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Report } from '../../../PredefinedConfig/ExportState';
|
|
3
|
-
export
|
|
3
|
+
export type ReportColumnsWizardSectionProps = {
|
|
4
4
|
onChange: (data: Report) => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const isValidReportColumnsScope: (report: Report) => true | "Column scope is not defined";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
3
3
|
import { Report } from '../../../PredefinedConfig/ExportState';
|
|
4
|
-
export
|
|
4
|
+
export type ReportNameWizardSectionProps = {
|
|
5
5
|
onChange: (data: Report) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const renderReportNameSummary: (report: Report) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Report } from '../../../PredefinedConfig/ExportState';
|
|
3
|
-
export
|
|
3
|
+
export type ReportRowsWizardSectionProps = {
|
|
4
4
|
onChange: (data: Report) => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const isValidReportRowsQuery: (report: Report) => true | "Rows query cannot be empty";
|
|
@@ -37,7 +37,7 @@ class FilterViewPanelComponent extends React.Component {
|
|
|
37
37
|
React.createElement(Flex, { alignItems: "center" }, this.props.api.columnFilterApi.isQuickFilterAvailable() && (React.createElement(CheckBox, { className: `ab-${elementType}__Filter__active-check`, disabled: this.props.accessLevel === 'ReadOnly' ||
|
|
38
38
|
this.props.api.internalApi.isGridInPivotMode(), marginTop: 0, marginBottom: 0, fontSize: 2, padding: 1, checked: this.props.IsQuickFilterVisible, onChange: (checked) => {
|
|
39
39
|
checked ? this.props.onShowQuickFilterBar() : this.props.onHideQuickFilterBar();
|
|
40
|
-
} }, "
|
|
40
|
+
} }, "Filter Bar")))));
|
|
41
41
|
}
|
|
42
42
|
onClearFilters() {
|
|
43
43
|
this.props.api.columnFilterApi.clearColumnFilters();
|
|
@@ -26,7 +26,7 @@ export const renderFlashingAlertRulesSummary = (flashingAlert) => {
|
|
|
26
26
|
export const FlashingAlertRulesWizardSection = (props) => {
|
|
27
27
|
const { data, api, moduleInfo } = useOnePageAdaptableWizardContext();
|
|
28
28
|
const predicateDefs = api.flashingCellApi.getFlashingCellPredicateDefsForScope(data.Scope);
|
|
29
|
-
return (React.createElement(EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "
|
|
29
|
+
return (React.createElement(EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "AnyChange", data: data, predicateDefs: predicateDefs, getPredicateDefsForColId: (colId) => api.flashingCellApi.getFlashingCellPredicateDefsForScope({ ColumnIds: [colId] }), onChange: props.onChange, showAggregation: false, showObservable: false, showBoolean: true, showPredicate: true, descriptions: {
|
|
30
30
|
selectPredicate: 'Select an Flashing Cell Rule - to be applied when data changes',
|
|
31
31
|
useBooleanQuery: (React.createElement(React.Fragment, null,
|
|
32
32
|
"Use an BooleanQuery if ",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
type FlashingAlertScopeWizardSectionProps = {
|
|
3
3
|
onChange: (data: any) => void;
|
|
4
4
|
};
|
|
5
5
|
export declare const FlashingAlertScopeWizardSection: (props: FlashingAlertScopeWizardSectionProps) => JSX.Element;
|
|
@@ -11,10 +11,10 @@ export const FlashingAlertScopeWizardSection = (props) => {
|
|
|
11
11
|
}, scope: data.Scope, updateScope: (Scope) => {
|
|
12
12
|
const newData = Object.assign(Object.assign({}, data), { Scope });
|
|
13
13
|
if (newData.Rule.Predicates) {
|
|
14
|
-
// when scope is changed, reset the rule to predicate of
|
|
14
|
+
// when scope is changed, reset the rule to predicate of AnyChange
|
|
15
15
|
// if it was set to a predicate before
|
|
16
16
|
newData.Rule = {
|
|
17
|
-
Predicates: [{ PredicateId: '
|
|
17
|
+
Predicates: [{ PredicateId: 'AnyChange' }],
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
props.onChange(newData);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FlashingCellDefinition } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type FlashingAlertDurationWizardSectionProps = {
|
|
4
4
|
readOnly?: boolean;
|
|
5
5
|
flashingCell?: FlashingCellDefinition;
|
|
6
6
|
onChange: (data: FlashingCellDefinition) => void;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { BoxProps } from 'rebass';
|
|
3
3
|
import { AdaptableStyle } from '../../../types';
|
|
4
4
|
import { FlashingCellDefinition } from '../../../../types';
|
|
5
|
-
|
|
5
|
+
type FlashingAlertStyleWizardSectionProps = {
|
|
6
6
|
flashingAlert?: FlashingCellDefinition;
|
|
7
7
|
onStyleChange: (styleName: 'UpChangeStyle' | 'DownChangeStyle' | 'NeutralChangeStyle', style: AdaptableStyle) => void;
|
|
8
8
|
};
|
|
@@ -73,14 +73,7 @@ export const FlashingCellWizard = (props) => {
|
|
|
73
73
|
title: 'Rule',
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
details: '
|
|
77
|
-
render: () => (React.createElement(Box, { padding: 2 },
|
|
78
|
-
React.createElement(FlashingAlertSettingsWizardSection, { onChange: setFlashingCell }))),
|
|
79
|
-
renderSummary: renderFlashingAlertSettingsSummary,
|
|
80
|
-
title: 'Settings',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
details: 'Choose the Flashing Styles',
|
|
76
|
+
details: 'Choose Flash Styles for Up, Down and Neutral Changes',
|
|
84
77
|
render: () => (React.createElement(Box, { padding: 2 },
|
|
85
78
|
React.createElement(FlashingAlertStyleWizardSection, { onStyleChange: (styleName, style) => {
|
|
86
79
|
updateStyles[styleName](style);
|
|
@@ -88,6 +81,13 @@ export const FlashingCellWizard = (props) => {
|
|
|
88
81
|
renderSummary: renderFlashingAlertStyleSummary,
|
|
89
82
|
title: 'Flash Styles',
|
|
90
83
|
},
|
|
84
|
+
{
|
|
85
|
+
details: 'Set Duration and Target Properties',
|
|
86
|
+
render: () => (React.createElement(Box, { padding: 2 },
|
|
87
|
+
React.createElement(FlashingAlertSettingsWizardSection, { onChange: setFlashingCell }))),
|
|
88
|
+
renderSummary: renderFlashingAlertSettingsSummary,
|
|
89
|
+
title: 'Settings',
|
|
90
|
+
},
|
|
91
91
|
{
|
|
92
92
|
details: 'Select Flashing Cell Tags',
|
|
93
93
|
title: 'Tags',
|
|
@@ -10,7 +10,7 @@ export const isValidFlashingCellRules = (flashingCell, api, context) => {
|
|
|
10
10
|
}
|
|
11
11
|
// boolean expressions may also be saved as named queries
|
|
12
12
|
if (context.namedQuery != false) {
|
|
13
|
-
const isValidName = api.namedQueryApi.
|
|
13
|
+
const isValidName = api.namedQueryApi.isValidNamedQuery(context.namedQuery);
|
|
14
14
|
if (!isValidName.valid) {
|
|
15
15
|
return isValidName.message;
|
|
16
16
|
}
|
|
@@ -3,7 +3,7 @@ import { FormatColumn } from '../../../PredefinedConfig/FormatColumnState';
|
|
|
3
3
|
import { AdaptableFormat } from '../../../PredefinedConfig/Common/AdaptableFormat';
|
|
4
4
|
import { AdaptableScope } from '../../../PredefinedConfig/Common/AdaptableScope';
|
|
5
5
|
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
6
|
-
export
|
|
6
|
+
export type FormatColumnFormatWizardSectionProps = {
|
|
7
7
|
onChange: (data: FormatColumn) => void;
|
|
8
8
|
};
|
|
9
9
|
export interface FormatColumnFormatWizardState {
|
|
@@ -16,6 +16,7 @@ import { Tag } from '../../../components/Tag';
|
|
|
16
16
|
import { useAdaptable } from '../../AdaptableContext';
|
|
17
17
|
import FormatHelper from '../../../Utilities/Helpers/FormatHelper';
|
|
18
18
|
import { Toggle, ToggleGroup } from '../../../components/Toggle';
|
|
19
|
+
import { DEFAULT_DOUBLE_DISPLAY_VALUE, DEFAULT_STRING_DISPLAY_VALUE, } from '../../../Utilities/Constants/GeneralConstants';
|
|
19
20
|
const DOLLAR_OPTIONS = {
|
|
20
21
|
FractionDigits: 2,
|
|
21
22
|
FractionSeparator: '.',
|
|
@@ -82,13 +83,13 @@ export const getFormatColumnFormatSummaryValue = (data) => {
|
|
|
82
83
|
}
|
|
83
84
|
else {
|
|
84
85
|
if (data.DisplayFormat.Formatter === 'NumberFormatter') {
|
|
85
|
-
content = FormatHelper.NumberFormatter(
|
|
86
|
+
content = FormatHelper.NumberFormatter(DEFAULT_DOUBLE_DISPLAY_VALUE, data.DisplayFormat.Options);
|
|
86
87
|
}
|
|
87
88
|
if (data.DisplayFormat.Formatter === 'DateFormatter') {
|
|
88
|
-
content = FormatHelper.DateFormatter(new Date(
|
|
89
|
+
content = FormatHelper.DateFormatter(new Date(), data.DisplayFormat.Options);
|
|
89
90
|
}
|
|
90
91
|
if (data.DisplayFormat.Formatter === 'StringFormatter') {
|
|
91
|
-
content = FormatHelper.StringFormatter(
|
|
92
|
+
content = FormatHelper.StringFormatter(DEFAULT_STRING_DISPLAY_VALUE, data.DisplayFormat.Options);
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
return content;
|
|
@@ -311,16 +312,16 @@ const renderNumberFormat = (data, onChange, setFormatOption, scopedCustomFormatt
|
|
|
311
312
|
{ Content: 'Formatted Number', Size: 1 },
|
|
312
313
|
] }),
|
|
313
314
|
React.createElement(AdaptableObjectRow, { colItems: [
|
|
314
|
-
{ Content:
|
|
315
|
+
{ Content: DEFAULT_DOUBLE_DISPLAY_VALUE, Size: 1 },
|
|
315
316
|
{
|
|
316
|
-
Content: FormatHelper.NumberFormatter(
|
|
317
|
+
Content: FormatHelper.NumberFormatter(DEFAULT_DOUBLE_DISPLAY_VALUE, data.DisplayFormat.Options),
|
|
317
318
|
Size: 1,
|
|
318
319
|
},
|
|
319
320
|
] }),
|
|
320
321
|
React.createElement(AdaptableObjectRow, { colItems: [
|
|
321
|
-
{ Content: '-
|
|
322
|
+
{ Content: '-' + DEFAULT_DOUBLE_DISPLAY_VALUE, Size: 1 },
|
|
322
323
|
{
|
|
323
|
-
Content: FormatHelper.NumberFormatter(-
|
|
324
|
+
Content: FormatHelper.NumberFormatter(-DEFAULT_DOUBLE_DISPLAY_VALUE, data.DisplayFormat.Options),
|
|
324
325
|
Size: 1,
|
|
325
326
|
},
|
|
326
327
|
] }),
|
|
@@ -371,10 +372,10 @@ const renderStringFormat = (data, _onChange, setFormatOption, scopedCustomFormat
|
|
|
371
372
|
{ Content: 'Formatted String', Size: 1 },
|
|
372
373
|
] }),
|
|
373
374
|
React.createElement(AdaptableObjectRow, { colItems: [
|
|
374
|
-
{ Content: '"
|
|
375
|
+
{ Content: '"' + DEFAULT_STRING_DISPLAY_VALUE + '"', Size: 1 },
|
|
375
376
|
{
|
|
376
377
|
Content: '"' +
|
|
377
|
-
FormatHelper.StringFormatter(
|
|
378
|
+
FormatHelper.StringFormatter(DEFAULT_STRING_DISPLAY_VALUE, data.DisplayFormat.Options) +
|
|
378
379
|
'"',
|
|
379
380
|
Size: 1,
|
|
380
381
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FormatColumn } from '../../../PredefinedConfig/FormatColumnState';
|
|
3
|
-
|
|
3
|
+
type FormatColumnScopeWizardSectionProps = {
|
|
4
4
|
onChange: (data: FormatColumn) => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const renderFormatColumnScopeSummary: (data: FormatColumn) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FormatColumn } from '../../../PredefinedConfig/FormatColumnState';
|
|
3
|
-
|
|
3
|
+
type FormatColumnOptionsWizardSectionProps = {
|
|
4
4
|
onChange: (data: FormatColumn) => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const renderFormatColumnSettingsSummary: (data: FormatColumn) => JSX.Element;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { FormatColumn } from '../../../PredefinedConfig/FormatColumnState';
|
|
3
3
|
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
4
4
|
export declare const isFormatColumnStyleValid: (data: FormatColumn, api: AdaptableApi) => true | "No format applied";
|
|
5
|
-
|
|
5
|
+
type FormatColumnStyleWizardSectionProps = {
|
|
6
6
|
onChange: (data: FormatColumn) => void;
|
|
7
7
|
};
|
|
8
8
|
export declare const renderFormatColumnStyleWizardSummary: (data: FormatColumn) => JSX.Element;
|
|
@@ -115,7 +115,7 @@ export function FormatColumnWizard(props) {
|
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
title: 'Style',
|
|
118
|
-
details: 'Create a Style
|
|
118
|
+
details: 'Create a Style',
|
|
119
119
|
isValid: isFormatColumnStyleValid,
|
|
120
120
|
renderSummary: renderFormatColumnStyleWizardSummary,
|
|
121
121
|
render: () => {
|
|
@@ -125,6 +125,7 @@ export function FormatColumnWizard(props) {
|
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
title: 'Display Format',
|
|
128
|
+
details: 'Provide a Display Format',
|
|
128
129
|
renderSummary: (data) => renderFormatColumnFormatSummary(data),
|
|
129
130
|
render: () => {
|
|
130
131
|
return React.createElement(FormatColumnFormatWizardSection, { onChange: setFormatColumn });
|
|
@@ -132,6 +133,7 @@ export function FormatColumnWizard(props) {
|
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
135
|
title: 'Settings',
|
|
136
|
+
details: 'Set Additional Properties',
|
|
135
137
|
renderSummary: renderFormatColumnSettingsSummary,
|
|
136
138
|
render: () => {
|
|
137
139
|
return (React.createElement(Box, { padding: 2 },
|
|
@@ -3,7 +3,7 @@ import { FreeTextColumn } from '../../../PredefinedConfig/FreeTextColumnState';
|
|
|
3
3
|
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
4
4
|
export declare const renderFreeTextColumnSummary: (data: FreeTextColumn) => JSX.Element;
|
|
5
5
|
export declare const isValidFreeTextColumn: (data: FreeTextColumn, api: AdaptableApi) => true | "Column Id cannot be empty" | "A Column already exists with that id" | "No data type specified for column";
|
|
6
|
-
export
|
|
6
|
+
export type FreeTextColumnSettingsWizardSectionProps = {
|
|
7
7
|
onChange: (data: FreeTextColumn) => void;
|
|
8
8
|
isEdit: boolean;
|
|
9
9
|
};
|
|
@@ -5,7 +5,6 @@ import Input from '../../../components/Input';
|
|
|
5
5
|
import ErrorBox from '../../../components/ErrorBox';
|
|
6
6
|
import Radio from '../../../components/Radio';
|
|
7
7
|
import FormLayout, { FormRow } from '../../../components/FormLayout';
|
|
8
|
-
import DropdownButton from '../../../components/DropdownButton';
|
|
9
8
|
import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
|
|
10
9
|
import AdaptableInput from '../../Components/AdaptableInput';
|
|
11
10
|
import { CheckBox } from '../../../components/CheckBox';
|
|
@@ -13,6 +12,7 @@ import { DateFormatter } from '../../../Utilities/Helpers/FormatHelper';
|
|
|
13
12
|
import { parseToISO } from '../../../Utilities/Helpers/DateHelper';
|
|
14
13
|
import { Tag } from '../../../components/Tag';
|
|
15
14
|
import { SpecialColumnSettingsWizardStep } from '../../SpecialColumnSettingsWizardStep';
|
|
15
|
+
import { Select } from '../../../components/Select';
|
|
16
16
|
const options = [
|
|
17
17
|
{ value: 'Number', label: 'Number' },
|
|
18
18
|
{ value: 'String', label: 'String' },
|
|
@@ -102,7 +102,7 @@ export const FreeTextColumnSettingsWizardSection = (props) => {
|
|
|
102
102
|
};
|
|
103
103
|
return (React.createElement(React.Fragment, null,
|
|
104
104
|
React.createElement(FormLayout, null,
|
|
105
|
-
React.createElement(FormRow, { label: "
|
|
105
|
+
React.createElement(FormRow, { label: "Column Id" },
|
|
106
106
|
React.createElement(Input, { "data-name": "column-id", autoFocus: !inEdit, value: data.ColumnId || '', style: { width: '100%', maxWidth: 500 }, disabled: inEdit, type: "text", placeholder: "Enter an id", onChange: (e) => handleColumnIdChange(e) })),
|
|
107
107
|
React.createElement(FormRow, { label: "Column Name" },
|
|
108
108
|
React.createElement(Input, { "data-name": "column-name", autoFocus: inEdit, onFocus: () => {
|
|
@@ -110,19 +110,9 @@ export const FreeTextColumnSettingsWizardSection = (props) => {
|
|
|
110
110
|
}, onBlur: () => {
|
|
111
111
|
setColumnNameFocused(false);
|
|
112
112
|
}, value: ColumnNameFocused ? data.FriendlyName || '' : data.FriendlyName || data.ColumnId || '', style: { width: '100%', maxWidth: 500 }, type: "text", placeholder: "Enter a name", onChange: (e) => handleColumnNameChange(e) })),
|
|
113
|
-
React.createElement(FormRow, { label: "Type" },
|
|
114
|
-
React.createElement(
|
|
115
|
-
|
|
116
|
-
whiteSpace: 'normal',
|
|
117
|
-
overflow: 'hidden',
|
|
118
|
-
maxWidth: 'inherit',
|
|
119
|
-
}, placeholder: "Select Data Type", showClearButton: !!data.FreeTextColumnSettings.DataType, onClear: () => handleDataTypeChange(null), columns: ['label'], items: options.map((item) => ({
|
|
120
|
-
value: item.value,
|
|
121
|
-
label: item.label,
|
|
122
|
-
onClick: () => handleDataTypeChange(item.value),
|
|
123
|
-
})) }, data.FreeTextColumnSettings.DataType
|
|
124
|
-
? data.FreeTextColumnSettings.DataType
|
|
125
|
-
: 'Select Data Type')),
|
|
113
|
+
React.createElement(FormRow, { label: "Data Type" },
|
|
114
|
+
React.createElement(Box, { style: { maxWidth: 500 } },
|
|
115
|
+
React.createElement(Select, { "data-name": "column-type-dropdown", options: options, placeholder: "Select Data Type", value: data.FreeTextColumnSettings.DataType, onChange: (value) => handleDataTypeChange(value) }))),
|
|
126
116
|
React.createElement(FormRow, { label: "Default Value" }, data.FreeTextColumnSettings.DataType === 'Boolean' ? (React.createElement(CheckBox, { "data-name": "column-default-value-checkbox", checked: !!data.DefaultValue, onChange: (DefaultValue) => {
|
|
127
117
|
props.onChange(Object.assign(Object.assign({}, data), { DefaultValue }));
|
|
128
118
|
} })) : (React.createElement(AdaptableInput, { "data-name": "column-default-value", value: data.FreeTextColumnSettings.DataType === 'Date' && data.DefaultValue
|
|
@@ -131,13 +121,13 @@ export const FreeTextColumnSettingsWizardSection = (props) => {
|
|
|
131
121
|
? 'number'
|
|
132
122
|
: data.FreeTextColumnSettings.DataType === 'Date'
|
|
133
123
|
? 'date'
|
|
134
|
-
: 'text', placeholder: "Default Column Value (
|
|
124
|
+
: 'text', placeholder: "Default Column Value (optional)", onChange: (e) => handleDefaultValueChange(e) }))),
|
|
135
125
|
React.createElement(FormRow, { label: "Header Tooltip" },
|
|
136
126
|
React.createElement(Input, { "data-name": "header-tooltip", type: "text", style: { width: '100%', maxWidth: 500 }, value: ((_a = data.FreeTextColumnSettings) === null || _a === void 0 ? void 0 : _a.HeaderToolTip) || '', onChange: (e) => handleSpecialColumnSettingsChange({
|
|
137
127
|
HeaderToolTip: e.target.value,
|
|
138
128
|
}) })),
|
|
139
129
|
' ',
|
|
140
|
-
data.FreeTextColumnSettings.DataType == 'String' && (React.createElement(FormRow, { label: "Editor
|
|
130
|
+
data.FreeTextColumnSettings.DataType == 'String' && (React.createElement(FormRow, { label: "Cell Editor" },
|
|
141
131
|
React.createElement(Radio, { "data-name": "inline-editor", value: "Inline", checked: data.TextEditor == 'Inline', onChange: (_, e) => onDynamicSelectChanged(e), marginRight: 2 }, "Inline Editor"),
|
|
142
132
|
React.createElement(Radio, { "data-name": "large-editor", value: "Large", checked: data.TextEditor == 'Large', onChange: (_, e) => onDynamicSelectChanged(e) }, "Large Editor")))),
|
|
143
133
|
ErrorMessage ? (React.createElement(ErrorBox, { mt: 2, mb: 2 }, ErrorMessage)) : null,
|