@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,93 +0,0 @@
|
|
|
1
|
-
import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
|
|
2
|
-
import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
|
|
3
|
-
|
|
4
|
-
import { NONE_VALUE } from '@/core/gemxql';
|
|
5
|
-
import { cls } from '@/utils';
|
|
6
|
-
import { useReportData } from '../../../hooks';
|
|
7
|
-
import { getColumnLayoutStyles } from '../../../utils';
|
|
8
|
-
import { cellMap } from './CellRenderers';
|
|
9
|
-
import { DefaultCell } from './DefaultCell';
|
|
10
|
-
import { NoneCell } from './NoneCell';
|
|
11
|
-
import { TotalCell } from './TotalCell';
|
|
12
|
-
|
|
13
|
-
interface ColumnProps {
|
|
14
|
-
value: ReportValueType;
|
|
15
|
-
gxId?: string;
|
|
16
|
-
previousValue?: ReportValueType;
|
|
17
|
-
isMergedWithPrev: boolean;
|
|
18
|
-
columnLayout: ReportColumnLayout;
|
|
19
|
-
name: string;
|
|
20
|
-
isDimensionCol: boolean;
|
|
21
|
-
formatter?: string;
|
|
22
|
-
hasTooltipCard?: boolean;
|
|
23
|
-
orderCellProps?: OrderCellProps;
|
|
24
|
-
campaignsCellProps?: CampaignsCellProps;
|
|
25
|
-
isTotalRow: ReportValueType;
|
|
26
|
-
isMockData?: boolean;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const Cell = ({
|
|
30
|
-
value,
|
|
31
|
-
gxId,
|
|
32
|
-
isMergedWithPrev,
|
|
33
|
-
columnLayout,
|
|
34
|
-
name,
|
|
35
|
-
isDimensionCol,
|
|
36
|
-
formatter,
|
|
37
|
-
hasTooltipCard,
|
|
38
|
-
previousValue,
|
|
39
|
-
orderCellProps,
|
|
40
|
-
campaignsCellProps,
|
|
41
|
-
isTotalRow,
|
|
42
|
-
isMockData,
|
|
43
|
-
}: ColumnProps) => {
|
|
44
|
-
const columnLayoutStyles = getColumnLayoutStyles(columnLayout, hasTooltipCard);
|
|
45
|
-
|
|
46
|
-
const { formatData } = useReportData();
|
|
47
|
-
|
|
48
|
-
const formattedValue = formatData({ value, formatter, name });
|
|
49
|
-
|
|
50
|
-
const formattedPreviousValue =
|
|
51
|
-
typeof previousValue === 'undefined' ? previousValue : formatData({ value: previousValue, formatter, name });
|
|
52
|
-
|
|
53
|
-
const cellStyles = {
|
|
54
|
-
borderTop: isMergedWithPrev ? '0' : undefined,
|
|
55
|
-
...columnLayoutStyles,
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
const renderContent = () => {
|
|
59
|
-
if (value === 'Total') {
|
|
60
|
-
return <TotalCell value={value} isTotalRow={isTotalRow} />;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
let Renderer = cellMap[name] ?? DefaultCell;
|
|
64
|
-
|
|
65
|
-
if (formattedValue === NONE_VALUE) {
|
|
66
|
-
Renderer = NoneCell;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return (
|
|
70
|
-
<Renderer
|
|
71
|
-
value={formattedValue}
|
|
72
|
-
gxId={gxId}
|
|
73
|
-
name={name}
|
|
74
|
-
isMergedWithPrev={isMergedWithPrev}
|
|
75
|
-
previousValue={formattedPreviousValue}
|
|
76
|
-
columnLayout={columnLayout}
|
|
77
|
-
orderCellProps={orderCellProps}
|
|
78
|
-
campaignsCellProps={campaignsCellProps}
|
|
79
|
-
isTotalRow={isTotalRow}
|
|
80
|
-
isDimensionCol={isDimensionCol}
|
|
81
|
-
isMockData={isMockData}
|
|
82
|
-
/>
|
|
83
|
-
);
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
return (
|
|
87
|
-
<div className={cls('GReportTable__Cell', { 'GReportTable__Cell--dimension': isDimensionCol })} style={cellStyles}>
|
|
88
|
-
<div className="GReportTable__CellContent" style={columnLayoutStyles}>
|
|
89
|
-
{renderContent()}
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
);
|
|
93
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { IOrderItem } from '@/components/OrderAnalytic/types';
|
|
2
|
-
import type { IOrderExperiment } from '../../../types/order';
|
|
3
|
-
import type { RendererProps } from './type';
|
|
4
|
-
|
|
5
|
-
import { IRMetricKey } from '@/shared/reports/common/Visualization/types';
|
|
6
|
-
import { EDimensionKey } from '../../../types/dimension';
|
|
7
|
-
import { EReportColumnKey } from '../../../types/report-columns';
|
|
8
|
-
import { CampaignsCell } from './CampaignsCell';
|
|
9
|
-
import { DateCell } from './DateCell';
|
|
10
|
-
import { GemxIdCell } from './GemxIdCell';
|
|
11
|
-
import { ItemsCell } from './ItemsCell';
|
|
12
|
-
import { OrderCellContainer } from './OrderCell';
|
|
13
|
-
import { OrderIdCell } from './OrderIdCell';
|
|
14
|
-
import { VersionCell } from './VersionCell';
|
|
15
|
-
|
|
16
|
-
const isString = (value: unknown): value is string => typeof value === 'string';
|
|
17
|
-
const isNonEmptyArray = (value: unknown): value is unknown[] => Array.isArray(value) && value.length > 0;
|
|
18
|
-
|
|
19
|
-
const isOrderExperiments = (value: unknown): value is IOrderExperiment[] => {
|
|
20
|
-
return isNonEmptyArray(value);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const isOrderItems = (value: unknown): value is IOrderItem[] => {
|
|
24
|
-
return isNonEmptyArray(value);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const cellMap: Record<string, (props: RendererProps) => React.ReactNode> = {
|
|
28
|
-
[EDimensionKey.VERSION]: ({ value, isMergedWithPrev }) => {
|
|
29
|
-
if (!isString(value)) return null;
|
|
30
|
-
return <VersionCell value={value} isMergedWithPrev={isMergedWithPrev} />;
|
|
31
|
-
},
|
|
32
|
-
[IRMetricKey.ORDERS]: ({ value, columnLayout, orderCellProps, previousValue, isTotalRow, isMockData }) => {
|
|
33
|
-
if (!isString(value)) return null;
|
|
34
|
-
return (
|
|
35
|
-
<OrderCellContainer
|
|
36
|
-
value={value}
|
|
37
|
-
columnLayout={columnLayout}
|
|
38
|
-
orderCellProps={orderCellProps}
|
|
39
|
-
previousValue={previousValue}
|
|
40
|
-
isTotalRow={isTotalRow}
|
|
41
|
-
isMockData={isMockData}
|
|
42
|
-
/>
|
|
43
|
-
);
|
|
44
|
-
},
|
|
45
|
-
[EReportColumnKey.ORDER_DATE]: ({ value, isMergedWithPrev }) => {
|
|
46
|
-
if (!isString(value)) return null;
|
|
47
|
-
return <DateCell value={value} isMergedWithPrev={isMergedWithPrev} />;
|
|
48
|
-
},
|
|
49
|
-
[EReportColumnKey.ITEMS]: ({ value }) => {
|
|
50
|
-
if (!isOrderItems(value)) return null;
|
|
51
|
-
return <ItemsCell value={value} />;
|
|
52
|
-
},
|
|
53
|
-
[EReportColumnKey.CAMPAIGNS]: ({ value, campaignsCellProps }) => {
|
|
54
|
-
if (!isOrderExperiments(value)) return null;
|
|
55
|
-
return <CampaignsCell value={value} campaignsCellProps={campaignsCellProps} />;
|
|
56
|
-
},
|
|
57
|
-
[EReportColumnKey.ORDER_ID]: ({ value, isMockData, gxId }) => {
|
|
58
|
-
if (!isString(value)) return null;
|
|
59
|
-
return <OrderIdCell value={value} isMockData={isMockData} gxId={gxId} />;
|
|
60
|
-
},
|
|
61
|
-
[EReportColumnKey.GEMX_ID]: ({ value, isMergedWithPrev, previousValue, columnLayout }) => {
|
|
62
|
-
if (!isString(value)) return null;
|
|
63
|
-
return (
|
|
64
|
-
<GemxIdCell
|
|
65
|
-
value={value}
|
|
66
|
-
isMergedWithPrev={isMergedWithPrev}
|
|
67
|
-
previousValue={previousValue}
|
|
68
|
-
columnLayout={columnLayout}
|
|
69
|
-
/>
|
|
70
|
-
);
|
|
71
|
-
},
|
|
72
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { GTextTruncated } from '@/shared/components';
|
|
2
|
-
import type { RendererProps } from './type';
|
|
3
|
-
|
|
4
|
-
import { WrapperCell } from './WrapperCell';
|
|
5
|
-
import { toCapitalize } from '@/utils';
|
|
6
|
-
|
|
7
|
-
export const DefaultCell = ({
|
|
8
|
-
isMergedWithPrev,
|
|
9
|
-
value,
|
|
10
|
-
previousValue,
|
|
11
|
-
columnLayout,
|
|
12
|
-
isTotalRow,
|
|
13
|
-
isDimensionCol,
|
|
14
|
-
}: RendererProps) => {
|
|
15
|
-
const valueString = typeof value === 'string' ? value : String(value);
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<WrapperCell previousValue={previousValue} isMergedWithPrev={isMergedWithPrev} columnLayout={columnLayout}>
|
|
19
|
-
<div className="w-full min-w-0">
|
|
20
|
-
<GTextTruncated
|
|
21
|
-
as="span"
|
|
22
|
-
variant="bodySm"
|
|
23
|
-
truncate
|
|
24
|
-
fontWeight={isTotalRow && !isDimensionCol ? 'semibold' : 'regular'}
|
|
25
|
-
alignment={columnLayout?.align}
|
|
26
|
-
>
|
|
27
|
-
{isMergedWithPrev ? '' : toCapitalize(valueString)}
|
|
28
|
-
</GTextTruncated>
|
|
29
|
-
</div>
|
|
30
|
-
</WrapperCell>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { RendererProps } from './type';
|
|
2
|
-
|
|
3
|
-
import { GTextTruncated } from '@/shared/components';
|
|
4
|
-
import { WrapperCell } from './WrapperCell';
|
|
5
|
-
|
|
6
|
-
export const GemxIdCell = ({ value, isMergedWithPrev, previousValue, columnLayout }: RendererProps) => {
|
|
7
|
-
const valueString = typeof value === 'string' ? value : String(value);
|
|
8
|
-
|
|
9
|
-
return (
|
|
10
|
-
<WrapperCell previousValue={previousValue} isMergedWithPrev={isMergedWithPrev} columnLayout={columnLayout}>
|
|
11
|
-
<div className="w-full min-w-0">
|
|
12
|
-
<GTextTruncated as="span" variant="bodySm" truncate alignment={columnLayout?.align}>
|
|
13
|
-
{isMergedWithPrev ? '' : valueString}
|
|
14
|
-
</GTextTruncated>
|
|
15
|
-
</div>
|
|
16
|
-
</WrapperCell>
|
|
17
|
-
);
|
|
18
|
-
};
|
package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.tsx
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { BoxProps } from '@shopify/polaris';
|
|
2
|
-
import type { OrderJourneyItem } from '../ItemsCell';
|
|
3
|
-
|
|
4
|
-
import { Badge, Button, Popover, BlockStack, InlineStack, Text, Box } from '@shopify/polaris';
|
|
5
|
-
import { ChevronDownIcon, ChevronUpIcon } from '@shopify/polaris-icons';
|
|
6
|
-
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import { useCallback, useState } from 'react';
|
|
8
|
-
import { GThumbnail } from '@/shared/components';
|
|
9
|
-
|
|
10
|
-
interface ICheckoutStartedDetailProps {
|
|
11
|
-
lineItems?: OrderJourneyItem[];
|
|
12
|
-
activatorWrapperProps?: BoxProps;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const CheckoutStartedDetail = ({ lineItems = [], activatorWrapperProps }: ICheckoutStartedDetailProps) => {
|
|
16
|
-
const { t } = useTranslation();
|
|
17
|
-
|
|
18
|
-
const [active, setActive] = useState(false);
|
|
19
|
-
const toggleActive = useCallback(() => setActive((active) => !active), []);
|
|
20
|
-
|
|
21
|
-
if (!lineItems || lineItems.length === 0) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<Popover
|
|
27
|
-
active={active}
|
|
28
|
-
activator={
|
|
29
|
-
<Box {...activatorWrapperProps}>
|
|
30
|
-
<Button variant="tertiary" icon={active ? ChevronUpIcon : ChevronDownIcon} onClick={toggleActive} />
|
|
31
|
-
</Box>
|
|
32
|
-
}
|
|
33
|
-
onClose={toggleActive}
|
|
34
|
-
>
|
|
35
|
-
<Box padding="300" width="340px">
|
|
36
|
-
<BlockStack gap="300">
|
|
37
|
-
{lineItems.map((product, index, self) => {
|
|
38
|
-
const isLast = index === self.length - 1;
|
|
39
|
-
const boxProps: BoxProps = {
|
|
40
|
-
borderBlockEndWidth: '025',
|
|
41
|
-
borderColor: 'border-secondary',
|
|
42
|
-
paddingBlockEnd: '300',
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<Box key={product.productID} {...(!isLast && boxProps)}>
|
|
47
|
-
<InlineStack gap="300" wrap={false}>
|
|
48
|
-
<div className="size-10">
|
|
49
|
-
<GThumbnail source={product.imageURL ?? ''} alt={product.productTitle ?? ''} size="small" />
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<div className="flex w-full flex-col gap-1">
|
|
53
|
-
<InlineStack gap="200" align="space-between" wrap={false}>
|
|
54
|
-
<Text as="span" variant="bodyMd" fontWeight="medium">
|
|
55
|
-
{product.productTitle}
|
|
56
|
-
</Text>
|
|
57
|
-
|
|
58
|
-
<div className="text-nowrap">
|
|
59
|
-
<Text as="span" variant="bodyMd" tone="subdued">
|
|
60
|
-
{t('x {{quantity}}', { quantity: product.quantity })}
|
|
61
|
-
</Text>
|
|
62
|
-
</div>
|
|
63
|
-
</InlineStack>
|
|
64
|
-
|
|
65
|
-
{product.title && (
|
|
66
|
-
<span>
|
|
67
|
-
<Badge>{product.title}</Badge>
|
|
68
|
-
</span>
|
|
69
|
-
)}
|
|
70
|
-
</div>
|
|
71
|
-
</InlineStack>
|
|
72
|
-
</Box>
|
|
73
|
-
);
|
|
74
|
-
})}
|
|
75
|
-
</BlockStack>
|
|
76
|
-
</Box>
|
|
77
|
-
</Popover>
|
|
78
|
-
);
|
|
79
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { IOrderItem } from '@/components/OrderAnalytic/types';
|
|
2
|
-
import type { RendererProps } from '../type';
|
|
3
|
-
|
|
4
|
-
import { InlineStack, Text } from '@shopify/polaris';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { useToggle } from '@/hooks';
|
|
7
|
-
import { CheckoutStartedDetail } from './CheckoutStartedDetail';
|
|
8
|
-
|
|
9
|
-
export type OrderJourneyItem = {
|
|
10
|
-
imageURL?: string;
|
|
11
|
-
productID?: string;
|
|
12
|
-
productTitle?: string;
|
|
13
|
-
productVariantID?: string;
|
|
14
|
-
properties?: string;
|
|
15
|
-
quantity?: number;
|
|
16
|
-
title?: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const ItemsCell = ({ value }: Pick<RendererProps<IOrderItem[]>, 'value'>) => {
|
|
20
|
-
const { t } = useTranslation();
|
|
21
|
-
|
|
22
|
-
const { value: itemHovering, setTrue, setFalse } = useToggle(false);
|
|
23
|
-
|
|
24
|
-
const lineItems: OrderJourneyItem[] = value.map((item) => ({
|
|
25
|
-
imageURL: item.image_url,
|
|
26
|
-
productTitle: item.product_title,
|
|
27
|
-
quantity: Number(item.quantity) || 0,
|
|
28
|
-
title: item.title,
|
|
29
|
-
}));
|
|
30
|
-
|
|
31
|
-
const getItemText = () => {
|
|
32
|
-
const itemQuantity = value.reduce((acc, item) => acc + (Number(item.quantity) || 0), 0);
|
|
33
|
-
|
|
34
|
-
if (itemQuantity === 1) return t('{{itemQuantity}} item', { itemQuantity });
|
|
35
|
-
|
|
36
|
-
return t('{{itemQuantity}} items', { itemQuantity });
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<div onMouseEnter={setTrue} onMouseLeave={setFalse}>
|
|
41
|
-
<InlineStack gap="200" blockAlign="center">
|
|
42
|
-
<Text as="span" variant="bodyMd" tone="subdued">
|
|
43
|
-
{getItemText()}
|
|
44
|
-
</Text>
|
|
45
|
-
|
|
46
|
-
<CheckoutStartedDetail
|
|
47
|
-
lineItems={lineItems}
|
|
48
|
-
activatorWrapperProps={{
|
|
49
|
-
paddingBlockStart: '100',
|
|
50
|
-
opacity: itemHovering ? '1' : '0',
|
|
51
|
-
}}
|
|
52
|
-
/>
|
|
53
|
-
</InlineStack>
|
|
54
|
-
</div>
|
|
55
|
-
);
|
|
56
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ItemsCell';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { RendererProps } from './type';
|
|
2
|
-
|
|
3
|
-
import { WrapperCell } from './WrapperCell';
|
|
4
|
-
|
|
5
|
-
export const NoneCell = ({ isMergedWithPrev, previousValue, columnLayout }: RendererProps) => {
|
|
6
|
-
return (
|
|
7
|
-
<WrapperCell previousValue={previousValue} isMergedWithPrev={isMergedWithPrev} columnLayout={columnLayout}>
|
|
8
|
-
<div className="w-[11px] h-[2px] bg-[#8A8A8A]" />
|
|
9
|
-
</WrapperCell>
|
|
10
|
-
);
|
|
11
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GInlineCenter } from '@/shared';
|
|
2
|
-
import { Spinner } from '@shopify/polaris';
|
|
3
|
-
|
|
4
|
-
export const LoadingData = () => {
|
|
5
|
-
return (
|
|
6
|
-
<GInlineCenter minHeight="200px" align="center" inlineAlign="center">
|
|
7
|
-
<Spinner accessibilityLabel="Fetching orders" size="small" />
|
|
8
|
-
</GInlineCenter>
|
|
9
|
-
);
|
|
10
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { GInlineCenter } from '@/shared';
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { Text } from '@shopify/polaris';
|
|
4
|
-
|
|
5
|
-
export const NoData: React.FC = () => {
|
|
6
|
-
const { t } = useTranslation();
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<GInlineCenter minHeight="200px" align="center" inlineAlign="center">
|
|
10
|
-
<Text as="p">{t('No orders found.')}</Text>
|
|
11
|
-
</GInlineCenter>
|
|
12
|
-
);
|
|
13
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { OrderCellContainerProps } from './OrderCellContainer';
|
|
2
|
-
|
|
3
|
-
import { useToggle } from '@/hooks/useToggle';
|
|
4
|
-
import { Box, Popover, Scrollable } from '@shopify/polaris';
|
|
5
|
-
import { LoadingData } from './LoadingData';
|
|
6
|
-
import { NoData } from './NoData';
|
|
7
|
-
import { OrderCellBase } from './OrderCellBase';
|
|
8
|
-
import { OrderItem } from './OrderItem';
|
|
9
|
-
|
|
10
|
-
interface OrderCellProps extends OrderCellContainerProps {
|
|
11
|
-
isPrevious?: boolean;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const OrderCell: React.FC<OrderCellProps> = ({
|
|
15
|
-
value,
|
|
16
|
-
columnLayout,
|
|
17
|
-
orderCellProps,
|
|
18
|
-
isPrevious,
|
|
19
|
-
isTotalRow,
|
|
20
|
-
isMockData,
|
|
21
|
-
}) => {
|
|
22
|
-
const { value: itemHovering, setTrue, setFalse } = useToggle(false);
|
|
23
|
-
const { value: active, toggle: toggleActive } = useToggle(false);
|
|
24
|
-
|
|
25
|
-
const { orderList, onClickOrderCell, isFetching } = orderCellProps ?? {};
|
|
26
|
-
|
|
27
|
-
if (typeof value !== 'string') return null;
|
|
28
|
-
|
|
29
|
-
if (isMockData || isTotalRow || value === '0') {
|
|
30
|
-
return (
|
|
31
|
-
<OrderCellBase
|
|
32
|
-
value={value}
|
|
33
|
-
justifyContent={columnLayout?.align}
|
|
34
|
-
isPrevious={isPrevious}
|
|
35
|
-
isTotalRow={!!isTotalRow}
|
|
36
|
-
/>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const openOrderModal = () => {
|
|
41
|
-
toggleActive();
|
|
42
|
-
onClickOrderCell?.({ isPrevious });
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const getContent = () => {
|
|
46
|
-
if (isFetching) return <LoadingData />;
|
|
47
|
-
if (!orderList || orderList.rows?.length === 0) return <NoData />;
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<Scrollable horizontal={false} className="max-h-[325px]">
|
|
51
|
-
{orderList?.rows?.map((order) => (
|
|
52
|
-
<OrderItem key={`${order.id}`} order={order} />
|
|
53
|
-
))}
|
|
54
|
-
</Scrollable>
|
|
55
|
-
);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
return (
|
|
59
|
-
<Popover
|
|
60
|
-
active={active}
|
|
61
|
-
activator={
|
|
62
|
-
<OrderCellBase
|
|
63
|
-
value={value}
|
|
64
|
-
justifyContent={columnLayout?.align}
|
|
65
|
-
interactive={{
|
|
66
|
-
hovering: itemHovering,
|
|
67
|
-
onHoverChange: (v) => (v ? setTrue() : setFalse()),
|
|
68
|
-
onClick: openOrderModal,
|
|
69
|
-
}}
|
|
70
|
-
isPrevious={isPrevious}
|
|
71
|
-
/>
|
|
72
|
-
}
|
|
73
|
-
onClose={toggleActive}
|
|
74
|
-
>
|
|
75
|
-
<Box width="291px">{getContent()}</Box>
|
|
76
|
-
</Popover>
|
|
77
|
-
);
|
|
78
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Box, Icon, InlineStack, Text } from '@shopify/polaris';
|
|
2
|
-
import { CaretDownIcon } from '@shopify/polaris-icons';
|
|
3
|
-
import { cls } from '@/utils';
|
|
4
|
-
|
|
5
|
-
interface OrderCellBaseProps {
|
|
6
|
-
value: string;
|
|
7
|
-
justifyContent: React.CSSProperties['justifyContent'];
|
|
8
|
-
isPrevious?: boolean;
|
|
9
|
-
isTotalRow?: boolean;
|
|
10
|
-
interactive?: {
|
|
11
|
-
onClick: () => void;
|
|
12
|
-
hovering: boolean;
|
|
13
|
-
onHoverChange: (hovering: boolean) => void;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const OrderCellBase: React.FC<OrderCellBaseProps> = ({
|
|
18
|
-
value,
|
|
19
|
-
justifyContent,
|
|
20
|
-
isPrevious,
|
|
21
|
-
isTotalRow,
|
|
22
|
-
interactive,
|
|
23
|
-
}) => {
|
|
24
|
-
const { onClick, hovering, onHoverChange } = interactive ?? {};
|
|
25
|
-
const ableInteractive = !!interactive;
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<div
|
|
29
|
-
className={cls(
|
|
30
|
-
'GReportTable__CellContent--clickable flex h-7 w-full items-center px-[8px] pl-3',
|
|
31
|
-
{ 'hover:bg-surface-hover cursor-pointer': ableInteractive },
|
|
32
|
-
{ 'GReportTable__CellContent--noClick': !ableInteractive },
|
|
33
|
-
)}
|
|
34
|
-
style={{ justifyContent }}
|
|
35
|
-
onClick={onClick ?? undefined}
|
|
36
|
-
onMouseEnter={ableInteractive ? () => onHoverChange?.(true) : undefined}
|
|
37
|
-
onMouseLeave={ableInteractive ? () => onHoverChange?.(false) : undefined}
|
|
38
|
-
>
|
|
39
|
-
<InlineStack blockAlign="center" wrap={false}>
|
|
40
|
-
<Text
|
|
41
|
-
as="span"
|
|
42
|
-
variant="bodyMd"
|
|
43
|
-
fontWeight={isTotalRow ? 'semibold' : 'regular'}
|
|
44
|
-
tone={isPrevious ? 'subdued' : 'inherit'}
|
|
45
|
-
>
|
|
46
|
-
{value}
|
|
47
|
-
</Text>
|
|
48
|
-
|
|
49
|
-
<Box opacity={hovering && ableInteractive ? '1' : '0'}>
|
|
50
|
-
<Icon source={CaretDownIcon} />
|
|
51
|
-
</Box>
|
|
52
|
-
</InlineStack>
|
|
53
|
-
</div>
|
|
54
|
-
);
|
|
55
|
-
};
|
package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellContainer.tsx
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { RendererProps } from '../type';
|
|
2
|
-
|
|
3
|
-
import { BlockStack, Box } from '@shopify/polaris';
|
|
4
|
-
import { OrderCell } from './OrderCell';
|
|
5
|
-
|
|
6
|
-
export type OrderCellContainerProps = Pick<
|
|
7
|
-
RendererProps,
|
|
8
|
-
'value' | 'columnLayout' | 'orderCellProps' | 'previousValue' | 'isTotalRow' | 'isMockData'
|
|
9
|
-
>;
|
|
10
|
-
export const OrderCellContainer: React.FC<OrderCellContainerProps> = ({
|
|
11
|
-
value,
|
|
12
|
-
columnLayout,
|
|
13
|
-
orderCellProps,
|
|
14
|
-
previousValue,
|
|
15
|
-
isTotalRow,
|
|
16
|
-
isMockData,
|
|
17
|
-
}) => {
|
|
18
|
-
return (
|
|
19
|
-
<BlockStack align="center">
|
|
20
|
-
<Box width="100%">
|
|
21
|
-
<OrderCell
|
|
22
|
-
value={value}
|
|
23
|
-
columnLayout={columnLayout}
|
|
24
|
-
orderCellProps={orderCellProps}
|
|
25
|
-
isTotalRow={isTotalRow}
|
|
26
|
-
isMockData={isMockData}
|
|
27
|
-
/>
|
|
28
|
-
</Box>
|
|
29
|
-
{typeof previousValue === 'string' && (
|
|
30
|
-
<Box width="100%">
|
|
31
|
-
<OrderCell
|
|
32
|
-
value={previousValue}
|
|
33
|
-
columnLayout={columnLayout}
|
|
34
|
-
orderCellProps={orderCellProps}
|
|
35
|
-
isPrevious
|
|
36
|
-
isTotalRow={isTotalRow}
|
|
37
|
-
isMockData={isMockData}
|
|
38
|
-
/>
|
|
39
|
-
</Box>
|
|
40
|
-
)}
|
|
41
|
-
</BlockStack>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { ReportRowType } from '@/shared/reports/common/Visualization/types';
|
|
2
|
-
|
|
3
|
-
import { dayjsTz } from '@/utils/dayjs';
|
|
4
|
-
import { BlockStack, Box, Button, Icon, InlineStack, Text, Tooltip } from '@shopify/polaris';
|
|
5
|
-
import { ChartLineIcon, OrderIcon } from '@shopify/polaris-icons';
|
|
6
|
-
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import { useReportTableActionsContext } from '../../../../context/ReportTableActionsContext';
|
|
8
|
-
import { EReportColumnKey } from '../../../../types/report-columns';
|
|
9
|
-
|
|
10
|
-
export interface Order {
|
|
11
|
-
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface OrderItemProps {
|
|
16
|
-
order: ReportRowType;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const OrderItem = ({ order }: OrderItemProps) => {
|
|
20
|
-
const { t } = useTranslation();
|
|
21
|
-
|
|
22
|
-
const { onViewOrderJourney, onViewOrderDetails } = useReportTableActionsContext();
|
|
23
|
-
|
|
24
|
-
const formatDate = (date: string) => {
|
|
25
|
-
return dayjsTz(date).format('MMMM D, YYYY [at] h:mm a');
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const orderId = `${order[EReportColumnKey.ORDER_ID]}`;
|
|
29
|
-
const rawGxId = order[EReportColumnKey.GEMX_ID];
|
|
30
|
-
const gxId = rawGxId ? `${rawGxId}` : '';
|
|
31
|
-
const date = `${order[EReportColumnKey.ORDER_DATE]}`;
|
|
32
|
-
|
|
33
|
-
if (!orderId) return null;
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
<Box padding="300" borderBlockEndWidth="025" borderColor="border">
|
|
37
|
-
<InlineStack align="space-between" blockAlign="center" gap="200">
|
|
38
|
-
<BlockStack gap="200">
|
|
39
|
-
<Text as="p" variant="bodyMd">
|
|
40
|
-
{`ID: ${orderId}`}
|
|
41
|
-
</Text>
|
|
42
|
-
<Text as="p" variant="bodyXs" tone="subdued">
|
|
43
|
-
{formatDate(date)}
|
|
44
|
-
</Text>
|
|
45
|
-
{gxId && (
|
|
46
|
-
<InlineStack gap="100" blockAlign="center">
|
|
47
|
-
<Text as="span" variant="bodyXs">
|
|
48
|
-
{t('GemX ID:')}
|
|
49
|
-
</Text>
|
|
50
|
-
<Box background="bg-surface-emphasis-active" paddingBlock="050" paddingInline="150" borderRadius="200">
|
|
51
|
-
<Text as="span" variant="bodySm">
|
|
52
|
-
<span style={{ color: 'var(--p-color-text-emphasis-active)' }}>{gxId}</span>
|
|
53
|
-
</Text>
|
|
54
|
-
</Box>
|
|
55
|
-
</InlineStack>
|
|
56
|
-
)}
|
|
57
|
-
</BlockStack>
|
|
58
|
-
<InlineStack gap="100">
|
|
59
|
-
<Tooltip content={t('View order details')}>
|
|
60
|
-
<Button
|
|
61
|
-
icon={<Icon source={OrderIcon} tone="critical" />}
|
|
62
|
-
variant="tertiary"
|
|
63
|
-
size="slim"
|
|
64
|
-
onClick={() => onViewOrderDetails?.(orderId)}
|
|
65
|
-
/>
|
|
66
|
-
</Tooltip>
|
|
67
|
-
<Tooltip content={t('View order journey')}>
|
|
68
|
-
<Button
|
|
69
|
-
icon={<Icon source={ChartLineIcon} tone="primary" />}
|
|
70
|
-
variant="tertiary"
|
|
71
|
-
size="slim"
|
|
72
|
-
onClick={() => onViewOrderJourney?.(orderId, gxId)}
|
|
73
|
-
/>
|
|
74
|
-
</Tooltip>
|
|
75
|
-
</InlineStack>
|
|
76
|
-
</InlineStack>
|
|
77
|
-
</Box>
|
|
78
|
-
);
|
|
79
|
-
};
|