@adaptabletools/adaptable 17.0.0-canary.0 → 17.0.0-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +1203 -1207
- package/base.css.map +1 -1
- package/index.css +28 -1989
- package/index.css.map +1 -1
- package/package.json +9 -110
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +2 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +16 -11
- package/src/AdaptableOptions/ActionRowOptions.d.ts +25 -3
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +3 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +10 -1
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +1 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +2 -2
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +110 -91
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
- package/src/AdaptableOptions/DateInputOptions.d.ts +1 -1
- package/src/AdaptableOptions/EditOptions.d.ts +2 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +3 -3
- package/src/AdaptableOptions/ExpressionOptions.d.ts +2 -2
- package/src/AdaptableOptions/Fdc3Options.d.ts +10 -4
- package/src/AdaptableOptions/GridFilterOptions.d.ts +18 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +10 -4
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -1
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +4 -4
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -16
- package/src/Api/ColumnApi.d.ts +4 -0
- package/src/Api/ColumnFilterApi.d.ts +2 -5
- package/src/Api/DashboardApi.d.ts +0 -11
- package/src/Api/EventApi.d.ts +2 -30
- package/src/Api/Events/ActionRowSubmitted.d.ts +1 -5
- package/src/Api/Events/AdaptableSearchState.d.ts +2 -7
- package/src/Api/Events/Fdc3MessageInfo.d.ts +1 -1
- package/src/Api/Events/GridFilterApplied.d.ts +2 -1
- package/src/Api/ExportApi.d.ts +0 -4
- package/src/Api/GridFilterApi.d.ts +26 -8
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +4 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnFilterApiImpl.js +3 -3
- package/src/Api/Implementation/ConfigApiImpl.js +1 -2
- package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -2
- package/src/Api/Implementation/DashboardApiImpl.js +0 -14
- package/src/Api/Implementation/ExportApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ExportApiImpl.js +0 -3
- package/src/Api/Implementation/GridApiImpl.js +2 -2
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +6 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +22 -3
- package/src/Api/Implementation/NamedQueryApiImpl.d.ts +2 -5
- package/src/Api/Implementation/NamedQueryApiImpl.js +2 -2
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -1
- package/src/Api/Implementation/OptionsApiImpl.js +3 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
- package/src/Api/Internal/ActionRowInternalApi.d.ts +1 -0
- package/src/Api/Internal/ActionRowInternalApi.js +17 -3
- package/src/Api/Internal/AlertInternalApi.d.ts +1 -7
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +2 -2
- package/src/Api/Internal/ColumnFilterInternalApi.js +9 -9
- package/src/Api/Internal/ColumnInternalApi.d.ts +0 -10
- package/src/Api/Internal/ColumnInternalApi.js +0 -28
- package/src/Api/Internal/Fdc3InternalApi.d.ts +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +6 -6
- package/src/Api/Internal/GridFilterInternalApi.d.ts +1 -1
- package/src/Api/Internal/GridFilterInternalApi.js +5 -5
- package/src/Api/Internal/GridInternalApi.js +31 -9
- package/src/Api/Internal/LayoutInternalApi.js +8 -0
- package/src/Api/Internal/PredicateInternalApi.js +3 -3
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +0 -3
- package/src/Api/Internal/StyledColumnInternalApi.js +0 -27
- package/src/Api/NamedQueryApi.d.ts +6 -5
- package/src/Api/OptionsApi.d.ts +5 -1
- package/src/PredefinedConfig/AlertState.d.ts +6 -6
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +1 -1
- package/src/PredefinedConfig/ChartingState.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptableAlert.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableMessageType.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +45 -58
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableScope.d.ts +5 -5
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -1
- package/src/PredefinedConfig/Common/ColumnFilter.d.ts +2 -2
- package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
- package/src/PredefinedConfig/Common/Fdc3Context.d.ts +133 -37
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +4 -4
- package/src/PredefinedConfig/Common/Schedule.d.ts +2 -2
- package/src/PredefinedConfig/Common/Types.d.ts +15 -15
- package/src/PredefinedConfig/ExportState.d.ts +4 -4
- package/src/PredefinedConfig/FlashingCellState.d.ts +4 -4
- package/src/PredefinedConfig/FormatColumnState.d.ts +4 -27
- package/src/PredefinedConfig/NotesState.d.ts +2 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -5
- package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +8 -13
- package/src/PredefinedConfig/SystemState.d.ts +3 -3
- package/src/PredefinedConfig/TeamSharingState.d.ts +3 -3
- package/src/PredefinedConfig/ToolPanelState.d.ts +1 -1
- package/src/PredefinedConfig/Uuid.d.ts +1 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +6 -1
- package/src/Redux/ActionsReducers/GridRedux.js +18 -0
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +37 -16
- package/src/Redux/ActionsReducers/LayoutRedux.js +69 -16
- package/src/Redux/Store/AdaptableReduxMerger.d.ts +1 -1
- package/src/Redux/Store/AdaptableStore.d.ts +2 -2
- package/src/Redux/Store/AdaptableStore.js +46 -19
- package/src/Strategy/AdaptableModuleBase.d.ts +0 -1
- package/src/Strategy/AdaptableModuleBase.js +0 -30
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Strategy/ChartingModule.js +8 -5
- package/src/Strategy/ColumnFilterModule.d.ts +2 -0
- package/src/Strategy/ColumnFilterModule.js +78 -40
- package/src/Strategy/CustomSortModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +1 -1
- package/src/Strategy/Interface/IModule.d.ts +3 -3
- package/src/Strategy/LayoutModule.js +5 -0
- package/src/Strategy/StyledColumnModule.js +2 -53
- package/src/Utilities/Constants/GeneralConstants.d.ts +3 -0
- package/src/Utilities/Constants/GeneralConstants.js +3 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +31 -23
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +1 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -2
- package/src/Utilities/Emitter.d.ts +2 -2
- package/src/Utilities/Emitter.js +2 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +55 -5
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +9 -0
- package/src/Utilities/ExpressionFunctions/deepMap.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +7 -7
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +7 -7
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +7 -7
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +11 -1
- package/src/Utilities/Extensions/TypeExtensions.d.ts +8 -8
- package/src/Utilities/Helpers/AdaptableHelper.js +4 -0
- package/src/Utilities/ObjectFactory.js +1 -1
- package/src/Utilities/Services/EntitlementService.d.ts +0 -1
- package/src/Utilities/Services/EntitlementService.js +0 -8
- package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -3
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +0 -6
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +1 -1
- package/src/Utilities/Services/LicenseService/index.js +181 -1
- package/src/Utilities/Services/MetamodelService.js +1 -1
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/license/LicenseDetails.d.ts +1 -1
- package/src/Utilities/license/decode.js +65 -1
- package/src/Utilities/license/hashing.js +43 -1
- package/src/Utilities/logDeprecation.d.ts +5 -3
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +1 -1
- package/src/View/Alert/AlertEmptyView.js +1 -1
- package/src/View/Alert/Utilities/getAvailablePredicates.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +20 -4
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +21 -24
- package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertWizard.js +1 -1
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +3 -9
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -18
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +5 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +5 -5
- package/src/View/ColumnInfo/ColumnInfo.js +7 -8
- package/src/View/Components/AdaptableDateInput/index.d.ts +2 -2
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +2 -2
- package/src/View/Components/Buttons/ButtonBase/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonOpen.d.ts +5 -0
- package/src/View/Components/Buttons/ButtonOpen.js +7 -0
- package/src/View/Components/Buttons/ButtonUnsuspend.d.ts +8 -0
- package/src/View/Components/Buttons/ButtonUnsuspend.js +17 -0
- package/src/View/Components/CellPopup/index.d.ts +1 -1
- package/src/View/Components/ColumnSelector/index.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.d.ts +2 -2
- package/src/View/Components/EntityRulesEditor/index.js +11 -3
- package/src/View/Components/ExternalRenderer.d.ts +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +24 -24
- package/src/View/Components/FilterForm/QuickFilterForm.js +3 -3
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterValues.js +2 -2
- package/src/View/Components/FilterForm/Waiting.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -2
- package/src/View/Components/PredicateEditor/PredicateEditor.js +10 -10
- package/src/View/Components/RangesComponent.js +11 -8
- package/src/View/Components/Selectors/ColumnSelector.d.ts +12 -17
- package/src/View/Components/Selectors/ColumnSelector.js +23 -42
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +18 -0
- package/src/View/Components/Selectors/ColumnSelectorOld.js +46 -0
- package/src/View/Components/Selectors/ColumnValueSelector.d.ts +4 -23
- package/src/View/Components/Selectors/ColumnValueSelector.js +34 -126
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +13 -0
- package/src/View/Components/Selectors/PermittedValuesSelector.js +46 -0
- package/src/View/Components/StyleComponent.d.ts +2 -3
- package/src/View/Components/StyleComponent.js +37 -40
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -2
- package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +1 -1
- package/src/View/Components/ValueSelector/index.d.ts +2 -2
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +1 -1
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.d.ts +1 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +4 -4
- package/src/View/Dashboard/DashboardToolbarFactory.js +0 -1
- package/src/View/Dashboard/PinnedDashboard.js +6 -3
- package/src/View/Dashboard/PinnedToolbarsSelector.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -1
- package/src/View/DataImport/DataImportPopup.js +1 -1
- package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +1 -1
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.d.ts +1 -1
- package/src/View/DataSet/DataSetViewPanel.js +3 -2
- package/src/View/Export/ExportViewPanel.js +12 -9
- package/src/View/Export/Wizard/ReportColumnsWizardSection.d.ts +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.d.ts +1 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +8 -8
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +10 -9
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +3 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -17
- package/src/View/GridFilter/GridFilterExpressionEditor.js +62 -9
- package/src/View/GridFilter/GridFilterPopup.js +36 -6
- package/src/View/GridFilter/GridFilterStatusbar.js +0 -1
- package/src/View/GridFilter/GridFilterViewPanel.d.ts +2 -26
- package/src/View/GridFilter/GridFilterViewPanel.js +49 -150
- package/src/View/GridFilter/NamedQuerySelector.d.ts +16 -0
- package/src/View/GridFilter/NamedQuerySelector.js +50 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +24 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +123 -0
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.d.ts +4 -0
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +27 -0
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +5 -3
- package/src/View/Layout/LayoutViewPanel.js +4 -3
- package/src/View/Layout/SaveLayoutButton.js +2 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +10 -0
- package/src/View/Layout/Wizard/sections/FilterSection.js +15 -17
- package/src/View/Layout/Wizard/sections/GridFilterSection.d.ts +9 -0
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +37 -0
- package/src/View/License/LicenseWatermark.js +61 -1
- package/src/View/NamedQuery/EditCurrentQueryButton.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +2 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +6 -5
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -7
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +4 -3
- package/src/View/SmartEdit/SmartEditViewPanel.js +7 -5
- package/src/View/SpecialColumnSettingsWizardStep.js +4 -1
- package/src/View/StateManagement/StateManagementPopup.js +6 -6
- package/src/View/StatusBar/StatusBarPopup.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +16 -8
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +20 -23
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +2 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +7 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +0 -8
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +2 -9
- package/src/View/SystemStatus/SystemStatusViewPanel.js +1 -1
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +1 -1
- package/src/View/Theme/ThemeEditor.d.ts +1 -1
- package/src/View/Theme/ThemeViewPanel.js +4 -3
- package/src/View/UIHelper.d.ts +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.d.ts +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
- package/src/View/Wizard/OnePageWizards.d.ts +2 -2
- package/src/agGrid/Adaptable.d.ts +20 -17
- package/src/agGrid/Adaptable.js +193 -190
- package/src/agGrid/AdaptableLogger.js +15 -15
- package/src/agGrid/CheckboxRenderer.d.ts +5 -0
- package/src/agGrid/CheckboxRenderer.js +5 -1
- package/src/agGrid/ColumnSetupInfo.d.ts +1 -1
- package/src/agGrid/agGridHelper.d.ts +0 -1
- package/src/agGrid/agGridHelper.js +16 -14
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +2 -2
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.d.ts +2 -2
- package/src/components/CheckBox/index.d.ts +1 -1
- package/src/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/src/components/ColorPicker/ColorPicker.js +1 -1
- package/src/components/ContainerProps.d.ts +2 -2
- package/src/components/Dashboard/Dashboard.d.ts +2 -2
- package/src/components/Dashboard/DashboardTab.d.ts +1 -1
- package/src/components/Dashboard/DashboardToolbar.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +2 -2
- package/src/components/Dialog/index.d.ts +2 -2
- package/src/components/Dropdown/index.d.ts +2 -2
- package/src/components/DropdownButton/DropdownButtonItem.d.ts +1 -1
- package/src/components/DropdownButton/index.d.ts +1 -1
- package/src/components/DropdownButton/renderItem.d.ts +1 -1
- package/src/components/DropdownButton/useExpanded.d.ts +1 -1
- package/src/components/EllipsisContainer/index.d.ts +1 -1
- package/src/components/EmptyContent/index.d.ts +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
- package/src/components/ExpressionEditor/NamedQueryContext.d.ts +1 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +45 -15
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +7 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +48 -33
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.d.ts +1 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +6 -6
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +2 -0
- package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +2 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +30 -0
- package/src/components/ExpressionEditor/index.d.ts +2 -1
- package/src/components/ExpressionEditor/index.js +81 -59
- package/src/components/FormLayout/index.d.ts +4 -4
- package/src/components/Input/NumberInput.d.ts +1 -1
- package/src/components/Input/index.d.ts +2 -2
- package/src/components/List/ListGroupItem/index.d.ts +2 -2
- package/src/components/Modal/Backdrop.d.ts +2 -2
- package/src/components/OverlayTrigger/index.d.ts +1 -1
- package/src/components/Panel/index.d.ts +1 -1
- package/src/components/Radio/index.d.ts +1 -1
- package/src/components/ResizeObserver/index.d.ts +1 -1
- package/src/components/Select/Select.d.ts +30 -0
- package/src/components/Select/Select.js +128 -0
- package/src/components/Select/index.d.ts +1 -0
- package/src/components/Select/index.js +1 -0
- package/src/components/SelectableList/index.d.ts +1 -1
- package/src/components/Tabs/index.d.ts +3 -3
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/Toggle/Toggle.d.ts +1 -1
- package/src/components/WarningBox/index.d.ts +4 -0
- package/src/components/WarningBox/index.js +7 -0
- package/src/components/WindowModal/WindowModal.d.ts +2 -2
- package/src/components/icons/DefaultIcon.d.ts +1 -1
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/resume.d.ts +3 -0
- package/src/components/icons/resume.js +4 -0
- package/src/components/utils/useContainerScrollObserver/index.d.ts +1 -1
- package/src/components/utils/uuid.d.ts +1 -1
- package/src/metamodel/adaptable-metamodel-model.d.ts +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +330 -27
- package/src/metamodel/adaptable.metamodel.js +9435 -1
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +3 -0
- package/src/parser/src/predicate/types.d.ts +2 -2
- package/src/parser/src/types.d.ts +23 -11
- package/src/renderReactRoot.d.ts +2 -4
- package/src/renderReactRoot.js +5 -46
- package/src/types.d.ts +6 -6
- package/themes/dark.css +1 -1
- package/themes/dark.css.map +1 -1
- package/themes/light.css +1 -1
- package/themes/light.css.map +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -0
- package/publishTimestamp.d.ts +0 -2
- package/publishTimestamp.js +0 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +0 -216
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +0 -6
- package/src/AdaptableOptions/FinancePluginOptions.js +0 -1
- package/src/Api/Events/ChexboxColumnClicked.d.ts +0 -24
- package/src/Api/Events/ChexboxColumnClicked.js +0 -1
- package/src/Api/Events/QueryRun.d.ts +0 -15
- package/src/Api/Events/QueryRun.js +0 -1
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +0 -41
- package/src/PredefinedConfig/ConditionalStyleState.js +0 -1
- package/version.d.ts +0 -2
- package/version.js +0 -1
- /package/src/AdaptableOptions/{FilterOptions.js → GridFilterOptions.js} +0 -0
|
@@ -48,9 +48,9 @@ export const ShortcutWizard = (props) => {
|
|
|
48
48
|
isValid: isScopeValid,
|
|
49
49
|
details: 'Specify where Shortcut should be applied',
|
|
50
50
|
renderSummary: () => renderScopeSummary(shortcut.Scope, {
|
|
51
|
-
scopeWholeRow: 'Shortcut is triggered for
|
|
52
|
-
scopeColumns: 'Shortcut is triggered
|
|
53
|
-
scopeDataTypes: 'Shortcut is triggered for
|
|
51
|
+
scopeWholeRow: 'Shortcut is triggered for all numeric cells',
|
|
52
|
+
scopeColumns: 'Shortcut is triggered for cells in selected columns',
|
|
53
|
+
scopeDataTypes: 'Shortcut is triggered for all numeric cells',
|
|
54
54
|
}),
|
|
55
55
|
render: () => (React.createElement(Box, { padding: 2 },
|
|
56
56
|
React.createElement(ShortcutScopeWizardSection, { onChange: setShortcut }))),
|
|
@@ -83,6 +83,7 @@ export const ShortcutWizard = (props) => {
|
|
|
83
83
|
},
|
|
84
84
|
'-',
|
|
85
85
|
{
|
|
86
|
+
details: 'Review the Shortcut',
|
|
86
87
|
render: () => {
|
|
87
88
|
return (React.createElement(Box, { padding: 2 },
|
|
88
89
|
React.createElement(OnePageWizardSummary, null)));
|
|
@@ -6,12 +6,12 @@ import { StringExtensions } from '../../Utilities/Extensions/StringExtensions';
|
|
|
6
6
|
import { PreviewResultsPanel } from '../Components/PreviewResultsPanel';
|
|
7
7
|
import { EnumExtensions } from '../../Utilities/Extensions/EnumExtensions';
|
|
8
8
|
import { Flex } from 'rebass';
|
|
9
|
-
import DropdownButton from '../../components/DropdownButton';
|
|
10
9
|
import Input from '../../components/Input';
|
|
11
10
|
import { ButtonApply } from '../Components/Buttons/ButtonApply';
|
|
12
11
|
import { AdaptablePopover } from '../AdaptablePopover';
|
|
13
12
|
import { UIHelper } from '../UIHelper';
|
|
14
13
|
import { connect } from 'react-redux';
|
|
14
|
+
import { Select } from '../../components/Select';
|
|
15
15
|
class SmartEditViewPanelComponent extends React.Component {
|
|
16
16
|
constructor(props) {
|
|
17
17
|
super(props);
|
|
@@ -43,6 +43,7 @@ class SmartEditViewPanelComponent extends React.Component {
|
|
|
43
43
|
const operationMenuItems = EnumExtensions.getNames(MathOperation).map((mathOperation, index) => {
|
|
44
44
|
return {
|
|
45
45
|
onClick: () => this.props.onSmartEditOperationChange(mathOperation),
|
|
46
|
+
value: mathOperation,
|
|
46
47
|
label: mathOperation,
|
|
47
48
|
};
|
|
48
49
|
});
|
|
@@ -52,6 +53,7 @@ class SmartEditViewPanelComponent extends React.Component {
|
|
|
52
53
|
return {
|
|
53
54
|
onClick: () => this.props.onSmartEditOperationChange(operation),
|
|
54
55
|
label: operation.name,
|
|
56
|
+
value: operation,
|
|
55
57
|
};
|
|
56
58
|
}));
|
|
57
59
|
}
|
|
@@ -65,12 +67,12 @@ class SmartEditViewPanelComponent extends React.Component {
|
|
|
65
67
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
66
68
|
return (React.createElement(Flex, { flexDirection: "row", className: `ab-${elementType}__SmartEdit__wrap`, flexWrap: this.props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
67
69
|
React.createElement(Flex, null,
|
|
68
|
-
React.createElement(
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
React.createElement(Select, { value: typeof this.props.SmartEditOperation === 'object'
|
|
71
|
+
? this.props.SmartEditOperation.name
|
|
72
|
+
: this.props.SmartEditOperation, options: operationMenuItems, onChange: (operation) => this.props.onSmartEditOperationChange(operation), style: { marginRight: 1 } }),
|
|
71
73
|
React.createElement(Input, { style: {
|
|
72
74
|
width: '5rem',
|
|
73
|
-
}, className: `ab-${elementType}__SmartEdit__select-value`, value: this.props.SmartEditValue.toString(), type: "number", placeholder: "Enter a Number", step: "any", onChange: (e) => this.onSmartEditValueChange(e), disabled: shouldDisable
|
|
75
|
+
}, className: `ab-${elementType}__SmartEdit__select-value`, value: this.props.SmartEditValue.toString(), type: "number", placeholder: "Enter a Number", step: "any", onChange: (e) => this.onSmartEditValueChange(e), disabled: shouldDisable })),
|
|
74
76
|
React.createElement(Flex, null,
|
|
75
77
|
!shouldDisable && (React.createElement(ButtonApply, { onClick: () => this.onApplyClick(), style: applyButtonStyle, className: `ab-${elementType}__SmartEdit__apply`, tooltip: "Apply Smart Edit", disabled: StringExtensions.IsNullOrEmpty(`${this.props.SmartEditValue}`) ||
|
|
76
78
|
(this.props.PreviewInfo != null &&
|
|
@@ -4,6 +4,7 @@ import { Flex } from 'rebass';
|
|
|
4
4
|
import { CheckBox } from '../components/CheckBox';
|
|
5
5
|
import FormLayout, { FormRow } from '../components/FormLayout';
|
|
6
6
|
import { Tabs } from '../components/Tabs';
|
|
7
|
+
import { ColumnFilterModuleId } from '../Utilities/Constants/ModuleConstants';
|
|
7
8
|
import { useAdaptable } from './AdaptableContext';
|
|
8
9
|
export const SpecialColumnSettingsWizardStep = (props) => {
|
|
9
10
|
var _a, _b;
|
|
@@ -34,7 +35,9 @@ export const SpecialColumnSettingsWizardStep = (props) => {
|
|
|
34
35
|
{ size: '30%', name: 'third' },
|
|
35
36
|
] },
|
|
36
37
|
React.createElement(FormRow, null,
|
|
37
|
-
React.createElement(CheckBox, { "data-name": "filterable", checked: Filterable, onChange: (Filterable) => onSettingsChange({ Filterable }), disabled: !adaptable.api.optionsApi.getColumnFilterOptions()
|
|
38
|
+
React.createElement(CheckBox, { "data-name": "filterable", checked: Filterable, onChange: (Filterable) => onSettingsChange({ Filterable }), disabled: !adaptable.api.optionsApi.getColumnFilterOptions()
|
|
39
|
+
.enableFilterOnSpecialColumns ||
|
|
40
|
+
adaptable.EntitlementService.getEntitlementAccessLevelForModule(ColumnFilterModuleId) == 'Hidden' }, "Filterable"),
|
|
38
41
|
React.createElement(CheckBox, { "data-name": "resizable", checked: Resizable, onChange: (Resizable) => onSettingsChange({ Resizable }) }, "Resizable"),
|
|
39
42
|
React.createElement(CheckBox, { "data-name": "groupable", checked: Groupable, onChange: (Groupable) => onSettingsChange({ Groupable }) }, "Groupable")),
|
|
40
43
|
React.createElement(FormRow, null,
|
|
@@ -9,19 +9,19 @@ export const StateManagementPopup = (props) => {
|
|
|
9
9
|
const baseClassName = 'ab-ManageState';
|
|
10
10
|
return (React.createElement(PopupPanel, { className: baseClassName, headerText: props.moduleInfo.FriendlyName, glyphicon: props.moduleInfo.Glyph, infoLink: props.moduleInfo.HelpPage, infoLinkDisabled: !props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
11
11
|
React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "user-state", header: 'User State', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginRight: 2, mb: 2 },
|
|
12
|
-
React.createElement(HelpBlock, { marginBottom: 2 }, 'Clear all current user state that has been persisted
|
|
13
|
-
React.createElement(HelpBlock,
|
|
14
|
-
React.createElement(ClearButton, { "data-name": "clear-user-state-button", tone: "
|
|
12
|
+
React.createElement(HelpBlock, { marginBottom: 2 }, 'Clear all current user state that has been persisted'),
|
|
13
|
+
React.createElement(HelpBlock, { style: { color: 'var(--ab-color-warn)' } }, 'This will cause this window to close and any state you have previously created will be lost and the initial Predefined Config will then be reapplied.'),
|
|
14
|
+
React.createElement(ClearButton, { "data-name": "clear-user-state-button", tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onClick: () => props.api.configApi.reloadPredefinedConfig() }, "Clear User State")),
|
|
15
15
|
React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "predefined-config", header: 'Load Predefined Config', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginRight: 2, mb: 2 },
|
|
16
|
-
React.createElement(HelpBlock, { marginTop: 2 }, 'Load Predefined Config (from a .json file)
|
|
16
|
+
React.createElement(HelpBlock, { marginTop: 2 }, 'Load Predefined Config (from a .json file) - this will cause this window to close'),
|
|
17
17
|
' ',
|
|
18
18
|
React.createElement(LoadButton, { tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onLoad: (json) => props.api.configApi.reloadPredefinedConfig(json), "data-name": "load-predefined-config-button" }, "Load Predefined Config")),
|
|
19
19
|
React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "adaptable-state", header: 'Export Adaptable State', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginRight: 2, mb: 2 },
|
|
20
|
-
React.createElement(HelpBlock, { marginTop: 2, marginBottom: 2 }, 'Exports the currently persisted Adaptable
|
|
20
|
+
React.createElement(HelpBlock, { marginTop: 2, marginBottom: 2 }, 'Exports the currently persisted Adaptable State'),
|
|
21
21
|
' ',
|
|
22
22
|
React.createElement(ExportDropdown, { api: props.api, type: "adaptableState", marginRight: 3, style: { flex: 1, maxWidth: 'none' }, columns: ['label'], "data-name": "export-adaptable-state-dropdown" }, "Select Export Destination")),
|
|
23
23
|
React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "initial-predefined-config", header: 'Export Initial Predefined Config', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginRight: 2, mb: 2 },
|
|
24
|
-
React.createElement(HelpBlock, { marginTop: 2, marginBottom: 2 }, 'Exports the Predefined Config which was provided at design time
|
|
24
|
+
React.createElement(HelpBlock, { marginTop: 2, marginBottom: 2 }, 'Exports the Predefined Config which was provided at design time'),
|
|
25
25
|
' ',
|
|
26
26
|
React.createElement(ExportDropdown, { api: props.api, type: "predefinedConfig", marginRight: 3, style: { flex: 1, maxWidth: 'none' }, columns: ['label'], "data-name": "export-initial-predefined-config-dropdown" }, "Select Export Destination"))));
|
|
27
27
|
};
|
|
@@ -35,5 +35,5 @@ export const StatusBarPopup = (props) => {
|
|
|
35
35
|
dragAndDropTab: false,
|
|
36
36
|
deleteTab: false,
|
|
37
37
|
editTabName: false,
|
|
38
|
-
}, onTabsChange: handleTabChange, disabled: disabled, tabs: tabs, availableItems: availableItems, tabsTitle: 'AdapTable Status Bar Panels', unusedPanelTitle: "Available
|
|
38
|
+
}, onTabsChange: handleTabChange, disabled: disabled, tabs: tabs, availableItems: availableItems, tabsTitle: 'AdapTable Status Bar Panels', unusedPanelTitle: "Available Status Bar Components", dragItemText: "Drag into a Status Bar Panel below" })) : (React.createElement(EmptyContent, null, "To enable this feature add to Grid Options statusPanels the Adaptable Status Panel."))));
|
|
39
39
|
};
|
|
@@ -15,6 +15,7 @@ import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableW
|
|
|
15
15
|
import { StyledColumnBadgePreview } from './StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview';
|
|
16
16
|
import { Badge } from '../../Components/Badge';
|
|
17
17
|
import { AdaptableIconComponent } from '../../Components/AdaptableIconComponent';
|
|
18
|
+
import { DEFAULT_INTEGER_DISPLAY_VALUE, DEFAULT_STRING_DISPLAY_VALUE } from '../../../Utilities/Constants/GeneralConstants';
|
|
18
19
|
const BadgeEditor = (props) => {
|
|
19
20
|
var _a, _b;
|
|
20
21
|
const { api } = useOnePageAdaptableWizardContext();
|
|
@@ -22,8 +23,10 @@ const BadgeEditor = (props) => {
|
|
|
22
23
|
// badges evaluate predicate per value
|
|
23
24
|
const predicateDefs = api.styledColumnApi.internalApi.getBadgePredicateDefsForColumn(columnId);
|
|
24
25
|
const dataType = api.columnApi.getColumnDataTypeForColumnId(columnId);
|
|
25
|
-
const previewValue = dataType === 'Number' || dataType == 'NumberArray' ?
|
|
26
|
-
return (React.createElement(
|
|
26
|
+
const previewValue = dataType === 'Number' || dataType == 'NumberArray' ? DEFAULT_INTEGER_DISPLAY_VALUE : DEFAULT_STRING_DISPLAY_VALUE;
|
|
27
|
+
return (React.createElement(
|
|
28
|
+
Flex,
|
|
29
|
+
{ className: "ab-Badge-Definition-Editor", mb: 15, p: 3 },
|
|
27
30
|
React.createElement(Box, { flex: 1 },
|
|
28
31
|
React.createElement(FormLayout, null,
|
|
29
32
|
React.createElement(FormRow, { label: "Preview" },
|
|
@@ -38,11 +41,15 @@ const BadgeEditor = (props) => {
|
|
|
38
41
|
] },
|
|
39
42
|
React.createElement(SimpleButton, { variant: "raised" }, "Edit Badge Style"))),
|
|
40
43
|
!api.columnApi.hasArrayDataType(columnId) && ( // dont show predicates for arrays
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
(React.createElement(
|
|
45
|
+
FormRow,
|
|
46
|
+
{ label: 'Predicate' },
|
|
47
|
+
columnId ? (React.createElement(React.Fragment, null,
|
|
48
|
+
React.createElement(HelpBlock, { fontSize: 2, mb: 1, mt: 2 }, "Create (optional) Rule for when the Badge is displayed; if no Rule provided Badge will always display (unless overriden by another Rule)"),
|
|
49
|
+
React.createElement(PredicateEditor, { columnId: columnId, predicate: badge.Predicate, predicateDefs: predicateDefs, placeholder: "No Predicate Selected", onChange: (predicate) => {
|
|
50
|
+
onChange(Object.assign(Object.assign({}, badge), { Predicate: predicate }));
|
|
51
|
+
}, onClear: () => onChange(Object.assign(Object.assign({}, badge), { Predicate: undefined })) }))) : (React.createElement(ErrorBox, null, "Select a column first"))
|
|
52
|
+
))),
|
|
46
53
|
React.createElement(FormRow, { label: "Icon" },
|
|
47
54
|
React.createElement(HelpBlock, { fontSize: 2, mb: 1, mt: 2 }, "Select (optional) Icon (and Icon position) to display in the Badge"),
|
|
48
55
|
' ',
|
|
@@ -69,7 +76,8 @@ const BadgeEditor = (props) => {
|
|
|
69
76
|
},
|
|
70
77
|
] }, (_b = badge.IconPosition) !== null && _b !== void 0 ? _b : 'Start'))))),
|
|
71
78
|
React.createElement(Box, { justifyContent: "end" },
|
|
72
|
-
React.createElement(SimpleButton, { icon: "delete", onClick: props.onDelete }))
|
|
79
|
+
React.createElement(SimpleButton, { icon: "delete", onClick: props.onDelete }))
|
|
80
|
+
));
|
|
73
81
|
};
|
|
74
82
|
export const renderBadgeSummary = (styledColumn) => {
|
|
75
83
|
return React.createElement(StyledColumnBadgePreview, { data: styledColumn });
|
|
@@ -2,9 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { Box, Flex } from 'rebass';
|
|
3
3
|
import { CheckBox } from '../../../components/CheckBox';
|
|
4
4
|
import { ColorPicker } from '../../../components/ColorPicker';
|
|
5
|
-
import DropdownButton from '../../../components/DropdownButton';
|
|
6
5
|
import FormLayout, { FormRow } from '../../../components/FormLayout';
|
|
7
6
|
import Input from '../../../components/Input';
|
|
7
|
+
import { Select } from '../../../components/Select';
|
|
8
8
|
import { Tabs } from '../../../components/Tabs';
|
|
9
9
|
import { Tag } from '../../../components/Tag';
|
|
10
10
|
import { setInPath } from '../../../Utilities/Extensions/ObjectExtensions';
|
|
@@ -13,24 +13,21 @@ import AdaptableInput from '../../Components/AdaptableInput';
|
|
|
13
13
|
import { BLACK, LIGHT_BLUE, LIGHT_GRAY, YELLOW } from '../../UIHelper';
|
|
14
14
|
import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
|
|
15
15
|
const CommonProperties = (props) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
|
|
16
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
|
|
17
17
|
const { data, api } = useOnePageAdaptableWizardContext();
|
|
18
18
|
const axisTypeOptions = React.useMemo(() => {
|
|
19
19
|
return [
|
|
20
20
|
{
|
|
21
21
|
label: 'Number',
|
|
22
22
|
value: 'number',
|
|
23
|
-
onClick: () => props.onOptionChange(['axis', 'type'], 'number'),
|
|
24
23
|
},
|
|
25
24
|
{
|
|
26
25
|
label: 'Category',
|
|
27
26
|
value: 'category',
|
|
28
|
-
onClick: () => props.onOptionChange(['axis', 'type'], 'category'),
|
|
29
27
|
},
|
|
30
28
|
{
|
|
31
29
|
label: 'Time',
|
|
32
30
|
value: 'time',
|
|
33
|
-
onClick: () => props.onOptionChange(['axis', 'type'], 'time'),
|
|
34
31
|
},
|
|
35
32
|
];
|
|
36
33
|
}, [data]);
|
|
@@ -51,21 +48,22 @@ const CommonProperties = (props) => {
|
|
|
51
48
|
React.createElement(Tabs.Content, null,
|
|
52
49
|
React.createElement(FormLayout, null,
|
|
53
50
|
React.createElement(FormRow, { label: "Axis Type" },
|
|
54
|
-
React.createElement(
|
|
51
|
+
React.createElement(Box, { maxWidth: 180 },
|
|
52
|
+
React.createElement(Select, { value: (_l = (_k = (_j = data === null || data === void 0 ? void 0 : data.SparkLineStyle) === null || _j === void 0 ? void 0 : _j.options) === null || _k === void 0 ? void 0 : _k.axis) === null || _l === void 0 ? void 0 : _l.type, options: axisTypeOptions, onChange: (value) => props.onOptionChange(['axis', 'type'], value), placeholder: "Select Axis Type" }))),
|
|
55
53
|
React.createElement(FormRow, { label: "Stroke Color" },
|
|
56
|
-
React.createElement(ColorPicker, { api: api, value: (
|
|
54
|
+
React.createElement(ColorPicker, { api: api, value: (_q = (_p = (_o = (_m = data.SparkLineStyle) === null || _m === void 0 ? void 0 : _m.options) === null || _o === void 0 ? void 0 : _o.axis) === null || _p === void 0 ? void 0 : _p.stroke) !== null && _q !== void 0 ? _q : '#fff', onChange: (color) => props.onOptionChange(['axis', 'stroke'], color) })),
|
|
57
55
|
React.createElement(FormRow, { label: "Stroke Width" },
|
|
58
|
-
React.createElement(AdaptableInput, { type: "number", value: (
|
|
56
|
+
React.createElement(AdaptableInput, { type: "number", value: (_u = (_t = (_s = (_r = data.SparkLineStyle) === null || _r === void 0 ? void 0 : _r.options) === null || _s === void 0 ? void 0 : _s.axis) === null || _t === void 0 ? void 0 : _t.strokeWidth) !== null && _u !== void 0 ? _u : 0, onChange: (event) => props.onOptionChange(['axis', 'strokeWidth'], parseFloat(event.target.value)) })))),
|
|
59
57
|
React.createElement(Tabs.Content, null,
|
|
60
58
|
React.createElement(FormLayout, null,
|
|
61
59
|
React.createElement(FormRow, { label: "Size" },
|
|
62
|
-
React.createElement(AdaptableInput, { type: "number", value: (
|
|
60
|
+
React.createElement(AdaptableInput, { type: "number", value: (_x = (_w = (_v = data.SparkLineStyle) === null || _v === void 0 ? void 0 : _v.options) === null || _w === void 0 ? void 0 : _w.highlightStyle) === null || _x === void 0 ? void 0 : _x.size, onChange: (event) => props.onOptionChange(['highlightStyle', 'size'], parseFloat(event.target.value)) })),
|
|
63
61
|
React.createElement(FormRow, { label: "Fill" },
|
|
64
|
-
React.createElement(ColorPicker, { api: api, value: (
|
|
62
|
+
React.createElement(ColorPicker, { api: api, value: (_1 = (_0 = (_z = (_y = data.SparkLineStyle) === null || _y === void 0 ? void 0 : _y.options) === null || _z === void 0 ? void 0 : _z.highlightStyle) === null || _0 === void 0 ? void 0 : _0.fill) !== null && _1 !== void 0 ? _1 : YELLOW, onChange: (color) => props.onOptionChange(['highlightStyle', 'fill'], color) })),
|
|
65
63
|
React.createElement(FormRow, { label: "Stroke" },
|
|
66
|
-
React.createElement(ColorPicker, { api: api, value: (
|
|
64
|
+
React.createElement(ColorPicker, { api: api, value: (_5 = (_4 = (_3 = (_2 = data.SparkLineStyle) === null || _2 === void 0 ? void 0 : _2.options) === null || _3 === void 0 ? void 0 : _3.highlightStyle) === null || _4 === void 0 ? void 0 : _4.stroke) !== null && _5 !== void 0 ? _5 : LIGHT_GRAY, onChange: (color) => props.onOptionChange(['highlightStyle', 'stroke'], color) })),
|
|
67
65
|
React.createElement(FormRow, { label: "Stroke Width" },
|
|
68
|
-
React.createElement(AdaptableInput, { type: "number", value: (
|
|
66
|
+
React.createElement(AdaptableInput, { type: "number", value: (_8 = (_7 = (_6 = data.SparkLineStyle) === null || _6 === void 0 ? void 0 : _6.options) === null || _7 === void 0 ? void 0 : _7.highlightStyle) === null || _8 === void 0 ? void 0 : _8.strokeWidth, onChange: (event) => props.onOptionChange(['highlightStyle', 'strokeWidth'], parseFloat(event.target.value)) }))))));
|
|
69
67
|
};
|
|
70
68
|
const SparklineMarkerProperties = (props) => {
|
|
71
69
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -116,16 +114,14 @@ const CrossHairsProperties = (props) => {
|
|
|
116
114
|
'square',
|
|
117
115
|
];
|
|
118
116
|
const buildLineDashProperties = (key) => {
|
|
119
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
117
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
120
118
|
const lineDashOptions = lineDashes.map((item) => ({
|
|
121
119
|
label: Humanize(item),
|
|
122
120
|
value: item,
|
|
123
|
-
onClick: () => props.onOptionChange(['crosshairs', key, 'lineDash'], item),
|
|
124
121
|
}));
|
|
125
122
|
const lineCapOptionsItems = lineCapOptions.map((item) => ({
|
|
126
123
|
label: Humanize(item),
|
|
127
124
|
value: item,
|
|
128
|
-
onClick: () => props.onOptionChange(['crosshairs', key, 'lineCap'], item),
|
|
129
125
|
}));
|
|
130
126
|
return (React.createElement(FormLayout, null,
|
|
131
127
|
React.createElement(FormRow, { label: "Show" },
|
|
@@ -135,9 +131,9 @@ const CrossHairsProperties = (props) => {
|
|
|
135
131
|
React.createElement(FormRow, { label: "Stroke Width" },
|
|
136
132
|
React.createElement(AdaptableInput, { type: "number", value: (_j = (_h = (_g = sparklineOptions === null || sparklineOptions === void 0 ? void 0 : sparklineOptions.crosshairs) === null || _g === void 0 ? void 0 : _g[key]) === null || _h === void 0 ? void 0 : _h.strokeWidth) !== null && _j !== void 0 ? _j : 1, onChange: (event) => props.onOptionChange(['crosshairs', key, 'strokeWidth'], event.target.value) })),
|
|
137
133
|
React.createElement(FormRow, { label: "Line Dash" },
|
|
138
|
-
React.createElement(
|
|
134
|
+
React.createElement(Select, { value: (_m = (_l = (_k = sparklineOptions === null || sparklineOptions === void 0 ? void 0 : sparklineOptions.crosshairs) === null || _k === void 0 ? void 0 : _k[key]) === null || _l === void 0 ? void 0 : _l.lineDash) !== null && _m !== void 0 ? _m : 'solid', onChange: (value) => props.onOptionChange(['crosshairs', key, 'lineDash'], value), options: lineDashOptions, placeholder: "Select Line Dash" })),
|
|
139
135
|
React.createElement(FormRow, { label: "Line Cap" },
|
|
140
|
-
React.createElement(
|
|
136
|
+
React.createElement(Select, { value: (_q = (_p = (_o = sparklineOptions === null || sparklineOptions === void 0 ? void 0 : sparklineOptions.crosshairs) === null || _o === void 0 ? void 0 : _o[key]) === null || _p === void 0 ? void 0 : _p.lineCap) !== null && _q !== void 0 ? _q : 'butt', onChange: (value) => props.onOptionChange(['crosshairs', key, 'lineCap'], value), options: lineCapOptionsItems, placeholder: "Select Line Cap" }))));
|
|
141
137
|
};
|
|
142
138
|
return (React.createElement(Flex, null,
|
|
143
139
|
React.createElement(Box, { mr: 3 },
|
|
@@ -236,17 +232,17 @@ const SparklineObjectNumberArrayProperties = (props) => {
|
|
|
236
232
|
React.createElement(Tag, null, sparklineDataItem)))));
|
|
237
233
|
};
|
|
238
234
|
export const StyledColumnSparklineSettingsSection = (props) => {
|
|
239
|
-
var _a, _b
|
|
235
|
+
var _a, _b;
|
|
240
236
|
const { data, api } = useOnePageAdaptableWizardContext();
|
|
241
237
|
const handleTypeChange = React.useCallback((type) => {
|
|
242
238
|
const newStyledColumn = Object.assign(Object.assign({}, data), { SparkLineStyle: Object.assign(Object.assign({}, data.SparkLineStyle), { options: Object.assign(Object.assign({}, data.SparkLineStyle.options), { type }) }) });
|
|
243
239
|
props.onChange(newStyledColumn);
|
|
244
240
|
}, [data]);
|
|
245
241
|
const sparklineTypeOptions = React.useMemo(() => [
|
|
246
|
-
{ label: 'Line', value: 'line'
|
|
247
|
-
{ label: 'Area', value: 'area'
|
|
248
|
-
{ label: 'Column', value: 'column'
|
|
249
|
-
{ label: 'Bar', value: 'bar'
|
|
242
|
+
{ label: 'Line', value: 'line' },
|
|
243
|
+
{ label: 'Area', value: 'area' },
|
|
244
|
+
{ label: 'Column', value: 'column' },
|
|
245
|
+
{ label: 'Bar', value: 'bar' },
|
|
250
246
|
], [data]);
|
|
251
247
|
const handleOptionChange = React.useCallback((path, value) => {
|
|
252
248
|
var _a;
|
|
@@ -260,7 +256,8 @@ export const StyledColumnSparklineSettingsSection = (props) => {
|
|
|
260
256
|
React.createElement(Tabs.Content, null,
|
|
261
257
|
React.createElement(FormLayout, null,
|
|
262
258
|
React.createElement(FormRow, { label: "Sparkline Type" },
|
|
263
|
-
React.createElement(
|
|
259
|
+
React.createElement(Box, { maxWidth: 160 },
|
|
260
|
+
React.createElement(Select, { options: sparklineTypeOptions, value: (_b = data.SparkLineStyle.options) === null || _b === void 0 ? void 0 : _b.type, onChange: (value) => handleOptionChange(['type'], value), placeholder: "Select Sparkline Type" }))),
|
|
264
261
|
isObjectNumberArray && (React.createElement(SparklineObjectNumberArrayProperties, { onOptionChange: handleOptionChange }))))),
|
|
265
262
|
React.createElement(CommonProperties, { onOptionChange: handleOptionChange }),
|
|
266
263
|
(() => {
|
|
@@ -68,8 +68,7 @@ export const StyledColumnWizard = (props) => {
|
|
|
68
68
|
React.createElement(StyledColumnSparklineSettingsSection, { onChange: setStyledColumn }))),
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
else if (styledColumn.
|
|
72
|
-
styledColumn.GradientStyle ||
|
|
71
|
+
else if (styledColumn.GradientStyle ||
|
|
73
72
|
styledColumn.PercentBarStyle) {
|
|
74
73
|
specificSteps.push({
|
|
75
74
|
details: 'Create the Style to apply',
|
|
@@ -113,7 +112,7 @@ export const StyledColumnWizard = (props) => {
|
|
|
113
112
|
{
|
|
114
113
|
isValid: isValidStyledColumnColumn,
|
|
115
114
|
renderSummary: renderStyledColumnColumnSummary,
|
|
116
|
-
details: 'Select
|
|
115
|
+
details: 'Select the Column where the Style will be applied',
|
|
117
116
|
render: () => {
|
|
118
117
|
return (React.createElement(Box, { padding: 2, style: { height: '100%' } },
|
|
119
118
|
React.createElement(StyledColumnWizardColumnSection, { isNew: props.isNew, onChange: setStyledColumn })));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { StyledColumn } from '../../../PredefinedConfig/StyledColumnState';
|
|
3
3
|
export declare const renderStyledColumnColumnSummary: (data: StyledColumn) => JSX.Element;
|
|
4
4
|
export declare const isValidStyledColumnColumn: (data: StyledColumn) => true | string;
|
|
5
|
-
export
|
|
5
|
+
export type StyledColumnWizardColumnSectionProps = {
|
|
6
6
|
onChange: (data: StyledColumn) => void;
|
|
7
7
|
isNew: boolean;
|
|
8
8
|
};
|
|
@@ -23,14 +23,16 @@ export const StyledColumnWizardColumnSection = (props) => {
|
|
|
23
23
|
const { data, api } = useOnePageAdaptableWizardContext();
|
|
24
24
|
const sortableCols = React.useMemo(() => {
|
|
25
25
|
let sortableColumns = [];
|
|
26
|
-
if (data.
|
|
27
|
-
sortableColumns = api.columnApi.getBooleanColumns();
|
|
28
|
-
}
|
|
29
|
-
else if (data.SparkLineStyle) {
|
|
26
|
+
if (data.SparkLineStyle) {
|
|
30
27
|
sortableColumns = api.columnApi.getNumericArrayColumns();
|
|
31
28
|
}
|
|
32
29
|
else if (data.BadgeStyle) {
|
|
33
|
-
sortableColumns = [
|
|
30
|
+
sortableColumns = [
|
|
31
|
+
...api.columnApi.getNumericColumns(),
|
|
32
|
+
...api.columnApi.getStringColumns(),
|
|
33
|
+
...api.columnApi.getStringArrayColumns(),
|
|
34
|
+
...api.columnApi.getNumberArrayColumns(),
|
|
35
|
+
];
|
|
34
36
|
}
|
|
35
37
|
else {
|
|
36
38
|
sortableColumns = api.columnApi.getNumericColumns();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { StyledColumn } from '../../../types';
|
|
3
|
-
|
|
3
|
+
type StyledColumnWizardSettingsSectionSectionProps = {
|
|
4
4
|
onChange: (data: StyledColumn) => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const renderStyledColumnWizardSettingsSummary: (data: StyledColumn) => JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Box, Flex } from 'rebass';
|
|
3
3
|
import { Tag } from '../../../../../components/Tag';
|
|
4
|
+
import { DEFAULT_INTEGER_DISPLAY_VALUE, DEFAULT_STRING_DISPLAY_VALUE, } from '../../../../../Utilities/Constants/GeneralConstants';
|
|
4
5
|
import { useAdaptable } from '../../../../AdaptableContext';
|
|
5
6
|
import { Badge } from '../../../../Components/Badge';
|
|
6
7
|
export const StyledColumnBadgePreview = ({ data }) => {
|
|
@@ -9,10 +10,9 @@ export const StyledColumnBadgePreview = ({ data }) => {
|
|
|
9
10
|
if (!badgeStyle || badgeStyle.Badges.length === 0) {
|
|
10
11
|
return React.createElement("div", null, "No Badges Defined");
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
13
|
+
const value = adaptable.api.columnApi.getColumnDataTypeForColumnId(data.ColumnId) === 'Number'
|
|
14
|
+
? DEFAULT_INTEGER_DISPLAY_VALUE
|
|
15
|
+
: DEFAULT_STRING_DISPLAY_VALUE;
|
|
16
16
|
return (React.createElement(Flex, { flexDirection: "column" }, badgeStyle.Badges.map((badge, index) => {
|
|
17
17
|
const predicateStr = badge.Predicate
|
|
18
18
|
? adaptable.api.predicateApi.predicateToString(badge.Predicate)
|
|
@@ -3,7 +3,6 @@ import { Box, Flex } from 'rebass';
|
|
|
3
3
|
import { CheckBox } from '../../../../components/CheckBox';
|
|
4
4
|
import ErrorBox from '../../../../components/ErrorBox';
|
|
5
5
|
import FormLayout, { FormRow } from '../../../../components/FormLayout';
|
|
6
|
-
import { Tabs } from '../../../../components/Tabs';
|
|
7
6
|
import { Tag } from '../../../../components/Tag';
|
|
8
7
|
import { ColorPicker } from '../../../../components/ColorPicker';
|
|
9
8
|
import { RangesComponent } from '../../../Components/RangesComponent';
|
|
@@ -57,9 +56,6 @@ const getColumnComparison = (columnComparison, api) => {
|
|
|
57
56
|
} })));
|
|
58
57
|
};
|
|
59
58
|
export const renderStyledColumnStyleSummary = (data, api) => {
|
|
60
|
-
if (data.CheckBoxStyle) {
|
|
61
|
-
return React.createElement(Tag, null, "Checkbox Style");
|
|
62
|
-
}
|
|
63
59
|
if (data.GradientStyle) {
|
|
64
60
|
if (data.GradientStyle.CellRanges) {
|
|
65
61
|
return getRanges(data.GradientStyle.CellRanges, data.GradientStyle.RangeValueType);
|
|
@@ -231,10 +227,6 @@ export const StyledColumnWizardStyleSection = (props) => {
|
|
|
231
227
|
}, [data]);
|
|
232
228
|
const disabled = !data.ColumnId;
|
|
233
229
|
return (React.createElement(Box, null,
|
|
234
|
-
data.CheckBoxStyle && (React.createElement(Tabs, null,
|
|
235
|
-
React.createElement(Tabs.Tab, null, "Check Box Column"),
|
|
236
|
-
React.createElement(Tabs.Content, null,
|
|
237
|
-
React.createElement(CheckBox, { marginLeft: 2, readOnly: true, checked: true }, "Display Column As CheckBox")))),
|
|
238
230
|
(data === null || data === void 0 ? void 0 : data.GradientStyle) && (React.createElement(RangesComponent, { disabled: !data.ColumnId, minMaxRangeValues: minMaxRangeValues, api: api, scope: scope, showRangeDirection: true, ranges: (_a = data.GradientStyle) === null || _a === void 0 ? void 0 : _a.CellRanges, rangeValueType: (_b = data.GradientStyle) === null || _b === void 0 ? void 0 : _b.RangeValueType, onRangeValueTypeChange: handleRangeValueTypeChange, columnComparison: (_c = data === null || data === void 0 ? void 0 : data.GradientStyle) === null || _c === void 0 ? void 0 : _c.ColumnComparison, updateRanges: (ranges) => onUpdateGradientStyleRanges(ranges), updateColumnComparison: (columnComparison) => onUpdateGradientStyleColumnComparison(columnComparison) })),
|
|
239
231
|
data.PercentBarStyle && (React.createElement(React.Fragment, null,
|
|
240
232
|
React.createElement(RangesComponent, { disabled: disabled, minMaxRangeValues: minMaxRangeValues, api: api, scope: scope, showRangeDirection: false, ranges: (_d = data.PercentBarStyle) === null || _d === void 0 ? void 0 : _d.CellRanges, rangeValueType: (_e = data.PercentBarStyle) === null || _e === void 0 ? void 0 : _e.RangeValueType, onRangeValueTypeChange: handleRangeValueTypeChange, columnComparison: (_f = data === null || data === void 0 ? void 0 : data.PercentBarStyle) === null || _f === void 0 ? void 0 : _f.ColumnComparison, updateRanges: (ranges) => onUpdatePercentBarStyleRanges(ranges), updateColumnComparison: (columnComparison) => onUpdatePercentBarStyleColumnComparison(columnComparison) }),
|
|
@@ -14,9 +14,6 @@ export const renderStyledColumnTypeSummary = (data) => {
|
|
|
14
14
|
else if (data.PercentBarStyle) {
|
|
15
15
|
type = 'Percent Bar';
|
|
16
16
|
}
|
|
17
|
-
else if (data.CheckBoxStyle) {
|
|
18
|
-
type = 'Check Box';
|
|
19
|
-
}
|
|
20
17
|
else if (data.SparkLineStyle) {
|
|
21
18
|
type = 'Spark Line';
|
|
22
19
|
}
|
|
@@ -34,7 +31,6 @@ export const StyledColumnWizardTypeSection = (props) => {
|
|
|
34
31
|
const newStyledColumn = Object.assign({}, data);
|
|
35
32
|
delete newStyledColumn.GradientStyle;
|
|
36
33
|
delete newStyledColumn.PercentBarStyle;
|
|
37
|
-
delete newStyledColumn.CheckBoxStyle;
|
|
38
34
|
delete newStyledColumn.SparkLineStyle;
|
|
39
35
|
delete newStyledColumn.BadgeStyle;
|
|
40
36
|
switch (type) {
|
|
@@ -44,9 +40,6 @@ export const StyledColumnWizardTypeSection = (props) => {
|
|
|
44
40
|
case 'percent':
|
|
45
41
|
newStyledColumn.PercentBarStyle = {};
|
|
46
42
|
break;
|
|
47
|
-
case 'checkbox':
|
|
48
|
-
newStyledColumn.CheckBoxStyle = true;
|
|
49
|
-
break;
|
|
50
43
|
case 'sparkline':
|
|
51
44
|
newStyledColumn.SparkLineStyle = {
|
|
52
45
|
options: {
|
|
@@ -67,8 +60,8 @@ export const StyledColumnWizardTypeSection = (props) => {
|
|
|
67
60
|
React.createElement(Tabs, { autoFocus: false, padding: 2 },
|
|
68
61
|
React.createElement(Tabs.Tab, null, "Type"),
|
|
69
62
|
React.createElement(Tabs.Content, null,
|
|
70
|
-
React.createElement(TypeRadio, { text: "Gradient", description: "Colour each cell in the column using a
|
|
71
|
-
React.createElement(TypeRadio, { text: "Percent Bar", description: "Display a coloured
|
|
63
|
+
React.createElement(TypeRadio, { text: "Gradient", description: "Colour each cell in the column using a Gradient value (Numeric Columns)", checked: Boolean(data.GradientStyle), onClick: () => handleTypeChange('gradient') }),
|
|
64
|
+
React.createElement(TypeRadio, { text: "Percent Bar", description: "Display a coloured Bar where the width is based on the cell (Numeric Columns)", checked: Boolean(data.PercentBarStyle), onClick: () => handleTypeChange('percent') }),
|
|
72
65
|
adaptable.api.styledColumnApi.canDisplaySparklines() && (React.createElement(TypeRadio, { text: "Sparkline", description: "Render the column as a Sparkline (Numeric Array Columns)", checked: Boolean(data.SparkLineStyle), onClick: () => handleTypeChange('sparkline') })),
|
|
73
66
|
React.createElement(TypeRadio, { text: "Badge", description: "Display the column's values as Badges (All Columns)", checked: Boolean(data.BadgeStyle), onClick: () => handleTypeChange('badge') })))));
|
|
74
67
|
};
|
|
@@ -11,7 +11,7 @@ class SystemStatusViewPanelComponent extends React.Component {
|
|
|
11
11
|
const { color, background } = getStatusItemStyle(currentSystemStatusMessageInfo);
|
|
12
12
|
const message = currentSystemStatusMessageInfo === null || currentSystemStatusMessageInfo === void 0 ? void 0 : currentSystemStatusMessageInfo.statusMessage;
|
|
13
13
|
const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
|
|
14
|
-
return (React.createElement(Flex, {
|
|
14
|
+
return (React.createElement(Flex, { alignItems: "stretch", className: `ab-${elementType}__SystemStatus__wrap` },
|
|
15
15
|
React.createElement(Flex, { style: { borderRadius: 'var(--ab__border-radius)' }, className: `ab-${elementType}__SystemStatus__text`, marginRight: 2, padding: 2, color: color, backgroundColor: message ? background : '', fontSize: 'var( --ab-font-size-2)', alignItems: "center", "data-name": "system-status-message" }, message || '0 Messages')));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -4,7 +4,7 @@ export const getStatusItemStyle = (systemStatusMessageInfo) => {
|
|
|
4
4
|
const background = UIHelper.getColorByMessageType((_a = systemStatusMessageInfo === null || systemStatusMessageInfo === void 0 ? void 0 : systemStatusMessageInfo.statusType) !== null && _a !== void 0 ? _a : 'Success');
|
|
5
5
|
const color = systemStatusMessageInfo
|
|
6
6
|
? UIHelper.getButtonTextColourForMessageType(systemStatusMessageInfo.statusType)
|
|
7
|
-
: '';
|
|
7
|
+
: 'var(--ab-color-text-on-primary)';
|
|
8
8
|
return {
|
|
9
9
|
background,
|
|
10
10
|
color,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AccessLevel } from '../../types';
|
|
3
|
-
export
|
|
3
|
+
export type FieldType = 'color' | 'number' | 'text';
|
|
4
4
|
export interface ThemeEditorProps {
|
|
5
5
|
theme: string;
|
|
6
6
|
accessLevel: AccessLevel;
|
|
@@ -2,13 +2,13 @@ import * as ThemeRedux from '../../Redux/ActionsReducers/ThemeRedux';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import join from '../../components/utils/join';
|
|
4
4
|
import * as GeneralConstants from '../../Utilities/Constants/GeneralConstants';
|
|
5
|
-
import DropdownButton from '../../components/DropdownButton';
|
|
6
5
|
import { connect } from 'react-redux';
|
|
6
|
+
import { Select } from '../../components/Select';
|
|
7
7
|
class ThemeViewPanelComponent extends React.Component {
|
|
8
8
|
render() {
|
|
9
9
|
var _a, _b, _c, _d;
|
|
10
10
|
const allThemes = (_c = (_b = (_a = this.props.api) === null || _a === void 0 ? void 0 : _a.themeApi) === null || _b === void 0 ? void 0 : _b.getThemes) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
11
|
-
|
|
11
|
+
const themes = allThemes.map((theme, index) => {
|
|
12
12
|
if (typeof theme === 'string') {
|
|
13
13
|
// protection against old state, which could be string
|
|
14
14
|
theme = {
|
|
@@ -18,6 +18,7 @@ class ThemeViewPanelComponent extends React.Component {
|
|
|
18
18
|
}
|
|
19
19
|
return {
|
|
20
20
|
label: theme.Description,
|
|
21
|
+
value: theme.Name,
|
|
21
22
|
onClick: () => this.onSelectTheme(theme),
|
|
22
23
|
};
|
|
23
24
|
});
|
|
@@ -34,7 +35,7 @@ class ThemeViewPanelComponent extends React.Component {
|
|
|
34
35
|
}
|
|
35
36
|
: { minWidth: '100%', fontSize: 'small' };
|
|
36
37
|
return (React.createElement("div", { className: join(this.props.accessLevel == 'ReadOnly' ? GeneralConstants.READ_ONLY_STYLE : '', `ab-${elementType}__Theme__wrap`) },
|
|
37
|
-
React.createElement(
|
|
38
|
+
React.createElement(Select, { className: `ab-${elementType}__Theme__select`, options: themes, value: currentThemeObj === null || currentThemeObj === void 0 ? void 0 : currentThemeObj.Name, onChange: (theme) => this.onSelectTheme({ Name: theme }) })));
|
|
38
39
|
}
|
|
39
40
|
onSelectTheme(theme) {
|
|
40
41
|
this.props.onSelectTheme(theme.Name);
|
package/src/View/UIHelper.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const ORANGE: string;
|
|
|
29
29
|
export declare function getHexForName(name: string): string;
|
|
30
30
|
export declare function getDefaultColors(): string[];
|
|
31
31
|
export declare function getEmptyConfigState(): EditableConfigEntityState;
|
|
32
|
-
export declare function getDescriptionForDataType(dataType: AdaptableColumnDataType): "
|
|
32
|
+
export declare function getDescriptionForDataType(dataType: AdaptableColumnDataType): "number" | "string" | "date";
|
|
33
33
|
export declare function getPlaceholderForDataType(dataType: AdaptableColumnDataType): "Enter Value" | "Enter Number" | "Enter Date";
|
|
34
34
|
export declare function getModalContainer(adaptableOptions: AdaptableOptions, document: Document): HTMLElement;
|
|
35
35
|
export declare function IsEmptyStyle(style: AdaptableStyle): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
3
|
-
|
|
3
|
+
type ObjectTagsWizardSectionProps<T extends AdaptableObject> = {
|
|
4
4
|
onChange: (data: T) => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const ObjectTagsWizardSection: <T extends AdaptableObject>(props: ObjectTagsWizardSectionProps<T>) => JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { TextProps } from 'rebass';
|
|
|
4
4
|
import { AdaptableApi } from '../../types';
|
|
5
5
|
import { ModuleInfo } from '../../Strategy/Interface/IModule';
|
|
6
6
|
import { ExpressionEditorNamedQuery } from '../../components/ExpressionEditor/NamedQueryContext';
|
|
7
|
-
export
|
|
7
|
+
export type OnePageAdaptableWizardContextType<T> = {
|
|
8
8
|
data: T;
|
|
9
9
|
sections: (OnePageAdaptableWizardSection<T> | '-')[];
|
|
10
10
|
moduleInfo: ModuleInfo;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
3
|
import { TextProps } from 'rebass';
|
|
4
|
-
export
|
|
4
|
+
export type OnePageWizardContextType<T> = {
|
|
5
5
|
data: T;
|
|
6
6
|
sections: (OnePageWizardSection<T> | '-')[];
|
|
7
7
|
setCurrentSection: (index: number) => void;
|
|
@@ -11,7 +11,7 @@ export declare const SummaryText: React.FunctionComponent<React.PropsWithChildre
|
|
|
11
11
|
export declare const FormDescriptionText: React.FunctionComponent<React.PropsWithChildren<TextProps>>;
|
|
12
12
|
export declare const OnePageWizardContext: React.Context<OnePageWizardContextType<any>>;
|
|
13
13
|
export declare function useOnePageWizardContext<ENTITY>(): OnePageWizardContextType<ENTITY>;
|
|
14
|
-
export
|
|
14
|
+
export type OnePageWizardSection<ENTITY> = {
|
|
15
15
|
title: string;
|
|
16
16
|
details?: React.ReactNode;
|
|
17
17
|
isValid?: (data: ENTITY, context: OnePageWizardContextType<ENTITY>) => true | string;
|