@adaptabletools/adaptable-cjs 23.0.0-canary.7 → 23.0.0-canary.9
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/index.css +98 -17
- package/package.json +1 -1
- package/src/{Utilities → AdaptableState/Aggregations}/weightedAverage.js +2 -3
- package/src/AdaptableState/Common/Enums.d.ts +0 -12
- package/src/AdaptableState/Common/Enums.js +1 -16
- package/src/{Utilities → AdaptableState/Common}/MenuItem.d.ts +4 -4
- package/src/{Utilities → AdaptableState/Common}/MenuItem.js +1 -1
- package/src/AdaptableState/StyledColumnState.d.ts +8 -850
- package/src/AdaptableState/StyledColumnState.js +0 -10
- package/src/AdaptableState/StyledColumns/BadgeStyle.d.ts +143 -0
- package/src/AdaptableState/StyledColumns/BadgeStyle.js +12 -0
- package/src/AdaptableState/StyledColumns/BulletChartStyle.d.ts +147 -0
- package/src/AdaptableState/StyledColumns/BulletChartStyle.js +2 -0
- package/src/AdaptableState/StyledColumns/Common/BarStyleProperties.d.ts +84 -0
- package/src/AdaptableState/StyledColumns/Common/BarStyleProperties.js +6 -0
- package/src/AdaptableState/StyledColumns/Common/CellTextOptions.d.ts +13 -0
- package/src/AdaptableState/StyledColumns/Common/CellTextOptions.js +7 -0
- package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.d.ts +79 -0
- package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.js +10 -0
- package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +48 -0
- package/src/AdaptableState/StyledColumns/GradientStyle.js +2 -0
- package/src/AdaptableState/StyledColumns/IconStyle.d.ts +158 -0
- package/src/AdaptableState/StyledColumns/IconStyle.js +2 -0
- package/src/AdaptableState/StyledColumns/PercentBarStyle.d.ts +32 -0
- package/src/AdaptableState/StyledColumns/PercentBarStyle.js +2 -0
- package/src/AdaptableState/StyledColumns/RangeBarStyle.d.ts +155 -0
- package/src/AdaptableState/StyledColumns/RangeBarStyle.js +2 -0
- package/src/AdaptableState/StyledColumns/RatingStyle.d.ts +111 -0
- package/src/AdaptableState/StyledColumns/RatingStyle.js +2 -0
- package/src/AdaptableState/StyledColumns/SparklineStyle.d.ts +21 -0
- package/src/AdaptableState/StyledColumns/SparklineStyle.js +2 -0
- package/src/Api/ColumnScopeApi.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +5 -5
- package/src/Api/Implementation/ColumnScopeApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExportApiImpl.js +1 -1
- package/src/Api/Implementation/LayoutHelpers.js +2 -3
- package/src/Api/Implementation/QuickSearchApiImpl.js +4 -4
- package/src/Api/Implementation/ThemeApiImpl.js +2 -2
- package/src/Api/Internal/ActionColumnInternalApi.js +2 -2
- package/src/Api/Internal/AlertInternalApi.js +1 -1
- package/src/Api/Internal/ChartingInternalApi.js +2 -2
- package/src/Api/Internal/ColumnInternalApi.js +2 -2
- package/src/Api/Internal/EventInternalApi.js +3 -4
- package/src/Api/Internal/ExportInternalApi.js +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +4 -4
- package/src/Api/Internal/GridInternalApi.js +1 -1
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +3 -1
- package/src/Api/Internal/StyledColumnInternalApi.js +6 -6
- package/src/Redux/ActionsReducers/ExportRedux.js +1 -1
- package/src/Redux/ActionsReducers/InternalRedux.js +1 -1
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +2 -3
- package/src/Redux/Store/AdaptableReduxMerger.js +7 -9
- package/src/Redux/Store/AdaptableStore.js +5 -5
- package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.js +1 -1
- package/src/Strategy/AlertModule.d.ts +1 -1
- package/src/Strategy/AlertModule.js +2 -2
- package/src/Strategy/BulkUpdateModule.d.ts +1 -1
- package/src/Strategy/CalculatedColumnModule.d.ts +2 -2
- package/src/Strategy/CellSummaryModule.d.ts +2 -2
- package/src/Strategy/ChartingModule.d.ts +1 -1
- package/src/Strategy/ChartingModule.js +4 -4
- package/src/Strategy/ColumnInfoModule.d.ts +2 -2
- package/src/Strategy/CommentModule.d.ts +1 -1
- package/src/Strategy/CustomSortModule.d.ts +1 -1
- package/src/Strategy/ExportModule.js +2 -2
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FreeTextColumnModule.d.ts +1 -1
- package/src/Strategy/GridInfoModule.d.ts +2 -2
- package/src/Strategy/LayoutModule.js +2 -2
- package/src/Strategy/NoteModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.js +8 -8
- package/src/Strategy/SettingsPanelModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.d.ts +1 -1
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Strategy/TeamSharingModule.js +4 -4
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +2 -3
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +32 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +54 -1
- package/src/Utilities/Extensions/NumberExtensions.d.ts +21 -0
- package/src/Utilities/Extensions/NumberExtensions.js +78 -0
- package/src/Utilities/Extensions/ObjectExtensions.d.ts +44 -0
- package/src/Utilities/Extensions/ObjectExtensions.js +277 -0
- package/src/Utilities/Extensions/StringExtensions.d.ts +26 -0
- package/src/Utilities/Extensions/StringExtensions.js +49 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +7 -7
- package/src/Utilities/Helpers/{alertFormHelper.js → AlertHelper.js} +1 -1
- package/src/Utilities/Helpers/DateHelper.js +2 -2
- package/src/Utilities/Helpers/{FormatHelper.js → DisplayFormatHelper.js} +5 -5
- package/src/Utilities/Helpers/Helper.d.ts +0 -6
- package/src/Utilities/Helpers/Helper.js +0 -38
- package/src/Utilities/Helpers/{QuickSearchStyleHelper.js → QuickSearchHelper.js} +2 -3
- package/src/Utilities/Helpers/{ScheduleHelper.d.ts → Scheduling/ScheduleHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduleHelper.js → Scheduling/ScheduleHelper.js} +1 -1
- package/src/Utilities/Helpers/{ScheduleJobManager.d.ts → Scheduling/ScheduleJobManager.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduleJobRunner.d.ts → Scheduling/ScheduleJobRunner.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledAlertHelper.d.ts → Scheduling/ScheduledAlertHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledAlertHelper.js → Scheduling/ScheduledAlertHelper.js} +4 -4
- package/src/Utilities/Helpers/{ScheduledJobsMiddlewareHelper.d.ts → Scheduling/ScheduledJobsMiddlewareHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledJobsMiddlewareHelper.js → Scheduling/ScheduledJobsMiddlewareHelper.js} +1 -1
- package/src/Utilities/Helpers/{ScheduledReportHelper.d.ts → Scheduling/ScheduledReportHelper.d.ts} +1 -1
- package/src/Utilities/Helpers/{ScheduledReportHelper.js → Scheduling/ScheduledReportHelper.js} +1 -1
- package/src/Utilities/Helpers/SettingsPanelHelper.d.ts +5 -0
- package/src/Utilities/{Defaults/DefaultSettingsPanel.js → Helpers/SettingsPanelHelper.js} +16 -1
- package/src/Utilities/Helpers/StyledColumns/BarStylesHelper.d.ts +63 -0
- package/src/Utilities/Helpers/StyledColumns/BarStylesHelper.js +334 -0
- package/src/Utilities/Helpers/{StyledColumnGradientHelper.d.ts → StyledColumns/GradientStyleHelper.d.ts} +4 -2
- package/src/Utilities/Helpers/{StyledColumnGradientHelper.js → StyledColumns/GradientStyleHelper.js} +9 -9
- package/src/Utilities/Helpers/{IconStylePresets.d.ts → StyledColumns/IconStyleHelper.d.ts} +6 -1
- package/src/Utilities/Helpers/{IconStylePresets.js → StyledColumns/IconStyleHelper.js} +16 -0
- package/src/Utilities/Helpers/{percentBarPreviewHelper.d.ts → StyledColumns/PercentBarStyleHelper.d.ts} +2 -1
- package/src/Utilities/Helpers/{percentBarPreviewHelper.js → StyledColumns/PercentBarStyleHelper.js} +11 -17
- package/src/Utilities/Helpers/{SparklineOptionsHelper.js → StyledColumns/SparklineStyleHelper.js} +1 -1
- package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.d.ts +52 -0
- package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.js +124 -0
- package/src/Utilities/Helpers/TimingHelper.d.ts +34 -0
- package/src/Utilities/{utils/debounce.js → Helpers/TimingHelper.js} +25 -9
- package/src/Utilities/ObjectFactory.js +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +2 -0
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +118 -2
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/RowSummaryService.d.ts +1 -1
- package/src/Utilities/Services/RowSummaryService.js +6 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -2
- package/src/View/Alert/Utilities/getAlertType.js +1 -1
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +1 -1
- package/src/View/Alert/Utilities/mapAlertDefinition.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +159 -126
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +4 -4
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertWizard.js +10 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +2 -2
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
- package/src/View/Comments/CommentsEditor.js +2 -2
- package/src/View/Comments/CommentsPopup.js +2 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +3 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +3 -2
- package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.d.ts +2 -0
- package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.js +6 -0
- package/src/View/Components/Buttons/EntityListActionButtons.js +1 -1
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -0
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +8 -8
- package/src/View/Components/ColumnFilter/ColumnFilter.js +14 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +2 -2
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +2 -2
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +2 -2
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +2 -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/Popups/AdaptablePopupAlert.js +2 -2
- package/src/View/Components/Popups/Utilities.js +5 -5
- package/src/View/Components/RangesComponent.d.ts +4 -3
- package/src/View/Components/RangesComponent.js +5 -9
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -3
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +2 -3
- package/src/View/Dashboard/CustomDashboardButton.js +2 -3
- package/src/View/Dashboard/Dashboard.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryTable.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +2 -2
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +2 -2
- package/src/View/Export/ExportSchedulesTab.js +3 -4
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +13 -13
- package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +4 -4
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +2 -2
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +128 -102
- package/src/View/Note/NoteEditor.js +2 -2
- package/src/View/Note/NotePopup.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +7 -7
- package/src/View/QuickSearch/QuickSearchPopup.js +4 -4
- package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -3
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -2
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +36 -30
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +1 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +79 -68
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +8 -8
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +42 -15
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +92 -52
- package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +14 -14
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextLayoutEditor.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextLayoutEditor.js +37 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextPreview.d.ts +23 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextPreview.js +62 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.d.ts +3 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +7 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +3 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +13 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.js +5 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +24 -15
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +11 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +20 -60
- package/src/View/UIHelper.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
- package/src/View/Wizard/OnePageWizards.js +3 -1
- package/src/agGrid/AdaptableAgGrid.js +11 -11
- package/src/agGrid/AgGridColumnAdapter.js +30 -28
- package/src/agGrid/AgGridExportAdapter.js +3 -3
- package/src/agGrid/AgGridMenuAdapter.js +129 -4
- package/src/agGrid/cellRenderers/BadgeRenderer.js +9 -7
- package/src/agGrid/cellRenderers/BulletChartRenderer.js +47 -46
- package/src/agGrid/cellRenderers/IconRenderer.d.ts +2 -1
- package/src/agGrid/cellRenderers/IconRenderer.js +20 -19
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +29 -101
- package/src/agGrid/cellRenderers/RangeBarRenderer.js +54 -52
- package/src/agGrid/cellRenderers/RatingRenderer.js +6 -6
- package/src/agGrid/editors/AdaptableDateEditor/index.js +3 -3
- package/src/components/ColorPicker/ColorPicker.js +2 -2
- package/src/components/Datepicker/index.js +2 -2
- package/src/components/FormLayout/index.js +2 -2
- package/src/components/OverlayTrigger/index.js +2 -2
- package/src/env.js +2 -2
- package/src/layout-manager/src/isLayoutEqual.js +4 -5
- package/src/metamodel/adaptable.metamodel.d.ts +118 -19
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/VersionUpgrade23.d.ts +27 -31
- package/src/migration/VersionUpgrade23.js +110 -29
- package/src/types.d.ts +12 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +0 -3
- package/src/Utilities/Helpers/iconStyledColumnColumnSupport.d.ts +0 -5
- package/src/Utilities/Helpers/iconStyledColumnColumnSupport.js +0 -18
- package/src/Utilities/Helpers/resolveSettingsPanelNavigation.d.ts +0 -3
- package/src/Utilities/Helpers/resolveSettingsPanelNavigation.js +0 -19
- package/src/Utilities/Helpers/styledColumnRowKindSupport.d.ts +0 -25
- package/src/Utilities/Helpers/styledColumnRowKindSupport.js +0 -70
- package/src/Utilities/Services/CalculatedColumnSyntheticChange.d.ts +0 -4
- package/src/Utilities/Services/CalculatedColumnSyntheticChange.js +0 -120
- package/src/Utilities/utils/chunk.d.ts +0 -6
- package/src/Utilities/utils/chunk.js +0 -20
- package/src/Utilities/utils/clamp.d.ts +0 -5
- package/src/Utilities/utils/clamp.js +0 -10
- package/src/Utilities/utils/cloneDeepWith.d.ts +0 -9
- package/src/Utilities/utils/cloneDeepWith.js +0 -70
- package/src/Utilities/utils/debounce.d.ts +0 -20
- package/src/Utilities/utils/flatten.d.ts +0 -5
- package/src/Utilities/utils/flatten.js +0 -10
- package/src/Utilities/utils/flattenDeep.d.ts +0 -5
- package/src/Utilities/utils/flattenDeep.js +0 -10
- package/src/Utilities/utils/get.d.ts +0 -6
- package/src/Utilities/utils/get.js +0 -38
- package/src/Utilities/utils/index.d.ts +0 -22
- package/src/Utilities/utils/index.js +0 -48
- package/src/Utilities/utils/isArray.d.ts +0 -6
- package/src/Utilities/utils/isArray.js +0 -8
- package/src/Utilities/utils/isEqual.d.ts +0 -5
- package/src/Utilities/utils/isEqual.js +0 -127
- package/src/Utilities/utils/isObject.d.ts +0 -6
- package/src/Utilities/utils/isObject.js +0 -12
- package/src/Utilities/utils/isPlainObject.d.ts +0 -6
- package/src/Utilities/utils/isPlainObject.js +0 -20
- package/src/Utilities/utils/kebabCase.d.ts +0 -5
- package/src/Utilities/utils/kebabCase.js +0 -12
- package/src/Utilities/utils/merge.d.ts +0 -11
- package/src/Utilities/utils/merge.js +0 -44
- package/src/Utilities/utils/mergeWith.d.ts +0 -7
- package/src/Utilities/utils/mergeWith.js +0 -50
- package/src/Utilities/utils/orderBy.d.ts +0 -8
- package/src/Utilities/utils/orderBy.js +0 -33
- package/src/Utilities/utils/parseInt.d.ts +0 -6
- package/src/Utilities/utils/parseInt.js +0 -12
- package/src/Utilities/utils/sentenceCase.d.ts +0 -6
- package/src/Utilities/utils/sentenceCase.js +0 -19
- package/src/Utilities/utils/startCase.d.ts +0 -5
- package/src/Utilities/utils/startCase.js +0 -15
- package/src/Utilities/utils/throttle.d.ts +0 -17
- package/src/Utilities/utils/throttle.js +0 -23
- package/src/Utilities/utils/toNumber.d.ts +0 -5
- package/src/Utilities/utils/toNumber.js +0 -42
- package/src/Utilities/utils/uniq.d.ts +0 -7
- package/src/Utilities/utils/uniq.js +0 -12
- package/src/Utilities/utils/uniqBy.d.ts +0 -8
- package/src/Utilities/utils/uniqBy.js +0 -25
- package/src/Utilities/utils/words.d.ts +0 -7
- package/src/Utilities/utils/words.js +0 -13
- package/src/agGrid/buildValueAggregationMenuItem.d.ts +0 -19
- package/src/agGrid/buildValueAggregationMenuItem.js +0 -114
- package/src/agGrid/cellRenderers/shouldRenderStyledColumnOnRow.d.ts +0 -30
- package/src/agGrid/cellRenderers/shouldRenderStyledColumnOnRow.js +0 -58
- package/src/agGrid/createAgGridIcon.d.ts +0 -10
- package/src/agGrid/createAgGridIcon.js +0 -19
- /package/src/{Utilities → AdaptableState/Aggregations}/only.d.ts +0 -0
- /package/src/{Utilities → AdaptableState/Aggregations}/only.js +0 -0
- /package/src/{Utilities → AdaptableState/Aggregations}/weightedAverage.d.ts +0 -0
- /package/src/Utilities/Helpers/{ActionColumnWidthHelper.d.ts → ActionColumnHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ActionColumnWidthHelper.js → ActionColumnHelper.js} +0 -0
- /package/src/Utilities/Helpers/{alertFormHelper.d.ts → AlertHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{chartingHelper.d.ts → ChartHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{chartingHelper.js → ChartHelper.js} +0 -0
- /package/src/Utilities/Helpers/{FormatHelper.d.ts → DisplayFormatHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{plusMinusTriggerKeys.d.ts → PlusMinusHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{plusMinusTriggerKeys.js → PlusMinusHelper.js} +0 -0
- /package/src/Utilities/Helpers/{QuickSearchStyleHelper.d.ts → QuickSearchHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ScheduleJobManager.js → Scheduling/ScheduleJobManager.js} +0 -0
- /package/src/Utilities/Helpers/{ScheduleJobRunner.js → Scheduling/ScheduleJobRunner.js} +0 -0
- /package/src/Utilities/Helpers/{SparklineOptionsHelper.d.ts → StyledColumns/SparklineStyleHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ThemeHelpers.d.ts → ThemeHelper.d.ts} +0 -0
- /package/src/Utilities/Helpers/{ThemeHelpers.js → ThemeHelper.js} +0 -0
|
@@ -7,13 +7,13 @@ const CheckBox_1 = require("../../../../components/CheckBox");
|
|
|
7
7
|
const ErrorBox_1 = tslib_1.__importDefault(require("../../../../components/ErrorBox"));
|
|
8
8
|
const FormLayout_1 = tslib_1.__importStar(require("../../../../components/FormLayout"));
|
|
9
9
|
const Tag_1 = require("../../../../components/Tag");
|
|
10
|
+
const BarStylesHelper_1 = require("../../../../Utilities/Helpers/StyledColumns/BarStylesHelper");
|
|
11
|
+
const BarStyleCellTextLayoutEditor_1 = require("./Components/BarStyleCellTextLayoutEditor");
|
|
10
12
|
const ColorPicker_1 = require("../../../../components/ColorPicker");
|
|
11
13
|
const UIHelper_1 = require("../../../UIHelper");
|
|
12
14
|
const OnePageAdaptableWizard_1 = require("../../../Wizard/OnePageAdaptableWizard");
|
|
13
|
-
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../../../Utilities/Extensions/ArrayExtensions"));
|
|
14
15
|
const Flex_1 = require("../../../../components/Flex");
|
|
15
16
|
const Radio_1 = tslib_1.__importStar(require("../../../../components/Radio"));
|
|
16
|
-
const Toggle_1 = require("../../../../components/Toggle");
|
|
17
17
|
const StyledColumnSliceStyleEditors_1 = require("../StyledColumnSliceStyleEditors");
|
|
18
18
|
const Card_1 = require("../../../../components/Card");
|
|
19
19
|
const SummaryColorTag_1 = require("../../../Wizard/SummaryColorTag");
|
|
@@ -34,19 +34,16 @@ const formatOriginLabel = (origin) => {
|
|
|
34
34
|
}
|
|
35
35
|
return origin;
|
|
36
36
|
};
|
|
37
|
-
const formatPercentBarCellTextSummary = (cellText) => cellText
|
|
38
|
-
|
|
39
|
-
.join(' + ') ?? '';
|
|
40
|
-
const formatPercentBarToolTipSummary = (toolTipText) => toolTipText
|
|
41
|
-
?.map((t) => (t === 'CellValue' ? 'Cell Value' : 'Percent Value'))
|
|
42
|
-
.join(' + ') ?? '';
|
|
37
|
+
const formatPercentBarCellTextSummary = (cellText) => cellText?.map((t) => (t === 'CellValue' ? 'Cell Value' : 'Percent Value')).join(' + ') ?? '';
|
|
38
|
+
const formatPercentBarToolTipSummary = (toolTipText) => toolTipText?.map((t) => (t === 'CellValue' ? 'Cell Value' : 'Percent Value')).join(' + ') ?? '';
|
|
43
39
|
const buildStyledColumnPercentBarStyleSummaryStrings = (pb, options) => {
|
|
44
40
|
const items = [`Origin: ${formatOriginLabel(pb.Origin)}`];
|
|
45
|
-
if (pb.
|
|
46
|
-
|
|
47
|
-
items.push(`Cell Text
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
if ((0, BarStylesHelper_1.hasBarStyleCellTextConfigured)(pb.CellTextProperties)) {
|
|
42
|
+
const tokens = (0, BarStylesHelper_1.getActiveBarStyleCellTextTokens)(pb.CellTextProperties);
|
|
43
|
+
items.push(`Cell Text: ${formatPercentBarCellTextSummary(tokens)}`);
|
|
44
|
+
const layoutSummary = (0, BarStylesHelper_1.formatBarStyleCellTextLayoutSummary)((0, BarStylesHelper_1.resolveBarStyleCellTextLayout)(pb.CellTextProperties));
|
|
45
|
+
if (layoutSummary) {
|
|
46
|
+
items.push(`Placement: ${layoutSummary}`);
|
|
50
47
|
}
|
|
51
48
|
}
|
|
52
49
|
else if (options.includeEmptyCellText) {
|
|
@@ -101,11 +98,6 @@ exports.renderFormatColumnStyleWizardSummary = renderFormatColumnStyleWizardSumm
|
|
|
101
98
|
// Pinning the width forces colons to line up vertically across cards rather than
|
|
102
99
|
// each FormLayout sizing its label column independently from its own longest label.
|
|
103
100
|
const STYLE_FORM_SIZES = ['200px', '1fr'];
|
|
104
|
-
const CELL_TEXT_POSITION_CHOICES = [
|
|
105
|
-
{ value: 'Above', label: 'Above Bar' },
|
|
106
|
-
{ value: 'Below', label: 'Below Bar' },
|
|
107
|
-
{ value: 'Merged', label: 'Merged' },
|
|
108
|
-
];
|
|
109
101
|
const ORIGIN_CHOICES = [
|
|
110
102
|
{
|
|
111
103
|
value: 'Auto',
|
|
@@ -130,6 +122,7 @@ const StyledColumnWizardStyleSection = (props) => {
|
|
|
130
122
|
return ((0, jsx_runtime_1.jsx)(Flex_1.Box, { children: !data.ColumnId && ((0, jsx_runtime_1.jsx)(ErrorBox_1.default, { className: "twa:mt-2", children: "You need to select a column before styling." })) }));
|
|
131
123
|
}
|
|
132
124
|
const pb = data.PercentBarStyle;
|
|
125
|
+
const cellTextProperties = pb.CellTextProperties;
|
|
133
126
|
// ---- updaters -----------------------------------------------------------
|
|
134
127
|
const update = (patch) => {
|
|
135
128
|
props.onChange({
|
|
@@ -137,12 +130,13 @@ const StyledColumnWizardStyleSection = (props) => {
|
|
|
137
130
|
PercentBarStyle: { ...pb, ...patch },
|
|
138
131
|
});
|
|
139
132
|
};
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
133
|
+
const onCellTextLayoutToggle = (token, show) => {
|
|
134
|
+
update((0, BarStylesHelper_1.toggleBarStyleCellTextToken)(cellTextProperties, token, show));
|
|
135
|
+
};
|
|
136
|
+
const onCellTextPlacementChange = (token, patch) => {
|
|
137
|
+
update({
|
|
138
|
+
CellTextProperties: (0, BarStylesHelper_1.patchBarStyleCellTextPlacement)(cellTextProperties, token, patch),
|
|
139
|
+
});
|
|
146
140
|
};
|
|
147
141
|
const onToolTipTextChanged = (token, checked) => {
|
|
148
142
|
const current = pb.ToolTipText ?? [];
|
|
@@ -151,38 +145,7 @@ const StyledColumnWizardStyleSection = (props) => {
|
|
|
151
145
|
: current.filter((t) => t !== token);
|
|
152
146
|
update({ ToolTipText: next });
|
|
153
147
|
};
|
|
154
|
-
const handleCellTextPositionChange = (pos) => update({ CellTextPosition: pos });
|
|
155
148
|
const handleOriginChange = (origin) => update({ Origin: origin });
|
|
156
|
-
const handleCellTextAlignmentChange = (choice) => {
|
|
157
|
-
if (choice === 'Inherit') {
|
|
158
|
-
const next = { ...pb };
|
|
159
|
-
delete next.CellTextAlignment;
|
|
160
|
-
props.onChange({ ...data, PercentBarStyle: next });
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
update({ CellTextAlignment: choice });
|
|
164
|
-
};
|
|
165
|
-
const onAutoCellTextAlignmentChecked = (checked) => {
|
|
166
|
-
if (!checked) {
|
|
167
|
-
handleCellTextAlignmentChange('Inherit');
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
let nextFont = pb.Font ? { ...pb.Font } : undefined;
|
|
171
|
-
if (nextFont) {
|
|
172
|
-
delete nextFont.Alignment;
|
|
173
|
-
if (Object.keys(nextFont).length === 0) {
|
|
174
|
-
nextFont = undefined;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
props.onChange({
|
|
178
|
-
...data,
|
|
179
|
-
PercentBarStyle: {
|
|
180
|
-
...pb,
|
|
181
|
-
CellTextAlignment: 'Auto',
|
|
182
|
-
Font: nextFont,
|
|
183
|
-
},
|
|
184
|
-
});
|
|
185
|
-
};
|
|
186
149
|
const onBackColorChange = (color) => {
|
|
187
150
|
if (color) {
|
|
188
151
|
update({ BackColor: color });
|
|
@@ -191,14 +154,11 @@ const StyledColumnWizardStyleSection = (props) => {
|
|
|
191
154
|
const { BackColor: _removed, ...rest } = pb;
|
|
192
155
|
props.onChange({ ...data, PercentBarStyle: rest });
|
|
193
156
|
};
|
|
194
|
-
const cellTextDisabled =
|
|
195
|
-
const currentAlignment = pb.CellTextAlignment ?? 'Inherit';
|
|
157
|
+
const cellTextDisabled = !(0, BarStylesHelper_1.hasBarStyleCellTextConfigured)(cellTextProperties) || disabled;
|
|
196
158
|
const currentOrigin = typeof pb.Origin === 'number'
|
|
197
159
|
? 'Min' // numeric origin doesn't fit the radio set; treat as Min for selection state
|
|
198
160
|
: pb.Origin ?? 'Auto';
|
|
199
|
-
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:mb-3", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Bar Position" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Set the position of the cell text relative to the bar" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(Radio_1.RadioGroup, { orientation: "vertical", name: "ab-percentbar-origin", value: currentOrigin, onRadioChange: handleOriginChange, children: ORIGIN_CHOICES.map((choice) => ((0, jsx_runtime_1.jsx)(Radio_1.default, { value: choice.value, disabled: disabled, children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:min-w-[60px]", children: choice.label }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70", children: choice.hint })] }) }, choice.value))) }) })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:mb-3", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Cell Text" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[540px]", children: "
|
|
200
|
-
? 'twa:opacity-50 twa:pointer-events-none'
|
|
201
|
-
: '', children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:gap-2", children: (0, jsx_runtime_1.jsxs)(Toggle_1.ToggleGroup, { children: [(0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { icon: "align-left", pressed: currentAlignment === 'Left', onPressedChange: (pressed) => handleCellTextAlignmentChange(pressed ? 'Left' : 'Inherit') }), (0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { icon: "align-center", pressed: currentAlignment === 'Center', onPressedChange: (pressed) => handleCellTextAlignmentChange(pressed ? 'Center' : 'Inherit') }), (0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { icon: "align-right", pressed: currentAlignment === 'Right', onPressedChange: (pressed) => handleCellTextAlignmentChange(pressed ? 'Right' : 'Inherit') })] }) }) }) }) })] }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnFontStyleEditor, { api: api, disabled: cellTextDisabled, hideAlignment: true, value: pb.Font, onChange: (next) => {
|
|
161
|
+
return ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:mb-3", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Bar Position" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[520px]", children: "Set the position of the cell text relative to the bar" })] }), (0, jsx_runtime_1.jsx)(Card_1.Card.Body, { children: (0, jsx_runtime_1.jsx)(Radio_1.RadioGroup, { orientation: "vertical", name: "ab-percentbar-origin", value: currentOrigin, onRadioChange: handleOriginChange, children: ORIGIN_CHOICES.map((choice) => ((0, jsx_runtime_1.jsx)(Radio_1.default, { value: choice.value, disabled: disabled, children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:min-w-[60px]", children: choice.label }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70", children: choice.hint })] }) }, choice.value))) }) })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card, { shadow: false, className: "twa:mb-3", children: [(0, jsx_runtime_1.jsxs)(Card_1.Card.Title, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:font-medium", children: "Cell Text" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:text-xs twa:opacity-70 twa:font-normal twa:max-w-[540px]", children: "Pick which values to display and where each one sits around the bar (font properties take precedence over Format Column)" })] }), (0, jsx_runtime_1.jsxs)(Card_1.Card.Body, { children: [(0, jsx_runtime_1.jsx)(FormLayout_1.default, { sizes: [...STYLE_FORM_SIZES], children: (0, jsx_runtime_1.jsx)(BarStyleCellTextLayoutEditor_1.BarStyleCellTextLayoutEditor, { disabled: disabled, cellTextProperties: cellTextProperties, onToggle: onCellTextLayoutToggle, onPlacementChange: onCellTextPlacementChange }) }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `twa:mt-3 twa:pt-3 twa:border-t twa:border-foreground/15 ${cellTextDisabled ? 'twa:opacity-50' : ''}`, children: (0, jsx_runtime_1.jsx)(StyledColumnSliceStyleEditors_1.StyledColumnFontStyleEditor, { api: api, disabled: cellTextDisabled, value: pb.Font, onChange: (next) => {
|
|
202
162
|
if (next) {
|
|
203
163
|
update({ Font: next });
|
|
204
164
|
}
|
package/src/View/UIHelper.js
CHANGED
|
@@ -36,7 +36,7 @@ const tslib_1 = require("tslib");
|
|
|
36
36
|
const EditableConfigEntityState_1 = require("./Components/SharedProps/EditableConfigEntityState");
|
|
37
37
|
const Enums_1 = require("../AdaptableState/Common/Enums");
|
|
38
38
|
const StringExtensions_1 = require("../Utilities/Extensions/StringExtensions");
|
|
39
|
-
const ScheduleHelper_1 = require("../Utilities/Helpers/ScheduleHelper");
|
|
39
|
+
const ScheduleHelper_1 = require("../Utilities/Helpers/Scheduling/ScheduleHelper");
|
|
40
40
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
41
41
|
const resolveContainerElement_1 = require("../Utilities/resolveContainerElement");
|
|
42
42
|
/** Generic swatch entries for the Colour Picker (resolved at runtime per active theme). */
|
|
@@ -13,7 +13,7 @@ const Card_1 = require("../../components/Card");
|
|
|
13
13
|
const ButtonEdit_1 = require("../Components/Buttons/ButtonEdit");
|
|
14
14
|
const NamedQueryContext_1 = require("../../components/ExpressionEditor/NamedQueryContext");
|
|
15
15
|
const OnePageWizards_1 = require("./OnePageWizards");
|
|
16
|
-
const
|
|
16
|
+
const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
|
|
17
17
|
const Flex_1 = require("../../components/Flex");
|
|
18
18
|
const twMerge_1 = require("../../twMerge");
|
|
19
19
|
const SummaryTag = (props) => ((0, jsx_runtime_1.jsx)(Flex_1.Box, { ...props }));
|
|
@@ -38,7 +38,7 @@ const OnePageAdaptableWizard = (props) => {
|
|
|
38
38
|
const saveNamedQuery = React.useCallback((namedQuery) => dispatch(NamedQueryRedux.NamedQueryAdd(namedQuery)), []);
|
|
39
39
|
const [namedQuery, setNamedQuery] = (0, react_1.useState)(false);
|
|
40
40
|
const name = props.moduleInfo.FriendlyName
|
|
41
|
-
? `${(0,
|
|
41
|
+
? `${(0, StringExtensions_1.kebabCase)(props.moduleInfo.FriendlyName)}-wizard`
|
|
42
42
|
: '';
|
|
43
43
|
const extraContext = {
|
|
44
44
|
data: props.data,
|
|
@@ -171,7 +171,9 @@ const OnePageWizard = (props) => {
|
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
setCurrentSection(index);
|
|
174
|
-
}, children: [(0, jsx_runtime_1.jsx)(KeyHint_1.KeyHint, { className:
|
|
174
|
+
}, children: [(0, jsx_runtime_1.jsx)(KeyHint_1.KeyHint, { className: (0, utils_1.cn)('twa:mr-2 twa:inline-block', {
|
|
175
|
+
'twa:text-accent-foreground': active,
|
|
176
|
+
}), children: navIndex }), (0, jsx_runtime_1.jsx)("div", { className: "twa:flex-1", children: section.title }), (0, jsx_runtime_1.jsx)(icons_1.Icon, { name: "error", className: (0, utils_1.cn)('twa:ml-2', validSectionsMap.get(index) !== true ? 'twa:visible' : 'twa:invisible') })] }, section.title));
|
|
175
177
|
}), selectedFeedback, (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:flex-1" }), (0, jsx_runtime_1.jsxs)(KeyHint_1.KeyHint, { className: "ab-OnePageWizard__key-hint twa:leading-normal", children: [(0, isMacLike_1.isMacLike)() ? 'Cmd' : 'Ctrl', " + #", (0, jsx_runtime_1.jsx)("br", {}), "or arrow keys", (0, jsx_runtime_1.jsx)("br", {}), "to navigate"] })] }), (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flexDirection: "column", className: "ab-OnePageWizard__section-container twa:min-h-0 twa:min-w-0 twa:flex-1", children: renderSection(currentSection) })] }), (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "row", alignItems: "center", className: "ab-WizardDialog__footer ab-OnePageWizard__footer twa:p-2", children: [(0, jsx_runtime_1.jsx)(SimpleButton_1.default, { tone: "neutral", variant: "text", "data-name": "close", onClick: () => props.onHide?.(), tooltip: props.closeTooltip ?? 'Close wizard', accessLevel: GeneralConstants_1.ACCESS_LEVEL_FULL, children: props.closeText ?? 'CLOSE' }), (0, jsx_runtime_1.jsx)(KeyHint_1.KeyHint, { className: "twa:ml-2", children: "Esc" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-OnePageWizard__error twa:text-2 twa:mr-3 twa:flex-1 twa:text-destructive twa:text-end", children: firstErrorMessage }), (0, jsx_runtime_1.jsx)(SimpleButton_1.default, { tone: "accent", "data-name": "finish", variant: "raised", disabled: canFinish !== true, onClick: () => handleClickFinish(), icon: 'check', accessLevel: GeneralConstants_1.ACCESS_LEVEL_FULL, children: props.finishText ?? 'Finish' })] })] }) }) }) }));
|
|
176
178
|
};
|
|
177
179
|
exports.OnePageWizard = OnePageWizard;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdaptableAgGrid = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const TimingHelper_1 = require("../Utilities/Helpers/TimingHelper");
|
|
6
6
|
const ag_grid_enterprise_1 = require("ag-grid-enterprise");
|
|
7
7
|
const AdaptableLogger_1 = require("./AdaptableLogger");
|
|
8
8
|
const DocumentationLinkConstants_1 = require("../Utilities/Constants/DocumentationLinkConstants");
|
|
9
9
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
|
|
10
|
-
const
|
|
10
|
+
const QuickSearchHelper_1 = require("../Utilities/Helpers/QuickSearchHelper");
|
|
11
11
|
const Emitter_1 = tslib_1.__importDefault(require("../Utilities/Emitter"));
|
|
12
12
|
const DefaultAdaptableOptions_1 = require("../AdaptableOptions/DefaultAdaptableOptions");
|
|
13
13
|
const resolveContainerElement_1 = require("../Utilities/resolveContainerElement");
|
|
@@ -24,7 +24,7 @@ const ThemeService_1 = require("../Utilities/Services/ThemeService");
|
|
|
24
24
|
const ValidationService_1 = require("../Utilities/Services/ValidationService");
|
|
25
25
|
const ModuleService_1 = require("../Utilities/Services/ModuleService");
|
|
26
26
|
const CalculatedColumnExpressionService_1 = require("../Utilities/Services/CalculatedColumnExpressionService");
|
|
27
|
-
const
|
|
27
|
+
const CalculatedColumnExpressionService_2 = require("../Utilities/Services/CalculatedColumnExpressionService");
|
|
28
28
|
const QueryLanguageService_1 = require("../Utilities/Services/QueryLanguageService");
|
|
29
29
|
const AlertService_1 = require("../Utilities/Services/AlertService");
|
|
30
30
|
const TeamSharingService_1 = require("../Utilities/Services/TeamSharingService");
|
|
@@ -90,8 +90,8 @@ const Modal_1 = require("../components/Modal");
|
|
|
90
90
|
const AdaptableLoadingScreen_1 = require("../View/Components/Popups/AdaptableLoadingScreen");
|
|
91
91
|
const react_1 = require("react");
|
|
92
92
|
const createAgStatusPanelComponent_1 = require("../Utilities/createAgStatusPanelComponent");
|
|
93
|
-
const only_1 = require("../
|
|
94
|
-
const weightedAverage_1 = require("../
|
|
93
|
+
const only_1 = require("../AdaptableState/Aggregations/only");
|
|
94
|
+
const weightedAverage_1 = require("../AdaptableState/Aggregations/weightedAverage");
|
|
95
95
|
const RowSummary_1 = require("../AdaptableState/Common/RowSummary");
|
|
96
96
|
const FlashingCellService_1 = require("../Utilities/Services/FlashingCellService");
|
|
97
97
|
const AgGridExportAdapter_1 = require("./AgGridExportAdapter");
|
|
@@ -107,7 +107,7 @@ const adaptableOverrideCheck_1 = require("../Utilities/adaptableOverrideCheck");
|
|
|
107
107
|
const AgGridModulesAdapter_1 = require("./AgGridModulesAdapter");
|
|
108
108
|
const devTools_1 = require("../devTools");
|
|
109
109
|
const infinite_react_1 = require("@infinite-table/infinite-react");
|
|
110
|
-
const
|
|
110
|
+
const DisplayFormatHelper_1 = require("../Utilities/Helpers/DisplayFormatHelper");
|
|
111
111
|
const PredicateApiImpl_1 = require("../Api/Implementation/PredicateApiImpl");
|
|
112
112
|
const AgGridFilterAdapter_1 = require("./AgGridFilterAdapter");
|
|
113
113
|
const AdaptableFilterHandler_1 = require("./AdaptableFilterHandler");
|
|
@@ -1742,7 +1742,7 @@ class AdaptableAgGrid {
|
|
|
1742
1742
|
* Use Case: User has selected Rows or opened a Row Group
|
|
1743
1743
|
* Action: Set Selected Rows (on a debounce of 500ms)
|
|
1744
1744
|
*/
|
|
1745
|
-
this.debouncedSetSelectedRows = (0,
|
|
1745
|
+
this.debouncedSetSelectedRows = (0, TimingHelper_1.debounce)(() => {
|
|
1746
1746
|
if (!this.isReady) {
|
|
1747
1747
|
return;
|
|
1748
1748
|
}
|
|
@@ -1762,7 +1762,7 @@ class AdaptableAgGrid {
|
|
|
1762
1762
|
* Use Case: User has selected a range of cells
|
|
1763
1763
|
* Action: Set Selected Cells (on a debounce of 250ms)
|
|
1764
1764
|
*/
|
|
1765
|
-
this.debouncedSetSelectedCells = (0,
|
|
1765
|
+
this.debouncedSetSelectedCells = (0, TimingHelper_1.debounce)(() => {
|
|
1766
1766
|
if (!this.isReady) {
|
|
1767
1767
|
return;
|
|
1768
1768
|
}
|
|
@@ -3013,7 +3013,7 @@ class AdaptableAgGrid {
|
|
|
3013
3013
|
const monthCells = treeDeepMap.get([year, month]) || [];
|
|
3014
3014
|
const monthCell = this.createGridCell(rowNode, colId, {
|
|
3015
3015
|
rawValue: monthRawValue,
|
|
3016
|
-
displayValue: (0,
|
|
3016
|
+
displayValue: (0, DisplayFormatHelper_1.DateFormatter)(`${monthRawValue}-01`, { Pattern: 'LLLL' }),
|
|
3017
3017
|
normalisedValue: monthRawValue,
|
|
3018
3018
|
});
|
|
3019
3019
|
monthCells.push(monthCell);
|
|
@@ -3585,7 +3585,7 @@ class AdaptableAgGrid {
|
|
|
3585
3585
|
this.agGridAdapter.setGridOption('findSearchValue', searchText);
|
|
3586
3586
|
}
|
|
3587
3587
|
applyQuickSearchFindCssVars() {
|
|
3588
|
-
(0,
|
|
3588
|
+
(0, QuickSearchHelper_1.applyQuickSearchFindCssVars)(this.getAgGridContainerElement(), this.api.stateApi.getQuickSearchState());
|
|
3589
3589
|
}
|
|
3590
3590
|
refreshAgGridFind() {
|
|
3591
3591
|
if (!this.agGridModulesAdapter.isAgGridModuleRegistered('FindModule')) {
|
|
@@ -4138,7 +4138,7 @@ class AdaptableAgGrid {
|
|
|
4138
4138
|
* There are a few things we need to do AFTER we edit a cell and it makes sense to put them in one place
|
|
4139
4139
|
*/
|
|
4140
4140
|
performPostEditChecks(rowNode, cellDataChangedInfos) {
|
|
4141
|
-
cellDataChangedInfos = (0,
|
|
4141
|
+
cellDataChangedInfos = (0, CalculatedColumnExpressionService_2.expandCellDataChangedInfosWithCalculatedColumns)(this.api, cellDataChangedInfos);
|
|
4142
4142
|
cellDataChangedInfos.forEach((cellDataChangedInfo) => {
|
|
4143
4143
|
// if a Cell Data Change is undone, log to the Console
|
|
4144
4144
|
if (cellDataChangedInfo.trigger === 'undo') {
|
|
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AgGridColumnAdapter = void 0;
|
|
4
4
|
exports.getEditorForColumnDataType = getEditorForColumnDataType;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
-
const
|
|
6
|
+
const StringExtensions_1 = require("../Utilities/Extensions/StringExtensions");
|
|
7
7
|
const AdaptableFormatPresets_1 = require("../AdaptableState/Common/AdaptableFormatPresets");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
8
|
+
const ObjectExtensions_1 = require("../Utilities/Extensions/ObjectExtensions");
|
|
9
|
+
const SparklineStyleHelper_1 = require("../Utilities/Helpers/StyledColumns/SparklineStyleHelper");
|
|
10
|
+
const BarStylesHelper_1 = require("../Utilities/Helpers/StyledColumns/BarStylesHelper");
|
|
10
11
|
const StyleHelper_1 = require("../Utilities/Helpers/StyleHelper");
|
|
11
|
-
const
|
|
12
|
+
const StringExtensions_2 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
|
|
12
13
|
const AdaptableColumn_1 = require("../AdaptableState/Common/AdaptableColumn");
|
|
13
14
|
const tinycolor2_1 = tslib_1.__importDefault(require("tinycolor2"));
|
|
14
15
|
const UIHelper_1 = tslib_1.__importDefault(require("../View/UIHelper"));
|
|
@@ -17,11 +18,11 @@ const BadgeRenderer_1 = require("./cellRenderers/BadgeRenderer");
|
|
|
17
18
|
const BulletChartRenderer_1 = require("./cellRenderers/BulletChartRenderer");
|
|
18
19
|
const RangeBarRenderer_1 = require("./cellRenderers/RangeBarRenderer");
|
|
19
20
|
const RatingRenderer_1 = require("./cellRenderers/RatingRenderer");
|
|
20
|
-
const
|
|
21
|
+
const StyledColumnHelper_1 = require("../Utilities/Helpers/StyledColumns/StyledColumnHelper");
|
|
21
22
|
const IconRenderer_1 = require("./cellRenderers/IconRenderer");
|
|
22
|
-
const
|
|
23
|
-
const ScheduledAlertHelper_1 = require("../Utilities/Helpers/ScheduledAlertHelper");
|
|
24
|
-
const
|
|
23
|
+
const NumberExtensions_1 = require("../Utilities/Extensions/NumberExtensions");
|
|
24
|
+
const ScheduledAlertHelper_1 = require("../Utilities/Helpers/Scheduling/ScheduledAlertHelper");
|
|
25
|
+
const GradientStyleHelper_1 = require("../Utilities/Helpers/StyledColumns/GradientStyleHelper");
|
|
25
26
|
const AdaptableNumberEditor_1 = require("./editors/AdaptableNumberEditor");
|
|
26
27
|
const AdaptableDateEditor_1 = require("./editors/AdaptableDateEditor");
|
|
27
28
|
const AgGridExportAdapter_1 = require("./AgGridExportAdapter");
|
|
@@ -31,7 +32,7 @@ const AdaptableFilterHandler_1 = require("./AdaptableFilterHandler");
|
|
|
31
32
|
const AgGridFilterAdapter_1 = require("./AgGridFilterAdapter");
|
|
32
33
|
const AgGridFloatingFilterAdapter_1 = require("./AgGridFloatingFilterAdapter");
|
|
33
34
|
const AdaptableLogger_1 = require("./AdaptableLogger");
|
|
34
|
-
const
|
|
35
|
+
const IconStyleHelper_1 = require("../Utilities/Helpers/StyledColumns/IconStyleHelper");
|
|
35
36
|
const AggregationColumns_1 = require("../AdaptableState/Common/AggregationColumns");
|
|
36
37
|
/**
|
|
37
38
|
* CSS property keys produced by `convertAdaptableStyleToCSS` from a
|
|
@@ -375,7 +376,7 @@ class AgGridColumnAdapter {
|
|
|
375
376
|
return Object.entries(style).reduce((acc, [key, value]) => {
|
|
376
377
|
// needed as AG-Grid vanilla turns all CSS props to kebab, while AG Grid React does not
|
|
377
378
|
// @ts-ignore
|
|
378
|
-
acc[`--ab-dynamic-${(0,
|
|
379
|
+
acc[`--ab-dynamic-${(0, StringExtensions_1.kebabCase)(key)}`] = value;
|
|
379
380
|
return acc;
|
|
380
381
|
}, {});
|
|
381
382
|
}
|
|
@@ -558,7 +559,7 @@ class AgGridColumnAdapter {
|
|
|
558
559
|
if (styledColumn && !styledColumn.IsSuspended) {
|
|
559
560
|
if (styledColumn.SparklineStyle) {
|
|
560
561
|
const sanitizedSparklineOptions = AdaptableHelper_1.AdaptableHelper.removeAdaptableObjectPrimitives(styledColumn.SparklineStyle.options);
|
|
561
|
-
const sparklineOptions = (0,
|
|
562
|
+
const sparklineOptions = (0, SparklineStyleHelper_1.resolveSparklineOptionsForRender)((0, ObjectExtensions_1.merge)({}, userDefined?.sparklineOptions, sanitizedSparklineOptions));
|
|
562
563
|
return {
|
|
563
564
|
...userDefined,
|
|
564
565
|
sparklineOptions,
|
|
@@ -577,7 +578,7 @@ class AgGridColumnAdapter {
|
|
|
577
578
|
// Icon Style has its own tooltip vocabulary (`'CellValue'` /
|
|
578
579
|
// `'IconDescription'`) so we handle it before falling through to the
|
|
579
580
|
// numeric tooltip branch.
|
|
580
|
-
if (styledColumn.IconStyle && !(0,
|
|
581
|
+
if (styledColumn.IconStyle && !(0, IconStyleHelper_1.isUnsupportedColumnDataTypeForIconStyle)(abColumn.dataType)) {
|
|
581
582
|
const iconTokens = styledColumn.IconStyle.ToolTipText ?? [];
|
|
582
583
|
if (iconTokens.length === 0) {
|
|
583
584
|
return undefined;
|
|
@@ -615,7 +616,7 @@ class AgGridColumnAdapter {
|
|
|
615
616
|
if (ratingToolTip.includes('PercentageValue') && ratingMax > 0) {
|
|
616
617
|
const n = Number(params.value);
|
|
617
618
|
if (!isNaN(n)) {
|
|
618
|
-
const clamped =
|
|
619
|
+
const clamped = (0, NumberExtensions_1.clamp)(n, 0, ratingMax);
|
|
619
620
|
const percentageValue = (clamped / ratingMax) * 100;
|
|
620
621
|
const pct = `${percentageValue.toFixed(0)}%`;
|
|
621
622
|
returnValue = returnValue ? `${returnValue} (${pct})` : pct;
|
|
@@ -663,7 +664,7 @@ class AgGridColumnAdapter {
|
|
|
663
664
|
}
|
|
664
665
|
else {
|
|
665
666
|
const scaleSpan = max - min;
|
|
666
|
-
const clamped =
|
|
667
|
+
const clamped = (0, NumberExtensions_1.clamp)(Number(params.value), min, max);
|
|
667
668
|
percentageValue = scaleSpan === 0 ? 0 : ((clamped - min) / scaleSpan) * 100;
|
|
668
669
|
}
|
|
669
670
|
returnValue += ` (${percentageValue.toFixed(0)}%)`;
|
|
@@ -1260,7 +1261,7 @@ class AgGridColumnAdapter {
|
|
|
1260
1261
|
}
|
|
1261
1262
|
getQuickSearchCellStyle() {
|
|
1262
1263
|
const quickSearchStyle = this.adaptableApi.quickSearchApi.getQuickSearchCellMatchStyle();
|
|
1263
|
-
if (!quickSearchStyle ||
|
|
1264
|
+
if (!quickSearchStyle || StringExtensions_2.default.IsNotNullOrEmpty(quickSearchStyle.ClassName)) {
|
|
1264
1265
|
return undefined;
|
|
1265
1266
|
}
|
|
1266
1267
|
return (0, StyleHelper_1.convertAdaptableStyleToCSS)(quickSearchStyle);
|
|
@@ -1363,7 +1364,7 @@ class AgGridColumnAdapter {
|
|
|
1363
1364
|
*/
|
|
1364
1365
|
styledColumnClaimsFontStyle(styledColumn, abColumn) {
|
|
1365
1366
|
const iconFontClaims = !!styledColumn?.IconStyle &&
|
|
1366
|
-
!(0,
|
|
1367
|
+
!(0, IconStyleHelper_1.isUnsupportedColumnDataTypeForIconStyle)(abColumn.dataType) &&
|
|
1367
1368
|
(0, StyleHelper_1.hasCellFontStyle)(styledColumn.IconStyle.Font);
|
|
1368
1369
|
return ((0, StyleHelper_1.hasCellFontStyle)(styledColumn?.GradientStyle?.Font) ||
|
|
1369
1370
|
(0, StyleHelper_1.hasCellFontStyle)(styledColumn?.PercentBarStyle?.Font) ||
|
|
@@ -1377,7 +1378,7 @@ class AgGridColumnAdapter {
|
|
|
1377
1378
|
*/
|
|
1378
1379
|
styledColumnClaimsCellBoxStyle(styledColumn, abColumn) {
|
|
1379
1380
|
const iconCellClaims = !!styledColumn?.IconStyle &&
|
|
1380
|
-
!(0,
|
|
1381
|
+
!(0, IconStyleHelper_1.isUnsupportedColumnDataTypeForIconStyle)(abColumn.dataType) &&
|
|
1381
1382
|
(0, StyleHelper_1.hasCellBoxStyle)(styledColumn.IconStyle.Cell);
|
|
1382
1383
|
return ((0, StyleHelper_1.hasCellBoxStyle)(styledColumn?.RatingStyle?.Cell) ||
|
|
1383
1384
|
(0, StyleHelper_1.hasCellBoxStyle)(styledColumn?.SparklineStyle?.Cell) ||
|
|
@@ -1405,7 +1406,7 @@ class AgGridColumnAdapter {
|
|
|
1405
1406
|
// Row-kind filtering: defer to the shared row-scope helper so the
|
|
1406
1407
|
// cellStyle path (Gradient background, Font/Cell slots) follows the
|
|
1407
1408
|
// same `StyledColumn.RowScope` rules as every cellRenderer.
|
|
1408
|
-
if (!(0,
|
|
1409
|
+
if (!(0, StyledColumnHelper_1.shouldRenderStyledColumnOnRow)(styledColumn, params.node, this.adaptableApi)) {
|
|
1409
1410
|
return style;
|
|
1410
1411
|
}
|
|
1411
1412
|
let colValue = params.value;
|
|
@@ -1418,24 +1419,24 @@ class AgGridColumnAdapter {
|
|
|
1418
1419
|
cellBackColor = gradientStyle.ColumnComparison.Color;
|
|
1419
1420
|
}
|
|
1420
1421
|
else {
|
|
1421
|
-
const matchingRange = this.adaptableApi.styledColumnApi.internalApi.findRangeForColumn((0,
|
|
1422
|
+
const matchingRange = this.adaptableApi.styledColumnApi.internalApi.findRangeForColumn((0, GradientStyleHelper_1.expandGradientCellRanges)(gradientStyle), abColumn, (0, GradientStyleHelper_1.gradientStyleRangeLookupValueType)(gradientStyle), colValue);
|
|
1422
1423
|
if (matchingRange) {
|
|
1423
1424
|
cellBackColor = matchingRange.Color;
|
|
1424
1425
|
// Flip the alpha ramp when (a) it's the negative band of a
|
|
1425
1426
|
// ZeroCentred diverging gradient, OR (b) the user has explicitly
|
|
1426
1427
|
// marked this band as `ReverseGradient` (lower-is-darker).
|
|
1427
1428
|
reverseGradient =
|
|
1428
|
-
(!!gradientStyle.ZeroCentred && (0,
|
|
1429
|
+
(!!gradientStyle.ZeroCentred && (0, GradientStyleHelper_1.isNegativeZeroCentredBand)(matchingRange)) ||
|
|
1429
1430
|
!!matchingRange.ReverseGradient;
|
|
1430
1431
|
}
|
|
1431
1432
|
}
|
|
1432
|
-
const minAlphaBound = gradientStyle.MinAlpha ??
|
|
1433
|
-
const maxAlphaBound = gradientStyle.MaxAlpha ??
|
|
1434
|
-
const lo = Math.min(
|
|
1435
|
-
const hi = Math.max(
|
|
1433
|
+
const minAlphaBound = gradientStyle.MinAlpha ?? GradientStyleHelper_1.DEFAULT_GRADIENT_MIN_ALPHA;
|
|
1434
|
+
const maxAlphaBound = gradientStyle.MaxAlpha ?? GradientStyleHelper_1.DEFAULT_GRADIENT_MAX_ALPHA;
|
|
1435
|
+
const lo = Math.min((0, NumberExtensions_1.clamp)(minAlphaBound, 0, 1), (0, NumberExtensions_1.clamp)(maxAlphaBound, 0, 1));
|
|
1436
|
+
const hi = Math.max((0, NumberExtensions_1.clamp)(minAlphaBound, 0, 1), (0, NumberExtensions_1.clamp)(maxAlphaBound, 0, 1));
|
|
1436
1437
|
const span = Math.abs(max - min);
|
|
1437
1438
|
let t = span === 0 ? 0.5 : (Number(colValue) - min) / span;
|
|
1438
|
-
t =
|
|
1439
|
+
t = (0, NumberExtensions_1.clamp)(t, 0, 1);
|
|
1439
1440
|
if (reverseGradient) {
|
|
1440
1441
|
t = 1 - t;
|
|
1441
1442
|
}
|
|
@@ -1450,7 +1451,8 @@ class AgGridColumnAdapter {
|
|
|
1450
1451
|
}
|
|
1451
1452
|
}
|
|
1452
1453
|
}
|
|
1453
|
-
if (styledColumn.PercentBarStyle &&
|
|
1454
|
+
if (styledColumn.PercentBarStyle &&
|
|
1455
|
+
(0, BarStylesHelper_1.hasBarStyleCellTextConfigured)(styledColumn.PercentBarStyle.CellTextProperties)) {
|
|
1454
1456
|
style.paddingTop = 0;
|
|
1455
1457
|
style.paddingBottom = 0;
|
|
1456
1458
|
}
|
|
@@ -1464,7 +1466,7 @@ class AgGridColumnAdapter {
|
|
|
1464
1466
|
// basis when a Gradient cell has a tinted background, even if the user
|
|
1465
1467
|
// also set `Font.ForeColor` as a baseline.
|
|
1466
1468
|
const autoContrastColor = gradientStyle?.AutoContrastText && style.color ? style.color : undefined;
|
|
1467
|
-
const iconStyleFontApplies = styledColumn.IconStyle && !(0,
|
|
1469
|
+
const iconStyleFontApplies = styledColumn.IconStyle && !(0, IconStyleHelper_1.isUnsupportedColumnDataTypeForIconStyle)(abColumn.dataType);
|
|
1468
1470
|
const fontSlot = styledColumn.GradientStyle?.Font ??
|
|
1469
1471
|
styledColumn.PercentBarStyle?.Font ??
|
|
1470
1472
|
styledColumn.BulletChartStyle?.Font ??
|
|
@@ -1476,7 +1478,7 @@ class AgGridColumnAdapter {
|
|
|
1476
1478
|
if (fontSlot) {
|
|
1477
1479
|
style = { ...style, ...(0, StyleHelper_1.convertAdaptableStyleToCSS)(fontSlot) };
|
|
1478
1480
|
}
|
|
1479
|
-
const iconStyleCellApplies = styledColumn.IconStyle && !(0,
|
|
1481
|
+
const iconStyleCellApplies = styledColumn.IconStyle && !(0, IconStyleHelper_1.isUnsupportedColumnDataTypeForIconStyle)(abColumn.dataType);
|
|
1480
1482
|
const cellSlot = styledColumn.RatingStyle?.Cell ??
|
|
1481
1483
|
styledColumn.SparklineStyle?.Cell ??
|
|
1482
1484
|
styledColumn.BadgeStyle?.Cell ??
|
|
@@ -9,7 +9,7 @@ const Uuid_1 = require("../AdaptableState/Uuid");
|
|
|
9
9
|
const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
|
|
10
10
|
const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
|
|
11
11
|
const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
|
|
12
|
-
const
|
|
12
|
+
const DisplayFormatHelper_1 = tslib_1.__importStar(require("../Utilities/Helpers/DisplayFormatHelper"));
|
|
13
13
|
const StyleHelper_1 = require("../Utilities/Helpers/StyleHelper");
|
|
14
14
|
const waitForTimeout_1 = require("../Utilities/waitForTimeout");
|
|
15
15
|
class AgGridExportAdapter {
|
|
@@ -661,7 +661,7 @@ class AgGridExportAdapter {
|
|
|
661
661
|
// we have to pass the date in the ISO format to Excel
|
|
662
662
|
// see https://www.ag-grid.com/javascript-data-grid/excel-export-data-types/#dates
|
|
663
663
|
// we can NOT use Date.toISOString() because we don't want the timezone corrections to kick in
|
|
664
|
-
const isoFormattedValue = (0,
|
|
664
|
+
const isoFormattedValue = (0, DisplayFormatHelper_1.DateFormatter)(normalisedValue, {
|
|
665
665
|
Pattern: `yyyy-MM-dd'T'HH:mm:ss.SSS`,
|
|
666
666
|
});
|
|
667
667
|
if (isoFormattedValue) {
|
|
@@ -900,7 +900,7 @@ class AgGridExportAdapter {
|
|
|
900
900
|
if (isDateColumn) {
|
|
901
901
|
const customExportDateFormat = this.getCustomExportDateFormat(column, exportContext);
|
|
902
902
|
if (!!customExportDateFormat) {
|
|
903
|
-
return
|
|
903
|
+
return DisplayFormatHelper_1.default.DateFormatter(cellRawValue, {
|
|
904
904
|
Pattern: customExportDateFormat,
|
|
905
905
|
});
|
|
906
906
|
}
|