@levi-gemcommerce/analytics 3.0.1-dev.3 → 3.0.1-dev.5
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/dist/esm/components/OrderAnalytic/types/order.d.ts +1 -1
- package/package.json +38 -15
- package/src/api/graphql/fragments/pathAnalytic.generated.ts +0 -26
- package/src/assets/img/all-sessions.png +0 -0
- package/src/assets/img/analytic-empty.png +0 -0
- package/src/assets/img/first-session.png +0 -0
- package/src/assets/img/page-only.png +0 -0
- package/src/assets/svg/gemx-skeleton.svg +0 -12
- package/src/assets/svg/product.svg +0 -18
- package/src/components/AnalyticMode/AnalyticModeSelector.tsx +0 -50
- package/src/components/AnalyticMode/index.ts +0 -2
- package/src/components/CardPathAnalysis/CardJourneyAnalysis.tsx +0 -33
- package/src/components/CardPathAnalysis/assets/img/analytic-gemx.png +0 -0
- package/src/components/CardPathAnalysis/assets/styles/PathAnalysis.scss +0 -60
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.tsx +0 -45
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.tsx +0 -53
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.tsx +0 -65
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.tsx +0 -29
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.tsx +0 -12
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.tsx +0 -43
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/index.ts +0 -1
- package/src/components/CardPathAnalysis/components/PathAnalysisChart.tsx +0 -55
- package/src/components/CardPathAnalysis/components/index.ts +0 -1
- package/src/components/CardPathAnalysis/configs/index.ts +0 -2
- package/src/components/CardPathAnalysis/constants/index.ts +0 -1
- package/src/components/CardPathAnalysis/constants/path-analysis.ts +0 -162
- package/src/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.tsx +0 -66
- package/src/components/CardPathAnalysis/contexts/PathAnalysisProvider.tsx +0 -130
- package/src/components/CardPathAnalysis/contexts/index.ts +0 -2
- package/src/components/CardPathAnalysis/helpers/index.ts +0 -2
- package/src/components/CardPathAnalysis/helpers/metricHelpers.ts +0 -13
- package/src/components/CardPathAnalysis/helpers/pathAnalysis.ts +0 -96
- package/src/components/CardPathAnalysis/helpers/pathAnalysisChart.ts +0 -128
- package/src/components/CardPathAnalysis/helpers/treeUtils.ts +0 -38
- package/src/components/CardPathAnalysis/hooks/usePathAnalysisChart.tsx +0 -292
- package/src/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.ts +0 -206
- package/src/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.ts +0 -43
- package/src/components/CardPathAnalysis/index.ts +0 -5
- package/src/components/CardPathAnalysis/stores/funnel-chart.ts +0 -30
- package/src/components/CardPathAnalysis/stores/index.ts +0 -3
- package/src/components/CardPathAnalysis/stores/path-analysis-campaign.ts +0 -16
- package/src/components/CardPathAnalysis/stores/path-analysis.ts +0 -11
- package/src/components/CardPathAnalysis/types/index.ts +0 -1
- package/src/components/CardPathAnalysis/types/path-analysis.ts +0 -10
- package/src/components/CurrencySelector/CurrencySelector.tsx +0 -127
- package/src/components/CurrencySelector/index.ts +0 -2
- package/src/components/GModalOrderJourney/GModalOrderJourney.tsx +0 -131
- package/src/components/GModalOrderJourney/components/OrderJourneySkeleton.tsx +0 -93
- package/src/components/GModalOrderJourney/components/index.ts +0 -1
- package/src/components/GModalOrderJourney/context/OrderJourneyContext.tsx +0 -17
- package/src/components/GModalOrderJourney/context/index.ts +0 -1
- package/src/components/GModalOrderJourney/hooks/index.ts +0 -1
- package/src/components/GModalOrderJourney/hooks/useGModalOrderJourney.ts +0 -25
- package/src/components/GModalOrderJourney/index.ts +0 -5
- package/src/components/GModalOrderJourney/types/index.ts +0 -4
- package/src/components/GModalOrderJourney/utils/index.ts +0 -75
- package/src/components/GSelectableMetricChartCard/GSelectableMetricChartCard.tsx +0 -83
- package/src/components/GSelectableMetricChartCard/MetricChartTab.tsx +0 -56
- package/src/components/GSelectableMetricChartCard/index.ts +0 -2
- package/src/components/GTimePicker/GTimePicker.tsx +0 -31
- package/src/components/GTimePicker/components/BaseTimePicker.tsx +0 -249
- package/src/components/GTimePicker/components/CompareTimePicker.tsx +0 -41
- package/src/components/GTimePicker/components/DateTimeFilterAddition.tsx +0 -84
- package/src/components/GTimePicker/components/DateTimeFilterInputs.tsx +0 -124
- package/src/components/GTimePicker/components/DateTimeFilters.tsx +0 -86
- package/src/components/GTimePicker/components/MainTimePicker.tsx +0 -47
- package/src/components/GTimePicker/components/index.ts +0 -2
- package/src/components/GTimePicker/constants/compareDateTimePicker.ts +0 -68
- package/src/components/GTimePicker/constants/datePicker.ts +0 -14
- package/src/components/GTimePicker/constants/index.ts +0 -2
- package/src/components/GTimePicker/constants/mainDataTimePicker.ts +0 -88
- package/src/components/GTimePicker/contexts/DateTimePickerProvider.tsx +0 -125
- package/src/components/GTimePicker/contexts/index.ts +0 -1
- package/src/components/GTimePicker/helpers/date-range-info.ts +0 -84
- package/src/components/GTimePicker/helpers/index.ts +0 -4
- package/src/components/GTimePicker/helpers/parse-date.ts +0 -127
- package/src/components/GTimePicker/helpers/time-picker.ts +0 -123
- package/src/components/GTimePicker/helpers/version.ts +0 -36
- package/src/components/GTimePicker/hooks/index.ts +0 -3
- package/src/components/GTimePicker/hooks/useCompareDateTimePicker.tsx +0 -79
- package/src/components/GTimePicker/hooks/useDateTimeFilter.ts +0 -83
- package/src/components/GTimePicker/hooks/useDateTimePicker.tsx +0 -99
- package/src/components/GTimePicker/hooks/useVersionDateTimeFilters.ts +0 -30
- package/src/components/GTimePicker/index.ts +0 -7
- package/src/components/GTimePicker/types/index.ts +0 -43
- package/src/components/MetricDonutChartCard/MetricDonutChartCard.tsx +0 -121
- package/src/components/MetricDonutChartCard/index.ts +0 -2
- package/src/components/MetricDonutChartCard/utils/donut-chart.ts +0 -75
- package/src/components/MetricDonutChartCard/utils/index.ts +0 -1
- package/src/components/OrderAnalytic/OrderListingLatestTable.tsx +0 -111
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/OrderListingTableSkeleton.tsx +0 -40
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonCellContent.tsx +0 -77
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonHeader.tsx +0 -35
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonRow.tsx +0 -35
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonSummaryRow.tsx +0 -36
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/constants.ts +0 -11
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/index.ts +0 -1
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingTable.tsx +0 -159
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingTableEmpty.tsx +0 -29
- package/src/components/OrderAnalytic/components/OrderListing/index.ts +0 -2
- package/src/components/OrderAnalytic/components/index.ts +0 -1
- package/src/components/OrderAnalytic/constants/index.ts +0 -2
- package/src/components/OrderAnalytic/constants/order-columns.ts +0 -51
- package/src/components/OrderAnalytic/constants/order-listing.ts +0 -199
- package/src/components/OrderAnalytic/helpers/index.ts +0 -1
- package/src/components/OrderAnalytic/helpers/order-listing.ts +0 -48
- package/src/components/OrderAnalytic/hooks/index.ts +0 -1
- package/src/components/OrderAnalytic/hooks/useOrderListingData.ts +0 -55
- package/src/components/OrderAnalytic/index.ts +0 -5
- package/src/components/OrderAnalytic/stores/index.ts +0 -2
- package/src/components/OrderAnalytic/stores/order-columns-selector.ts +0 -24
- package/src/components/OrderAnalytic/stores/order-control.ts +0 -15
- package/src/components/OrderAnalytic/types/index.ts +0 -3
- package/src/components/OrderAnalytic/types/order.ts +0 -89
- package/src/components/OrderAnalytic/types/orderListing.ts +0 -4
- package/src/components/OrderAnalytic/types/report.ts +0 -14
- package/src/components/SingleMetricChartCard/SingleMetricChartCard.tsx +0 -56
- package/src/components/SingleMetricChartCard/index.tsx +0 -2
- package/src/components/common/chart/GChartSkeleton.tsx +0 -5
- package/src/components/common/chart/MetricChart.tsx +0 -62
- package/src/components/common/chart/MetricChartEmpty.tsx +0 -35
- package/src/components/common/chart/MetricChartTooltip.tsx +0 -74
- package/src/components/common/chart/MetricDonutChartSkeleton.tsx +0 -14
- package/src/components/common/chart/MetricInfoBlock.tsx +0 -66
- package/src/components/common/chart/MetricInfoSkeleton.tsx +0 -25
- package/src/components/common/chart/MetricValueSummary.tsx +0 -23
- package/src/components/common/chart/index.ts +0 -8
- package/src/components/common/icons/DownIcon8px.tsx +0 -14
- package/src/components/common/icons/UpIcon8px.tsx +0 -14
- package/src/components/common/icons/index.ts +0 -2
- package/src/components/common/percent/MetricPercentage.tsx +0 -42
- package/src/components/common/percent/index.ts +0 -1
- package/src/components/index.ts +0 -9
- package/src/constants/analytic-metric-tooltip.tsx +0 -164
- package/src/constants/breakdown-targets.ts +0 -25
- package/src/constants/campaign.ts +0 -4
- package/src/constants/chart.ts +0 -17
- package/src/constants/currency.ts +0 -3
- package/src/constants/index.ts +0 -6
- package/src/constants/thumbnail.ts +0 -3
- package/src/core/gemxql/api/index.ts +0 -2
- package/src/core/gemxql/api/useCustomGemXQlQuery.ts +0 -35
- package/src/core/gemxql/api/useGemxQlNamedQuery.ts +0 -34
- package/src/core/gemxql/builder/build-gemxql-query.ts +0 -81
- package/src/core/gemxql/builder/clauses/condition-query.ts +0 -74
- package/src/core/gemxql/builder/clauses/from-query.ts +0 -18
- package/src/core/gemxql/builder/clauses/group-query.ts +0 -43
- package/src/core/gemxql/builder/clauses/index.ts +0 -11
- package/src/core/gemxql/builder/clauses/limit-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/mode-query.ts +0 -14
- package/src/core/gemxql/builder/clauses/offset-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/order-by-query.ts +0 -37
- package/src/core/gemxql/builder/clauses/show-query.ts +0 -18
- package/src/core/gemxql/builder/clauses/time-query.ts +0 -67
- package/src/core/gemxql/builder/clauses/time-series-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/timezone-query.ts +0 -17
- package/src/core/gemxql/builder/configs/date-formats.ts +0 -1
- package/src/core/gemxql/builder/configs/index.ts +0 -3
- package/src/core/gemxql/builder/configs/keywords.ts +0 -16
- package/src/core/gemxql/builder/configs/query-defaults.ts +0 -1
- package/src/core/gemxql/builder/filters/build-extra-conditions.ts +0 -69
- package/src/core/gemxql/builder/filters/build-filter-conditions.ts +0 -161
- package/src/core/gemxql/builder/filters/index.ts +0 -2
- package/src/core/gemxql/builder/helpers/date-query-helpers.ts +0 -41
- package/src/core/gemxql/builder/helpers/index.ts +0 -1
- package/src/core/gemxql/builder/helpers/is-valid-query-input.ts +0 -8
- package/src/core/gemxql/builder/index.ts +0 -6
- package/src/core/gemxql/builder/parse-gemxql-query.ts +0 -43
- package/src/core/gemxql/constants/analytic-data.ts +0 -2
- package/src/core/gemxql/constants/column-keys.ts +0 -4
- package/src/core/gemxql/constants/index.ts +0 -4
- package/src/core/gemxql/constants/operators.ts +0 -2
- package/src/core/gemxql/constants/row-reader-mode.ts +0 -9
- package/src/core/gemxql/graphql/fragments/gemxql.generated.ts +0 -80
- package/src/core/gemxql/graphql/fragments/gemxql.gql +0 -18
- package/src/core/gemxql/graphql/index.ts +0 -2
- package/src/core/gemxql/graphql/queries/gemxql.generated.ts +0 -26
- package/src/core/gemxql/graphql/queries/gemxql.gql +0 -5
- package/src/core/gemxql/helpers/columnKeys.ts +0 -8
- package/src/core/gemxql/helpers/extractQueryData.ts +0 -18
- package/src/core/gemxql/helpers/formatAnalyticData.ts +0 -92
- package/src/core/gemxql/helpers/formatAnalyticDate.ts +0 -29
- package/src/core/gemxql/helpers/getTimeDimension.ts +0 -11
- package/src/core/gemxql/helpers/hasMetricData.ts +0 -6
- package/src/core/gemxql/helpers/index.ts +0 -8
- package/src/core/gemxql/helpers/parseJsonFields.ts +0 -36
- package/src/core/gemxql/helpers/readNumeric.ts +0 -25
- package/src/core/gemxql/hooks/index.ts +0 -2
- package/src/core/gemxql/hooks/useAnalyticData.ts +0 -67
- package/src/core/gemxql/hooks/useGemXQlPagination.ts +0 -79
- package/src/core/gemxql/index.ts +0 -8
- package/src/core/gemxql/types/analytic-data.ts +0 -26
- package/src/core/gemxql/types/analytic-source.ts +0 -4
- package/src/core/gemxql/types/extra-condition.ts +0 -40
- package/src/core/gemxql/types/field-filters.ts +0 -18
- package/src/core/gemxql/types/field-operators.ts +0 -8
- package/src/core/gemxql/types/filter-types.ts +0 -33
- package/src/core/gemxql/types/group-with-clause.ts +0 -12
- package/src/core/gemxql/types/index.ts +0 -11
- package/src/core/gemxql/types/order-by.ts +0 -13
- package/src/core/gemxql/types/page-fields.ts +0 -25
- package/src/core/gemxql/types/row-reader-mode.ts +0 -6
- package/src/core/gemxql/types/time-dimension.ts +0 -8
- package/src/global.d.ts +0 -38
- package/src/hooks/index.ts +0 -7
- package/src/hooks/publish/index.ts +0 -2
- package/src/hooks/publish/useStickyDetectById.ts +0 -39
- package/src/hooks/publish/useStickyFilterBoxProps.ts +0 -26
- package/src/hooks/publish/useWindowSize.ts +0 -54
- package/src/hooks/useEnhancedEffect.ts +0 -3
- package/src/hooks/useFetchCurrencyRates.ts +0 -48
- package/src/hooks/useFormatLineChartData.ts +0 -28
- package/src/hooks/usePopoverResizeObserver.ts +0 -43
- package/src/hooks/usePreventBodyScroll.ts +0 -15
- package/src/hooks/useSearchParams.ts +0 -7
- package/src/hooks/useToggle.ts +0 -23
- package/src/index.ts +0 -10
- package/src/modules/analytics/constants/index.ts +0 -124
- package/src/modules/analytics/index.ts +0 -3
- package/src/modules/analytics/types/index.ts +0 -43
- package/src/modules/analytics/utils/formatMetric.ts +0 -42
- package/src/modules/analytics/utils/getPAMetricValue.ts +0 -11
- package/src/modules/analytics/utils/index.ts +0 -3
- package/src/modules/analytics/utils/metric.ts +0 -172
- package/src/providers/ConvertMoneyProvider.tsx +0 -68
- package/src/providers/MetricChartProvider.tsx +0 -50
- package/src/providers/TimezoneProvider.tsx +0 -31
- package/src/providers/index.ts +0 -5
- package/src/shared/charts/components/ComboChart.tsx +0 -108
- package/src/shared/charts/components/GBarChart.tsx +0 -96
- package/src/shared/charts/components/GComboChart.tsx +0 -15
- package/src/shared/charts/components/GDonutChart.tsx +0 -25
- package/src/shared/charts/components/GFunnelChart/GFunnelChart.tsx +0 -34
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartAction.tsx +0 -67
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionIcon.tsx +0 -60
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionWrapper.tsx +0 -100
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionContent.tsx +0 -92
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionHeader.tsx +0 -54
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionItem.tsx +0 -51
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionPopover.tsx +0 -95
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/index.ts +0 -1
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/type.ts +0 -7
- package/src/shared/charts/components/GFunnelChart/components/types.ts +0 -24
- package/src/shared/charts/components/GFunnelChart/index.ts +0 -4
- package/src/shared/charts/components/GFunnelChart/types.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.module.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.tsx +0 -135
- package/src/shared/charts/components/GPolarisViz/components/Arc/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.module.scss +0 -39
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.tsx +0 -150
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/hooks/useContainerBounds.ts +0 -113
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartDiv.tsx +0 -18
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartElements.module.scss +0 -21
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartSVG.tsx +0 -40
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/index.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/ChartErrorBoundary.tsx +0 -56
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/utilities/checkForMismatchedData.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.module.scss +0 -6
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.tsx +0 -96
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.module.scss +0 -41
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.tsx +0 -193
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/ErrorText.tsx +0 -40
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/FunnelSkeleton.tsx +0 -69
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/GridSkeleton.tsx +0 -155
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.module.scss +0 -33
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.tsx +0 -34
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.module.scss +0 -15
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.tsx +0 -53
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.module.scss +0 -35
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.tsx +0 -75
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/SparkSkeleton.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/index.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/index.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/ConicGradientWithStops.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.module.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.tsx +0 -25
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/Chart.tsx +0 -209
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/FunnelChart.tsx +0 -72
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisArrows.tsx +0 -52
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisLabels.tsx +0 -66
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelSegment.tsx +0 -121
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.module.scss +0 -23
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.tsx +0 -67
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/index.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/Chart.tsx +0 -259
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/FunnelChartNext.tsx +0 -104
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/FunnelChartLabels.tsx +0 -387
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.tsx +0 -37
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIcon.tsx +0 -20
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIconTooltip.tsx +0 -31
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/CustomTooltip.tsx +0 -68
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.scss +0 -52
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.tsx +0 -149
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipOverlay.tsx +0 -117
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipWithPortal.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/index.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/constants.ts +0 -28
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipInteraction.ts +0 -59
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipPlacement.ts +0 -113
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/types.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/calculate-dropoff.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/useBuildFunnelTrends.ts +0 -108
- package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/HorizontalGridLines.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/Labels/SingleTextLine.tsx +0 -64
- package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/useLabels.tsx +0 -131
- package/src/shared/charts/components/GPolarisViz/components/Labels/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endLineTruncate.ts +0 -23
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endWordTruncate.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/estimateTextHeight.ts +0 -31
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/formatAndAddEllipsis.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getDiagonalLabels.ts +0 -70
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getHorizontalLabels.ts +0 -90
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getVerticalLabels.ts +0 -58
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getWidestLabel.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/shouldSkipLabel.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/endWordTruncate.test.ts +0 -16
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/estimateTextHeight.test.ts +0 -19
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/formatAndAddEllipsis.test.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateLastLine.test.ts +0 -22
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateSingleLine.test.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLabels.ts +0 -75
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLastLine.ts +0 -61
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateSingleLine.ts +0 -39
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.module.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.tsx +0 -105
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/constants.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/SwallowErrors.tsx +0 -32
- package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TextLine/TextLine.tsx +0 -88
- package/src/shared/charts/components/GPolarisViz/components/TextLine/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/TooltipContent.tsx +0 -109
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.module.scss +0 -10
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.tsx +0 -67
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.module.scss +0 -26
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.tsx +0 -57
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.module.scss +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.tsx +0 -26
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.module.scss +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.tsx +0 -20
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.module.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.tsx +0 -15
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/constants.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/hooks/useGetLongestLabelFromData.ts +0 -56
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/index.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/get-tooltip-template-content-column-count.ts +0 -10
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/tests/get-tooltip-template-content-column-count.test.ts +0 -48
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/TooltipWrapper.tsx +0 -338
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.module.scss +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.tsx +0 -139
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/constants.ts +0 -18
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/types.ts +0 -62
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/eventPoint.ts +0 -84
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredHorizontalBarPosition.ts +0 -110
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredLineChartPosition.ts +0 -115
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredVerticalBarPosition.ts +0 -105
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getDonutChartTooltipPosition.ts +0 -64
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getHorizontalBarChartTooltipPosition.ts +0 -79
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getLineChartTooltipPosition.ts +0 -68
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getVerticalBarChartTooltipPosition.ts +0 -123
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/shouldBlockTooltipEvents.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities.ts +0 -162
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/TrendIndicator.tsx +0 -72
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowDown.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowUp.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/constants.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/utilities/estimateTrendIndicatorWidth.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/sortBarChartData.ts +0 -20
- package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/VerticalGridLines.tsx +0 -32
- package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/constants.ts +0 -72
- package/src/shared/charts/components/GPolarisViz/data/character-width-offsets.json +0 -65
- package/src/shared/charts/components/GPolarisViz/data/character-widths.json +0 -1
- package/src/shared/charts/components/GPolarisViz/hooks/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/hooks/useBarSpringConfig.ts +0 -21
- package/src/shared/charts/components/GPolarisViz/hooks/useBrowserCheck.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/hooks/useCallbackRef.tsx +0 -39
- package/src/shared/charts/components/GPolarisViz/hooks/useDataForHorizontalChart.ts +0 -69
- package/src/shared/charts/components/GPolarisViz/hooks/useDebouncedCallback.ts +0 -197
- package/src/shared/charts/components/GPolarisViz/hooks/useFormattedLabels.ts +0 -31
- package/src/shared/charts/components/GPolarisViz/hooks/useFunnelBarScaling.ts +0 -53
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalBarSizes.ts +0 -70
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalStackedValues.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalTicksAndScale.ts +0 -67
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalXScale.ts +0 -48
- package/src/shared/charts/components/GPolarisViz/hooks/useIndexForLabels.ts +0 -16
- package/src/shared/charts/components/GPolarisViz/hooks/usePrefersReducedMotion.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/hooks/usePrintResizing.ts +0 -94
- package/src/shared/charts/components/GPolarisViz/hooks/useReducedLabelIndexes.ts +0 -21
- package/src/shared/charts/components/GPolarisViz/hooks/useResizeObserver.ts +0 -39
- package/src/shared/charts/components/GPolarisViz/hooks/useRootContainer.ts +0 -20
- package/src/shared/charts/components/GPolarisViz/hooks/useWatchColorVisionEvents.tsx +0 -35
- package/src/shared/charts/components/GPolarisViz/index.ts +0 -10
- package/src/shared/charts/components/GPolarisViz/shared/Bar/Bar.tsx +0 -89
- package/src/shared/charts/components/GPolarisViz/shared/Bar/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnector.tsx +0 -46
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnectorGradient.tsx +0 -21
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/constants.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/FunnelChartSegment.tsx +0 -100
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/AnimatedSegment.tsx +0 -50
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/InteractiveOverlay.tsx +0 -34
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/ScaledSegment.tsx +0 -218
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/constants.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/SeriesIcon.tsx +0 -22
- package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/ZeroValueLine.tsx +0 -45
- package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/styles/_common.scss +0 -15
- package/src/shared/charts/components/GPolarisViz/styles/shared/_accessibility.scss +0 -41
- package/src/shared/charts/components/GPolarisViz/styles/shared/_chart-container.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/styles/shared/_variables.scss +0 -322
- package/src/shared/charts/components/GPolarisViz/types.ts +0 -261
- package/src/shared/charts/components/GPolarisViz/utilities/base.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/utilities/classnames.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/utilities/createCssConicGradient.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/utilities/createCssGradient.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/utilities/estimateStringWidthWithOffset.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/utilities/getAxisOptions.ts +0 -26
- package/src/shared/charts/components/GPolarisViz/utilities/getCSSBackgroundFromColor.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/utilities/getChartId.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/utilities/getFontSize.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedMinMax.ts +0 -43
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedValues.ts +0 -35
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedValuesFromDataSeries.tsx +0 -30
- package/src/shared/charts/components/GPolarisViz/utilities/getTrendIndicatorData.ts +0 -22
- package/src/shared/charts/components/GPolarisViz/utilities/hasHiddenComparisonSeries.ts +0 -26
- package/src/shared/charts/components/GPolarisViz/utilities/index.ts +0 -6
- package/src/shared/charts/components/GSimpleBarChart.tsx +0 -32
- package/src/shared/charts/components/index.ts +0 -7
- package/src/shared/charts/constants/chart.ts +0 -14
- package/src/shared/charts/constants/index.ts +0 -1
- package/src/shared/charts/contexts/GChartProvider.tsx +0 -48
- package/src/shared/charts/contexts/index.ts +0 -1
- package/src/shared/charts/index.ts +0 -4
- package/src/shared/charts/types/chart.ts +0 -36
- package/src/shared/charts/types/index.ts +0 -1
- package/src/shared/components/GActivatorPopover/GActivatorPopover.tsx +0 -107
- package/src/shared/components/GActivatorPopover/index.ts +0 -1
- package/src/shared/components/GBlockCenter/GBlockCenter.scss +0 -19
- package/src/shared/components/GBlockCenter/GBlockCenter.tsx +0 -72
- package/src/shared/components/GBlockCenter/index.ts +0 -1
- package/src/shared/components/GBox/GBox.scss +0 -25
- package/src/shared/components/GBox/GBox.tsx +0 -15
- package/src/shared/components/GBox/index.ts +0 -1
- package/src/shared/components/GBoxCard/GBoxCard.tsx +0 -27
- package/src/shared/components/GBoxCard/index.ts +0 -1
- package/src/shared/components/GButton/GButton.scss +0 -41
- package/src/shared/components/GButton/GButton.tsx +0 -73
- package/src/shared/components/GButton/index.ts +0 -1
- package/src/shared/components/GCheckbox/GCheckbox.tsx +0 -176
- package/src/shared/components/GCheckbox/index.ts +0 -1
- package/src/shared/components/GChoice/ChoiceHelpText.tsx +0 -25
- package/src/shared/components/GChoice/GChoice.scss +0 -14
- package/src/shared/components/GChoice/GChoice.tsx +0 -165
- package/src/shared/components/GChoice/index.ts +0 -2
- package/src/shared/components/GClickable/GClickable.tsx +0 -43
- package/src/shared/components/GClickable/index.ts +0 -1
- package/src/shared/components/GDiv/GDiv.tsx +0 -27
- package/src/shared/components/GDiv/index.ts +0 -1
- package/src/shared/components/GDotInline/GDotInline.tsx +0 -20
- package/src/shared/components/GDotInline/index.ts +0 -1
- package/src/shared/components/GFeatureLocked/GFeatureLocked.tsx +0 -85
- package/src/shared/components/GFeatureLocked/assets/images/empty-analytics.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template-illustration.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing-illustration.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing.png +0 -0
- package/src/shared/components/GFeatureLocked/constants.ts +0 -33
- package/src/shared/components/GFeatureLocked/index.ts +0 -2
- package/src/shared/components/GFeatureLocked/types.ts +0 -16
- package/src/shared/components/GI18NText/GI18NText.tsx +0 -37
- package/src/shared/components/GI18NText/index.ts +0 -2
- package/src/shared/components/GI18NText/types.ts +0 -7
- package/src/shared/components/GInlineCenter/GInlineCenter.scss +0 -17
- package/src/shared/components/GInlineCenter/GInlineCenter.tsx +0 -39
- package/src/shared/components/GInlineCenter/index.ts +0 -1
- package/src/shared/components/GMockDataTooltip/GMockDataTooltip.tsx +0 -30
- package/src/shared/components/GMockDataTooltip/index.ts +0 -1
- package/src/shared/components/GModal/GModal.tsx +0 -49
- package/src/shared/components/GModal/index.ts +0 -1
- package/src/shared/components/GOptionList/GOptionList.tsx +0 -63
- package/src/shared/components/GOptionList/index.ts +0 -1
- package/src/shared/components/GPagination/GPagination.tsx +0 -44
- package/src/shared/components/GPagination/hooks/useGPagination.ts +0 -42
- package/src/shared/components/GPagination/index.ts +0 -2
- package/src/shared/components/GSelector/GSelector.tsx +0 -198
- package/src/shared/components/GSelector/index.ts +0 -1
- package/src/shared/components/GSkeletonDisplayText/GSkeletonDisplayText.tsx +0 -14
- package/src/shared/components/GSkeletonDisplayText/index.ts +0 -1
- package/src/shared/components/GSpinner/GSpinner.tsx +0 -16
- package/src/shared/components/GSpinner/index.ts +0 -1
- package/src/shared/components/GTextLink/GTextLink.tsx +0 -26
- package/src/shared/components/GTextLink/index.ts +0 -1
- package/src/shared/components/GTextTooltip/GTextTooltip.tsx +0 -18
- package/src/shared/components/GTextTooltip/index.ts +0 -1
- package/src/shared/components/GTextTruncated/GTextTruncated.tsx +0 -80
- package/src/shared/components/GTextTruncated/index.ts +0 -1
- package/src/shared/components/GThumbnail/GThumbnail.scss +0 -5
- package/src/shared/components/GThumbnail/GThumbnail.tsx +0 -69
- package/src/shared/components/GThumbnail/index.ts +0 -1
- package/src/shared/components/GTooltip/GTooltip.tsx +0 -34
- package/src/shared/components/GTooltip/components/GTooltipCard.tsx +0 -164
- package/src/shared/components/GTooltip/index.ts +0 -3
- package/src/shared/components/GTooltipCard/GTooltipCard.tsx +0 -161
- package/src/shared/components/GTooltipCard/index.ts +0 -7
- package/src/shared/components/GVariantBadge/GVariant.tsx +0 -55
- package/src/shared/components/GVariantBadge/GVariantBadge.scss +0 -10
- package/src/shared/components/GVariantBadge/GVariantBadge.tsx +0 -82
- package/src/shared/components/GVariantBadge/index.ts +0 -4
- package/src/shared/components/GVariantBadge/types.ts +0 -20
- package/src/shared/components/GViewBySelector/GViewBySelector.tsx +0 -114
- package/src/shared/components/GViewBySelector/index.ts +0 -1
- package/src/shared/components/index.ts +0 -26
- package/src/shared/index.ts +0 -1
- package/src/shared/journey/common/JourneyContainer/components/JourneyContainer.tsx +0 -140
- package/src/shared/journey/common/JourneyContainer/components/JourneyTimeline.tsx +0 -18
- package/src/shared/journey/common/JourneyContainer/components/index.ts +0 -2
- package/src/shared/journey/common/JourneyContainer/index.ts +0 -1
- package/src/shared/journey/common/index.ts +0 -1
- package/src/shared/journey/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/AcceptedPostPurchaseOffer.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/CheckoutCompleted.tsx +0 -64
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutItems.tsx +0 -27
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStarted.tsx +0 -25
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStartedDetail.tsx +0 -79
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/components/PageViewed/PageViewed.tsx +0 -116
- package/src/shared/journey/ui/JourneyEvents/components/PageViewed/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/ProductAddedToCart.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/ProductQuantity.tsx +0 -33
- package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/ProductRemovedFromCart.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/index.ts +0 -6
- package/src/shared/journey/ui/JourneyEvents/constants/event.ts +0 -38
- package/src/shared/journey/ui/JourneyEvents/constants/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/types.ts +0 -2
- package/src/shared/journey/ui/JourneyGroup/JourneyGroup.tsx +0 -41
- package/src/shared/journey/ui/JourneyGroup/index.ts +0 -1
- package/src/shared/journey/ui/JourneyItem/components/EventMarkerIcon.tsx +0 -28
- package/src/shared/journey/ui/JourneyItem/components/JourneyDetail.tsx +0 -24
- package/src/shared/journey/ui/JourneyItem/components/JourneyItem.tsx +0 -27
- package/src/shared/journey/ui/JourneyItem/components/JourneyTime.tsx +0 -33
- package/src/shared/journey/ui/JourneyItem/components/QuantityWrapper.tsx +0 -17
- package/src/shared/journey/ui/JourneyItem/components/index.ts +0 -3
- package/src/shared/journey/ui/JourneyItem/index.ts +0 -2
- package/src/shared/journey/ui/JourneyItem/types/events.ts +0 -33
- package/src/shared/journey/ui/JourneyItem/types/index.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/components/GemxIdBadge.tsx +0 -38
- package/src/shared/journey/ui/JourneyTitle/components/JourneyDateBadge.tsx +0 -18
- package/src/shared/journey/ui/JourneyTitle/components/JourneyIdBadge.tsx +0 -65
- package/src/shared/journey/ui/JourneyTitle/components/JourneyLoadMore.tsx +0 -43
- package/src/shared/journey/ui/JourneyTitle/components/JourneyTitle.tsx +0 -42
- package/src/shared/journey/ui/JourneyTitle/components/index.ts +0 -2
- package/src/shared/journey/ui/JourneyTitle/constants/idBadge.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/constants/index.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/index.ts +0 -1
- package/src/shared/journey/ui/index.ts +0 -3
- package/src/shared/journey/ui/type.ts +0 -2
- package/src/shared/reports/common/Visualization/constants/columns.ts +0 -6
- package/src/shared/reports/common/Visualization/constants/index.ts +0 -2
- package/src/shared/reports/common/Visualization/constants/version.ts +0 -8
- package/src/shared/reports/common/Visualization/index.ts +0 -2
- package/src/shared/reports/common/Visualization/types/chart.ts +0 -5
- package/src/shared/reports/common/Visualization/types/index.ts +0 -3
- package/src/shared/reports/common/Visualization/types/report-metric.ts +0 -21
- package/src/shared/reports/common/Visualization/types/report.ts +0 -42
- package/src/shared/reports/common/Visualization/utils/index.ts +0 -2
- package/src/shared/reports/common/Visualization/utils/version.ts +0 -9
- package/src/shared/reports/common/Visualization/utils/visualization.ts +0 -58
- package/src/shared/reports/common/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/ReportTable.tsx +0 -194
- package/src/shared/reports/ui/ReportTable/ReportTableSkeleton.tsx +0 -73
- package/src/shared/reports/ui/ReportTable/assets/styles/ReportTable.scss +0 -288
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.tsx +0 -102
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCellVersion.tsx +0 -11
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/Cell.tsx +0 -93
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CellRenderers.tsx +0 -72
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/DateCell.tsx +0 -9
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/DefaultCell.tsx +0 -32
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.tsx +0 -18
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.tsx +0 -79
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/ItemsCell.tsx +0 -56
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/NoneCell.tsx +0 -11
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/LoadingData.tsx +0 -10
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/NoData.tsx +0 -13
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCell.tsx +0 -78
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellBase.tsx +0 -55
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellContainer.tsx +0 -43
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderItem.tsx +0 -79
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.tsx +0 -70
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/PreviousCell.tsx +0 -17
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/TotalCell.tsx +0 -14
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/VersionCell.tsx +0 -31
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/WrapperCell.tsx +0 -31
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/type.ts +0 -18
- package/src/shared/reports/ui/ReportTable/components/Body/Row.tsx +0 -85
- package/src/shared/reports/ui/ReportTable/components/Body/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/components/Footer/Pagination.tsx +0 -76
- package/src/shared/reports/ui/ReportTable/components/Footer/ScrollBar.tsx +0 -19
- package/src/shared/reports/ui/ReportTable/components/Footer/WrapperFooter.tsx +0 -39
- package/src/shared/reports/ui/ReportTable/components/Footer/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Header/Header.tsx +0 -68
- package/src/shared/reports/ui/ReportTable/components/Header/SortableHeader.tsx +0 -49
- package/src/shared/reports/ui/ReportTable/components/Header/SortableHeaderWithTooltip.tsx +0 -60
- package/src/shared/reports/ui/ReportTable/components/Header/SummaryCell.tsx +0 -26
- package/src/shared/reports/ui/ReportTable/components/Header/SummaryRow.tsx +0 -69
- package/src/shared/reports/ui/ReportTable/components/Header/WrapperHeader.tsx +0 -54
- package/src/shared/reports/ui/ReportTable/components/Header/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/constants/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/constants/order.ts +0 -30
- package/src/shared/reports/ui/ReportTable/constants/table.ts +0 -17
- package/src/shared/reports/ui/ReportTable/context/ReportTableActionsContext.tsx +0 -28
- package/src/shared/reports/ui/ReportTable/helpers/format.ts +0 -29
- package/src/shared/reports/ui/ReportTable/helpers/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/helpers/report.ts +0 -7
- package/src/shared/reports/ui/ReportTable/hooks/index.ts +0 -3
- package/src/shared/reports/ui/ReportTable/hooks/useReportTable.ts +0 -172
- package/src/shared/reports/ui/ReportTable/hooks/useReportTableCell.tsx +0 -28
- package/src/shared/reports/ui/ReportTable/hooks/useSyncedScroll.ts +0 -81
- package/src/shared/reports/ui/ReportTable/index.ts +0 -4
- package/src/shared/reports/ui/ReportTable/types/dimension.ts +0 -8
- package/src/shared/reports/ui/ReportTable/types/index.ts +0 -43
- package/src/shared/reports/ui/ReportTable/types/order.ts +0 -15
- package/src/shared/reports/ui/ReportTable/types/report-columns.ts +0 -11
- package/src/shared/reports/ui/ReportTable/utils/format.ts +0 -100
- package/src/shared/reports/ui/ReportTable/utils/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/utils/order.ts +0 -8
- package/src/shared/reports/ui/ReportTable/utils/table.ts +0 -19
- package/src/shared/reports/ui/ReportTable/utils/visualization.ts +0 -56
- package/src/shared/reports/ui/index.ts +0 -0
- package/src/stores/currencyRatesStore.ts +0 -13
- package/src/stores/index.ts +0 -2
- package/src/styles/index.scss +0 -9
- package/src/types/analytic-mode.ts +0 -5
- package/src/types/breakdown-items.ts +0 -21
- package/src/types/campaign.ts +0 -13
- package/src/types/chart.ts +0 -42
- package/src/types/currency.ts +0 -329
- package/src/types/index.ts +0 -8
- package/src/types/metric.ts +0 -81
- package/src/types/pricing.ts +0 -38
- package/src/types/report-columns.ts +0 -1
- package/src/types/template.ts +0 -19
- package/src/utils/analytics.ts +0 -75
- package/src/utils/array.ts +0 -13
- package/src/utils/cls.ts +0 -18
- package/src/utils/currency.ts +0 -42
- package/src/utils/date-time.ts +0 -7
- package/src/utils/dayjs.ts +0 -52
- package/src/utils/deep-copy.ts +0 -4
- package/src/utils/index.ts +0 -12
- package/src/utils/is-browser.ts +0 -3
- package/src/utils/number.ts +0 -19
- package/src/utils/percentage.ts +0 -40
- package/src/utils/sort.ts +0 -87
- package/src/utils/string.ts +0 -20
- package/src/utils/template-type.ts +0 -30
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { IReportColumn, ReportRowType } from '@/shared/reports/common/Visualization/types';
|
|
2
|
-
import type { IReportHeaderSummary } from './WrapperHeader';
|
|
3
|
-
import type { ReportColumnLayoutMap } from '../../types';
|
|
4
|
-
|
|
5
|
-
import { getPreviousTotalColumnName, getTotalColumnName } from '@/shared/reports/common/Visualization/utils';
|
|
6
|
-
import { getColumnLayoutStyles } from '../../utils';
|
|
7
|
-
import { useTranslation } from 'react-i18next';
|
|
8
|
-
import { SummaryCell } from './SummaryCell';
|
|
9
|
-
import { useReportData } from '../../hooks';
|
|
10
|
-
|
|
11
|
-
interface SummaryRowProps {
|
|
12
|
-
columns: IReportColumn[];
|
|
13
|
-
row?: ReportRowType;
|
|
14
|
-
dimensions: string[];
|
|
15
|
-
summary?: IReportHeaderSummary;
|
|
16
|
-
columnLayoutMap: ReportColumnLayoutMap;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const SummaryRow = ({ columns, row, dimensions, summary, columnLayoutMap }: SummaryRowProps) => {
|
|
20
|
-
const { t } = useTranslation();
|
|
21
|
-
const { showPrevious, previousContent, content } = summary || {};
|
|
22
|
-
const { formatData } = useReportData();
|
|
23
|
-
|
|
24
|
-
if (summary?.hide || !dimensions.length) return null;
|
|
25
|
-
|
|
26
|
-
const getCellValue = (columnName: string, index: number, formatter: string) => {
|
|
27
|
-
const layout = columnLayoutMap[columnName];
|
|
28
|
-
if (index === 0)
|
|
29
|
-
return (
|
|
30
|
-
<SummaryCell
|
|
31
|
-
currentValue={content || t('Summary')}
|
|
32
|
-
showPrevious={showPrevious}
|
|
33
|
-
previousValue={previousContent}
|
|
34
|
-
columnLayout={layout!}
|
|
35
|
-
/>
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
const isDimensionCol = dimensions.includes(columnName);
|
|
39
|
-
if (isDimensionCol) return '';
|
|
40
|
-
|
|
41
|
-
const cellValue = row?.[getTotalColumnName(columnName)];
|
|
42
|
-
const previousValue = row?.[getPreviousTotalColumnName(columnName)];
|
|
43
|
-
const formattedValue =
|
|
44
|
-
cellValue == null ? cellValue : formatData({ value: cellValue, formatter, name: columnName });
|
|
45
|
-
const formattedPreviousValue =
|
|
46
|
-
previousValue == null ? previousValue : formatData({ value: previousValue, formatter, name: columnName });
|
|
47
|
-
|
|
48
|
-
if (typeof formattedValue === 'object') return '';
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<SummaryCell
|
|
52
|
-
currentValue={formattedValue}
|
|
53
|
-
showPrevious={showPrevious}
|
|
54
|
-
previousValue={formattedPreviousValue}
|
|
55
|
-
columnLayout={layout!}
|
|
56
|
-
/>
|
|
57
|
-
);
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
return (
|
|
61
|
-
<div className="GReportTable__Summary-Row">
|
|
62
|
-
{columns.map(({ name, dataType }, index) => (
|
|
63
|
-
<div key={name} className="GReportTable__Summary-Cell" style={getColumnLayoutStyles(columnLayoutMap[name]!)}>
|
|
64
|
-
{getCellValue(name, index, dataType)}
|
|
65
|
-
</div>
|
|
66
|
-
))}
|
|
67
|
-
</div>
|
|
68
|
-
);
|
|
69
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { IReportColumn, ReportRowType } from '@/shared/reports/common/Visualization/types';
|
|
2
|
-
import type { OrderByFields, ReportColumnLayoutMap } from '../../types';
|
|
3
|
-
|
|
4
|
-
import { SummaryRow } from './SummaryRow';
|
|
5
|
-
import { forwardRef } from 'react';
|
|
6
|
-
import { Header } from './Header';
|
|
7
|
-
|
|
8
|
-
export interface IReportHeaderSummary {
|
|
9
|
-
content?: string;
|
|
10
|
-
hide?: boolean;
|
|
11
|
-
previousContent?: string;
|
|
12
|
-
showPrevious?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface WrapperHeaderProps {
|
|
16
|
-
columns: IReportColumn[];
|
|
17
|
-
dimensions: string[];
|
|
18
|
-
row?: ReportRowType;
|
|
19
|
-
columnLayoutMap: ReportColumnLayoutMap;
|
|
20
|
-
activeColumn?: string;
|
|
21
|
-
orderBy?: OrderByFields;
|
|
22
|
-
summary?: IReportHeaderSummary;
|
|
23
|
-
minWidth?: number;
|
|
24
|
-
onChangeOrderBy?: (field: string) => void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const WrapperHeader = forwardRef<HTMLDivElement, WrapperHeaderProps>(
|
|
28
|
-
({ columns, dimensions, row, columnLayoutMap, activeColumn, orderBy, summary, minWidth, onChangeOrderBy }, ref) => {
|
|
29
|
-
return (
|
|
30
|
-
<div className="GReportTable__StickyHeader" ref={ref}>
|
|
31
|
-
<div style={{ minWidth }}>
|
|
32
|
-
<Header
|
|
33
|
-
columns={columns}
|
|
34
|
-
columnLayoutMap={columnLayoutMap}
|
|
35
|
-
activeColumn={activeColumn}
|
|
36
|
-
orderBy={orderBy}
|
|
37
|
-
showSummary={!summary?.hide && !!dimensions.length}
|
|
38
|
-
onChangeOrderBy={onChangeOrderBy}
|
|
39
|
-
/>
|
|
40
|
-
|
|
41
|
-
<SummaryRow
|
|
42
|
-
columns={columns}
|
|
43
|
-
row={row}
|
|
44
|
-
dimensions={dimensions}
|
|
45
|
-
summary={summary}
|
|
46
|
-
columnLayoutMap={columnLayoutMap}
|
|
47
|
-
/>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
);
|
|
51
|
-
},
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
WrapperHeader.displayName = 'WrapperHeader';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './WrapperHeader';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { OrderDirectionType, OrderTooltipType } from '../types';
|
|
2
|
-
import { EDimensionKey } from '../types/dimension';
|
|
3
|
-
|
|
4
|
-
export enum ETooltipCategory {
|
|
5
|
-
ALPHABETICAL = 'ALPHABETICAL',
|
|
6
|
-
NUMERIC = 'NUMERIC',
|
|
7
|
-
DATE = 'DATE',
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const TooltipPresets: Record<ETooltipCategory, Record<OrderDirectionType, string>> = {
|
|
11
|
-
[ETooltipCategory.ALPHABETICAL]: { ASC: 'A-Z', DESC: 'Z-A' },
|
|
12
|
-
[ETooltipCategory.NUMERIC]: { ASC: 'Lowest first', DESC: 'Highest first' },
|
|
13
|
-
[ETooltipCategory.DATE]: { ASC: 'Oldest first', DESC: 'Newest first' },
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const DEFAULT_TOOLTIP = TooltipPresets[ETooltipCategory.NUMERIC];
|
|
17
|
-
|
|
18
|
-
export const reportOrderTooltip: OrderTooltipType = {
|
|
19
|
-
day: TooltipPresets[ETooltipCategory.DATE],
|
|
20
|
-
order_date: TooltipPresets[ETooltipCategory.DATE],
|
|
21
|
-
month: TooltipPresets[ETooltipCategory.DATE],
|
|
22
|
-
year: TooltipPresets[ETooltipCategory.DATE],
|
|
23
|
-
hour: TooltipPresets[ETooltipCategory.DATE],
|
|
24
|
-
quarter: TooltipPresets[ETooltipCategory.DATE],
|
|
25
|
-
week: TooltipPresets[ETooltipCategory.DATE],
|
|
26
|
-
[EDimensionKey.DEVICE]: TooltipPresets[ETooltipCategory.ALPHABETICAL],
|
|
27
|
-
[EDimensionKey.VISITOR]: TooltipPresets[ETooltipCategory.ALPHABETICAL],
|
|
28
|
-
[EDimensionKey.VERSION]: TooltipPresets[ETooltipCategory.ALPHABETICAL],
|
|
29
|
-
[EDimensionKey.TRAFFIC_SOURCE]: TooltipPresets[ETooltipCategory.ALPHABETICAL],
|
|
30
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ReportColumnLayout } from '../types';
|
|
2
|
-
|
|
3
|
-
export const DEFAULT_DIMENSION_LAYOUT: ReportColumnLayout = {
|
|
4
|
-
width: '200px',
|
|
5
|
-
minWidth: '200px',
|
|
6
|
-
align: 'start',
|
|
7
|
-
paddingRight: '28px',
|
|
8
|
-
headerPaddingRight: '0',
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const DEFAULT_METRIC_LAYOUT: ReportColumnLayout = {
|
|
12
|
-
minWidth: '140px',
|
|
13
|
-
align: 'end',
|
|
14
|
-
paddingRight: '28px',
|
|
15
|
-
headerPaddingRight: '0',
|
|
16
|
-
};
|
|
17
|
-
export const IS_TOTAL_ROW_FIELD = 'isTotalRow';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createContext, useContext } from 'react';
|
|
2
|
-
|
|
3
|
-
interface ReportTableActionsContextValue {
|
|
4
|
-
onViewOrderJourney?: (orderId: string, gxId?: string) => void;
|
|
5
|
-
onViewOrderDetails?: (orderId: string) => void;
|
|
6
|
-
onViewAllStoreOrders?: () => void;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const ReportTableActionsContext = createContext<ReportTableActionsContextValue>({});
|
|
10
|
-
|
|
11
|
-
interface ReportTableActionsProviderProps extends ReportTableActionsContextValue {
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const ReportTableActionsProvider = ({
|
|
16
|
-
children,
|
|
17
|
-
onViewOrderJourney,
|
|
18
|
-
onViewOrderDetails,
|
|
19
|
-
onViewAllStoreOrders,
|
|
20
|
-
}: ReportTableActionsProviderProps) => {
|
|
21
|
-
return (
|
|
22
|
-
<ReportTableActionsContext.Provider value={{ onViewOrderJourney, onViewOrderDetails, onViewAllStoreOrders }}>
|
|
23
|
-
{children}
|
|
24
|
-
</ReportTableActionsContext.Provider>
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const useReportTableActionsContext = () => useContext(ReportTableActionsContext);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { dayjsTz } from '@/utils';
|
|
2
|
-
|
|
3
|
-
export const formatReportTableDate = (dateString: string | number | null) => {
|
|
4
|
-
if (!dateString) return 'None';
|
|
5
|
-
|
|
6
|
-
const date = dayjsTz(dateString);
|
|
7
|
-
const now = dayjsTz();
|
|
8
|
-
const yesterday = dayjsTz().subtract(1, 'day');
|
|
9
|
-
|
|
10
|
-
const isToday = date.format('YYYY-MM-DD') === now.format('YYYY-MM-DD');
|
|
11
|
-
const isYesterday = date.format('YYYY-MM-DD') === yesterday.format('YYYY-MM-DD');
|
|
12
|
-
|
|
13
|
-
if (isToday) {
|
|
14
|
-
return `Today at ${date.format('HH:mm')}`;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if (isYesterday) {
|
|
18
|
-
return `Yesterday at ${date.format('HH:mm')}`;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const daysDiff = now.diff(date, 'day');
|
|
22
|
-
const isWithinWeek = daysDiff >= 0 && daysDiff < 7;
|
|
23
|
-
|
|
24
|
-
if (isWithinWeek) {
|
|
25
|
-
return `${date.format('dddd')} at ${date.format('HH:mm')}`;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return `${date.format('MMM D')} at ${date.format('hh:mm a')}`;
|
|
29
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { OrderDirectionType } from './../types';
|
|
2
|
-
|
|
3
|
-
import { EOrderDirectionType } from './../types';
|
|
4
|
-
|
|
5
|
-
export const isOrderDirectionType = (direction: string): direction is OrderDirectionType => {
|
|
6
|
-
return direction === EOrderDirectionType.ASC || direction === EOrderDirectionType.DESC;
|
|
7
|
-
};
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getTotalColumnNameByDimensions,
|
|
3
|
-
getPreviousColumnName,
|
|
4
|
-
getPreviousTotalColumnNameByDimensions,
|
|
5
|
-
} from '@/shared/reports/common';
|
|
6
|
-
import { IS_TOTAL_ROW_FIELD } from '../constants';
|
|
7
|
-
import { useCallback, useMemo } from 'react';
|
|
8
|
-
import type { IReportTable, IReportColumn, ReportRowType } from '@/shared/reports/common/Visualization/types';
|
|
9
|
-
|
|
10
|
-
interface UseReportTableProps {
|
|
11
|
-
dimensions: string[];
|
|
12
|
-
tableData: IReportTable;
|
|
13
|
-
metrics: string[];
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const useReportTable = ({ dimensions, tableData, metrics }: UseReportTableProps) => {
|
|
17
|
-
const columnsByName = useMemo(() => {
|
|
18
|
-
return tableData.columns.reduce(
|
|
19
|
-
(lookup, column) => {
|
|
20
|
-
lookup[column.name] = column;
|
|
21
|
-
return lookup;
|
|
22
|
-
},
|
|
23
|
-
{} as Record<string, IReportColumn>,
|
|
24
|
-
);
|
|
25
|
-
}, [tableData.columns]);
|
|
26
|
-
|
|
27
|
-
const mainColumns = useMemo(() => {
|
|
28
|
-
return [...dimensions, ...metrics]
|
|
29
|
-
.map((columnName) => columnsByName[columnName])
|
|
30
|
-
.filter(Boolean) as IReportColumn[];
|
|
31
|
-
}, [dimensions, metrics, columnsByName]);
|
|
32
|
-
|
|
33
|
-
const compareColumnsByMainColumn = useMemo(() => {
|
|
34
|
-
const compareColumns: Record<string, IReportColumn> = {};
|
|
35
|
-
|
|
36
|
-
mainColumns.forEach(({ name }) => {
|
|
37
|
-
const compareColumnName = getPreviousColumnName(name);
|
|
38
|
-
if (!columnsByName[compareColumnName]) return;
|
|
39
|
-
|
|
40
|
-
compareColumns[name] = columnsByName[compareColumnName];
|
|
41
|
-
});
|
|
42
|
-
return compareColumns;
|
|
43
|
-
}, [mainColumns, columnsByName]);
|
|
44
|
-
|
|
45
|
-
const areDimensionsEqual = useCallback(
|
|
46
|
-
(row1: ReportRowType | undefined, row2: ReportRowType | undefined, depth: number) => {
|
|
47
|
-
if (!row1 || !row2) return false;
|
|
48
|
-
return dimensions.slice(0, depth + 1).every((dim) => row1[dim] === row2[dim]);
|
|
49
|
-
},
|
|
50
|
-
[dimensions],
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
const getSubtotalCellValue = useCallback(
|
|
54
|
-
(data: {
|
|
55
|
-
currentRow: ReportRowType;
|
|
56
|
-
column: IReportColumn;
|
|
57
|
-
columnIndex: number;
|
|
58
|
-
dimensionIndex: number;
|
|
59
|
-
compareColumn?: IReportColumn;
|
|
60
|
-
}) => {
|
|
61
|
-
const { currentRow, column, columnIndex, dimensionIndex, compareColumn } = data;
|
|
62
|
-
const isDimension = dimensions.includes(column.name);
|
|
63
|
-
|
|
64
|
-
if (columnIndex === dimensionIndex + 1) {
|
|
65
|
-
return {
|
|
66
|
-
cellValue: 'Total',
|
|
67
|
-
compareCellValue: '',
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
//handle metric
|
|
72
|
-
if (!isDimension) {
|
|
73
|
-
return {
|
|
74
|
-
cellValue: currentRow[getTotalColumnNameByDimensions(dimensions, column.name, dimensionIndex)],
|
|
75
|
-
compareCellValue: compareColumn
|
|
76
|
-
? currentRow[getPreviousTotalColumnNameByDimensions(dimensions, column.name, dimensionIndex)]
|
|
77
|
-
: '',
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
//handle dimension
|
|
82
|
-
const dimensionDepth = dimensions.indexOf(column.name);
|
|
83
|
-
if (dimensionDepth > dimensionIndex) {
|
|
84
|
-
return { cellValue: '', compareCellValue: '' };
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
return {
|
|
88
|
-
cellValue: currentRow[column.name],
|
|
89
|
-
compareCellValue: compareColumn ? currentRow[compareColumn.name] : '',
|
|
90
|
-
};
|
|
91
|
-
},
|
|
92
|
-
[dimensions],
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
const createSubtotalRowAtLevel = useCallback(
|
|
96
|
-
(currentRow: ReportRowType, dimensionIndex: number) => {
|
|
97
|
-
const subtotalRow: ReportRowType = {};
|
|
98
|
-
|
|
99
|
-
mainColumns.forEach((column, columnIndex) => {
|
|
100
|
-
const compareColumn = compareColumnsByMainColumn[column.name];
|
|
101
|
-
const { cellValue, compareCellValue } = getSubtotalCellValue({
|
|
102
|
-
currentRow,
|
|
103
|
-
column,
|
|
104
|
-
columnIndex,
|
|
105
|
-
dimensionIndex,
|
|
106
|
-
compareColumn,
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
subtotalRow[column.name] = cellValue;
|
|
110
|
-
if (compareColumn) subtotalRow[compareColumn.name] = compareCellValue;
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
subtotalRow[IS_TOTAL_ROW_FIELD] = 'true';
|
|
114
|
-
return subtotalRow;
|
|
115
|
-
},
|
|
116
|
-
[mainColumns, compareColumnsByMainColumn, getSubtotalCellValue],
|
|
117
|
-
);
|
|
118
|
-
|
|
119
|
-
const shouldInsertSubtotal = useCallback(
|
|
120
|
-
(data: {
|
|
121
|
-
currentRow: ReportRowType;
|
|
122
|
-
nextRow: ReportRowType | undefined;
|
|
123
|
-
previousRow: ReportRowType | undefined;
|
|
124
|
-
dimensionIndex: number;
|
|
125
|
-
}) => {
|
|
126
|
-
const { currentRow, nextRow, previousRow, dimensionIndex } = data;
|
|
127
|
-
const matchesNext = areDimensionsEqual(currentRow, nextRow, dimensionIndex);
|
|
128
|
-
const matchesPrevious = areDimensionsEqual(currentRow, previousRow, dimensionIndex);
|
|
129
|
-
|
|
130
|
-
return matchesNext && !matchesPrevious;
|
|
131
|
-
},
|
|
132
|
-
[areDimensionsEqual],
|
|
133
|
-
);
|
|
134
|
-
|
|
135
|
-
const generateSubtotalRows = useCallback(
|
|
136
|
-
(data: { currentRow: ReportRowType; nextRow?: ReportRowType; previousRow?: ReportRowType }) => {
|
|
137
|
-
const { currentRow, nextRow, previousRow } = data;
|
|
138
|
-
const subtotals: ReportRowType[] = [];
|
|
139
|
-
const subtotalLevels = dimensions.slice(0, -1);
|
|
140
|
-
|
|
141
|
-
subtotalLevels.forEach((_, dimensionIndex) => {
|
|
142
|
-
if (shouldInsertSubtotal({ currentRow, nextRow, previousRow, dimensionIndex })) {
|
|
143
|
-
const subtotalRow = createSubtotalRowAtLevel(currentRow, dimensionIndex);
|
|
144
|
-
subtotals.push(subtotalRow);
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
return [...subtotals, currentRow];
|
|
149
|
-
},
|
|
150
|
-
[createSubtotalRowAtLevel, dimensions, shouldInsertSubtotal],
|
|
151
|
-
);
|
|
152
|
-
|
|
153
|
-
const buildTableWithSubtotals = useCallback(() => {
|
|
154
|
-
const rows: ReportRowType[] = [];
|
|
155
|
-
|
|
156
|
-
tableData.rows.forEach((row, index) => {
|
|
157
|
-
const nextRow = tableData.rows[index + 1];
|
|
158
|
-
const previousRow = tableData.rows[index - 1];
|
|
159
|
-
rows.push(...generateSubtotalRows({ currentRow: row, nextRow, previousRow }));
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
return rows;
|
|
163
|
-
}, [tableData.rows, generateSubtotalRows]);
|
|
164
|
-
|
|
165
|
-
const rowsWithSubtotals = useMemo(() => buildTableWithSubtotals(), [buildTableWithSubtotals]);
|
|
166
|
-
|
|
167
|
-
return {
|
|
168
|
-
columns: mainColumns,
|
|
169
|
-
rows: rowsWithSubtotals,
|
|
170
|
-
columnsByName,
|
|
171
|
-
};
|
|
172
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
|
|
2
|
-
import { formatReportData } from '../utils';
|
|
3
|
-
import { useConvertMoneyContext } from '@/providers';
|
|
4
|
-
|
|
5
|
-
export const useReportData = () => {
|
|
6
|
-
const { getTextPrice } = useConvertMoneyContext();
|
|
7
|
-
|
|
8
|
-
const formatData = ({
|
|
9
|
-
value,
|
|
10
|
-
formatter,
|
|
11
|
-
name,
|
|
12
|
-
}: {
|
|
13
|
-
value: ReportValueType;
|
|
14
|
-
formatter?: string;
|
|
15
|
-
name: string;
|
|
16
|
-
}): ReportValueType => {
|
|
17
|
-
return formatReportData({
|
|
18
|
-
value,
|
|
19
|
-
formatter,
|
|
20
|
-
getTextPrice,
|
|
21
|
-
name,
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
return {
|
|
26
|
-
formatData,
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { IReportColumn } from '@/shared/reports/common/Visualization/types';
|
|
2
|
-
import { useEffect, useRef } from 'react';
|
|
3
|
-
|
|
4
|
-
interface IUseSyncedScrollProps {
|
|
5
|
-
columns: IReportColumn[];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const SCROLL_THRESHOLD = 2;
|
|
9
|
-
export const useSyncedScroll = ({ columns }: IUseSyncedScrollProps) => {
|
|
10
|
-
const headerRef = useRef<HTMLDivElement>(null);
|
|
11
|
-
const bodyRef = useRef<HTMLDivElement>(null);
|
|
12
|
-
const scrollbarContainerRef = useRef<HTMLDivElement>(null);
|
|
13
|
-
const leftShadowRef = useRef<HTMLDivElement>(null);
|
|
14
|
-
const rightShadowRef = useRef<HTMLDivElement>(null);
|
|
15
|
-
|
|
16
|
-
const updateShadows = (left: number, source: HTMLElement) => {
|
|
17
|
-
if (!leftShadowRef.current || !rightShadowRef.current) return;
|
|
18
|
-
leftShadowRef.current.style.opacity = left > 0 ? '1' : '0';
|
|
19
|
-
rightShadowRef.current.style.opacity = left < source.scrollWidth - source.clientWidth - 2 ? '1' : '0';
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const syncScroll = (source: HTMLElement, targets: HTMLElement[]) => {
|
|
23
|
-
const handler = () => {
|
|
24
|
-
const left = source.scrollLeft;
|
|
25
|
-
targets.forEach((t) => {
|
|
26
|
-
if (t.scrollLeft !== left) t.scrollLeft = left;
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
updateShadows(left, source);
|
|
30
|
-
};
|
|
31
|
-
source.addEventListener('scroll', handler);
|
|
32
|
-
return () => source.removeEventListener('scroll', handler);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const updateScrollWidth = (body: HTMLElement, scrollbarContent: HTMLElement, scrollbar: HTMLElement) => {
|
|
36
|
-
const width = body.scrollWidth;
|
|
37
|
-
const needScroll = width - body.clientWidth > SCROLL_THRESHOLD;
|
|
38
|
-
|
|
39
|
-
// update width
|
|
40
|
-
scrollbarContent.style.width = `${width}px`;
|
|
41
|
-
// show/hide fake scrollbar directly
|
|
42
|
-
if (!scrollbarContainerRef.current) return;
|
|
43
|
-
scrollbar.style.display = needScroll ? 'block' : 'none';
|
|
44
|
-
scrollbarContainerRef.current.style.borderTop = needScroll ? 'none' : '1px solid var(--p-color-border-secondary)';
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const updateLayoutState = (body: HTMLElement, scrollbarContent: HTMLElement, scrollbar: HTMLElement) => {
|
|
48
|
-
updateScrollWidth(body, scrollbarContent, scrollbar);
|
|
49
|
-
updateShadows(scrollbar.scrollLeft, scrollbar);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
useEffect(() => {
|
|
53
|
-
const header = headerRef.current;
|
|
54
|
-
const body = bodyRef.current;
|
|
55
|
-
const scrollbarContainer = scrollbarContainerRef.current;
|
|
56
|
-
const scrollbar = scrollbarContainer?.querySelector('.GReportTable__ScrollBar') as HTMLDivElement | null;
|
|
57
|
-
const scrollbarContent = scrollbarContainer?.querySelector(
|
|
58
|
-
'.GReportTable__ScrollBarContent',
|
|
59
|
-
) as HTMLDivElement | null;
|
|
60
|
-
|
|
61
|
-
if (!body || !scrollbarContainer || !scrollbar || !scrollbarContent || !header) return;
|
|
62
|
-
|
|
63
|
-
const cleanups: (() => void)[] = [];
|
|
64
|
-
cleanups.push(syncScroll(scrollbar, [body, header]));
|
|
65
|
-
cleanups.push(syncScroll(body, [scrollbar, header]));
|
|
66
|
-
cleanups.push(syncScroll(header, [scrollbar, body]));
|
|
67
|
-
|
|
68
|
-
const resizeObserver = new ResizeObserver(() => updateLayoutState(body, scrollbarContent, scrollbar));
|
|
69
|
-
resizeObserver.observe(body);
|
|
70
|
-
|
|
71
|
-
updateLayoutState(body, scrollbarContent, scrollbar);
|
|
72
|
-
|
|
73
|
-
return () => {
|
|
74
|
-
cleanups.forEach((cleanup) => cleanup());
|
|
75
|
-
resizeObserver.disconnect();
|
|
76
|
-
};
|
|
77
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
78
|
-
}, [bodyRef.current, columns]);
|
|
79
|
-
|
|
80
|
-
return { headerRef, bodyRef, scrollbarContainerRef, leftShadowRef, rightShadowRef };
|
|
81
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { IReportTable, ReportRowType, ReportValueType } from '@/shared/reports/common/Visualization/types/report';
|
|
2
|
-
|
|
3
|
-
export interface ReportColumnLayout {
|
|
4
|
-
width?: string;
|
|
5
|
-
minWidth?: string;
|
|
6
|
-
maxWidth?: string;
|
|
7
|
-
paddingInline?: string;
|
|
8
|
-
paddingRight?: string;
|
|
9
|
-
columnFirstPaddingInline?: string;
|
|
10
|
-
columnWrapperWidth?: string;
|
|
11
|
-
align?: 'start' | 'center' | 'end';
|
|
12
|
-
headerPaddingRight?: string;
|
|
13
|
-
dimensionBoxShadow?: string;
|
|
14
|
-
borderRightWidth?: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type ReportColumnLayoutMap = Record<string, ReportColumnLayout>;
|
|
18
|
-
|
|
19
|
-
export enum EOrderDirectionType {
|
|
20
|
-
ASC = 'ASC',
|
|
21
|
-
DESC = 'DESC',
|
|
22
|
-
}
|
|
23
|
-
export type OrderDirectionType = EOrderDirectionType.ASC | EOrderDirectionType.DESC;
|
|
24
|
-
export type OrderByType = {
|
|
25
|
-
field: string;
|
|
26
|
-
direction: OrderDirectionType;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export type OrderByFields = Record<string, OrderByType>;
|
|
30
|
-
|
|
31
|
-
export type OrderTooltipType = Record<string, Record<OrderDirectionType, string>>;
|
|
32
|
-
|
|
33
|
-
export type OrderCellProps = {
|
|
34
|
-
orderList: IReportTable<ReportValueType>;
|
|
35
|
-
isFetching: boolean;
|
|
36
|
-
onClickOrderCell: (data: { row?: ReportRowType; isPrevious?: boolean }) => void;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export interface CampaignsCellProps {
|
|
40
|
-
orderId: string;
|
|
41
|
-
gxId: string;
|
|
42
|
-
isHideCampaignContent: boolean;
|
|
43
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface IOrderItem {
|
|
2
|
-
image_url: string;
|
|
3
|
-
product_title: string;
|
|
4
|
-
properties: string;
|
|
5
|
-
quantity: string;
|
|
6
|
-
title: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface IOrderExperiment {
|
|
10
|
-
campaign_group_name: string;
|
|
11
|
-
campaign_group_id: string;
|
|
12
|
-
campaign_name: string;
|
|
13
|
-
campaign_id: string;
|
|
14
|
-
version: string;
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export enum EReportColumnKey {
|
|
2
|
-
ORDER_ID = 'order_id',
|
|
3
|
-
GEMX_ID = 'gx_id',
|
|
4
|
-
ORDER_DATE = 'order_date',
|
|
5
|
-
TOTAL = 'total_price',
|
|
6
|
-
CAMPAIGNS = 'experiments',
|
|
7
|
-
TRAFFIC_SOURCE = 'traffic_source',
|
|
8
|
-
ITEMS = 'items',
|
|
9
|
-
DEVICE = 'device',
|
|
10
|
-
VISITOR = 'visitor_type',
|
|
11
|
-
}
|