@adaptabletools/adaptable-cjs 18.0.0-canary.8 → 18.0.0
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 +18 -20
- package/base.css.map +1 -1
- package/index.css +22 -20
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +10 -4
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +3 -2
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +3 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +15 -14
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +2 -0
- package/src/AdaptableOptions/AdaptablePlugin.js +2 -0
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +7 -0
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +94 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +9 -4
- package/src/AdaptableOptions/CommentOptions.d.ts +20 -9
- package/src/AdaptableOptions/ContextMenuOptions.d.ts +94 -0
- package/src/AdaptableOptions/CustomSortOptions.d.ts +2 -2
- package/src/AdaptableOptions/DataImportOptions.d.ts +2 -2
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/GroupingOptions.d.ts +0 -26
- package/src/AdaptableOptions/NoteOptions.d.ts +12 -3
- package/src/AdaptableOptions/PredicateOptions.d.ts +2 -2
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
- package/src/AdaptableOptions/StateOptions.d.ts +6 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/Api/AdaptableApi.d.ts +16 -6
- package/src/Api/ColumnApi.d.ts +13 -0
- package/src/Api/ColumnMenuApi.d.ts +13 -0
- package/src/Api/{ScopeApi.d.ts → ColumnScopeApi.d.ts} +36 -26
- package/src/Api/CommentApi.d.ts +20 -22
- package/src/Api/ConfigApi.d.ts +4 -5
- package/src/Api/ContextMenuApi.d.ts +9 -0
- package/src/Api/EventApi.d.ts +7 -9
- package/src/Api/Events/CommentChanged.d.ts +11 -0
- package/src/Api/Events/CommentChanged.js +2 -0
- package/src/Api/Events/GridDataChanged.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +2 -2
- package/src/Api/GridApi.d.ts +35 -3
- package/src/Api/Implementation/ActionColumnApiImpl.js +3 -6
- package/src/Api/Implementation/ActionRowApiImpl.js +3 -7
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +7 -5
- package/src/Api/Implementation/AdaptableApiImpl.js +9 -5
- package/src/Api/Implementation/AlertApiImpl.js +8 -13
- package/src/Api/Implementation/ApiBase.d.ts +6 -4
- package/src/Api/Implementation/ApiBase.js +11 -5
- package/src/Api/Implementation/CalendarApiImpl.js +1 -6
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -5
- package/src/Api/Implementation/CellSummaryApiImpl.js +2 -23
- package/src/Api/Implementation/ChartingApiImpl.js +3 -3
- package/src/Api/Implementation/ColumnApiImpl.d.ts +5 -0
- package/src/Api/Implementation/ColumnApiImpl.js +48 -16
- package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
- package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +8 -0
- package/src/Api/Implementation/ColumnMenuApiImpl.js +16 -0
- package/src/Api/Implementation/ColumnScopeApiImpl.d.ts +33 -0
- package/src/Api/Implementation/{ScopeApiImpl.js → ColumnScopeApiImpl.js} +67 -21
- package/src/Api/Implementation/CommentsApiImpl.d.ts +8 -5
- package/src/Api/Implementation/CommentsApiImpl.js +10 -5
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ConfigApiImpl.js +27 -28
- package/src/Api/Implementation/ContextMenuApiImpl.d.ts +7 -0
- package/src/Api/Implementation/ContextMenuApiImpl.js +13 -0
- package/src/Api/Implementation/DashboardApiImpl.js +1 -6
- package/src/Api/Implementation/ExportApiImpl.js +5 -10
- package/src/Api/Implementation/ExpressionApiImpl.js +14 -19
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +2 -2
- package/src/Api/Implementation/FlashingCellApiImpl.js +3 -8
- package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +9 -1
- package/src/Api/Implementation/GridApiImpl.js +63 -9
- package/src/Api/Implementation/LayoutApiImpl.d.ts +4 -11
- package/src/Api/Implementation/LayoutApiImpl.js +19 -27
- package/src/Api/Implementation/NoteApiImpl.d.ts +18 -0
- package/src/Api/Implementation/NoteApiImpl.js +45 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +6 -5
- package/src/Api/Implementation/OptionsApiImpl.js +7 -4
- package/src/Api/Implementation/PredicateApiImpl.js +2 -2
- package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
- package/src/Api/Implementation/TeamSharingApiImpl.js +3 -15
- package/src/Api/Implementation/ThemeApiImpl.js +2 -7
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +14 -8
- package/src/Api/Implementation/UserInterfaceApiImpl.js +32 -27
- package/src/Api/Internal/ActionRowInternalApi.d.ts +1 -0
- package/src/Api/Internal/ActionRowInternalApi.js +19 -46
- package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -4
- package/src/Api/Internal/AdaptableInternalApi.js +16 -30
- package/src/Api/Internal/AlertInternalApi.d.ts +2 -2
- package/src/Api/Internal/AlertInternalApi.js +7 -20
- package/src/Api/Internal/CalculatedColumnInternalApi.js +11 -17
- package/src/Api/Internal/ChartingInternalApi.js +13 -13
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +1 -0
- package/src/Api/Internal/ColumnFilterInternalApi.js +24 -30
- package/src/Api/Internal/ColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/ColumnInternalApi.js +8 -1
- package/src/Api/Internal/CommentsInternalApi.d.ts +4 -0
- package/src/Api/Internal/CommentsInternalApi.js +18 -0
- package/src/Api/Internal/CustomSortInternalApi.js +1 -1
- package/src/Api/Internal/DashboardInternalApi.js +5 -11
- package/src/Api/Internal/DataImportInternalApi.js +3 -9
- package/src/Api/Internal/DataSetInternalApi.js +2 -7
- package/src/Api/Internal/ExportInternalApi.d.ts +2 -1
- package/src/Api/Internal/ExportInternalApi.js +8 -5
- package/src/Api/Internal/ExpressionInternalApi.js +3 -13
- package/src/Api/Internal/Fdc3InternalApi.js +3 -12
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +3 -6
- package/src/Api/Internal/FormatColumnInternalApi.js +38 -30
- package/src/Api/Internal/FreeTextColumnInternalApi.js +5 -4
- package/src/Api/Internal/GridFilterInternalApi.d.ts +5 -0
- package/src/Api/Internal/GridFilterInternalApi.js +8 -8
- package/src/Api/Internal/GridInternalApi.d.ts +2 -0
- package/src/Api/Internal/GridInternalApi.js +28 -40
- package/src/Api/Internal/LayoutInternalApi.d.ts +2 -0
- package/src/Api/Internal/LayoutInternalApi.js +26 -19
- package/src/Api/Internal/NoteInternalApi.d.ts +4 -0
- package/src/Api/Internal/NoteInternalApi.js +18 -0
- package/src/Api/Internal/PredicateInternalApi.d.ts +6 -6
- package/src/Api/Internal/PredicateInternalApi.js +5 -40
- package/src/Api/Internal/ScheduleInternalApi.js +1 -6
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +2 -2
- package/src/Api/Internal/StyledColumnInternalApi.js +8 -9
- package/src/Api/Internal/SystemStatusInternalApi.js +1 -7
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -7
- package/src/Api/Internal/ThemeInternalApi.js +1 -1
- package/src/Api/Internal/UserInterfaceInternalApi.js +1 -1
- package/src/Api/LayoutApi.d.ts +15 -15
- package/src/Api/NoteApi.d.ts +48 -0
- package/src/Api/NoteApi.js +2 -0
- package/src/Api/OptionsApi.d.ts +14 -10
- package/src/Api/UserInterfaceApi.d.ts +15 -13
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
- package/src/PredefinedConfig/AlertState.d.ts +2 -2
- package/src/PredefinedConfig/CommentState.d.ts +27 -23
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -2
- package/src/PredefinedConfig/Common/CellSummary.d.ts +5 -14
- package/src/PredefinedConfig/Common/{AdaptableScope.d.ts → ColumnScope.d.ts} +4 -1
- package/src/PredefinedConfig/Common/ColumnScope.js +2 -0
- package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +1 -5
- package/src/PredefinedConfig/Common/Enums.d.ts +4 -1
- package/src/PredefinedConfig/Common/Enums.js +3 -0
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +2 -2
- package/src/PredefinedConfig/Common/Menu.d.ts +39 -4
- package/src/PredefinedConfig/Common/Menu.js +126 -0
- package/src/PredefinedConfig/Common/RowScope.d.ts +17 -0
- package/src/PredefinedConfig/Common/RowScope.js +2 -0
- package/src/PredefinedConfig/Common/RowSummary.d.ts +21 -0
- package/src/PredefinedConfig/Common/RowSummary.js +20 -0
- package/src/PredefinedConfig/Common/TransposeConfig.d.ts +30 -0
- package/src/PredefinedConfig/Common/TransposeConfig.js +2 -0
- package/src/PredefinedConfig/Common/Types.d.ts +4 -4
- package/src/PredefinedConfig/Common/Types.js +4 -1
- package/src/PredefinedConfig/ExportState.d.ts +2 -2
- package/src/PredefinedConfig/FlashingCellState.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +9 -5
- package/src/PredefinedConfig/LayoutState.d.ts +6 -1
- package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +4 -4
- package/src/PredefinedConfig/NoteState.js +2 -0
- package/src/PredefinedConfig/PlusMinusState.d.ts +2 -2
- package/src/PredefinedConfig/PopupState.d.ts +1 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
- package/src/PredefinedConfig/Selection/GridCell.d.ts +13 -0
- package/src/PredefinedConfig/ShortcutState.d.ts +2 -2
- package/src/PredefinedConfig/StyledColumnState.d.ts +5 -5
- package/src/PredefinedConfig/SystemState.d.ts +12 -4
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +0 -4
- package/src/Redux/ActionsReducers/CommentsRedux.js +1 -39
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +9 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +34 -11
- package/src/Redux/ActionsReducers/NoteRedux.d.ts +38 -0
- package/src/Redux/ActionsReducers/{NotesRedux.js → NoteRedux.js} +31 -31
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +5 -13
- package/src/Redux/ActionsReducers/PopupRedux.js +1 -22
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +15 -4
- package/src/Redux/ActionsReducers/SystemRedux.js +27 -11
- package/src/Redux/Store/AdaptableStore.js +47 -29
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +2 -2
- package/src/Strategy/AdaptableModuleBase.d.ts +10 -10
- package/src/Strategy/AdaptableModuleBase.js +13 -16
- package/src/Strategy/AlertModule.d.ts +3 -2
- package/src/Strategy/AlertModule.js +4 -4
- package/src/Strategy/BulkUpdateModule.d.ts +3 -2
- package/src/Strategy/BulkUpdateModule.js +2 -1
- package/src/Strategy/CalculatedColumnModule.d.ts +3 -4
- package/src/Strategy/CalculatedColumnModule.js +18 -14
- package/src/Strategy/CellSummaryModule.d.ts +10 -9
- package/src/Strategy/CellSummaryModule.js +101 -83
- package/src/Strategy/ColumnFilterModule.d.ts +3 -3
- package/src/Strategy/ColumnFilterModule.js +36 -57
- package/src/Strategy/ColumnInfoModule.d.ts +3 -3
- package/src/Strategy/ColumnInfoModule.js +6 -4
- package/src/Strategy/CommentModule.d.ts +12 -0
- package/src/Strategy/CommentModule.js +75 -0
- package/src/Strategy/CustomSortModule.d.ts +1 -2
- package/src/Strategy/CustomSortModule.js +3 -2
- package/src/Strategy/DashboardModule.d.ts +3 -3
- package/src/Strategy/DashboardModule.js +10 -20
- package/src/Strategy/DataImportModule.d.ts +4 -4
- package/src/Strategy/DataImportModule.js +8 -8
- package/src/Strategy/ExportModule.d.ts +1 -2
- package/src/Strategy/ExportModule.js +56 -42
- package/src/Strategy/Fdc3Module.d.ts +1 -1
- package/src/Strategy/Fdc3Module.js +3 -13
- package/src/Strategy/FlashingCellModule.d.ts +4 -3
- package/src/Strategy/FlashingCellModule.js +10 -10
- package/src/Strategy/FormatColumnModule.d.ts +1 -1
- package/src/Strategy/FormatColumnModule.js +29 -47
- package/src/Strategy/FreeTextColumnModule.d.ts +1 -2
- package/src/Strategy/FreeTextColumnModule.js +2 -2
- package/src/Strategy/GridInfoModule.d.ts +3 -3
- package/src/Strategy/GridInfoModule.js +5 -3
- package/src/Strategy/Interface/IModule.d.ts +4 -4
- package/src/Strategy/LayoutModule.d.ts +4 -3
- package/src/Strategy/LayoutModule.js +71 -72
- package/src/Strategy/NoteModule.d.ts +10 -0
- package/src/Strategy/NoteModule.js +60 -0
- package/src/Strategy/PlusMinusModule.d.ts +1 -2
- package/src/Strategy/PlusMinusModule.js +5 -5
- package/src/Strategy/SettingsPanelModule.d.ts +3 -3
- package/src/Strategy/SettingsPanelModule.js +6 -6
- package/src/Strategy/ShortcutModule.js +1 -1
- package/src/Strategy/SmartEditModule.d.ts +3 -2
- package/src/Strategy/SmartEditModule.js +2 -1
- package/src/Strategy/StyledColumnModule.d.ts +2 -1
- package/src/Strategy/StyledColumnModule.js +42 -22
- package/src/Strategy/SystemStatusModule.d.ts +3 -3
- package/src/Strategy/SystemStatusModule.js +6 -3
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +4 -2
- package/src/Strategy/Utilities/getScopeViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getScopeViewItems.js +3 -0
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +3 -2
- package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
- package/src/Utilities/Constants/ModuleConstants.js +7 -7
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -2
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +434 -3
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -3
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +15 -0
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +6 -1
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +3 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +21 -1
- package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
- package/src/Utilities/MenuItem.d.ts +10 -7
- package/src/Utilities/MenuItem.js +6 -3
- package/src/Utilities/ObjectFactory.d.ts +3 -3
- package/src/Utilities/ObjectFactory.js +7 -25
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +4 -2
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +23 -18
- package/src/Utilities/Services/CellPopupService.js +4 -4
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -4
- package/src/Utilities/Services/LicenseService/index.js +1 -195
- package/src/Utilities/Services/ModuleService.js +6 -2
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +4 -3
- package/src/Utilities/Services/ReportService.d.ts +7 -5
- package/src/Utilities/Services/ReportService.js +245 -26
- package/src/Utilities/Services/RowSummaryService.d.ts +26 -0
- package/src/Utilities/Services/RowSummaryService.js +160 -0
- package/src/Utilities/Services/ValidationService.js +2 -2
- package/src/Utilities/adaptableQlUtils.d.ts +2 -0
- package/src/Utilities/adaptableQlUtils.js +18 -0
- package/src/Utilities/license/decode.js +1 -70
- package/src/Utilities/license/hashing.js +1 -47
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +1 -1
- package/src/View/Alert/AlertEntityRow.js +1 -1
- package/src/View/Alert/Utilities/getAvailablePredicates.d.ts +2 -2
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +3 -3
- package/src/View/ColumnInfo/ColumnInfo.js +1 -1
- package/src/View/Comments/CommentsEditor.js +28 -17
- package/src/View/Comments/CommentsPopup.js +15 -7
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.d.ts +5 -0
- package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.js +46 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
- package/src/View/Components/CellPopup/index.d.ts +1 -0
- package/src/View/Components/CellPopup/index.js +6 -3
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.d.ts +3 -3
- package/src/View/Components/EntityRulesEditor/index.d.ts +3 -3
- package/src/View/Components/FilterForm/FilterForm.js +20 -12
- package/src/View/Components/FilterForm/QuickFilterForm.js +15 -8
- package/src/View/Components/FilterForm/QuickFilterValues.js +39 -23
- package/src/View/Components/NewScopeComponent.d.ts +5 -5
- package/src/View/Components/NewScopeComponent.js +36 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +10 -1
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +7 -10
- package/src/View/Components/RangesComponent.d.ts +2 -2
- package/src/View/Components/RangesComponent.js +1 -1
- package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
- package/src/View/Components/SharedProps/WizardScopeState.d.ts +2 -2
- package/src/View/Components/ValueSelector/index.d.ts +1 -0
- package/src/View/Components/ValueSelector/index.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +4 -2
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +20 -7
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +27 -12
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +3 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +3 -3
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -1
- package/src/View/Layout/TransposedPopup.js +27 -25
- package/src/View/Layout/Wizard/LayoutWizard.js +38 -3
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +18 -2
- package/src/View/Layout/Wizard/sections/RowSummarySection.d.ts +9 -0
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +181 -0
- package/src/View/License/LicenseWatermark.js +1 -66
- package/src/View/Note/NotePopup.d.ts +2 -0
- package/src/View/{Notes/NotesPopup.js → Note/NotePopup.js} +16 -11
- package/src/View/PlusMinus/PlusMinusSummary.js +2 -2
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +5 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +38 -14
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -1
- package/src/agGrid/ActionColumnRenderer.js +40 -4
- package/src/agGrid/AdaptableAgGrid.d.ts +21 -12
- package/src/agGrid/AdaptableAgGrid.js +313 -225
- package/src/agGrid/AgGridAdapter.d.ts +5 -2
- package/src/agGrid/AgGridAdapter.js +20 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -3
- package/src/agGrid/AgGridColumnAdapter.js +52 -70
- package/src/agGrid/AgGridMenuAdapter.d.ts +25 -8
- package/src/agGrid/AgGridMenuAdapter.js +405 -74
- package/src/agGrid/AgGridOptionsService.d.ts +4 -1
- package/src/agGrid/AgGridOptionsService.js +22 -0
- package/src/agGrid/BadgeRenderer.d.ts +2 -2
- package/src/agGrid/BadgeRenderer.js +24 -11
- package/src/agGrid/PercentBarRenderer.js +2 -1
- package/src/agGrid/buildSortedColumnStateForLayout.d.ts +7 -0
- package/src/agGrid/buildSortedColumnStateForLayout.js +124 -0
- package/src/agGrid/defaultAdaptableOptions.js +7 -12
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +2 -2
- package/src/agGrid/sortColumnStateForVisibleColumns.d.ts +12 -0
- package/src/agGrid/sortColumnStateForVisibleColumns.js +50 -0
- package/src/agGrid/weightedAverage.d.ts +0 -2
- package/src/agGrid/weightedAverage.js +1 -56
- package/src/components/Accordion.d.ts +7 -0
- package/src/components/Accordion.js +41 -0
- package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Datepicker/index.js +10 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +2 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +0 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +3 -17
- package/src/components/Input/index.d.ts +1 -2
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/ProgressIndicator/ProgressIndicator.js +15 -6
- package/src/components/Select/Select.d.ts +1 -1
- package/src/components/Select/Select.js +3 -1
- package/src/components/Textarea/index.d.ts +2 -2
- package/src/components/icons/collapse-all.d.ts +3 -0
- package/src/components/icons/collapse-all.js +7 -0
- package/src/components/icons/copy.d.ts +3 -0
- package/src/components/icons/copy.js +7 -0
- package/src/components/icons/csv.d.ts +3 -0
- package/src/components/icons/csv.js +7 -0
- package/src/components/icons/data-object.d.ts +3 -0
- package/src/components/icons/data-object.js +7 -0
- package/src/components/icons/excel.d.ts +3 -0
- package/src/components/icons/excel.js +8 -0
- package/src/components/icons/expand-all.d.ts +3 -0
- package/src/components/icons/expand-all.js +7 -0
- package/src/components/icons/filter-off.d.ts +3 -0
- package/src/components/icons/filter-off.js +7 -0
- package/src/components/icons/grid-info.d.ts +3 -0
- package/src/components/icons/grid-info.js +7 -0
- package/src/components/icons/index.js +24 -0
- package/src/components/icons/note.js +2 -2
- package/src/components/icons/rows.d.ts +3 -0
- package/src/components/icons/rows.js +7 -0
- package/src/components/icons/select-all.d.ts +3 -0
- package/src/components/icons/select-all.js +7 -0
- package/src/components/icons/select-fwd.d.ts +3 -0
- package/src/components/icons/select-fwd.js +7 -0
- package/src/components/icons/select-off.d.ts +3 -0
- package/src/components/icons/select-off.js +7 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +230 -116
- package/src/metamodel/adaptable.metamodel.js +1 -9411
- package/src/parser/src/parser.js +576 -553
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +3 -4
- package/src/parser/src/types.d.ts +7 -2
- package/src/parser/src/types.js +1 -2
- package/src/types.d.ts +32 -25
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +0 -234
- package/src/AdaptableOptions/MenuOptions.js +0 -99
- package/src/Api/Events/CommentsChangedInfo.d.ts +0 -5
- package/src/Api/Implementation/NotesApiImpl.d.ts +0 -14
- package/src/Api/Implementation/NotesApiImpl.js +0 -40
- package/src/Api/Implementation/ScopeApiImpl.d.ts +0 -31
- package/src/Api/NotesApi.d.ts +0 -48
- package/src/PredefinedConfig/CellAddress.d.ts +0 -13
- package/src/PredefinedConfig/CellAddress.js +0 -5
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +0 -38
- package/src/Strategy/CommentsModule.d.ts +0 -17
- package/src/Strategy/CommentsModule.js +0 -83
- package/src/Strategy/NotesModule.d.ts +0 -10
- package/src/Strategy/NotesModule.js +0 -62
- package/src/View/Components/ScopeComponent.d.ts +0 -24
- package/src/View/Components/ScopeComponent.js +0 -138
- package/src/View/Export/Wizard/ReportScopeWizard.d.ts +0 -17
- package/src/View/Export/Wizard/ReportScopeWizard.js +0 -52
- package/src/View/Notes/NotesPopup.d.ts +0 -2
- /package/src/{Api/Events/CommentsChangedInfo.js → AdaptableOptions/ColumnMenuOptions.js} +0 -0
- /package/src/{Api/NotesApi.js → AdaptableOptions/ContextMenuOptions.js} +0 -0
- /package/src/Api/{ScopeApi.js → ColumnMenuApi.js} +0 -0
- /package/src/{PredefinedConfig/Common/AdaptableScope.js → Api/ColumnScopeApi.js} +0 -0
- /package/src/{PredefinedConfig/NotesState.js → Api/ContextMenuApi.js} +0 -0
- /package/src/View/{Notes → Note}/NoteEditor.d.ts +0 -0
- /package/src/View/{Notes → Note}/NoteEditor.js +0 -0
|
@@ -16,7 +16,23 @@ const RowGroupingSectionSummary = () => {
|
|
|
16
16
|
var _a;
|
|
17
17
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
18
18
|
const { data: layout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
19
|
-
return (React.createElement(rebass_1.Box, null, ((_a = layout.
|
|
19
|
+
return (React.createElement(rebass_1.Box, null, ((_a = layout.RowSummaries) === null || _a === void 0 ? void 0 : _a.length) ? (layout === null || layout === void 0 ? void 0 : layout.RowSummaries.map((rowSummary, index) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const columns = Object.entries((_a = rowSummary.ColumnsMap) !== null && _a !== void 0 ? _a : {})
|
|
22
|
+
.map(([columnId, expression]) => {
|
|
23
|
+
if (columnId === 'Source' || columnId === 'Uuid') {
|
|
24
|
+
return '';
|
|
25
|
+
}
|
|
26
|
+
return `${expression}(${adaptable.api.columnApi.getFriendlyNameForColumnId(columnId)})`;
|
|
27
|
+
})
|
|
28
|
+
.filter(Boolean)
|
|
29
|
+
.join(', ');
|
|
30
|
+
return (React.createElement(rebass_1.Box, { mb: 2 },
|
|
31
|
+
React.createElement(Tag_1.Tag, { key: index },
|
|
32
|
+
rowSummary.Position,
|
|
33
|
+
" ",
|
|
34
|
+
columns)));
|
|
35
|
+
})) : (React.createElement(Tag_1.Tag, null, "No Row Summaries"))));
|
|
20
36
|
};
|
|
21
37
|
exports.RowGroupingSectionSummary = RowGroupingSectionSummary;
|
|
22
38
|
const RowGroupingSection = (props) => {
|
|
@@ -32,7 +48,7 @@ const RowGroupingSection = (props) => {
|
|
|
32
48
|
props.onChange(Object.assign(Object.assign({}, layout), { RowGroupedColumns: columnIds }));
|
|
33
49
|
};
|
|
34
50
|
return (React.createElement(Tabs_1.Tabs, { style: { height: '100%' } },
|
|
35
|
-
React.createElement(Tabs_1.Tabs.Tab, null, "
|
|
51
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Group Rows"),
|
|
36
52
|
((_a = layout.ExpandedRowGroupValues) === null || _a === void 0 ? void 0 : _a.length) && React.createElement(Tabs_1.Tabs.Tab, null, "Expanded Rows"),
|
|
37
53
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
38
54
|
React.createElement(ValueSelector_1.ValueSelector, { showFilterInput: true, showSelectedOnlyPosition: "top", filter: Utilities_1.columnFilter, toIdentifier: (option) => `${option.columnId}`, toLabel: (option) => { var _a; return (_a = option.friendlyName) !== null && _a !== void 0 ? _a : option.columnId; }, options: sortedGroupableColumns, value: (_b = layout.RowGroupedColumns) !== null && _b !== void 0 ? _b : [], allowReorder: true, xSelectedLabel: () => {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Layout } from '../../../../../types';
|
|
3
|
+
export declare const areSummaryRowsValid: (layout: Layout) => true | string;
|
|
4
|
+
export declare const RowGroupingSectionSummary: React.FunctionComponent;
|
|
5
|
+
interface RowSummarySectionProps {
|
|
6
|
+
onChange: (data: Layout) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const RowSummarySection: React.FunctionComponent<RowSummarySectionProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RowSummarySection = exports.RowGroupingSectionSummary = exports.areSummaryRowsValid = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const rebass_1 = require("rebass");
|
|
7
|
+
const FormLayout_1 = tslib_1.__importStar(require("../../../../components/FormLayout"));
|
|
8
|
+
const Panel_1 = tslib_1.__importDefault(require("../../../../components/Panel"));
|
|
9
|
+
const Select_1 = require("../../../../components/Select");
|
|
10
|
+
const SimpleButton_1 = tslib_1.__importDefault(require("../../../../components/SimpleButton"));
|
|
11
|
+
const Tabs_1 = require("../../../../components/Tabs");
|
|
12
|
+
const Tag_1 = require("../../../../components/Tag");
|
|
13
|
+
const RowSummary_1 = require("../../../../PredefinedConfig/Common/RowSummary");
|
|
14
|
+
const adaptableQlUtils_1 = require("../../../../Utilities/adaptableQlUtils");
|
|
15
|
+
const ModuleConstants_1 = require("../../../../Utilities/Constants/ModuleConstants");
|
|
16
|
+
const sortWithOrder_1 = require("../../../../Utilities/sortWithOrder");
|
|
17
|
+
const AdaptableContext_1 = require("../../../AdaptableContext");
|
|
18
|
+
const ValueSelector_1 = require("../../../Components/ValueSelector");
|
|
19
|
+
const OnePageAdaptableWizard_1 = require("../../../Wizard/OnePageAdaptableWizard");
|
|
20
|
+
const Utilities_1 = require("./Utilities");
|
|
21
|
+
const areSummaryRowsValid = (layout) => {
|
|
22
|
+
var _a;
|
|
23
|
+
if (!layout.RowSummaries)
|
|
24
|
+
return true;
|
|
25
|
+
let valid = true;
|
|
26
|
+
(_a = layout.RowSummaries) === null || _a === void 0 ? void 0 : _a.find((rowSummary) => {
|
|
27
|
+
var _a;
|
|
28
|
+
for (const [_, fn] of Object.entries((_a = rowSummary.ColumnsMap) !== null && _a !== void 0 ? _a : {})) {
|
|
29
|
+
if (!fn) {
|
|
30
|
+
valid = 'All row summary columns must have an aggregation function.';
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return valid;
|
|
36
|
+
};
|
|
37
|
+
exports.areSummaryRowsValid = areSummaryRowsValid;
|
|
38
|
+
const getAvailableExpressionsForColumnType = (columnType, availableScalarExpressions) => {
|
|
39
|
+
const inputType = (0, adaptableQlUtils_1.mapColumnDataTypeToExpressionFunctionType)(columnType);
|
|
40
|
+
// Object.entries(availableScalarExpressions ?? {})
|
|
41
|
+
return RowSummary_1.summarySupportedExpressions
|
|
42
|
+
.filter((expression) => availableScalarExpressions[expression])
|
|
43
|
+
.map((expression) => {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
const expressionDef = availableScalarExpressions[expression];
|
|
46
|
+
let firstArg = null;
|
|
47
|
+
if (Array.isArray((_a = expressionDef === null || expressionDef === void 0 ? void 0 : expressionDef.inputs) === null || _a === void 0 ? void 0 : _a[0])) {
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
firstArg = (_b = expressionDef.inputs.find((input) => input.includes(inputType))) === null || _b === void 0 ? void 0 : _b[0];
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
firstArg = expressionDef.inputs[0];
|
|
53
|
+
}
|
|
54
|
+
if (inputType === firstArg) {
|
|
55
|
+
return expression;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
.filter(Boolean);
|
|
62
|
+
};
|
|
63
|
+
const RowGroupingSectionSummary = () => {
|
|
64
|
+
var _a;
|
|
65
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
66
|
+
const { data: layout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
67
|
+
return (React.createElement(rebass_1.Box, null, ((_a = layout.RowGroupedColumns) === null || _a === void 0 ? void 0 : _a.length) ? (layout.RowGroupedColumns.map((columnId) => (React.createElement(Tag_1.Tag, { mr: 1, key: columnId }, adaptable.api.columnApi.getFriendlyNameForColumnId(columnId))))) : (React.createElement(Tag_1.Tag, null, "No Row Grouping"))));
|
|
68
|
+
};
|
|
69
|
+
exports.RowGroupingSectionSummary = RowGroupingSectionSummary;
|
|
70
|
+
const RowSummaryEditor = ({ rowSummary, onChange, availableScalarExpressions, onDelete, }) => {
|
|
71
|
+
const { data: layout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
72
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
73
|
+
const columns = React.useMemo(() => {
|
|
74
|
+
const colIds = adaptable.api.columnApi
|
|
75
|
+
.getColumns()
|
|
76
|
+
.filter((column) => {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
if (!['Number', 'String', 'Date'].includes(column.dataType))
|
|
79
|
+
return false;
|
|
80
|
+
return (_b = (_a = layout.Columns) === null || _a === void 0 ? void 0 : _a.includes) === null || _b === void 0 ? void 0 : _b.call(_a, column.columnId);
|
|
81
|
+
})
|
|
82
|
+
.map((c) => c.columnId);
|
|
83
|
+
return (0, sortWithOrder_1.sortWithOrderArray)(colIds, Object.keys(rowSummary.ColumnsMap), {
|
|
84
|
+
sortUnorderedItems: false,
|
|
85
|
+
}).map((colId) => adaptable.api.columnApi.getColumnWithColumnId(colId));
|
|
86
|
+
}, [rowSummary.ColumnsMap]);
|
|
87
|
+
return (React.createElement(Panel_1.default, { header: React.createElement(rebass_1.Flex, { style: { width: '100%' } },
|
|
88
|
+
React.createElement(rebass_1.Flex, { flex: 1, alignItems: "center" }, "Row Summary"),
|
|
89
|
+
React.createElement(SimpleButton_1.default, { icon: "delete", onClick: () => {
|
|
90
|
+
onDelete();
|
|
91
|
+
} })), p: 2 },
|
|
92
|
+
React.createElement(FormLayout_1.default, null,
|
|
93
|
+
React.createElement(FormLayout_1.FormRow, { label: "Position" },
|
|
94
|
+
React.createElement(Select_1.Select, { options: [
|
|
95
|
+
{
|
|
96
|
+
label: 'Top',
|
|
97
|
+
value: 'Top',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: 'Bottom',
|
|
101
|
+
value: 'Bottom',
|
|
102
|
+
},
|
|
103
|
+
], value: rowSummary.Position, onChange: (position) => {
|
|
104
|
+
onChange(Object.assign(Object.assign({}, rowSummary), { Position: position }));
|
|
105
|
+
} }))),
|
|
106
|
+
React.createElement(rebass_1.Flex, { flexDirection: 'column', mt: 2, mb: 1 },
|
|
107
|
+
React.createElement(rebass_1.Flex, { alignItems: "center", flex: 1, mb: 2 }, "Column Aggregations"),
|
|
108
|
+
React.createElement(Panel_1.default, { bodyProps: { maxHeight: '100%' }, style: { height: 360 } },
|
|
109
|
+
React.createElement(ValueSelector_1.ValueSelector, { style: { maxHeight: '100%' }, showFilterInput: true, filter: Utilities_1.columnFilter, toIdentifier: (column) => column.columnId, toLabel: (option) => { var _a; return (_a = option.friendlyName) !== null && _a !== void 0 ? _a : option.columnId; }, options: columns, xSelectedLabel: () => {
|
|
110
|
+
return 'Active Aggregations:';
|
|
111
|
+
}, toListLabel: (column) => {
|
|
112
|
+
var _a, _b, _c;
|
|
113
|
+
const label = (_a = column.friendlyName) !== null && _a !== void 0 ? _a : column.columnId;
|
|
114
|
+
if (!(column.columnId in ((_b = rowSummary.ColumnsMap) !== null && _b !== void 0 ? _b : {}))) {
|
|
115
|
+
return label;
|
|
116
|
+
}
|
|
117
|
+
const expressionOptions = getAvailableExpressionsForColumnType(column.dataType, availableScalarExpressions).map((expression) => ({
|
|
118
|
+
label: expression,
|
|
119
|
+
value: expression,
|
|
120
|
+
}));
|
|
121
|
+
// check out if this layout has a aggregation with wighted column
|
|
122
|
+
const aggregation = (_c = layout.AggregationColumns) === null || _c === void 0 ? void 0 : _c[column.columnId];
|
|
123
|
+
if (aggregation && typeof aggregation === 'object' && aggregation.weightedColumnId) {
|
|
124
|
+
expressionOptions.push({
|
|
125
|
+
label: 'WEIGHTERD_AVG',
|
|
126
|
+
value: RowSummary_1.WEIGHTED_AVERAGE_AGGREATED_FUNCTION,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
const expression = rowSummary.ColumnsMap[column.columnId];
|
|
130
|
+
return (React.createElement(rebass_1.Flex, null,
|
|
131
|
+
React.createElement(rebass_1.Flex, { mr: 2, alignItems: 'center' }, label),
|
|
132
|
+
React.createElement(Select_1.Select, { value: expression, options: expressionOptions, onChange: (expression) => {
|
|
133
|
+
onChange(Object.assign(Object.assign({}, rowSummary), { ColumnsMap: Object.assign(Object.assign({}, rowSummary.ColumnsMap), { [column.columnId]: expression }) }));
|
|
134
|
+
} })));
|
|
135
|
+
}, value: Object.keys(rowSummary.ColumnsMap), onChange: (colIds) => {
|
|
136
|
+
const newColumnsMap = {};
|
|
137
|
+
colIds.forEach((colId) => {
|
|
138
|
+
var _a;
|
|
139
|
+
newColumnsMap[colId] = (_a = rowSummary.ColumnsMap[colId]) !== null && _a !== void 0 ? _a : null;
|
|
140
|
+
});
|
|
141
|
+
onChange(Object.assign(Object.assign({}, rowSummary), { ColumnsMap: newColumnsMap }));
|
|
142
|
+
} })))));
|
|
143
|
+
};
|
|
144
|
+
const RowSummarySection = (props) => {
|
|
145
|
+
var _a;
|
|
146
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
147
|
+
const { data: layout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
148
|
+
const availableScalarExpressions = React.useMemo(() => {
|
|
149
|
+
return adaptable.api.internalApi
|
|
150
|
+
.getQueryLanguageService()
|
|
151
|
+
.getModuleExpressionFunctionsMap(ModuleConstants_1.LayoutModuleId).aggregatedScalarFunctions;
|
|
152
|
+
}, []);
|
|
153
|
+
return (React.createElement(Tabs_1.Tabs, { style: { height: '100%' } },
|
|
154
|
+
React.createElement(Tabs_1.Tabs.Tab, null, "Row Summaries"),
|
|
155
|
+
React.createElement(Tabs_1.Tabs.Content, null,
|
|
156
|
+
React.createElement("div", null,
|
|
157
|
+
React.createElement(rebass_1.Flex, { mb: 1 },
|
|
158
|
+
React.createElement(rebass_1.Flex, { flex: 1 }),
|
|
159
|
+
React.createElement(SimpleButton_1.default, { onClick: () => {
|
|
160
|
+
var _a;
|
|
161
|
+
props.onChange(Object.assign(Object.assign({}, layout), { RowSummaries: [
|
|
162
|
+
...((_a = layout.RowSummaries) !== null && _a !== void 0 ? _a : []),
|
|
163
|
+
{
|
|
164
|
+
Position: 'Top',
|
|
165
|
+
ColumnsMap: {},
|
|
166
|
+
},
|
|
167
|
+
] }));
|
|
168
|
+
}, icon: "plus" }, "Add Row Summary")),
|
|
169
|
+
((_a = layout.RowSummaries) !== null && _a !== void 0 ? _a : []).map((rowSummary, index) => {
|
|
170
|
+
return (React.createElement(RowSummaryEditor, { key: index, onDelete: () => {
|
|
171
|
+
const newSummaries = [...layout.RowSummaries];
|
|
172
|
+
newSummaries.splice(index, 1);
|
|
173
|
+
props.onChange(Object.assign(Object.assign({}, layout), { RowSummaries: newSummaries }));
|
|
174
|
+
}, availableScalarExpressions: availableScalarExpressions, rowSummary: rowSummary, onChange: (rowSummary) => {
|
|
175
|
+
const newSummaries = [...layout.RowSummaries];
|
|
176
|
+
newSummaries[index] = rowSummary;
|
|
177
|
+
props.onChange(Object.assign(Object.assign({}, layout), { RowSummaries: newSummaries }));
|
|
178
|
+
} }));
|
|
179
|
+
})))));
|
|
180
|
+
};
|
|
181
|
+
exports.RowSummarySection = RowSummarySection;
|
|
@@ -1,66 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LicenseWatermark = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const Logo_1 = require("../../components/Logo");
|
|
7
|
-
const rebass_1 = require("rebass");
|
|
8
|
-
const style = {
|
|
9
|
-
border: '1px solid var(--ab-color-error)',
|
|
10
|
-
padding: '5px',
|
|
11
|
-
fontWeight: 600,
|
|
12
|
-
margin: '5px',
|
|
13
|
-
fontSize: '14px',
|
|
14
|
-
alignItems: 'center',
|
|
15
|
-
color: 'var(--ab-color-text-on-defaultbackground)',
|
|
16
|
-
background: 'var(--ab-color-defaultbackground)',
|
|
17
|
-
};
|
|
18
|
-
const isStyleValid = (element) => {
|
|
19
|
-
const notAllowedProperties = [
|
|
20
|
-
['display', 'none'],
|
|
21
|
-
['opacity', '0'],
|
|
22
|
-
['position', 'absolute'],
|
|
23
|
-
['position', 'fixed'],
|
|
24
|
-
['position', 'relative'],
|
|
25
|
-
['visibility', 'hidden'],
|
|
26
|
-
];
|
|
27
|
-
for (const [prop, value] of notAllowedProperties) {
|
|
28
|
-
if (element.style[prop] === value) {
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return true;
|
|
33
|
-
};
|
|
34
|
-
const LicenseWatermark = (props) => {
|
|
35
|
-
const ref = React.useRef(null);
|
|
36
|
-
React.useEffect(() => {
|
|
37
|
-
const checkWatermark = () => {
|
|
38
|
-
var _a, _b;
|
|
39
|
-
if (!((_a = ref.current) === null || _a === void 0 ? void 0 : _a.isConnected)) {
|
|
40
|
-
alert('It is not allowed to remove the Adaptable watermark.');
|
|
41
|
-
}
|
|
42
|
-
if (!isStyleValid(ref.current)) {
|
|
43
|
-
alert('It is not allowed to modify the Adaptable watermark.');
|
|
44
|
-
}
|
|
45
|
-
if ((_b = ref === null || ref === void 0 ? void 0 : ref.current) === null || _b === void 0 ? void 0 : _b.style) {
|
|
46
|
-
ref.current.style.border = style.border;
|
|
47
|
-
ref.current.style.padding = style.padding;
|
|
48
|
-
ref.current.style.fontWeight = `${style.fontWeight}`;
|
|
49
|
-
ref.current.style.margin = style.margin;
|
|
50
|
-
ref.current.style.fontSize = style.fontSize;
|
|
51
|
-
ref.current.style.color = style.color;
|
|
52
|
-
ref.current.style.background = style.background;
|
|
53
|
-
ref.current.style.display = 'flex';
|
|
54
|
-
ref.current.style.position = 'static';
|
|
55
|
-
ref.current.style.opacity = '1';
|
|
56
|
-
ref.current.style.visibility = 'visible';
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
const timerId = setInterval(checkWatermark, 5000);
|
|
60
|
-
return () => clearTimeout(timerId);
|
|
61
|
-
}, []);
|
|
62
|
-
return (React.createElement(rebass_1.Flex, { style: style, ref: ref },
|
|
63
|
-
React.createElement(Logo_1.Logo, { style: { marginRight: 10 } }),
|
|
64
|
-
React.createElement("div", null, props.children)));
|
|
65
|
-
};
|
|
66
|
-
exports.LicenseWatermark = LicenseWatermark;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LicenseWatermark=void 0;const e=require("tslib"),t=e.__importStar(require("react")),r=require("../../components/Logo"),o=require("rebass"),n={border:"1px solid var(--ab-color-error)",padding:"5px",fontWeight:600,margin:"5px",fontSize:"14px",alignItems:"center",color:"var(--ab-color-text-on-defaultbackground)",background:"var(--ab-color-defaultbackground)"},i=e=>{const t=[["display","none"],["opacity","0"],["position","absolute"],["position","fixed"],["position","relative"],["visibility","hidden"]];for(const[r,o]of t)if(e.style[r]===o)return!1;return!0},l=e=>{const l=t.useRef(null);return t.useEffect((()=>{const e=setInterval((()=>{var e,t;(null===(e=l.current)||void 0===e?void 0:e.isConnected)||alert("It is not allowed to remove the Adaptable watermark."),i(l.current)||alert("It is not allowed to modify the Adaptable watermark."),(null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.style)&&(l.current.style.border=n.border,l.current.style.padding=n.padding,l.current.style.fontWeight=`${n.fontWeight}`,l.current.style.margin=n.margin,l.current.style.fontSize=n.fontSize,l.current.style.color=n.color,l.current.style.background=n.background,l.current.style.display="flex",l.current.style.position="static",l.current.style.opacity="1",l.current.style.visibility="visible")}),5e3);return()=>clearTimeout(e)}),[]),t.createElement(o.Flex,{style:n,ref:l},t.createElement(r.Logo,{style:{marginRight:10}}),t.createElement("div",null,e.children))};exports.LicenseWatermark=l;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NotePopup = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_redux_1 = require("react-redux");
|
|
7
7
|
const InfiniteTable_1 = require("../../components/InfiniteTable");
|
|
8
|
-
const
|
|
8
|
+
const NoteRedux_1 = require("../../Redux/ActionsReducers/NoteRedux");
|
|
9
|
+
const format_1 = tslib_1.__importDefault(require("date-fns/format"));
|
|
9
10
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
10
11
|
const AdaptableButton_1 = require("../Components/AdaptableButton");
|
|
11
12
|
const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
|
|
13
|
+
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
12
14
|
const tableDOMProps = {
|
|
13
15
|
style: {
|
|
14
16
|
height: '100%',
|
|
@@ -16,10 +18,13 @@ const tableDOMProps = {
|
|
|
16
18
|
// minHeight: 600,
|
|
17
19
|
},
|
|
18
20
|
};
|
|
19
|
-
const
|
|
21
|
+
const NotePopup = (props) => {
|
|
22
|
+
var _a, _b, _c, _d;
|
|
20
23
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
21
24
|
const primaryKeyHeader = adaptable.api.columnApi.getFriendlyNameForColumnId(adaptable.api.columnApi.getPrimaryKeyColumn().columnId);
|
|
22
|
-
const
|
|
25
|
+
const dateFormat = (_d = (_c = (_b = (_a = adaptable.api.optionsApi) === null || _a === void 0 ? void 0 : _a.getNoteOptions) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.dateFormat) !== null && _d !== void 0 ? _d : GeneralConstants_1.DEFAULT_DATE_FORMAT_PATTERN_WITH_TIME;
|
|
26
|
+
const allNotes = (0, react_redux_1.useSelector)((state) => (0, NoteRedux_1.GetAllNotesSelector)(state.Note));
|
|
27
|
+
const isReadOnlyModule = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule('Note') === 'ReadOnly';
|
|
23
28
|
const columnsMap = React.useMemo(() => {
|
|
24
29
|
const columns = {
|
|
25
30
|
primaryKey: {
|
|
@@ -36,21 +41,21 @@ const NotesPopup = (props) => {
|
|
|
36
41
|
text: {
|
|
37
42
|
field: 'Text',
|
|
38
43
|
header: 'Text',
|
|
39
|
-
defaultEditable:
|
|
44
|
+
defaultEditable: !isReadOnlyModule,
|
|
40
45
|
defaultFlex: 3,
|
|
41
46
|
},
|
|
42
47
|
timestamp: {
|
|
43
48
|
field: 'Timestamp',
|
|
44
49
|
valueGetter: (params) => {
|
|
45
|
-
return
|
|
50
|
+
return (0, format_1.default)(params.data.Timestamp, dateFormat);
|
|
46
51
|
},
|
|
47
52
|
},
|
|
48
53
|
delete: {
|
|
49
54
|
defaultWidth: 50,
|
|
50
55
|
render: (params) => {
|
|
51
|
-
return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { variant: "text", icon: "delete", onClick: () => {
|
|
52
|
-
const note = adaptable.api.
|
|
53
|
-
adaptable.api.
|
|
56
|
+
return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { disabled: isReadOnlyModule, variant: "text", icon: "delete", onClick: () => {
|
|
57
|
+
const note = adaptable.api.noteApi.getNoteByUuid(params.data.Uuid);
|
|
58
|
+
adaptable.api.noteApi.deleteNote(note);
|
|
54
59
|
} }));
|
|
55
60
|
},
|
|
56
61
|
},
|
|
@@ -66,7 +71,7 @@ const NotesPopup = (props) => {
|
|
|
66
71
|
const data = change.data;
|
|
67
72
|
const prevNote = allNotes.find((x) => x.Uuid === uuid);
|
|
68
73
|
if (prevNote.Text !== data.Text) {
|
|
69
|
-
adaptable.api.
|
|
74
|
+
adaptable.api.noteApi.updateNoteText(data.Text, prevNote);
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -83,4 +88,4 @@ const NotesPopup = (props) => {
|
|
|
83
88
|
alwaysReserveSpaceForSortIcon: false,
|
|
84
89
|
}, rowHeight: 40, columnHeaderHeight: 65, domProps: tableDOMProps, columns: columnsMap }))));
|
|
85
90
|
};
|
|
86
|
-
exports.
|
|
91
|
+
exports.NotePopup = NotePopup;
|
|
@@ -23,12 +23,12 @@ class PlusMinusSummaryComponent extends React.Component {
|
|
|
23
23
|
render() {
|
|
24
24
|
let moduleSummaries = [];
|
|
25
25
|
// title row
|
|
26
|
-
let titleRow = (React.createElement(ModuleHeader_1.ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: Helper_1.Helper.returnItemCount(this.props.PlusMinusNudges.filter((item) => this.props.api.
|
|
26
|
+
let titleRow = (React.createElement(ModuleHeader_1.ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: Helper_1.Helper.returnItemCount(this.props.PlusMinusNudges.filter((item) => this.props.api.columnScopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)), this.props.moduleInfo.FriendlyName), onNew: () => this.onNew(), newButtonTooltip: 'Plus / Minus Rule', accessLevel: this.props.accessLevel }));
|
|
27
27
|
moduleSummaries.push(titleRow);
|
|
28
28
|
// existing items
|
|
29
29
|
this.props.PlusMinusNudges.map((item, index) => {
|
|
30
30
|
var _a;
|
|
31
|
-
if (this.props.api.
|
|
31
|
+
if (this.props.api.columnScopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)) {
|
|
32
32
|
let detailRow = (React.createElement(ModuleDetail_1.ModuleDetail, { key: 'PM' + index, item1: 'Nudge Value: ' + item.NudgeValue, item2: ((_a = item.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression) ? item.Rule.BooleanExpression : 'Always', configEnity: item, showShare: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(item), onShare: (config) => this.props.onShare(item, config), onDelete: PlusMinusRedux.PlusMinusNudgeDelete(item), accessLevel: this.props.accessLevel }));
|
|
33
33
|
moduleSummaries.push(detailRow);
|
|
34
34
|
}
|
|
@@ -67,7 +67,7 @@ class SmartEditPopupComponent extends React.Component {
|
|
|
67
67
|
(this.props.PreviewInfo &&
|
|
68
68
|
this.props.PreviewInfo.previewValidationSummary.validationResult == 'All'), onClick: () => {
|
|
69
69
|
this.submit();
|
|
70
|
-
}, marginRight: 2 }, "Apply
|
|
70
|
+
}, marginRight: 2 }, "Apply Smart Edit"),
|
|
71
71
|
' ',
|
|
72
72
|
this.props.PreviewInfo &&
|
|
73
73
|
this.props.PreviewInfo.previewValidationSummary.validationResult != 'None' && (React.createElement(AdaptablePopover_1.AdaptablePopover, { headerText: 'Validation Error', bodyText: [globalValidationMessage], MessageType: 'Error' }))),
|
|
@@ -11,10 +11,10 @@ const Tabs_1 = require("../components/Tabs");
|
|
|
11
11
|
const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
|
|
12
12
|
const AdaptableContext_1 = require("./AdaptableContext");
|
|
13
13
|
const SpecialColumnSettingsWizardStep = (props) => {
|
|
14
|
-
var _a, _b;
|
|
14
|
+
var _a, _b, _c;
|
|
15
15
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
16
|
-
const possibleColumnTypes = adaptable.api.
|
|
17
|
-
const { Filterable, Resizable, Groupable, Sortable, Pivotable, Aggregatable, SuppressMenu, SuppressMovable, } = (
|
|
16
|
+
const possibleColumnTypes = (_a = adaptable.api.columnApi.getColumnTypes()) !== null && _a !== void 0 ? _a : [];
|
|
17
|
+
const { Filterable, Resizable, Groupable, Sortable, Pivotable, Aggregatable, SuppressMenu, SuppressMovable, } = (_b = props.settings) !== null && _b !== void 0 ? _b : {};
|
|
18
18
|
const handleColumnTypeChange = (columnType, checked) => {
|
|
19
19
|
var _a, _b, _c;
|
|
20
20
|
const columnTypes = (_b = (_a = props.settings) === null || _a === void 0 ? void 0 : _a.ColumnTypes) !== null && _b !== void 0 ? _b : [];
|
|
@@ -55,7 +55,7 @@ const SpecialColumnSettingsWizardStep = (props) => {
|
|
|
55
55
|
Boolean(possibleColumnTypes === null || possibleColumnTypes === void 0 ? void 0 : possibleColumnTypes.length) && (React.createElement(Tabs_1.Tabs, { marginTop: 2, autoFocus: false },
|
|
56
56
|
React.createElement(Tabs_1.Tabs.Tab, null, "Column Types"),
|
|
57
57
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
58
|
-
React.createElement(FormLayout_1.default, { columns: [{ name: 'first', size: '30%' }, { name: 'second' }] }, (
|
|
58
|
+
React.createElement(FormLayout_1.default, { columns: [{ name: 'first', size: '30%' }, { name: 'second' }] }, (_c = (0, chunk_1.default)(possibleColumnTypes !== null && possibleColumnTypes !== void 0 ? possibleColumnTypes : [], 2)) === null || _c === void 0 ? void 0 : _c.map(([first, second]) => {
|
|
59
59
|
var _a, _b, _c, _d, _e, _f;
|
|
60
60
|
return (React.createElement(FormLayout_1.FormRow, { key: first },
|
|
61
61
|
first && (React.createElement(CheckBox_1.CheckBox, { "data-name": first, onChange: (checked) => handleColumnTypeChange(first, checked), checked: (_c = (_b = (_a = props.settings) === null || _a === void 0 ? void 0 : _a.ColumnTypes) === null || _b === void 0 ? void 0 : _b.includes) === null || _c === void 0 ? void 0 : _c.call(_b, first) }, first)),
|
|
@@ -11,7 +11,6 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlo
|
|
|
11
11
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
12
12
|
const Tabs_1 = require("../../../components/Tabs");
|
|
13
13
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
14
|
-
const AdaptablePopover_1 = require("../../AdaptablePopover");
|
|
15
14
|
const AdaptableIconSelector_1 = require("../../Components/AdaptableIconSelector");
|
|
16
15
|
const PredicateEditor_1 = require("../../Components/PredicateEditor/PredicateEditor");
|
|
17
16
|
const StyleComponent_1 = require("../../Components/StyleComponent");
|
|
@@ -20,6 +19,7 @@ const StyledColumnBadgePreview_1 = require("./StyledColumnWizardStyleSection/Com
|
|
|
20
19
|
const Badge_1 = require("../../Components/Badge");
|
|
21
20
|
const AdaptableIconComponent_1 = require("../../Components/AdaptableIconComponent");
|
|
22
21
|
const GeneralConstants_1 = require("../../../Utilities/Constants/GeneralConstants");
|
|
22
|
+
const Accordion_1 = require("../../../components/Accordion");
|
|
23
23
|
const BadgeEditor = (props) => {
|
|
24
24
|
var _a, _b;
|
|
25
25
|
const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
@@ -40,12 +40,10 @@ const BadgeEditor = (props) => {
|
|
|
40
40
|
React.createElement(FormLayout_1.FormRow, { label: "Style" },
|
|
41
41
|
React.createElement(HelpBlock_1.default, { fontSize: 2, mb: 1, mt: 2 }, "Select the Style for the Badge"),
|
|
42
42
|
' ',
|
|
43
|
-
React.createElement(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
] },
|
|
48
|
-
React.createElement(SimpleButton_1.default, { variant: "raised" }, "Edit Badge Style"))),
|
|
43
|
+
React.createElement(Accordion_1.Accordion, { title: "Edit Badge Style" },
|
|
44
|
+
React.createElement(StyleComponent_1.StyleComponent, { showFontSizeAs: "radio", headless: true, hidePreview: true, api: api, Style: (_a = badge.Style) !== null && _a !== void 0 ? _a : {}, UpdateStyle: (Style) => {
|
|
45
|
+
onChange(Object.assign(Object.assign({}, badge), { Style }));
|
|
46
|
+
} }))),
|
|
49
47
|
!api.columnApi.hasArrayDataType(columnId) && ( // dont show predicates for arrays
|
|
50
48
|
(React.createElement(
|
|
51
49
|
FormLayout_1.FormRow,
|
|
@@ -81,7 +81,7 @@ const StyledColumnWizard = (props) => {
|
|
|
81
81
|
React.createElement(StyledColumnWizardStyleSection_1.StyledColumnWizardStyleSection, { onChange: setStyledColumn })));
|
|
82
82
|
},
|
|
83
83
|
title: 'Style',
|
|
84
|
-
}
|
|
84
|
+
});
|
|
85
85
|
}
|
|
86
86
|
else if (styledColumn.BadgeStyle) {
|
|
87
87
|
specificSteps.push({
|
|
@@ -61,7 +61,7 @@ const StyledColumnWizardColumnSection = (props) => {
|
|
|
61
61
|
}, [data]);
|
|
62
62
|
const handleColumnsChange = (columnIds) => {
|
|
63
63
|
const columnId = columnIds[0];
|
|
64
|
-
const emptyRanges = api.
|
|
64
|
+
const emptyRanges = api.columnScopeApi.createCellColorRangesForScope({
|
|
65
65
|
ColumnIds: [columnId],
|
|
66
66
|
});
|
|
67
67
|
const newStyledColumn = Object.assign(Object.assign({}, data), { ColumnId: columnId });
|
|
@@ -4,35 +4,59 @@ exports.StyledColumnWizardSettingsSection = exports.renderStyledColumnWizardSett
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
|
-
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
8
7
|
const CheckBox_1 = require("../../../components/CheckBox");
|
|
8
|
+
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
9
9
|
const Tabs_1 = require("../../../components/Tabs");
|
|
10
|
-
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
10
|
const Tag_1 = require("../../../components/Tag");
|
|
12
|
-
|
|
13
|
-
{ value: 'Left', label: 'Left' },
|
|
14
|
-
{ value: 'Right', label: 'Right' },
|
|
15
|
-
{ value: 'Center', label: 'Center' },
|
|
16
|
-
];
|
|
11
|
+
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
17
12
|
const renderStyledColumnWizardSettingsSummary = (data) => {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
const badgeStyle = data;
|
|
18
15
|
return (React.createElement(rebass_1.Box, { padding: 2 },
|
|
19
16
|
React.createElement(rebass_1.Text, { mt: 3 },
|
|
20
|
-
"
|
|
21
|
-
React.createElement(Tag_1.Tag, null,
|
|
17
|
+
"Data Rows ",
|
|
18
|
+
React.createElement(Tag_1.Tag, null, ((_a = badgeStyle.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeDataRows) ? 'no' : 'yes')),
|
|
19
|
+
' ',
|
|
20
|
+
React.createElement(rebass_1.Text, { mt: 3 },
|
|
21
|
+
"Group Rows ",
|
|
22
|
+
React.createElement(Tag_1.Tag, null, ((_b = badgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupRows) ? 'no' : 'yes')),
|
|
23
|
+
React.createElement(rebass_1.Text, { mt: 3 },
|
|
24
|
+
"Summary Rows ",
|
|
25
|
+
React.createElement(Tag_1.Tag, null, ((_c = badgeStyle.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeSummaryRows) ? 'no' : 'yes'))));
|
|
22
26
|
};
|
|
23
27
|
exports.renderStyledColumnWizardSettingsSummary = renderStyledColumnWizardSettingsSummary;
|
|
24
28
|
const StyledColumnWizardSettingsSection = (props) => {
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
31
|
+
const onExcludeDataRowsChanged = (ExcludeDataRows) => {
|
|
32
|
+
props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeDataRows }) }) }));
|
|
33
|
+
};
|
|
34
|
+
const onExcludeGroupedRowsChanged = (ExcludeGroupedRows) => {
|
|
35
|
+
props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeGroupRows: ExcludeGroupedRows }) }) }));
|
|
36
|
+
};
|
|
37
|
+
const onExcludeSummaryRowsChanged = (ExcludeSummaryRows) => {
|
|
38
|
+
props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeSummaryRows }) }) }));
|
|
28
39
|
};
|
|
29
40
|
return (React.createElement(Tabs_1.Tabs, null,
|
|
30
41
|
React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
|
|
31
42
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
32
43
|
React.createElement(rebass_1.Flex, { flexDirection: "row" },
|
|
33
44
|
React.createElement(FormLayout_1.default, null,
|
|
34
|
-
React.createElement(FormLayout_1.FormRow, { label: "
|
|
45
|
+
React.createElement(FormLayout_1.FormRow, { label: "Exclude Data Rows:" },
|
|
46
|
+
React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
|
|
47
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-data-rows-checkbox", checked:
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
(_a = data.BadgeStyle.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeDataRows, onChange: onExcludeDataRowsChanged, mr: 2 }))),
|
|
50
|
+
React.createElement(FormLayout_1.FormRow, { label: "Exclude Group Rows:" },
|
|
51
|
+
React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
|
|
52
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked:
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
(_b = data.BadgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, mr: 2 }))),
|
|
55
|
+
React.createElement(FormLayout_1.FormRow, { label: "Exclude Row Summaries:" },
|
|
35
56
|
React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
|
|
36
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "
|
|
57
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked:
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
(_c = data.BadgeStyle.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged, mr: 2 }))),
|
|
60
|
+
' ')))));
|
|
37
61
|
};
|
|
38
62
|
exports.StyledColumnWizardSettingsSection = StyledColumnWizardSettingsSection;
|
|
@@ -210,7 +210,7 @@ const StyledColumnWizardStyleSection = (props) => {
|
|
|
210
210
|
};
|
|
211
211
|
const handleRangeValueTypeChange = React.useCallback((rangeValueType) => {
|
|
212
212
|
const ranges = rangeValueType === 'Number'
|
|
213
|
-
? api.
|
|
213
|
+
? api.columnScopeApi.createCellColorRangesForScope(scope)
|
|
214
214
|
: [
|
|
215
215
|
{
|
|
216
216
|
Min: 0,
|