@levi-gemcommerce/analytics 2.1.0-test.0 → 3.0.1-dev.3
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/AnalyticMode/AnalyticModeSelector.d.ts +1 -1
- package/dist/esm/components/AnalyticMode/AnalyticModeSelector.js +7 -6
- package/dist/esm/components/AnalyticMode/AnalyticModeSelector.mjs +7 -6
- package/dist/esm/components/CardPathAnalysis/CardJourneyAnalysis.d.ts +1 -1
- package/dist/esm/components/CardPathAnalysis/CardJourneyAnalysis.js +10 -9
- package/dist/esm/components/CardPathAnalysis/CardJourneyAnalysis.mjs +10 -9
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.js +3 -3
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.mjs +3 -3
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.d.ts +1 -1
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.js +2 -2
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.mjs +2 -2
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.js +7 -7
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.mjs +7 -7
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.js +2 -2
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.mjs +2 -2
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.js +3 -3
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.mjs +3 -3
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.d.ts +1 -1
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.js +1 -1
- package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.mjs +1 -1
- package/dist/esm/components/CardPathAnalysis/components/PathAnalysisChart.js +7 -7
- package/dist/esm/components/CardPathAnalysis/components/PathAnalysisChart.mjs +7 -7
- package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.d.ts +1 -1
- package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.js +1 -1
- package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.mjs +1 -1
- package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisProvider.d.ts +1 -1
- package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisProvider.js +2 -2
- package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisProvider.mjs +2 -2
- package/dist/esm/components/CardPathAnalysis/helpers/metricHelpers.d.ts +3 -3
- package/dist/esm/components/CardPathAnalysis/helpers/metricHelpers.js +3 -3
- package/dist/esm/components/CardPathAnalysis/helpers/metricHelpers.mjs +3 -3
- package/dist/esm/components/CardPathAnalysis/helpers/pathAnalysis.d.ts +1 -1
- package/dist/esm/components/CardPathAnalysis/helpers/treeUtils.js +1 -4
- package/dist/esm/components/CardPathAnalysis/helpers/treeUtils.mjs +1 -4
- package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalysisChart.js +11 -13
- package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalysisChart.mjs +11 -13
- package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.d.ts +1 -1
- package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.js +1 -1
- package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.mjs +1 -1
- package/dist/esm/components/CurrencySelector/CurrencySelector.js +2 -2
- package/dist/esm/components/CurrencySelector/CurrencySelector.mjs +2 -2
- package/dist/esm/components/GModalOrderJourney/GModalOrderJourney.d.ts +2 -1
- package/dist/esm/components/GModalOrderJourney/GModalOrderJourney.js +16 -13
- package/dist/esm/components/GModalOrderJourney/GModalOrderJourney.mjs +16 -13
- package/dist/esm/components/GModalOrderJourney/components/OrderJourneySkeleton.js +16 -14
- package/dist/esm/components/GModalOrderJourney/components/OrderJourneySkeleton.mjs +16 -14
- package/dist/esm/components/GModalOrderJourney/context/OrderJourneyContext.d.ts +1 -0
- package/dist/esm/components/GModalOrderJourney/utils/index.js +5 -8
- package/dist/esm/components/GModalOrderJourney/utils/index.mjs +5 -8
- package/dist/esm/components/GSelectableMetricChartCard/GSelectableMetricChartCard.d.ts +1 -1
- package/dist/esm/components/GSelectableMetricChartCard/GSelectableMetricChartCard.js +4 -7
- package/dist/esm/components/GSelectableMetricChartCard/GSelectableMetricChartCard.mjs +4 -7
- package/dist/esm/components/GSelectableMetricChartCard/MetricChartTab.d.ts +1 -1
- package/dist/esm/components/GSelectableMetricChartCard/MetricChartTab.js +4 -4
- package/dist/esm/components/GSelectableMetricChartCard/MetricChartTab.mjs +4 -4
- package/dist/esm/components/GTimePicker/GTimePicker.d.ts +1 -1
- package/dist/esm/components/GTimePicker/components/BaseTimePicker.d.ts +1 -1
- package/dist/esm/components/GTimePicker/components/BaseTimePicker.js +7 -7
- package/dist/esm/components/GTimePicker/components/BaseTimePicker.mjs +7 -7
- package/dist/esm/components/GTimePicker/components/CompareTimePicker.js +2 -2
- package/dist/esm/components/GTimePicker/components/CompareTimePicker.mjs +2 -2
- package/dist/esm/components/GTimePicker/components/DateTimeFilterAddition.js +2 -2
- package/dist/esm/components/GTimePicker/components/DateTimeFilterAddition.mjs +2 -2
- package/dist/esm/components/GTimePicker/components/DateTimeFilterInputs.d.ts +1 -1
- package/dist/esm/components/GTimePicker/components/DateTimeFilterInputs.js +3 -3
- package/dist/esm/components/GTimePicker/components/DateTimeFilterInputs.mjs +3 -3
- package/dist/esm/components/GTimePicker/components/DateTimeFilters.js +4 -4
- package/dist/esm/components/GTimePicker/components/DateTimeFilters.mjs +4 -4
- package/dist/esm/components/GTimePicker/components/MainTimePicker.js +1 -1
- package/dist/esm/components/GTimePicker/components/MainTimePicker.mjs +1 -1
- package/dist/esm/components/GTimePicker/helpers/date-range-info.js +1 -1
- package/dist/esm/components/GTimePicker/helpers/date-range-info.mjs +1 -1
- package/dist/esm/components/GTimePicker/helpers/version.js +1 -1
- package/dist/esm/components/GTimePicker/helpers/version.mjs +1 -1
- package/dist/esm/components/GTimePicker/hooks/useDateTimePicker.js +1 -1
- package/dist/esm/components/GTimePicker/hooks/useDateTimePicker.mjs +1 -1
- package/dist/esm/components/GTimePicker/hooks/useVersionDateTimeFilters.d.ts +1 -1
- package/dist/esm/components/MetricDonutChartCard/MetricDonutChartCard.js +15 -17
- package/dist/esm/components/MetricDonutChartCard/MetricDonutChartCard.mjs +15 -17
- package/dist/esm/components/MetricDonutChartCard/utils/donut-chart.js +5 -5
- package/dist/esm/components/MetricDonutChartCard/utils/donut-chart.mjs +5 -5
- package/dist/esm/components/OrderAnalytic/OrderListingLatestTable.d.ts +2 -2
- package/dist/esm/components/OrderAnalytic/OrderListingLatestTable.js +6 -6
- package/dist/esm/components/OrderAnalytic/OrderListingLatestTable.mjs +6 -6
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonCellContent.js +1 -1
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonCellContent.mjs +1 -1
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonHeader.js +2 -2
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonHeader.mjs +2 -2
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonSummaryRow.js +2 -2
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonSummaryRow.mjs +2 -2
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingTable.d.ts +11 -6
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingTable.js +37 -39
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingTable.mjs +37 -39
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingTableEmpty.js +1 -1
- package/dist/esm/components/OrderAnalytic/components/OrderListing/OrderListingTableEmpty.mjs +1 -1
- package/dist/esm/components/OrderAnalytic/components/OrderListing/index.d.ts +2 -0
- package/dist/esm/components/OrderAnalytic/components/index.d.ts +1 -0
- package/dist/esm/components/OrderAnalytic/constants/order-columns.js +5 -0
- package/dist/esm/components/OrderAnalytic/constants/order-columns.mjs +5 -0
- package/dist/esm/components/OrderAnalytic/constants/order-listing.d.ts +1 -1
- package/dist/esm/components/OrderAnalytic/constants/order-listing.js +25 -6
- package/dist/esm/components/OrderAnalytic/constants/order-listing.mjs +25 -6
- package/dist/esm/components/OrderAnalytic/helpers/order-listing.d.ts +1 -1
- package/dist/esm/components/OrderAnalytic/helpers/order-listing.js +1 -3
- package/dist/esm/components/OrderAnalytic/helpers/order-listing.mjs +1 -3
- package/dist/esm/components/OrderAnalytic/hooks/useOrderListingData.d.ts +4 -1
- package/dist/esm/components/OrderAnalytic/hooks/useOrderListingData.js +10 -8
- package/dist/esm/components/OrderAnalytic/hooks/useOrderListingData.mjs +10 -8
- package/dist/esm/components/OrderAnalytic/index.d.ts +3 -2
- package/dist/esm/components/OrderAnalytic/stores/order-control.js +1 -1
- package/dist/esm/components/OrderAnalytic/stores/order-control.mjs +1 -1
- package/dist/esm/components/OrderAnalytic/types/order.d.ts +3 -2
- package/dist/esm/components/SingleMetricChartCard/SingleMetricChartCard.d.ts +2 -2
- package/dist/esm/components/SingleMetricChartCard/SingleMetricChartCard.js +2 -2
- package/dist/esm/components/SingleMetricChartCard/SingleMetricChartCard.mjs +2 -2
- package/dist/esm/components/common/chart/GChartSkeleton.js +1 -1
- package/dist/esm/components/common/chart/GChartSkeleton.mjs +1 -1
- package/dist/esm/components/common/chart/MetricChart.d.ts +1 -1
- package/dist/esm/components/common/chart/MetricChart.js +6 -9
- package/dist/esm/components/common/chart/MetricChart.mjs +6 -9
- package/dist/esm/components/common/chart/MetricChartEmpty.js +2 -2
- package/dist/esm/components/common/chart/MetricChartEmpty.mjs +2 -2
- package/dist/esm/components/common/chart/MetricDonutChartSkeleton.js +1 -1
- package/dist/esm/components/common/chart/MetricDonutChartSkeleton.mjs +1 -1
- package/dist/esm/components/common/chart/MetricInfoBlock.d.ts +1 -1
- package/dist/esm/components/common/chart/MetricInfoBlock.js +5 -5
- package/dist/esm/components/common/chart/MetricInfoBlock.mjs +5 -5
- package/dist/esm/components/common/chart/MetricValueSummary.d.ts +1 -1
- package/dist/esm/components/common/percent/MetricPercentage.js +2 -2
- package/dist/esm/components/common/percent/MetricPercentage.mjs +2 -2
- package/dist/esm/constants/breakdown-targets.js +3 -2
- package/dist/esm/constants/breakdown-targets.mjs +3 -2
- package/dist/esm/core/gemxql/builder/build-gemxql-query.d.ts +8 -8
- package/dist/esm/core/gemxql/builder/build-gemxql-query.js +11 -15
- package/dist/esm/core/gemxql/builder/build-gemxql-query.mjs +11 -15
- package/dist/esm/core/gemxql/builder/clauses/condition-query.d.ts +2 -2
- package/dist/esm/core/gemxql/builder/clauses/condition-query.js +3 -3
- package/dist/esm/core/gemxql/builder/clauses/condition-query.mjs +3 -3
- package/dist/esm/core/gemxql/builder/clauses/group-query.js +1 -1
- package/dist/esm/core/gemxql/builder/clauses/group-query.mjs +1 -1
- package/dist/esm/core/gemxql/builder/clauses/time-query.js +3 -8
- package/dist/esm/core/gemxql/builder/clauses/time-query.mjs +3 -8
- package/dist/esm/core/gemxql/builder/filters/build-extra-conditions.js +6 -0
- package/dist/esm/core/gemxql/builder/filters/build-extra-conditions.mjs +6 -0
- package/dist/esm/core/gemxql/builder/filters/build-filter-conditions.js +1 -3
- package/dist/esm/core/gemxql/builder/filters/build-filter-conditions.mjs +1 -3
- package/dist/esm/core/gemxql/builder/helpers/date-query-helpers.js +3 -3
- package/dist/esm/core/gemxql/builder/helpers/date-query-helpers.mjs +3 -3
- package/dist/esm/core/gemxql/builder/parse-gemxql-query.js +9 -9
- package/dist/esm/core/gemxql/builder/parse-gemxql-query.mjs +9 -9
- package/dist/esm/core/gemxql/constants/row-reader-mode.js +1 -1
- package/dist/esm/core/gemxql/constants/row-reader-mode.mjs +1 -1
- package/dist/esm/core/gemxql/helpers/formatAnalyticData.js +10 -18
- package/dist/esm/core/gemxql/helpers/formatAnalyticData.mjs +10 -18
- package/dist/esm/core/gemxql/hooks/useAnalyticData.js +1 -1
- package/dist/esm/core/gemxql/hooks/useAnalyticData.mjs +1 -1
- package/dist/esm/core/gemxql/hooks/useGemXQlPagination.js +1 -3
- package/dist/esm/core/gemxql/hooks/useGemXQlPagination.mjs +1 -3
- package/dist/esm/core/gemxql/index.js +1 -0
- package/dist/esm/core/gemxql/index.mjs +1 -0
- package/dist/esm/core/gemxql/types/extra-condition.d.ts +8 -2
- package/dist/esm/core/gemxql/types/extra-condition.js +1 -0
- package/dist/esm/core/gemxql/types/extra-condition.mjs +1 -0
- package/dist/esm/core/gemxql/types/filter-types.d.ts +1 -1
- package/dist/esm/hooks/publish/useStickyDetectById.d.ts +1 -1
- package/dist/esm/hooks/publish/useStickyDetectById.js +1 -1
- package/dist/esm/hooks/publish/useStickyDetectById.mjs +1 -1
- package/dist/esm/hooks/publish/useStickyFilterBoxProps.d.ts +1 -1
- package/dist/esm/hooks/publish/useStickyFilterBoxProps.js +1 -1
- package/dist/esm/hooks/publish/useStickyFilterBoxProps.mjs +1 -1
- package/dist/esm/hooks/useFormatLineChartData.d.ts +1 -1
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +7 -3
- package/dist/esm/index.mjs +7 -3
- package/dist/esm/modules/analytics/constants/index.js +8 -31
- package/dist/esm/modules/analytics/constants/index.mjs +8 -31
- package/dist/esm/modules/analytics/utils/formatMetric.d.ts +1 -1
- package/dist/esm/modules/analytics/utils/formatMetric.js +2 -5
- package/dist/esm/modules/analytics/utils/formatMetric.mjs +2 -5
- package/dist/esm/modules/analytics/utils/getPAMetricValue.d.ts +1 -1
- package/dist/esm/providers/ConvertMoneyProvider.d.ts +1 -1
- package/dist/esm/providers/ConvertMoneyProvider.js +4 -5
- package/dist/esm/providers/ConvertMoneyProvider.mjs +4 -5
- package/dist/esm/providers/TimezoneProvider.js +1 -1
- package/dist/esm/providers/TimezoneProvider.mjs +1 -1
- package/dist/esm/shared/charts/components/GFunnelChart/GFunnelChart.d.ts +1 -1
- package/dist/esm/shared/charts/components/GFunnelChart/GFunnelChart.js +5 -5
- package/dist/esm/shared/charts/components/GFunnelChart/GFunnelChart.mjs +5 -5
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelChartAction.js +6 -6
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelChartAction.mjs +6 -6
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelChartActionIcon.js +13 -13
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelChartActionIcon.mjs +13 -13
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelChartActionWrapper.d.ts +2 -2
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelChartActionWrapper.js +5 -5
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelChartActionWrapper.mjs +5 -5
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionContent.js +4 -4
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionContent.mjs +4 -4
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionItem.d.ts +1 -1
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionItem.js +1 -1
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionItem.mjs +1 -1
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionPopover.js +1 -3
- package/dist/esm/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionPopover.mjs +1 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/Arc/Arc.js +3 -9
- package/dist/esm/shared/charts/components/GPolarisViz/components/Arc/Arc.mjs +3 -9
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.js +1 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.mjs +1 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartContainer/hooks/useContainerBounds.js +4 -4
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartContainer/hooks/useContainerBounds.mjs +4 -4
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartElements/index.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartElements/index.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartElements/index.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/FunnelSkeleton.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/FunnelSkeleton.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/GridSkeleton.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/GridSkeleton.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/SparkSkeleton.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/SparkSkeleton.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/ConicGradientWithStops.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/ConicGradientWithStops.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/ConicGradientWithStops.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/Chart.js +5 -5
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/Chart.mjs +5 -5
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/FunnelChartNext.js +2 -2
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/FunnelChartNext.mjs +2 -2
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/FunnelChartLabels.js +4 -11
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/FunnelChartLabels.mjs +4 -11
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.js +3 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.mjs +3 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipOverlay.js +1 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipOverlay.mjs +1 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/useBuildFunnelTrends.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/hooks/useLabels.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/hooks/useLabels.js +3 -11
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/hooks/useLabels.mjs +3 -11
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/getDiagonalLabels.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/getDiagonalLabels.js +2 -2
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/getDiagonalLabels.mjs +2 -2
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/getHorizontalLabels.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/getHorizontalLabels.js +2 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/getHorizontalLabels.mjs +2 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/getVerticalLabels.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/getVerticalLabels.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/getVerticalLabels.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLabels.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLabels.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/TextLine/TextLine.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/TextLine/TextLine.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/TooltipContent/index.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getDonutChartTooltipPosition.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/components/TrendIndicator/utilities/estimateTrendIndicatorWidth.js +1 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/TrendIndicator/utilities/estimateTrendIndicatorWidth.mjs +1 -3
- package/dist/esm/shared/charts/components/GPolarisViz/components/VerticalGridLines/VerticalGridLines.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/hooks/useDebouncedCallback.js +2 -14
- package/dist/esm/shared/charts/components/GPolarisViz/hooks/useDebouncedCallback.mjs +2 -14
- package/dist/esm/shared/charts/components/GPolarisViz/hooks/usePrefersReducedMotion.js +1 -3
- package/dist/esm/shared/charts/components/GPolarisViz/hooks/usePrefersReducedMotion.mjs +1 -3
- package/dist/esm/shared/charts/components/GPolarisViz/hooks/usePrintResizing.js +4 -4
- package/dist/esm/shared/charts/components/GPolarisViz/hooks/usePrintResizing.mjs +4 -4
- package/dist/esm/shared/charts/components/GPolarisViz/hooks/useResizeObserver.js +5 -7
- package/dist/esm/shared/charts/components/GPolarisViz/hooks/useResizeObserver.mjs +5 -7
- package/dist/esm/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnector.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnector.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnector.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/shared/ZeroValueLine/ZeroValueLine.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/shared/ZeroValueLine/ZeroValueLine.js +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/shared/ZeroValueLine/ZeroValueLine.mjs +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/types.d.ts +1 -1
- package/dist/esm/shared/charts/components/GPolarisViz/utilities/getTrendIndicatorData.js +4 -4
- package/dist/esm/shared/charts/components/GPolarisViz/utilities/getTrendIndicatorData.mjs +4 -4
- package/dist/esm/shared/components/GBlockCenter/GBlockCenter.js +1 -7
- package/dist/esm/shared/components/GBlockCenter/GBlockCenter.mjs +1 -7
- package/dist/esm/shared/components/GCheckbox/GCheckbox.js +1 -1
- package/dist/esm/shared/components/GCheckbox/GCheckbox.mjs +1 -1
- package/dist/esm/shared/components/GI18NText/GI18NText.js +1 -1
- package/dist/esm/shared/components/GI18NText/GI18NText.mjs +1 -1
- package/dist/esm/shared/components/GMockDataTooltip/GMockDataTooltip.js +1 -1
- package/dist/esm/shared/components/GMockDataTooltip/GMockDataTooltip.mjs +1 -1
- package/dist/esm/shared/components/GModal/GModal.js +4 -4
- package/dist/esm/shared/components/GModal/GModal.mjs +4 -4
- package/dist/esm/shared/components/GSelector/GSelector.js +3 -3
- package/dist/esm/shared/components/GSelector/GSelector.mjs +3 -3
- package/dist/esm/shared/components/GTextTruncated/GTextTruncated.js +7 -7
- package/dist/esm/shared/components/GTextTruncated/GTextTruncated.mjs +7 -7
- package/dist/esm/shared/components/GTooltip/components/GTooltipCard.js +1 -1
- package/dist/esm/shared/components/GTooltip/components/GTooltipCard.mjs +1 -1
- package/dist/esm/shared/components/GViewBySelector/GViewBySelector.js +1 -5
- package/dist/esm/shared/components/GViewBySelector/GViewBySelector.mjs +1 -5
- package/dist/esm/shared/journey/common/JourneyContainer/components/JourneyContainer.js +18 -17
- package/dist/esm/shared/journey/common/JourneyContainer/components/JourneyContainer.mjs +18 -17
- package/dist/esm/shared/journey/common/JourneyContainer/components/JourneyTimeline.js +1 -1
- package/dist/esm/shared/journey/common/JourneyContainer/components/JourneyTimeline.mjs +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/AcceptedPostPurchaseOffer.d.ts +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/CheckoutCompleted.d.ts +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/CheckoutCompleted.js +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/CheckoutCompleted.mjs +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutItems.js +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutItems.mjs +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStarted.d.ts +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStarted.js +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStarted.mjs +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStartedDetail.d.ts +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStartedDetail.js +2 -2
- package/dist/esm/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStartedDetail.mjs +2 -2
- package/dist/esm/shared/journey/ui/JourneyEvents/components/PageViewed/PageViewed.d.ts +2 -2
- package/dist/esm/shared/journey/ui/JourneyEvents/components/PageViewed/PageViewed.js +4 -3
- package/dist/esm/shared/journey/ui/JourneyEvents/components/PageViewed/PageViewed.mjs +4 -3
- package/dist/esm/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/ProductAddedToCart.d.ts +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/ProductRemovedFromCart.d.ts +1 -1
- package/dist/esm/shared/journey/ui/JourneyEvents/constants/event.js +2 -2
- package/dist/esm/shared/journey/ui/JourneyEvents/constants/event.mjs +2 -2
- package/dist/esm/shared/journey/ui/JourneyGroup/JourneyGroup.js +5 -4
- package/dist/esm/shared/journey/ui/JourneyGroup/JourneyGroup.mjs +5 -4
- package/dist/esm/shared/journey/ui/JourneyItem/components/EventMarkerIcon.js +1 -1
- package/dist/esm/shared/journey/ui/JourneyItem/components/EventMarkerIcon.mjs +1 -1
- package/dist/esm/shared/journey/ui/JourneyItem/components/JourneyTime.js +1 -1
- package/dist/esm/shared/journey/ui/JourneyItem/components/JourneyTime.mjs +1 -1
- package/dist/esm/shared/journey/ui/JourneyTitle/components/GemxIdBadge.d.ts +1 -0
- package/dist/esm/shared/journey/ui/JourneyTitle/components/GemxIdBadge.js +43 -0
- package/dist/esm/shared/journey/ui/JourneyTitle/components/GemxIdBadge.mjs +43 -0
- package/dist/esm/shared/journey/ui/JourneyTitle/components/JourneyDateBadge.js +2 -2
- package/dist/esm/shared/journey/ui/JourneyTitle/components/JourneyDateBadge.mjs +2 -2
- package/dist/esm/shared/journey/ui/JourneyTitle/components/JourneyIdBadge.js +9 -8
- package/dist/esm/shared/journey/ui/JourneyTitle/components/JourneyIdBadge.mjs +9 -8
- package/dist/esm/shared/journey/ui/JourneyTitle/components/JourneyLoadMore.js +5 -6
- package/dist/esm/shared/journey/ui/JourneyTitle/components/JourneyLoadMore.mjs +5 -6
- package/dist/esm/shared/journey/ui/JourneyTitle/components/JourneyTitle.d.ts +1 -1
- package/dist/esm/shared/journey/ui/JourneyTitle/components/JourneyTitle.js +5 -5
- package/dist/esm/shared/journey/ui/JourneyTitle/components/JourneyTitle.mjs +5 -5
- package/dist/esm/shared/journey/ui/JourneyTitle/components/index.d.ts +1 -0
- package/dist/esm/shared/journey/ui/JourneyTitle/constants/idBadge.d.ts +1 -0
- package/dist/esm/shared/journey/ui/JourneyTitle/constants/idBadge.js +3 -0
- package/dist/esm/shared/journey/ui/JourneyTitle/constants/idBadge.mjs +3 -0
- package/dist/esm/shared/journey/ui/JourneyTitle/constants/index.d.ts +1 -0
- package/dist/esm/shared/reports/common/Visualization/types/report.d.ts +1 -1
- package/dist/esm/shared/reports/common/Visualization/utils/visualization.d.ts +1 -1
- package/dist/esm/shared/reports/common/Visualization/utils/visualization.js +1 -1
- package/dist/esm/shared/reports/common/Visualization/utils/visualization.mjs +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/ReportTable.d.ts +4 -4
- package/dist/esm/shared/reports/ui/ReportTable/ReportTable.js +20 -24
- package/dist/esm/shared/reports/ui/ReportTable/ReportTable.mjs +20 -24
- package/dist/esm/shared/reports/ui/ReportTable/ReportTableSkeleton.js +21 -21
- package/dist/esm/shared/reports/ui/ReportTable/ReportTableSkeleton.mjs +21 -21
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.js +6 -7
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.mjs +6 -7
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCellVersion.js +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCellVersion.mjs +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/Cell.d.ts +3 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/Cell.js +17 -19
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/Cell.mjs +17 -19
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/CellRenderers.js +16 -10
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/CellRenderers.mjs +16 -10
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/DefaultCell.js +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/DefaultCell.mjs +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.d.ts +2 -0
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.js +36 -0
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.mjs +36 -0
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.d.ts +2 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.js +3 -3
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.mjs +3 -3
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/ItemsCell.js +5 -5
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/ItemsCell.mjs +5 -5
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/LoadingData.js +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/LoadingData.mjs +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/NoData.js +2 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/NoData.mjs +2 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCell.js +3 -3
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCell.mjs +3 -3
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderItem.js +6 -4
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderItem.mjs +6 -4
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.js +5 -5
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.mjs +5 -5
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/VersionCell.d.ts +2 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/VersionCell.js +3 -7
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/VersionCell.mjs +3 -7
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/WrapperCell.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/WrapperCell.js +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/WrapperCell.mjs +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/type.d.ts +3 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Row.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Row.js +3 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Body/Row.mjs +3 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Footer/Pagination.js +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Footer/Pagination.mjs +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Footer/WrapperFooter.js +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Footer/WrapperFooter.mjs +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/Header.js +7 -7
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/Header.mjs +7 -7
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SortableHeader.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SortableHeader.js +5 -7
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SortableHeader.mjs +5 -7
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SortableHeaderWithTooltip.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SortableHeaderWithTooltip.js +2 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SortableHeaderWithTooltip.mjs +2 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SummaryCell.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SummaryCell.js +2 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SummaryCell.mjs +2 -2
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SummaryRow.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SummaryRow.js +9 -11
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/SummaryRow.mjs +9 -11
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/WrapperHeader.js +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/components/Header/WrapperHeader.mjs +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/context/ReportTableActionsContext.d.ts +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/hooks/useReportTableCell.js +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/hooks/useReportTableCell.mjs +1 -1
- package/dist/esm/shared/reports/ui/ReportTable/hooks/useSyncedScroll.js +2 -5
- package/dist/esm/shared/reports/ui/ReportTable/hooks/useSyncedScroll.mjs +2 -5
- package/dist/esm/shared/reports/ui/ReportTable/types/index.d.ts +1 -0
- package/dist/esm/shared/reports/ui/ReportTable/types/report-columns.d.ts +1 -0
- package/dist/esm/shared/reports/ui/ReportTable/types/report-columns.js +1 -0
- package/dist/esm/shared/reports/ui/ReportTable/types/report-columns.mjs +1 -0
- package/dist/esm/shared/reports/ui/ReportTable/utils/format.js +8 -8
- package/dist/esm/shared/reports/ui/ReportTable/utils/format.mjs +8 -8
- package/dist/esm/shared/reports/ui/ReportTable/utils/table.js +1 -3
- package/dist/esm/shared/reports/ui/ReportTable/utils/table.mjs +1 -3
- package/dist/esm/types/campaign.d.ts +2 -1
- package/dist/esm/types/campaign.js +1 -0
- package/dist/esm/types/campaign.mjs +1 -0
- package/dist/esm/types/index.d.ts +5 -4
- package/dist/esm/types/index.js +4 -2
- package/dist/esm/types/index.mjs +4 -2
- package/dist/esm/types/report-columns.d.ts +1 -0
- package/dist/esm/utils/currency.js +1 -2
- package/dist/esm/utils/currency.mjs +1 -2
- package/dist/esm/utils/dayjs.js +2 -2
- package/dist/esm/utils/dayjs.mjs +2 -2
- package/dist/style.css +1 -1
- package/dist/umd/gemxql.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/types.js +1 -1
- package/package.json +50 -41
- package/src/api/graphql/fragments/pathAnalytic.generated.ts +26 -0
- 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 +12 -0
- package/src/assets/svg/product.svg +18 -0
- package/src/components/AnalyticMode/AnalyticModeSelector.tsx +50 -0
- package/src/components/AnalyticMode/index.ts +2 -0
- package/src/components/CardPathAnalysis/CardJourneyAnalysis.tsx +33 -0
- package/src/components/CardPathAnalysis/assets/img/analytic-gemx.png +0 -0
- package/src/components/CardPathAnalysis/assets/styles/PathAnalysis.scss +60 -0
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.tsx +45 -0
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.tsx +53 -0
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.tsx +65 -0
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.tsx +29 -0
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.tsx +12 -0
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.tsx +43 -0
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/index.ts +1 -0
- package/src/components/CardPathAnalysis/components/PathAnalysisChart.tsx +55 -0
- package/src/components/CardPathAnalysis/components/index.ts +1 -0
- package/src/components/CardPathAnalysis/configs/index.ts +2 -0
- package/src/components/CardPathAnalysis/constants/index.ts +1 -0
- package/src/components/CardPathAnalysis/constants/path-analysis.ts +162 -0
- package/src/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.tsx +66 -0
- package/src/components/CardPathAnalysis/contexts/PathAnalysisProvider.tsx +130 -0
- package/src/components/CardPathAnalysis/contexts/index.ts +2 -0
- package/src/components/CardPathAnalysis/helpers/index.ts +2 -0
- package/src/components/CardPathAnalysis/helpers/metricHelpers.ts +13 -0
- package/src/components/CardPathAnalysis/helpers/pathAnalysis.ts +96 -0
- package/src/components/CardPathAnalysis/helpers/pathAnalysisChart.ts +128 -0
- package/src/components/CardPathAnalysis/helpers/treeUtils.ts +38 -0
- package/src/components/CardPathAnalysis/hooks/usePathAnalysisChart.tsx +292 -0
- package/src/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.ts +206 -0
- package/src/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.ts +43 -0
- package/src/components/CardPathAnalysis/index.ts +5 -0
- package/src/components/CardPathAnalysis/stores/funnel-chart.ts +30 -0
- package/src/components/CardPathAnalysis/stores/index.ts +3 -0
- package/src/components/CardPathAnalysis/stores/path-analysis-campaign.ts +16 -0
- package/src/components/CardPathAnalysis/stores/path-analysis.ts +11 -0
- package/src/components/CardPathAnalysis/types/index.ts +1 -0
- package/src/components/CardPathAnalysis/types/path-analysis.ts +10 -0
- package/src/components/CurrencySelector/CurrencySelector.tsx +127 -0
- package/src/components/CurrencySelector/index.ts +2 -0
- package/src/components/GModalOrderJourney/GModalOrderJourney.tsx +131 -0
- package/src/components/GModalOrderJourney/components/OrderJourneySkeleton.tsx +93 -0
- package/src/components/GModalOrderJourney/components/index.ts +1 -0
- package/src/components/GModalOrderJourney/context/OrderJourneyContext.tsx +17 -0
- package/src/components/GModalOrderJourney/context/index.ts +1 -0
- package/src/components/GModalOrderJourney/hooks/index.ts +1 -0
- package/src/components/GModalOrderJourney/hooks/useGModalOrderJourney.ts +25 -0
- package/src/components/GModalOrderJourney/index.ts +5 -0
- package/src/components/GModalOrderJourney/types/index.ts +4 -0
- package/src/components/GModalOrderJourney/utils/index.ts +75 -0
- package/src/components/GSelectableMetricChartCard/GSelectableMetricChartCard.tsx +83 -0
- package/src/components/GSelectableMetricChartCard/MetricChartTab.tsx +56 -0
- package/src/components/GSelectableMetricChartCard/index.ts +2 -0
- package/src/components/GTimePicker/GTimePicker.tsx +31 -0
- package/src/components/GTimePicker/components/BaseTimePicker.tsx +249 -0
- package/src/components/GTimePicker/components/CompareTimePicker.tsx +41 -0
- package/src/components/GTimePicker/components/DateTimeFilterAddition.tsx +84 -0
- package/src/components/GTimePicker/components/DateTimeFilterInputs.tsx +124 -0
- package/src/components/GTimePicker/components/DateTimeFilters.tsx +86 -0
- package/src/components/GTimePicker/components/MainTimePicker.tsx +47 -0
- package/src/components/GTimePicker/components/index.ts +2 -0
- package/src/components/GTimePicker/constants/compareDateTimePicker.ts +68 -0
- package/src/components/GTimePicker/constants/datePicker.ts +14 -0
- package/src/components/GTimePicker/constants/index.ts +2 -0
- package/src/components/GTimePicker/constants/mainDataTimePicker.ts +88 -0
- package/src/components/GTimePicker/contexts/DateTimePickerProvider.tsx +125 -0
- package/src/components/GTimePicker/contexts/index.ts +1 -0
- package/src/components/GTimePicker/helpers/date-range-info.ts +84 -0
- package/src/components/GTimePicker/helpers/index.ts +4 -0
- package/src/components/GTimePicker/helpers/parse-date.ts +127 -0
- package/src/components/GTimePicker/helpers/time-picker.ts +123 -0
- package/src/components/GTimePicker/helpers/version.ts +36 -0
- package/src/components/GTimePicker/hooks/index.ts +3 -0
- package/src/components/GTimePicker/hooks/useCompareDateTimePicker.tsx +79 -0
- package/src/components/GTimePicker/hooks/useDateTimeFilter.ts +83 -0
- package/src/components/GTimePicker/hooks/useDateTimePicker.tsx +99 -0
- package/src/components/GTimePicker/hooks/useVersionDateTimeFilters.ts +30 -0
- package/src/components/GTimePicker/index.ts +7 -0
- package/src/components/GTimePicker/types/index.ts +43 -0
- package/src/components/MetricDonutChartCard/MetricDonutChartCard.tsx +121 -0
- package/src/components/MetricDonutChartCard/index.ts +2 -0
- package/src/components/MetricDonutChartCard/utils/donut-chart.ts +75 -0
- package/src/components/MetricDonutChartCard/utils/index.ts +1 -0
- package/src/components/OrderAnalytic/OrderListingLatestTable.tsx +111 -0
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/OrderListingTableSkeleton.tsx +40 -0
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonCellContent.tsx +77 -0
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonHeader.tsx +35 -0
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonRow.tsx +35 -0
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonSummaryRow.tsx +36 -0
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/constants.ts +11 -0
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/index.ts +1 -0
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingTable.tsx +159 -0
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingTableEmpty.tsx +29 -0
- package/src/components/OrderAnalytic/components/OrderListing/index.ts +2 -0
- package/src/components/OrderAnalytic/components/index.ts +1 -0
- package/src/components/OrderAnalytic/constants/index.ts +2 -0
- package/src/components/OrderAnalytic/constants/order-columns.ts +51 -0
- package/src/components/OrderAnalytic/constants/order-listing.ts +199 -0
- package/src/components/OrderAnalytic/helpers/index.ts +1 -0
- package/src/components/OrderAnalytic/helpers/order-listing.ts +48 -0
- package/src/components/OrderAnalytic/hooks/index.ts +1 -0
- package/src/components/OrderAnalytic/hooks/useOrderListingData.ts +55 -0
- package/src/components/OrderAnalytic/index.ts +5 -0
- package/src/components/OrderAnalytic/stores/index.ts +2 -0
- package/src/components/OrderAnalytic/stores/order-columns-selector.ts +24 -0
- package/src/components/OrderAnalytic/stores/order-control.ts +15 -0
- package/src/components/OrderAnalytic/types/index.ts +3 -0
- package/src/components/OrderAnalytic/types/order.ts +89 -0
- package/src/components/OrderAnalytic/types/orderListing.ts +4 -0
- package/src/components/OrderAnalytic/types/report.ts +14 -0
- package/src/components/SingleMetricChartCard/SingleMetricChartCard.tsx +56 -0
- package/src/components/SingleMetricChartCard/index.tsx +2 -0
- package/src/components/common/chart/GChartSkeleton.tsx +5 -0
- package/src/components/common/chart/MetricChart.tsx +62 -0
- package/src/components/common/chart/MetricChartEmpty.tsx +35 -0
- package/src/components/common/chart/MetricChartTooltip.tsx +74 -0
- package/src/components/common/chart/MetricDonutChartSkeleton.tsx +14 -0
- package/src/components/common/chart/MetricInfoBlock.tsx +66 -0
- package/src/components/common/chart/MetricInfoSkeleton.tsx +25 -0
- package/src/components/common/chart/MetricValueSummary.tsx +23 -0
- package/src/components/common/chart/index.ts +8 -0
- package/src/components/common/icons/DownIcon8px.tsx +14 -0
- package/src/components/common/icons/UpIcon8px.tsx +14 -0
- package/src/components/common/icons/index.ts +2 -0
- package/src/components/common/percent/MetricPercentage.tsx +42 -0
- package/src/components/common/percent/index.ts +1 -0
- package/src/components/index.ts +9 -0
- package/src/constants/analytic-metric-tooltip.tsx +164 -0
- package/src/constants/breakdown-targets.ts +25 -0
- package/src/constants/campaign.ts +4 -0
- package/src/constants/chart.ts +17 -0
- package/src/constants/currency.ts +3 -0
- package/src/constants/index.ts +6 -0
- package/src/constants/thumbnail.ts +3 -0
- package/src/core/gemxql/api/index.ts +2 -0
- package/src/core/gemxql/api/useCustomGemXQlQuery.ts +35 -0
- package/src/core/gemxql/api/useGemxQlNamedQuery.ts +34 -0
- package/src/core/gemxql/builder/build-gemxql-query.ts +81 -0
- package/src/core/gemxql/builder/clauses/condition-query.ts +74 -0
- package/src/core/gemxql/builder/clauses/from-query.ts +18 -0
- package/src/core/gemxql/builder/clauses/group-query.ts +43 -0
- package/src/core/gemxql/builder/clauses/index.ts +11 -0
- package/src/core/gemxql/builder/clauses/limit-query.ts +15 -0
- package/src/core/gemxql/builder/clauses/mode-query.ts +14 -0
- package/src/core/gemxql/builder/clauses/offset-query.ts +15 -0
- package/src/core/gemxql/builder/clauses/order-by-query.ts +37 -0
- package/src/core/gemxql/builder/clauses/show-query.ts +18 -0
- package/src/core/gemxql/builder/clauses/time-query.ts +67 -0
- package/src/core/gemxql/builder/clauses/time-series-query.ts +15 -0
- package/src/core/gemxql/builder/clauses/timezone-query.ts +17 -0
- package/src/core/gemxql/builder/configs/date-formats.ts +1 -0
- package/src/core/gemxql/builder/configs/index.ts +3 -0
- package/src/core/gemxql/builder/configs/keywords.ts +16 -0
- package/src/core/gemxql/builder/configs/query-defaults.ts +1 -0
- package/src/core/gemxql/builder/filters/build-extra-conditions.ts +69 -0
- package/src/core/gemxql/builder/filters/build-filter-conditions.ts +161 -0
- package/src/core/gemxql/builder/filters/index.ts +2 -0
- package/src/core/gemxql/builder/helpers/date-query-helpers.ts +41 -0
- package/src/core/gemxql/builder/helpers/index.ts +1 -0
- package/src/core/gemxql/builder/helpers/is-valid-query-input.ts +8 -0
- package/src/core/gemxql/builder/index.ts +6 -0
- package/src/core/gemxql/builder/parse-gemxql-query.ts +43 -0
- package/src/core/gemxql/constants/analytic-data.ts +2 -0
- package/src/core/gemxql/constants/column-keys.ts +4 -0
- package/src/core/gemxql/constants/index.ts +4 -0
- package/src/core/gemxql/constants/operators.ts +2 -0
- package/src/core/gemxql/constants/row-reader-mode.ts +9 -0
- package/src/core/gemxql/graphql/fragments/gemxql.generated.ts +80 -0
- package/src/core/gemxql/graphql/fragments/gemxql.gql +18 -0
- package/src/core/gemxql/graphql/index.ts +2 -0
- package/src/core/gemxql/graphql/queries/gemxql.generated.ts +26 -0
- package/src/core/gemxql/graphql/queries/gemxql.gql +5 -0
- package/src/core/gemxql/helpers/columnKeys.ts +8 -0
- package/src/core/gemxql/helpers/extractQueryData.ts +18 -0
- package/src/core/gemxql/helpers/formatAnalyticData.ts +92 -0
- package/src/core/gemxql/helpers/formatAnalyticDate.ts +29 -0
- package/src/core/gemxql/helpers/getTimeDimension.ts +11 -0
- package/src/core/gemxql/helpers/hasMetricData.ts +6 -0
- package/src/core/gemxql/helpers/index.ts +8 -0
- package/src/core/gemxql/helpers/parseJsonFields.ts +36 -0
- package/src/core/gemxql/helpers/readNumeric.ts +25 -0
- package/src/core/gemxql/hooks/index.ts +2 -0
- package/src/core/gemxql/hooks/useAnalyticData.ts +67 -0
- package/src/core/gemxql/hooks/useGemXQlPagination.ts +79 -0
- package/src/core/gemxql/index.ts +8 -0
- package/src/core/gemxql/types/analytic-data.ts +26 -0
- package/src/core/gemxql/types/analytic-source.ts +4 -0
- package/src/core/gemxql/types/extra-condition.ts +40 -0
- package/src/core/gemxql/types/field-filters.ts +18 -0
- package/src/core/gemxql/types/field-operators.ts +8 -0
- package/src/core/gemxql/types/filter-types.ts +33 -0
- package/src/core/gemxql/types/group-with-clause.ts +12 -0
- package/src/core/gemxql/types/index.ts +11 -0
- package/src/core/gemxql/types/order-by.ts +13 -0
- package/src/core/gemxql/types/page-fields.ts +25 -0
- package/src/core/gemxql/types/row-reader-mode.ts +6 -0
- package/src/core/gemxql/types/time-dimension.ts +8 -0
- package/src/global.d.ts +38 -0
- package/src/hooks/index.ts +7 -0
- package/src/hooks/publish/index.ts +2 -0
- package/src/hooks/publish/useStickyDetectById.ts +39 -0
- package/src/hooks/publish/useStickyFilterBoxProps.ts +26 -0
- package/src/hooks/publish/useWindowSize.ts +54 -0
- package/src/hooks/useEnhancedEffect.ts +3 -0
- package/src/hooks/useFetchCurrencyRates.ts +48 -0
- package/src/hooks/useFormatLineChartData.ts +28 -0
- package/src/hooks/usePopoverResizeObserver.ts +43 -0
- package/src/hooks/usePreventBodyScroll.ts +15 -0
- package/src/hooks/useSearchParams.ts +7 -0
- package/src/hooks/useToggle.ts +23 -0
- package/src/index.ts +10 -0
- package/src/modules/analytics/constants/index.ts +124 -0
- package/src/modules/analytics/index.ts +3 -0
- package/src/modules/analytics/types/index.ts +43 -0
- package/src/modules/analytics/utils/formatMetric.ts +42 -0
- package/src/modules/analytics/utils/getPAMetricValue.ts +11 -0
- package/src/modules/analytics/utils/index.ts +3 -0
- package/src/modules/analytics/utils/metric.ts +172 -0
- package/src/providers/ConvertMoneyProvider.tsx +68 -0
- package/src/providers/MetricChartProvider.tsx +50 -0
- package/src/providers/TimezoneProvider.tsx +31 -0
- package/src/providers/index.ts +5 -0
- package/src/shared/charts/components/ComboChart.tsx +108 -0
- package/src/shared/charts/components/GBarChart.tsx +96 -0
- package/src/shared/charts/components/GComboChart.tsx +15 -0
- package/src/shared/charts/components/GDonutChart.tsx +25 -0
- package/src/shared/charts/components/GFunnelChart/GFunnelChart.tsx +34 -0
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartAction.tsx +67 -0
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionIcon.tsx +60 -0
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionWrapper.tsx +100 -0
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionContent.tsx +92 -0
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionHeader.tsx +54 -0
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionItem.tsx +51 -0
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionPopover.tsx +95 -0
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/index.ts +1 -0
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/type.ts +7 -0
- package/src/shared/charts/components/GFunnelChart/components/types.ts +24 -0
- package/src/shared/charts/components/GFunnelChart/index.ts +4 -0
- package/src/shared/charts/components/GFunnelChart/types.ts +11 -0
- package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.module.scss +7 -0
- package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.tsx +135 -0
- package/src/shared/charts/components/GPolarisViz/components/Arc/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.module.scss +39 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.tsx +150 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/hooks/useContainerBounds.ts +113 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartDiv.tsx +18 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartElements.module.scss +21 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartSVG.tsx +40 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/index.ts +7 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/ChartErrorBoundary.tsx +56 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/utilities/checkForMismatchedData.ts +34 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.module.scss +6 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.tsx +96 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.module.scss +41 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.tsx +193 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/ErrorText.tsx +40 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/FunnelSkeleton.tsx +69 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/GridSkeleton.tsx +155 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.module.scss +33 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.tsx +34 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.module.scss +15 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.tsx +53 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.module.scss +35 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.tsx +75 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/SparkSkeleton.tsx +27 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/index.ts +8 -0
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/index.ts +9 -0
- package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/ConicGradientWithStops.tsx +27 -0
- package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.module.scss +8 -0
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.tsx +25 -0
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/index.ts +2 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/Chart.tsx +209 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/FunnelChart.tsx +72 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisArrows.tsx +52 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisLabels.tsx +66 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelSegment.tsx +121 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.module.scss +23 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.tsx +67 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/index.ts +4 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/index.ts +2 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/Chart.tsx +259 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/FunnelChartNext.tsx +104 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/FunnelChartLabels.tsx +387 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.scss +8 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.tsx +37 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/index.ts +3 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIcon.tsx +20 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIconTooltip.tsx +31 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/CustomTooltip.tsx +68 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.scss +52 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.tsx +149 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipOverlay.tsx +117 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipWithPortal.tsx +12 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/index.ts +8 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/constants.ts +28 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipInteraction.ts +59 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipPlacement.ts +113 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/index.ts +6 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/types.ts +13 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/calculate-dropoff.ts +4 -0
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/useBuildFunnelTrends.ts +108 -0
- package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/HorizontalGridLines.tsx +27 -0
- package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/SingleTextLine.tsx +64 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/useLabels.tsx +131 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/index.ts +3 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endLineTruncate.ts +23 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endWordTruncate.ts +34 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/estimateTextHeight.ts +31 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/formatAndAddEllipsis.ts +12 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getDiagonalLabels.ts +70 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getHorizontalLabels.ts +90 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getVerticalLabels.ts +58 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getWidestLabel.ts +15 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/shouldSkipLabel.ts +11 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/endWordTruncate.test.ts +16 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/estimateTextHeight.test.ts +19 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/formatAndAddEllipsis.test.ts +9 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateLastLine.test.ts +22 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateSingleLine.test.ts +15 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLabels.ts +75 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLastLine.ts +61 -0
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateSingleLine.ts +39 -0
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.module.scss +8 -0
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.tsx +105 -0
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/constants.ts +3 -0
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/index.ts +2 -0
- package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/SwallowErrors.tsx +32 -0
- package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/TextLine/TextLine.tsx +88 -0
- package/src/shared/charts/components/GPolarisViz/components/TextLine/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/TooltipContent.tsx +109 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.module.scss +10 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.tsx +67 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.module.scss +26 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.tsx +57 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.module.scss +4 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.tsx +26 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.module.scss +4 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.tsx +20 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.module.scss +7 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.tsx +15 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/index.ts +5 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/constants.ts +2 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/hooks/useGetLongestLabelFromData.ts +56 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/index.ts +4 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/get-tooltip-template-content-column-count.ts +10 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/tests/get-tooltip-template-content-column-count.test.ts +48 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/TooltipWrapper.tsx +338 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.module.scss +6 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.tsx +139 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/constants.ts +18 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/index.ts +5 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/types.ts +62 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/eventPoint.ts +84 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredHorizontalBarPosition.ts +110 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredLineChartPosition.ts +115 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredVerticalBarPosition.ts +105 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getDonutChartTooltipPosition.ts +64 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getHorizontalBarChartTooltipPosition.ts +79 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getLineChartTooltipPosition.ts +68 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getVerticalBarChartTooltipPosition.ts +123 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/shouldBlockTooltipEvents.ts +6 -0
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities.ts +162 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/TrendIndicator.tsx +72 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowDown.tsx +12 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowUp.tsx +12 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/index.ts +2 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.scss +7 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.tsx +27 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/index.ts +2 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/constants.ts +12 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/index.ts +6 -0
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/utilities/estimateTrendIndicatorWidth.ts +9 -0
- package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/sortBarChartData.ts +20 -0
- package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/VerticalGridLines.tsx +32 -0
- package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/components/index.ts +6 -0
- package/src/shared/charts/components/GPolarisViz/constants.ts +72 -0
- package/src/shared/charts/components/GPolarisViz/data/character-width-offsets.json +65 -0
- package/src/shared/charts/components/GPolarisViz/data/character-widths.json +1 -0
- package/src/shared/charts/components/GPolarisViz/hooks/index.ts +5 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useBarSpringConfig.ts +21 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useBrowserCheck.ts +13 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useCallbackRef.tsx +39 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useDataForHorizontalChart.ts +69 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useDebouncedCallback.ts +197 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useFormattedLabels.ts +31 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useFunnelBarScaling.ts +53 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalBarSizes.ts +70 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalStackedValues.ts +34 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalTicksAndScale.ts +67 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalXScale.ts +48 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useIndexForLabels.ts +16 -0
- package/src/shared/charts/components/GPolarisViz/hooks/usePrefersReducedMotion.ts +6 -0
- package/src/shared/charts/components/GPolarisViz/hooks/usePrintResizing.ts +94 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useReducedLabelIndexes.ts +21 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useResizeObserver.ts +39 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useRootContainer.ts +20 -0
- package/src/shared/charts/components/GPolarisViz/hooks/useWatchColorVisionEvents.tsx +35 -0
- package/src/shared/charts/components/GPolarisViz/index.ts +10 -0
- package/src/shared/charts/components/GPolarisViz/shared/Bar/Bar.tsx +89 -0
- package/src/shared/charts/components/GPolarisViz/shared/Bar/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnector.tsx +46 -0
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnectorGradient.tsx +21 -0
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/constants.ts +11 -0
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/index.ts +3 -0
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/FunnelChartSegment.tsx +100 -0
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/AnimatedSegment.tsx +50 -0
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/InteractiveOverlay.tsx +34 -0
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/ScaledSegment.tsx +218 -0
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/constants.ts +4 -0
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/index.ts +2 -0
- package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/SeriesIcon.tsx +22 -0
- package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/ZeroValueLine.tsx +45 -0
- package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/index.ts +1 -0
- package/src/shared/charts/components/GPolarisViz/shared/index.ts +3 -0
- package/src/shared/charts/components/GPolarisViz/styles/_common.scss +15 -0
- package/src/shared/charts/components/GPolarisViz/styles/shared/_accessibility.scss +41 -0
- package/src/shared/charts/components/GPolarisViz/styles/shared/_chart-container.scss +8 -0
- package/src/shared/charts/components/GPolarisViz/styles/shared/_variables.scss +322 -0
- package/src/shared/charts/components/GPolarisViz/types.ts +261 -0
- package/src/shared/charts/components/GPolarisViz/utilities/base.ts +13 -0
- package/src/shared/charts/components/GPolarisViz/utilities/classnames.ts +3 -0
- package/src/shared/charts/components/GPolarisViz/utilities/createCssConicGradient.ts +12 -0
- package/src/shared/charts/components/GPolarisViz/utilities/createCssGradient.ts +7 -0
- package/src/shared/charts/components/GPolarisViz/utilities/estimateStringWidthWithOffset.ts +15 -0
- package/src/shared/charts/components/GPolarisViz/utilities/getAxisOptions.ts +26 -0
- package/src/shared/charts/components/GPolarisViz/utilities/getCSSBackgroundFromColor.ts +8 -0
- package/src/shared/charts/components/GPolarisViz/utilities/getChartId.ts +3 -0
- package/src/shared/charts/components/GPolarisViz/utilities/getFontSize.ts +7 -0
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedMinMax.ts +43 -0
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedValues.ts +35 -0
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedValuesFromDataSeries.tsx +30 -0
- package/src/shared/charts/components/GPolarisViz/utilities/getTrendIndicatorData.ts +22 -0
- package/src/shared/charts/components/GPolarisViz/utilities/hasHiddenComparisonSeries.ts +26 -0
- package/src/shared/charts/components/GPolarisViz/utilities/index.ts +6 -0
- package/src/shared/charts/components/GSimpleBarChart.tsx +32 -0
- package/src/shared/charts/components/index.ts +7 -0
- package/src/shared/charts/constants/chart.ts +14 -0
- package/src/shared/charts/constants/index.ts +1 -0
- package/src/shared/charts/contexts/GChartProvider.tsx +48 -0
- package/src/shared/charts/contexts/index.ts +1 -0
- package/src/shared/charts/index.ts +4 -0
- package/src/shared/charts/types/chart.ts +36 -0
- package/src/shared/charts/types/index.ts +1 -0
- package/src/shared/components/GActivatorPopover/GActivatorPopover.tsx +107 -0
- package/src/shared/components/GActivatorPopover/index.ts +1 -0
- package/src/shared/components/GBlockCenter/GBlockCenter.scss +19 -0
- package/src/shared/components/GBlockCenter/GBlockCenter.tsx +72 -0
- package/src/shared/components/GBlockCenter/index.ts +1 -0
- package/src/shared/components/GBox/GBox.scss +25 -0
- package/src/shared/components/GBox/GBox.tsx +15 -0
- package/src/shared/components/GBox/index.ts +1 -0
- package/src/shared/components/GBoxCard/GBoxCard.tsx +27 -0
- package/src/shared/components/GBoxCard/index.ts +1 -0
- package/src/shared/components/GButton/GButton.scss +41 -0
- package/src/shared/components/GButton/GButton.tsx +73 -0
- package/src/shared/components/GButton/index.ts +1 -0
- package/src/shared/components/GCheckbox/GCheckbox.tsx +176 -0
- package/src/shared/components/GCheckbox/index.ts +1 -0
- package/src/shared/components/GChoice/ChoiceHelpText.tsx +25 -0
- package/src/shared/components/GChoice/GChoice.scss +14 -0
- package/src/shared/components/GChoice/GChoice.tsx +165 -0
- package/src/shared/components/GChoice/index.ts +2 -0
- package/src/shared/components/GClickable/GClickable.tsx +43 -0
- package/src/shared/components/GClickable/index.ts +1 -0
- package/src/shared/components/GDiv/GDiv.tsx +27 -0
- package/src/shared/components/GDiv/index.ts +1 -0
- package/src/shared/components/GDotInline/GDotInline.tsx +20 -0
- package/src/shared/components/GDotInline/index.ts +1 -0
- package/src/shared/components/GFeatureLocked/GFeatureLocked.tsx +85 -0
- 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 +33 -0
- package/src/shared/components/GFeatureLocked/index.ts +2 -0
- package/src/shared/components/GFeatureLocked/types.ts +16 -0
- package/src/shared/components/GI18NText/GI18NText.tsx +37 -0
- package/src/shared/components/GI18NText/index.ts +2 -0
- package/src/shared/components/GI18NText/types.ts +7 -0
- package/src/shared/components/GInlineCenter/GInlineCenter.scss +17 -0
- package/src/shared/components/GInlineCenter/GInlineCenter.tsx +39 -0
- package/src/shared/components/GInlineCenter/index.ts +1 -0
- package/src/shared/components/GMockDataTooltip/GMockDataTooltip.tsx +30 -0
- package/src/shared/components/GMockDataTooltip/index.ts +1 -0
- package/src/shared/components/GModal/GModal.tsx +49 -0
- package/src/shared/components/GModal/index.ts +1 -0
- package/src/shared/components/GOptionList/GOptionList.tsx +63 -0
- package/src/shared/components/GOptionList/index.ts +1 -0
- package/src/shared/components/GPagination/GPagination.tsx +44 -0
- package/src/shared/components/GPagination/hooks/useGPagination.ts +42 -0
- package/src/shared/components/GPagination/index.ts +2 -0
- package/src/shared/components/GSelector/GSelector.tsx +198 -0
- package/src/shared/components/GSelector/index.ts +1 -0
- package/src/shared/components/GSkeletonDisplayText/GSkeletonDisplayText.tsx +14 -0
- package/src/shared/components/GSkeletonDisplayText/index.ts +1 -0
- package/src/shared/components/GSpinner/GSpinner.tsx +16 -0
- package/src/shared/components/GSpinner/index.ts +1 -0
- package/src/shared/components/GTextLink/GTextLink.tsx +26 -0
- package/src/shared/components/GTextLink/index.ts +1 -0
- package/src/shared/components/GTextTooltip/GTextTooltip.tsx +18 -0
- package/src/shared/components/GTextTooltip/index.ts +1 -0
- package/src/shared/components/GTextTruncated/GTextTruncated.tsx +80 -0
- package/src/shared/components/GTextTruncated/index.ts +1 -0
- package/src/shared/components/GThumbnail/GThumbnail.scss +5 -0
- package/src/shared/components/GThumbnail/GThumbnail.tsx +69 -0
- package/src/shared/components/GThumbnail/index.ts +1 -0
- package/src/shared/components/GTooltip/GTooltip.tsx +34 -0
- package/src/shared/components/GTooltip/components/GTooltipCard.tsx +164 -0
- package/src/shared/components/GTooltip/index.ts +3 -0
- package/src/shared/components/GTooltipCard/GTooltipCard.tsx +161 -0
- package/src/shared/components/GTooltipCard/index.ts +7 -0
- package/src/shared/components/GVariantBadge/GVariant.tsx +55 -0
- package/src/shared/components/GVariantBadge/GVariantBadge.scss +10 -0
- package/src/shared/components/GVariantBadge/GVariantBadge.tsx +82 -0
- package/src/shared/components/GVariantBadge/index.ts +4 -0
- package/src/shared/components/GVariantBadge/types.ts +20 -0
- package/src/shared/components/GViewBySelector/GViewBySelector.tsx +114 -0
- package/src/shared/components/GViewBySelector/index.ts +1 -0
- package/src/shared/components/index.ts +26 -0
- package/src/shared/index.ts +1 -0
- package/src/shared/journey/common/JourneyContainer/components/JourneyContainer.tsx +140 -0
- package/src/shared/journey/common/JourneyContainer/components/JourneyTimeline.tsx +18 -0
- package/src/shared/journey/common/JourneyContainer/components/index.ts +2 -0
- package/src/shared/journey/common/JourneyContainer/index.ts +1 -0
- package/src/shared/journey/common/index.ts +1 -0
- package/src/shared/journey/index.ts +2 -0
- package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/AcceptedPostPurchaseOffer.tsx +24 -0
- package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/index.ts +1 -0
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/CheckoutCompleted.tsx +64 -0
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/index.ts +1 -0
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutItems.tsx +27 -0
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStarted.tsx +25 -0
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStartedDetail.tsx +79 -0
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/index.ts +2 -0
- package/src/shared/journey/ui/JourneyEvents/components/PageViewed/PageViewed.tsx +116 -0
- package/src/shared/journey/ui/JourneyEvents/components/PageViewed/index.ts +1 -0
- package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/ProductAddedToCart.tsx +24 -0
- package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/index.ts +1 -0
- package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/ProductQuantity.tsx +33 -0
- package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/index.ts +1 -0
- package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/ProductRemovedFromCart.tsx +24 -0
- package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/index.ts +1 -0
- package/src/shared/journey/ui/JourneyEvents/components/index.ts +6 -0
- package/src/shared/journey/ui/JourneyEvents/constants/event.ts +38 -0
- package/src/shared/journey/ui/JourneyEvents/constants/index.ts +1 -0
- package/src/shared/journey/ui/JourneyEvents/index.ts +2 -0
- package/src/shared/journey/ui/JourneyEvents/types.ts +2 -0
- package/src/shared/journey/ui/JourneyGroup/JourneyGroup.tsx +41 -0
- package/src/shared/journey/ui/JourneyGroup/index.ts +1 -0
- package/src/shared/journey/ui/JourneyItem/components/EventMarkerIcon.tsx +28 -0
- package/src/shared/journey/ui/JourneyItem/components/JourneyDetail.tsx +24 -0
- package/src/shared/journey/ui/JourneyItem/components/JourneyItem.tsx +27 -0
- package/src/shared/journey/ui/JourneyItem/components/JourneyTime.tsx +33 -0
- package/src/shared/journey/ui/JourneyItem/components/QuantityWrapper.tsx +17 -0
- package/src/shared/journey/ui/JourneyItem/components/index.ts +3 -0
- package/src/shared/journey/ui/JourneyItem/index.ts +2 -0
- package/src/shared/journey/ui/JourneyItem/types/events.ts +33 -0
- package/src/shared/journey/ui/JourneyItem/types/index.ts +1 -0
- package/src/shared/journey/ui/JourneyTitle/components/GemxIdBadge.tsx +38 -0
- package/src/shared/journey/ui/JourneyTitle/components/JourneyDateBadge.tsx +18 -0
- package/src/shared/journey/ui/JourneyTitle/components/JourneyIdBadge.tsx +65 -0
- package/src/shared/journey/ui/JourneyTitle/components/JourneyLoadMore.tsx +43 -0
- package/src/shared/journey/ui/JourneyTitle/components/JourneyTitle.tsx +42 -0
- package/src/shared/journey/ui/JourneyTitle/components/index.ts +2 -0
- package/src/shared/journey/ui/JourneyTitle/constants/idBadge.ts +1 -0
- package/src/shared/journey/ui/JourneyTitle/constants/index.ts +1 -0
- package/src/shared/journey/ui/JourneyTitle/index.ts +1 -0
- package/src/shared/journey/ui/index.ts +3 -0
- package/src/shared/journey/ui/type.ts +2 -0
- package/src/shared/reports/common/Visualization/constants/columns.ts +6 -0
- package/src/shared/reports/common/Visualization/constants/index.ts +2 -0
- package/src/shared/reports/common/Visualization/constants/version.ts +8 -0
- package/src/shared/reports/common/Visualization/index.ts +2 -0
- package/src/shared/reports/common/Visualization/types/chart.ts +5 -0
- package/src/shared/reports/common/Visualization/types/index.ts +3 -0
- package/src/shared/reports/common/Visualization/types/report-metric.ts +21 -0
- package/src/shared/reports/common/Visualization/types/report.ts +42 -0
- package/src/shared/reports/common/Visualization/utils/index.ts +2 -0
- package/src/shared/reports/common/Visualization/utils/version.ts +9 -0
- package/src/shared/reports/common/Visualization/utils/visualization.ts +58 -0
- package/src/shared/reports/common/index.ts +1 -0
- package/src/shared/reports/ui/ReportTable/ReportTable.tsx +194 -0
- package/src/shared/reports/ui/ReportTable/ReportTableSkeleton.tsx +73 -0
- package/src/shared/reports/ui/ReportTable/assets/styles/ReportTable.scss +288 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.tsx +102 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCellVersion.tsx +11 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/index.ts +1 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/Cell.tsx +93 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CellRenderers.tsx +72 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/DateCell.tsx +9 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/DefaultCell.tsx +32 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.tsx +18 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.tsx +79 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/ItemsCell.tsx +56 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/index.ts +1 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/NoneCell.tsx +11 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/LoadingData.tsx +10 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/NoData.tsx +13 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCell.tsx +78 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellBase.tsx +55 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellContainer.tsx +43 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderItem.tsx +79 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/index.ts +2 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.tsx +70 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/PreviousCell.tsx +17 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/TotalCell.tsx +14 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/VersionCell.tsx +31 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/WrapperCell.tsx +31 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/index.ts +1 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/type.ts +18 -0
- package/src/shared/reports/ui/ReportTable/components/Body/Row.tsx +85 -0
- package/src/shared/reports/ui/ReportTable/components/Body/index.ts +2 -0
- package/src/shared/reports/ui/ReportTable/components/Footer/Pagination.tsx +76 -0
- package/src/shared/reports/ui/ReportTable/components/Footer/ScrollBar.tsx +19 -0
- package/src/shared/reports/ui/ReportTable/components/Footer/WrapperFooter.tsx +39 -0
- package/src/shared/reports/ui/ReportTable/components/Footer/index.ts +1 -0
- package/src/shared/reports/ui/ReportTable/components/Header/Header.tsx +68 -0
- package/src/shared/reports/ui/ReportTable/components/Header/SortableHeader.tsx +49 -0
- package/src/shared/reports/ui/ReportTable/components/Header/SortableHeaderWithTooltip.tsx +60 -0
- package/src/shared/reports/ui/ReportTable/components/Header/SummaryCell.tsx +26 -0
- package/src/shared/reports/ui/ReportTable/components/Header/SummaryRow.tsx +69 -0
- package/src/shared/reports/ui/ReportTable/components/Header/WrapperHeader.tsx +54 -0
- package/src/shared/reports/ui/ReportTable/components/Header/index.ts +1 -0
- package/src/shared/reports/ui/ReportTable/components/index.ts +2 -0
- package/src/shared/reports/ui/ReportTable/constants/index.ts +2 -0
- package/src/shared/reports/ui/ReportTable/constants/order.ts +30 -0
- package/src/shared/reports/ui/ReportTable/constants/table.ts +17 -0
- package/src/shared/reports/ui/ReportTable/context/ReportTableActionsContext.tsx +28 -0
- package/src/shared/reports/ui/ReportTable/helpers/format.ts +29 -0
- package/src/shared/reports/ui/ReportTable/helpers/index.ts +2 -0
- package/src/shared/reports/ui/ReportTable/helpers/report.ts +7 -0
- package/src/shared/reports/ui/ReportTable/hooks/index.ts +3 -0
- package/src/shared/reports/ui/ReportTable/hooks/useReportTable.ts +172 -0
- package/src/shared/reports/ui/ReportTable/hooks/useReportTableCell.tsx +28 -0
- package/src/shared/reports/ui/ReportTable/hooks/useSyncedScroll.ts +81 -0
- package/src/shared/reports/ui/ReportTable/index.ts +4 -0
- package/src/shared/reports/ui/ReportTable/types/dimension.ts +8 -0
- package/src/shared/reports/ui/ReportTable/types/index.ts +43 -0
- package/src/shared/reports/ui/ReportTable/types/order.ts +15 -0
- package/src/shared/reports/ui/ReportTable/types/report-columns.ts +11 -0
- package/src/shared/reports/ui/ReportTable/utils/format.ts +100 -0
- package/src/shared/reports/ui/ReportTable/utils/index.ts +2 -0
- package/src/shared/reports/ui/ReportTable/utils/order.ts +8 -0
- package/src/shared/reports/ui/ReportTable/utils/table.ts +19 -0
- package/src/shared/reports/ui/ReportTable/utils/visualization.ts +56 -0
- package/src/shared/reports/ui/index.ts +0 -0
- package/src/stores/currencyRatesStore.ts +13 -0
- package/src/stores/index.ts +2 -0
- package/src/styles/index.scss +9 -0
- package/src/types/analytic-mode.ts +5 -0
- package/src/types/breakdown-items.ts +21 -0
- package/src/types/campaign.ts +13 -0
- package/src/types/chart.ts +42 -0
- package/src/types/currency.ts +329 -0
- package/src/types/index.ts +8 -0
- package/src/types/metric.ts +81 -0
- package/src/types/pricing.ts +38 -0
- package/src/types/report-columns.ts +1 -0
- package/src/types/template.ts +19 -0
- package/src/utils/analytics.ts +75 -0
- package/src/utils/array.ts +13 -0
- package/src/utils/cls.ts +18 -0
- package/src/utils/currency.ts +42 -0
- package/src/utils/date-time.ts +7 -0
- package/src/utils/dayjs.ts +52 -0
- package/src/utils/deep-copy.ts +4 -0
- package/src/utils/index.ts +12 -0
- package/src/utils/is-browser.ts +3 -0
- package/src/utils/number.ts +19 -0
- package/src/utils/percentage.ts +40 -0
- package/src/utils/sort.ts +87 -0
- package/src/utils/string.ts +20 -0
- package/src/utils/template-type.ts +30 -0
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { ReportTableActionsProvider } from './context/ReportTableActionsContext.mjs';
|
|
3
|
-
import './constants/order.mjs';
|
|
4
|
-
import { DEFAULT_METRIC_LAYOUT, DEFAULT_DIMENSION_LAYOUT } from './constants/table.mjs';
|
|
5
|
-
import { ReportTableSkeleton } from './ReportTableSkeleton.mjs';
|
|
6
|
-
import { useReportTable } from './hooks/useReportTable.mjs';
|
|
7
|
-
import { useSyncedScroll } from './hooks/useSyncedScroll.mjs';
|
|
8
|
-
import '../../../../providers/ConvertMoneyProvider.mjs';
|
|
9
|
-
import '../../../../providers/MetricChartProvider.mjs';
|
|
10
|
-
import '../../../../providers/TimezoneProvider.mjs';
|
|
11
2
|
import { cls } from '../../../../utils/cls.mjs';
|
|
12
3
|
import '../../../../utils/dayjs.mjs';
|
|
13
4
|
import '../../../../utils/analytics.mjs';
|
|
14
5
|
import '../../../../types/template.mjs';
|
|
15
|
-
import '
|
|
16
|
-
import '../../common/Visualization/types/chart.mjs';
|
|
17
|
-
import '../../common/Visualization/types/report-metric.mjs';
|
|
18
|
-
import './types/report-columns.mjs';
|
|
19
|
-
import './types/index.mjs';
|
|
20
|
-
import '../../../../core/gemxql/builder/filters/build-filter-conditions.mjs';
|
|
21
|
-
import '../../../../core/gemxql/builder/filters/build-extra-conditions.mjs';
|
|
6
|
+
import { useMemo } from 'react';
|
|
22
7
|
import '../../../../core/gemxql/constants/row-reader-mode.mjs';
|
|
23
8
|
import '../../../../core/gemxql/builder/configs/keywords.mjs';
|
|
9
|
+
import '../../../../core/gemxql/builder/filters/build-extra-conditions.mjs';
|
|
10
|
+
import '../../../../core/gemxql/builder/filters/build-filter-conditions.mjs';
|
|
24
11
|
import '../../../../core/gemxql/types/analytic-data.mjs';
|
|
25
12
|
import '../../../../core/gemxql/types/analytic-source.mjs';
|
|
26
13
|
import '../../../../core/gemxql/types/extra-condition.mjs';
|
|
@@ -33,9 +20,18 @@ import '../../../../core/gemxql/types/row-reader-mode.mjs';
|
|
|
33
20
|
import '../../../../core/gemxql/types/time-dimension.mjs';
|
|
34
21
|
import '../../../../core/gemxql/api/useCustomGemXQlQuery.mjs';
|
|
35
22
|
import '../../../../core/gemxql/api/useGemxQlNamedQuery.mjs';
|
|
23
|
+
import '../../../../providers/ConvertMoneyProvider.mjs';
|
|
36
24
|
import '../../../components/GPagination/GPagination.mjs';
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
25
|
+
import { useReportTable } from './hooks/useReportTable.mjs';
|
|
26
|
+
import { useSyncedScroll } from './hooks/useSyncedScroll.mjs';
|
|
27
|
+
import './types/index.mjs';
|
|
28
|
+
import './types/report-columns.mjs';
|
|
29
|
+
import '../../common/Visualization/types/report.mjs';
|
|
30
|
+
import '../../common/Visualization/types/chart.mjs';
|
|
31
|
+
import '../../common/Visualization/types/report-metric.mjs';
|
|
32
|
+
import '../../../../providers/MetricChartProvider.mjs';
|
|
33
|
+
import '../../../../providers/TimezoneProvider.mjs';
|
|
34
|
+
import './components/Body/Cell/CellRenderers.mjs';
|
|
39
35
|
import '@shopify/polaris';
|
|
40
36
|
import '@shopify/polaris-icons';
|
|
41
37
|
import '../../../components/GTooltip/components/GTooltipCard.mjs';
|
|
@@ -46,19 +42,19 @@ import '../../../components/GFeatureLocked/types.mjs';
|
|
|
46
42
|
import '../../../charts/components/GPolarisViz/hooks/useResizeObserver.mjs';
|
|
47
43
|
import '../../../../stores/currencyRatesStore.mjs';
|
|
48
44
|
import '@tanstack/react-query';
|
|
49
|
-
import './components/Body/Cell/CellRenderers.mjs';
|
|
50
45
|
import { Row } from './components/Body/Row.mjs';
|
|
51
46
|
import { WrapperHeader } from './components/Header/WrapperHeader.mjs';
|
|
47
|
+
import { WrapperFooter } from './components/Footer/WrapperFooter.mjs';
|
|
48
|
+
import './constants/order.mjs';
|
|
49
|
+
import { DEFAULT_METRIC_LAYOUT, DEFAULT_DIMENSION_LAYOUT } from './constants/table.mjs';
|
|
50
|
+
import { ReportTableActionsProvider } from './context/ReportTableActionsContext.mjs';
|
|
51
|
+
import { ReportTableSkeleton } from './ReportTableSkeleton.mjs';
|
|
52
52
|
|
|
53
53
|
const mockDimensions = ['session_device_type', 'month', 'session_country', 'session_device_os'];
|
|
54
54
|
const mockMetrics = ['online_store_visitors', 'sessions', 'bounces'];
|
|
55
55
|
const ReportTable = ({ dimensions = mockDimensions, metrics = mockMetrics, data, activeColumn, orderBy, options, paginationProps, itemCount, dimensionLayout, metricLayouts, orderCellProps, isHideCampaignContent = false, showViewAllButton, emptyStateComponent, isLoading, isMockData, onChangeOrderBy, onViewAllStoreOrders, onViewOrderJourney, onViewOrderDetails, skeletons, }) => {
|
|
56
56
|
const { summary = {}, hideBorderTop, hidePaginationRow } = options ?? {};
|
|
57
|
-
const { columns, rows } = useReportTable({
|
|
58
|
-
dimensions,
|
|
59
|
-
metrics,
|
|
60
|
-
tableData: data ?? { columns: [], rows: [] },
|
|
61
|
-
});
|
|
57
|
+
const { columns, rows } = useReportTable({ dimensions, metrics, tableData: data ?? { columns: [], rows: [] } });
|
|
62
58
|
const { headerRef, bodyRef, scrollbarContainerRef, leftShadowRef, rightShadowRef } = useSyncedScroll({ columns });
|
|
63
59
|
const tableDimensionLayout = dimensionLayout ?? DEFAULT_DIMENSION_LAYOUT;
|
|
64
60
|
const isEmpty = rows.length === 0;
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Box, SkeletonBodyText } from '@shopify/polaris';
|
|
3
2
|
import GEMX_LOGO from '../../../../assets/svg/gemx-skeleton.svg.js';
|
|
4
|
-
import '@shopify/polaris
|
|
5
|
-
import '
|
|
3
|
+
import { Box, SkeletonBodyText } from '@shopify/polaris';
|
|
4
|
+
import { getColumnLayoutStyles } from './utils/table.js';
|
|
5
|
+
import './types/index.js';
|
|
6
6
|
import { cls } from '../../../../utils/cls.js';
|
|
7
7
|
import '../../../../utils/dayjs.js';
|
|
8
8
|
import '../../../../utils/analytics.js';
|
|
9
9
|
import '../../../../types/template.js';
|
|
10
|
-
import '../../../components/GTooltip/components/GTooltipCard.js';
|
|
11
|
-
import '../../../components/GDiv/GDiv.js';
|
|
12
|
-
import 'react-i18next';
|
|
13
|
-
import '../../../components/GFeatureLocked/constants.js';
|
|
14
|
-
import '../../../components/GFeatureLocked/types.js';
|
|
15
|
-
import '../../../components/GPagination/GPagination.js';
|
|
16
|
-
import { GInlineCenter } from '../../../components/GInlineCenter/GInlineCenter.js';
|
|
17
|
-
import '../../../charts/components/GPolarisViz/hooks/useResizeObserver.js';
|
|
18
|
-
import '../../../../stores/currencyRatesStore.js';
|
|
19
|
-
import '@tanstack/react-query';
|
|
20
10
|
import '../../../../core/gemxql/constants/row-reader-mode.js';
|
|
11
|
+
import '../../../../core/gemxql/builder/configs/keywords.js';
|
|
12
|
+
import '../../../../core/gemxql/builder/filters/build-extra-conditions.js';
|
|
13
|
+
import '../../../../core/gemxql/builder/filters/build-filter-conditions.js';
|
|
21
14
|
import '../../../../core/gemxql/types/analytic-data.js';
|
|
22
15
|
import '../../../../core/gemxql/types/analytic-source.js';
|
|
23
16
|
import '../../../../core/gemxql/types/extra-condition.js';
|
|
@@ -28,18 +21,25 @@ import '../../../../core/gemxql/types/order-by.js';
|
|
|
28
21
|
import '../../../../core/gemxql/types/page-fields.js';
|
|
29
22
|
import '../../../../core/gemxql/types/row-reader-mode.js';
|
|
30
23
|
import '../../../../core/gemxql/types/time-dimension.js';
|
|
24
|
+
import '../../../../core/gemxql/api/useCustomGemXQlQuery.js';
|
|
25
|
+
import '../../../../core/gemxql/api/useGemxQlNamedQuery.js';
|
|
31
26
|
import '../../../../providers/ConvertMoneyProvider.js';
|
|
32
|
-
import
|
|
27
|
+
import '../../../components/GPagination/GPagination.js';
|
|
28
|
+
import 'react';
|
|
29
|
+
import './types/report-columns.js';
|
|
33
30
|
import '../../common/Visualization/types/report.js';
|
|
34
31
|
import '../../common/Visualization/types/chart.js';
|
|
35
32
|
import '../../common/Visualization/types/report-metric.js';
|
|
36
|
-
import '
|
|
37
|
-
import '
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
40
|
-
import '
|
|
41
|
-
import '
|
|
42
|
-
import '
|
|
33
|
+
import '@shopify/polaris-icons';
|
|
34
|
+
import '../../../components/GTooltip/components/GTooltipCard.js';
|
|
35
|
+
import '../../../components/GDiv/GDiv.js';
|
|
36
|
+
import 'react-i18next';
|
|
37
|
+
import '../../../components/GFeatureLocked/constants.js';
|
|
38
|
+
import '../../../components/GFeatureLocked/types.js';
|
|
39
|
+
import { GInlineCenter } from '../../../components/GInlineCenter/GInlineCenter.js';
|
|
40
|
+
import '../../../charts/components/GPolarisViz/hooks/useResizeObserver.js';
|
|
41
|
+
import '../../../../stores/currencyRatesStore.js';
|
|
42
|
+
import '@tanstack/react-query';
|
|
43
43
|
|
|
44
44
|
const COLOR_NORMAL = '#FFFFFF';
|
|
45
45
|
const COLOR_ACTIVE = '#F8F8F8';
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Box, SkeletonBodyText } from '@shopify/polaris';
|
|
3
2
|
import GEMX_LOGO from '../../../../assets/svg/gemx-skeleton.svg.mjs';
|
|
4
|
-
import '@shopify/polaris
|
|
5
|
-
import '
|
|
3
|
+
import { Box, SkeletonBodyText } from '@shopify/polaris';
|
|
4
|
+
import { getColumnLayoutStyles } from './utils/table.mjs';
|
|
5
|
+
import './types/index.mjs';
|
|
6
6
|
import { cls } from '../../../../utils/cls.mjs';
|
|
7
7
|
import '../../../../utils/dayjs.mjs';
|
|
8
8
|
import '../../../../utils/analytics.mjs';
|
|
9
9
|
import '../../../../types/template.mjs';
|
|
10
|
-
import '../../../components/GTooltip/components/GTooltipCard.mjs';
|
|
11
|
-
import '../../../components/GDiv/GDiv.mjs';
|
|
12
|
-
import 'react-i18next';
|
|
13
|
-
import '../../../components/GFeatureLocked/constants.mjs';
|
|
14
|
-
import '../../../components/GFeatureLocked/types.mjs';
|
|
15
|
-
import '../../../components/GPagination/GPagination.mjs';
|
|
16
|
-
import { GInlineCenter } from '../../../components/GInlineCenter/GInlineCenter.mjs';
|
|
17
|
-
import '../../../charts/components/GPolarisViz/hooks/useResizeObserver.mjs';
|
|
18
|
-
import '../../../../stores/currencyRatesStore.mjs';
|
|
19
|
-
import '@tanstack/react-query';
|
|
20
10
|
import '../../../../core/gemxql/constants/row-reader-mode.mjs';
|
|
11
|
+
import '../../../../core/gemxql/builder/configs/keywords.mjs';
|
|
12
|
+
import '../../../../core/gemxql/builder/filters/build-extra-conditions.mjs';
|
|
13
|
+
import '../../../../core/gemxql/builder/filters/build-filter-conditions.mjs';
|
|
21
14
|
import '../../../../core/gemxql/types/analytic-data.mjs';
|
|
22
15
|
import '../../../../core/gemxql/types/analytic-source.mjs';
|
|
23
16
|
import '../../../../core/gemxql/types/extra-condition.mjs';
|
|
@@ -28,18 +21,25 @@ import '../../../../core/gemxql/types/order-by.mjs';
|
|
|
28
21
|
import '../../../../core/gemxql/types/page-fields.mjs';
|
|
29
22
|
import '../../../../core/gemxql/types/row-reader-mode.mjs';
|
|
30
23
|
import '../../../../core/gemxql/types/time-dimension.mjs';
|
|
24
|
+
import '../../../../core/gemxql/api/useCustomGemXQlQuery.mjs';
|
|
25
|
+
import '../../../../core/gemxql/api/useGemxQlNamedQuery.mjs';
|
|
31
26
|
import '../../../../providers/ConvertMoneyProvider.mjs';
|
|
32
|
-
import
|
|
27
|
+
import '../../../components/GPagination/GPagination.mjs';
|
|
28
|
+
import 'react';
|
|
29
|
+
import './types/report-columns.mjs';
|
|
33
30
|
import '../../common/Visualization/types/report.mjs';
|
|
34
31
|
import '../../common/Visualization/types/chart.mjs';
|
|
35
32
|
import '../../common/Visualization/types/report-metric.mjs';
|
|
36
|
-
import '
|
|
37
|
-
import '
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
40
|
-
import '
|
|
41
|
-
import '
|
|
42
|
-
import '
|
|
33
|
+
import '@shopify/polaris-icons';
|
|
34
|
+
import '../../../components/GTooltip/components/GTooltipCard.mjs';
|
|
35
|
+
import '../../../components/GDiv/GDiv.mjs';
|
|
36
|
+
import 'react-i18next';
|
|
37
|
+
import '../../../components/GFeatureLocked/constants.mjs';
|
|
38
|
+
import '../../../components/GFeatureLocked/types.mjs';
|
|
39
|
+
import { GInlineCenter } from '../../../components/GInlineCenter/GInlineCenter.mjs';
|
|
40
|
+
import '../../../charts/components/GPolarisViz/hooks/useResizeObserver.mjs';
|
|
41
|
+
import '../../../../stores/currencyRatesStore.mjs';
|
|
42
|
+
import '@tanstack/react-query';
|
|
43
43
|
|
|
44
44
|
const COLOR_NORMAL = '#FFFFFF';
|
|
45
45
|
const COLOR_ACTIVE = '#F8F8F8';
|
package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useReportTableActionsContext } from '../../../../context/ReportTableActionsContext.js';
|
|
3
2
|
import { Popover, Box, Icon, Text, Scrollable, InlineStack, Button } from '@shopify/polaris';
|
|
4
3
|
import { CaretDownIcon, ChartLineIcon } from '@shopify/polaris-icons';
|
|
5
|
-
import { CampaignsCellVersion } from './CampaignsCellVersion.js';
|
|
6
4
|
import { useState, useCallback } from 'react';
|
|
7
5
|
import { cls } from '../../../../../../../../utils/cls.js';
|
|
8
6
|
import '../../../../../../../../utils/dayjs.js';
|
|
@@ -17,6 +15,7 @@ import '../../../../../../../components/GPagination/GPagination.js';
|
|
|
17
15
|
import { GTextTruncated } from '../../../../../../../components/GTextTruncated/GTextTruncated.js';
|
|
18
16
|
import '../../../../../../../../stores/currencyRatesStore.js';
|
|
19
17
|
import '@tanstack/react-query';
|
|
18
|
+
import '../../../../../../../../providers/ConvertMoneyProvider.js';
|
|
20
19
|
import '../../../../../../../../core/gemxql/constants/row-reader-mode.js';
|
|
21
20
|
import '../../../../../../../../core/gemxql/types/analytic-data.js';
|
|
22
21
|
import '../../../../../../../../core/gemxql/types/analytic-source.js';
|
|
@@ -28,10 +27,11 @@ import '../../../../../../../../core/gemxql/types/order-by.js';
|
|
|
28
27
|
import '../../../../../../../../core/gemxql/types/page-fields.js';
|
|
29
28
|
import '../../../../../../../../core/gemxql/types/row-reader-mode.js';
|
|
30
29
|
import '../../../../../../../../core/gemxql/types/time-dimension.js';
|
|
31
|
-
import '
|
|
30
|
+
import { useReportTableActionsContext } from '../../../../context/ReportTableActionsContext.js';
|
|
31
|
+
import { CampaignsCellVersion } from './CampaignsCellVersion.js';
|
|
32
32
|
|
|
33
33
|
const CampaignsCell = ({ value, campaignsCellProps, }) => {
|
|
34
|
-
const { orderId, isHideCampaignContent } = campaignsCellProps ?? {};
|
|
34
|
+
const { orderId, gxId, isHideCampaignContent } = campaignsCellProps ?? {};
|
|
35
35
|
const { t } = useTranslation();
|
|
36
36
|
const { onViewOrderJourney } = useReportTableActionsContext();
|
|
37
37
|
const [active, setActive] = useState(false);
|
|
@@ -43,10 +43,9 @@ const CampaignsCell = ({ value, campaignsCellProps, }) => {
|
|
|
43
43
|
return (jsx(Popover, { active: active, activator: jsxs("div", { className: cls('GReportTable__CellContent--clickable flex h-full w-full items-center px-2', {
|
|
44
44
|
'cursor-pointer': isShowPopupCampaigns,
|
|
45
45
|
'hover:!bg-[#f7f7f7]': !isShowPopupCampaigns,
|
|
46
|
-
}), onClick: isShowPopupCampaigns ? toggleActive : undefined, children: [jsx(CampaignsCellVersion, { version: campaignLeadingToOrder.version }), !isHideCampaignContent && (jsxs(Fragment, { children: [jsx(Box, { minWidth: "0", paddingInlineStart: campaignLeadingToOrder.version ? '200' : '0', children: jsx(GTextTruncated, { as: "span", variant: "bodyMd", tone: "subdued", useWrapper: true, tooltip: { hoverDelay: 300 }, children: campaignLeadingToOrder.campaign_group_name ||
|
|
47
|
-
campaignLeadingToOrder.campaign_name }) }), isShowPopupCampaigns && (jsx("span", { className: "opacity-0 group-hover/GReportTable__Row:opacity-100", children: jsx(Icon, { source: CaretDownIcon }) }))] }))] }), onClose: toggleActive, children: jsxs(Box, { padding: "0", width: "340px", overflowX: "hidden", children: [jsx(Box, { padding: "300", children: jsx(Text, { as: "p", variant: "bodyMd", fontWeight: "semibold", children: t('Experiments visited before order') }) }), jsx(Box, { borderBlockEndWidth: "025", borderBlockStartWidth: "025", borderColor: "border-secondary", children: jsx(Scrollable, { vertical: true, scrollbarWidth: "thin", horizontal: false, className: 'max-h-[216px]', children: jsx(Box, { paddingBlock: "200", children: value.map((campaign, index) => {
|
|
46
|
+
}), onClick: isShowPopupCampaigns ? toggleActive : undefined, children: [jsx(CampaignsCellVersion, { version: campaignLeadingToOrder.version }), !isHideCampaignContent && (jsxs(Fragment, { children: [jsx(Box, { minWidth: "0", paddingInlineStart: campaignLeadingToOrder.version ? '200' : '0', children: jsx(GTextTruncated, { as: "span", variant: "bodyMd", tone: "subdued", useWrapper: true, tooltip: { hoverDelay: 300 }, children: campaignLeadingToOrder.campaign_group_name || campaignLeadingToOrder.campaign_name }) }), isShowPopupCampaigns && (jsx("span", { className: "opacity-0 group-hover/GReportTable__Row:opacity-100", children: jsx(Icon, { source: CaretDownIcon }) }))] }))] }), onClose: toggleActive, children: jsxs(Box, { padding: "0", width: "340px", overflowX: "hidden", children: [jsx(Box, { padding: "300", children: jsx(Text, { as: "p", variant: "bodyMd", fontWeight: "semibold", children: t('Experiments visited before order') }) }), jsx(Box, { borderBlockEndWidth: "025", borderBlockStartWidth: "025", borderColor: "border-secondary", children: jsx(Scrollable, { vertical: true, scrollbarWidth: "thin", horizontal: false, className: 'max-h-[216px]', children: jsx(Box, { paddingBlock: "200", children: value.map((campaign, index) => {
|
|
48
47
|
return (jsx(Box, { paddingInline: "300", paddingBlock: "200", children: jsx(Box, { paddingBlock: "050", children: jsxs(InlineStack, { gap: "200", wrap: false, children: [jsx(CampaignsCellVersion, { version: campaign.version }), jsx(Box, { minWidth: "0", children: jsx(GTextTruncated, { as: "span", variant: "bodyMd", tone: "subdued", useWrapper: true, children: campaign.campaign_group_name || campaign.campaign_name }) })] }) }) }, index));
|
|
49
|
-
}) }) }) }), jsx(Box, { padding: "300", children: jsx(Button, { icon: ChartLineIcon, fullWidth: true, onClick: () => onViewOrderJourney?.(orderId ?? ''), children: t('View order journey') }) })] }) }));
|
|
48
|
+
}) }) }) }), jsx(Box, { padding: "300", children: jsx(Button, { icon: ChartLineIcon, fullWidth: true, onClick: () => onViewOrderJourney?.(orderId ?? '', gxId), children: t('View order journey') }) })] }) }));
|
|
50
49
|
};
|
|
51
50
|
|
|
52
51
|
export { CampaignsCell };
|
package/dist/esm/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.mjs
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useReportTableActionsContext } from '../../../../context/ReportTableActionsContext.mjs';
|
|
3
2
|
import { Popover, Box, Icon, Text, Scrollable, InlineStack, Button } from '@shopify/polaris';
|
|
4
3
|
import { CaretDownIcon, ChartLineIcon } from '@shopify/polaris-icons';
|
|
5
|
-
import { CampaignsCellVersion } from './CampaignsCellVersion.mjs';
|
|
6
4
|
import { useState, useCallback } from 'react';
|
|
7
5
|
import { cls } from '../../../../../../../../utils/cls.mjs';
|
|
8
6
|
import '../../../../../../../../utils/dayjs.mjs';
|
|
@@ -17,6 +15,7 @@ import '../../../../../../../components/GPagination/GPagination.mjs';
|
|
|
17
15
|
import { GTextTruncated } from '../../../../../../../components/GTextTruncated/GTextTruncated.mjs';
|
|
18
16
|
import '../../../../../../../../stores/currencyRatesStore.mjs';
|
|
19
17
|
import '@tanstack/react-query';
|
|
18
|
+
import '../../../../../../../../providers/ConvertMoneyProvider.mjs';
|
|
20
19
|
import '../../../../../../../../core/gemxql/constants/row-reader-mode.mjs';
|
|
21
20
|
import '../../../../../../../../core/gemxql/types/analytic-data.mjs';
|
|
22
21
|
import '../../../../../../../../core/gemxql/types/analytic-source.mjs';
|
|
@@ -28,10 +27,11 @@ import '../../../../../../../../core/gemxql/types/order-by.mjs';
|
|
|
28
27
|
import '../../../../../../../../core/gemxql/types/page-fields.mjs';
|
|
29
28
|
import '../../../../../../../../core/gemxql/types/row-reader-mode.mjs';
|
|
30
29
|
import '../../../../../../../../core/gemxql/types/time-dimension.mjs';
|
|
31
|
-
import '
|
|
30
|
+
import { useReportTableActionsContext } from '../../../../context/ReportTableActionsContext.mjs';
|
|
31
|
+
import { CampaignsCellVersion } from './CampaignsCellVersion.mjs';
|
|
32
32
|
|
|
33
33
|
const CampaignsCell = ({ value, campaignsCellProps, }) => {
|
|
34
|
-
const { orderId, isHideCampaignContent } = campaignsCellProps ?? {};
|
|
34
|
+
const { orderId, gxId, isHideCampaignContent } = campaignsCellProps ?? {};
|
|
35
35
|
const { t } = useTranslation();
|
|
36
36
|
const { onViewOrderJourney } = useReportTableActionsContext();
|
|
37
37
|
const [active, setActive] = useState(false);
|
|
@@ -43,10 +43,9 @@ const CampaignsCell = ({ value, campaignsCellProps, }) => {
|
|
|
43
43
|
return (jsx(Popover, { active: active, activator: jsxs("div", { className: cls('GReportTable__CellContent--clickable flex h-full w-full items-center px-2', {
|
|
44
44
|
'cursor-pointer': isShowPopupCampaigns,
|
|
45
45
|
'hover:!bg-[#f7f7f7]': !isShowPopupCampaigns,
|
|
46
|
-
}), onClick: isShowPopupCampaigns ? toggleActive : undefined, children: [jsx(CampaignsCellVersion, { version: campaignLeadingToOrder.version }), !isHideCampaignContent && (jsxs(Fragment, { children: [jsx(Box, { minWidth: "0", paddingInlineStart: campaignLeadingToOrder.version ? '200' : '0', children: jsx(GTextTruncated, { as: "span", variant: "bodyMd", tone: "subdued", useWrapper: true, tooltip: { hoverDelay: 300 }, children: campaignLeadingToOrder.campaign_group_name ||
|
|
47
|
-
campaignLeadingToOrder.campaign_name }) }), isShowPopupCampaigns && (jsx("span", { className: "opacity-0 group-hover/GReportTable__Row:opacity-100", children: jsx(Icon, { source: CaretDownIcon }) }))] }))] }), onClose: toggleActive, children: jsxs(Box, { padding: "0", width: "340px", overflowX: "hidden", children: [jsx(Box, { padding: "300", children: jsx(Text, { as: "p", variant: "bodyMd", fontWeight: "semibold", children: t('Experiments visited before order') }) }), jsx(Box, { borderBlockEndWidth: "025", borderBlockStartWidth: "025", borderColor: "border-secondary", children: jsx(Scrollable, { vertical: true, scrollbarWidth: "thin", horizontal: false, className: 'max-h-[216px]', children: jsx(Box, { paddingBlock: "200", children: value.map((campaign, index) => {
|
|
46
|
+
}), onClick: isShowPopupCampaigns ? toggleActive : undefined, children: [jsx(CampaignsCellVersion, { version: campaignLeadingToOrder.version }), !isHideCampaignContent && (jsxs(Fragment, { children: [jsx(Box, { minWidth: "0", paddingInlineStart: campaignLeadingToOrder.version ? '200' : '0', children: jsx(GTextTruncated, { as: "span", variant: "bodyMd", tone: "subdued", useWrapper: true, tooltip: { hoverDelay: 300 }, children: campaignLeadingToOrder.campaign_group_name || campaignLeadingToOrder.campaign_name }) }), isShowPopupCampaigns && (jsx("span", { className: "opacity-0 group-hover/GReportTable__Row:opacity-100", children: jsx(Icon, { source: CaretDownIcon }) }))] }))] }), onClose: toggleActive, children: jsxs(Box, { padding: "0", width: "340px", overflowX: "hidden", children: [jsx(Box, { padding: "300", children: jsx(Text, { as: "p", variant: "bodyMd", fontWeight: "semibold", children: t('Experiments visited before order') }) }), jsx(Box, { borderBlockEndWidth: "025", borderBlockStartWidth: "025", borderColor: "border-secondary", children: jsx(Scrollable, { vertical: true, scrollbarWidth: "thin", horizontal: false, className: 'max-h-[216px]', children: jsx(Box, { paddingBlock: "200", children: value.map((campaign, index) => {
|
|
48
47
|
return (jsx(Box, { paddingInline: "300", paddingBlock: "200", children: jsx(Box, { paddingBlock: "050", children: jsxs(InlineStack, { gap: "200", wrap: false, children: [jsx(CampaignsCellVersion, { version: campaign.version }), jsx(Box, { minWidth: "0", children: jsx(GTextTruncated, { as: "span", variant: "bodyMd", tone: "subdued", useWrapper: true, children: campaign.campaign_group_name || campaign.campaign_name }) })] }) }) }, index));
|
|
49
|
-
}) }) }) }), jsx(Box, { padding: "300", children: jsx(Button, { icon: ChartLineIcon, fullWidth: true, onClick: () => onViewOrderJourney?.(orderId ?? ''), children: t('View order journey') }) })] }) }));
|
|
48
|
+
}) }) }) }), jsx(Box, { padding: "300", children: jsx(Button, { icon: ChartLineIcon, fullWidth: true, onClick: () => onViewOrderJourney?.(orderId ?? '', gxId), children: t('View order journey') }) })] }) }));
|
|
50
49
|
};
|
|
51
50
|
|
|
52
51
|
export { CampaignsCell };
|
|
@@ -10,7 +10,7 @@ import '../../../../../../../components/GVariantBadge/types.js';
|
|
|
10
10
|
const CampaignsCellVersion = ({ version }) => {
|
|
11
11
|
if (!version)
|
|
12
12
|
return null;
|
|
13
|
-
return
|
|
13
|
+
return jsx(GVariantBadge, { variant: version, tone: version === 'A' ? 'active' : 'inactive', size: "xs" });
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export { CampaignsCellVersion };
|
|
@@ -10,7 +10,7 @@ import '../../../../../../../components/GVariantBadge/types.mjs';
|
|
|
10
10
|
const CampaignsCellVersion = ({ version }) => {
|
|
11
11
|
if (!version)
|
|
12
12
|
return null;
|
|
13
|
-
return
|
|
13
|
+
return jsx(GVariantBadge, { variant: version, tone: version === 'A' ? 'active' : 'inactive', size: "xs" });
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export { CampaignsCellVersion };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
|
|
2
1
|
import type { ReportValueType } from '../../../../../common/Visualization/types';
|
|
2
|
+
import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
|
|
3
3
|
interface ColumnProps {
|
|
4
4
|
value: ReportValueType;
|
|
5
|
+
gxId?: string;
|
|
5
6
|
previousValue?: ReportValueType;
|
|
6
7
|
isMergedWithPrev: boolean;
|
|
7
8
|
columnLayout: ReportColumnLayout;
|
|
@@ -14,5 +15,5 @@ interface ColumnProps {
|
|
|
14
15
|
isTotalRow: ReportValueType;
|
|
15
16
|
isMockData?: boolean;
|
|
16
17
|
}
|
|
17
|
-
export declare const Cell: ({ value, isMergedWithPrev, columnLayout, name, isDimensionCol, formatter, hasTooltipCard, previousValue, orderCellProps, campaignsCellProps, isTotalRow, isMockData, }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const Cell: ({ value, gxId, isMergedWithPrev, columnLayout, name, isDimensionCol, formatter, hasTooltipCard, previousValue, orderCellProps, campaignsCellProps, isTotalRow, isMockData, }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { getColumnLayoutStyles } from '../../../utils/table.js';
|
|
3
|
-
import { cls } from '../../../../../../../utils/cls.js';
|
|
4
|
-
import '../../../../../../../utils/dayjs.js';
|
|
5
|
-
import '../../../../../../../utils/analytics.js';
|
|
6
|
-
import '../../../../../../../types/template.js';
|
|
7
|
-
import '../../../../../common/Visualization/types/report.js';
|
|
8
|
-
import '../../../../../common/Visualization/types/chart.js';
|
|
9
|
-
import '../../../../../common/Visualization/types/report-metric.js';
|
|
10
|
-
import '../../../types/report-columns.js';
|
|
11
|
-
import '../../../types/index.js';
|
|
12
|
-
import '../../../../../../../core/gemxql/builder/filters/build-filter-conditions.js';
|
|
13
|
-
import '../../../../../../../core/gemxql/builder/filters/build-extra-conditions.js';
|
|
14
2
|
import { NONE_VALUE } from '../../../../../../../core/gemxql/constants/analytic-data.js';
|
|
15
3
|
import '../../../../../../../core/gemxql/constants/row-reader-mode.js';
|
|
16
4
|
import '../../../../../../../core/gemxql/builder/configs/keywords.js';
|
|
5
|
+
import '../../../../../../../core/gemxql/builder/filters/build-extra-conditions.js';
|
|
6
|
+
import '../../../../../../../core/gemxql/builder/filters/build-filter-conditions.js';
|
|
17
7
|
import '../../../../../../../core/gemxql/types/analytic-data.js';
|
|
18
8
|
import '../../../../../../../core/gemxql/types/analytic-source.js';
|
|
19
9
|
import '../../../../../../../core/gemxql/types/extra-condition.js';
|
|
@@ -24,6 +14,10 @@ import '../../../../../../../core/gemxql/types/order-by.js';
|
|
|
24
14
|
import '../../../../../../../core/gemxql/types/page-fields.js';
|
|
25
15
|
import '../../../../../../../core/gemxql/types/row-reader-mode.js';
|
|
26
16
|
import '../../../../../../../core/gemxql/types/time-dimension.js';
|
|
17
|
+
import { cls } from '../../../../../../../utils/cls.js';
|
|
18
|
+
import '../../../../../../../utils/dayjs.js';
|
|
19
|
+
import '../../../../../../../utils/analytics.js';
|
|
20
|
+
import '../../../../../../../types/template.js';
|
|
27
21
|
import '../../../../../../../core/gemxql/api/useCustomGemXQlQuery.js';
|
|
28
22
|
import '../../../../../../../core/gemxql/api/useGemxQlNamedQuery.js';
|
|
29
23
|
import '../../../../../../../providers/ConvertMoneyProvider.js';
|
|
@@ -32,18 +26,22 @@ import 'react';
|
|
|
32
26
|
import '../../../../../common/Visualization/constants/version.js';
|
|
33
27
|
import '../../../constants/order.js';
|
|
34
28
|
import { useReportData } from '../../../hooks/useReportTableCell.js';
|
|
35
|
-
import {
|
|
29
|
+
import { getColumnLayoutStyles } from '../../../utils/table.js';
|
|
30
|
+
import '../../../types/index.js';
|
|
31
|
+
import '../../../types/report-columns.js';
|
|
32
|
+
import '../../../../../common/Visualization/types/report.js';
|
|
33
|
+
import '../../../../../common/Visualization/types/chart.js';
|
|
34
|
+
import '../../../../../common/Visualization/types/report-metric.js';
|
|
36
35
|
import { cellMap } from './CellRenderers.js';
|
|
37
|
-
import {
|
|
36
|
+
import { DefaultCell } from './DefaultCell.js';
|
|
38
37
|
import { NoneCell } from './NoneCell.js';
|
|
38
|
+
import { TotalCell } from './TotalCell.js';
|
|
39
39
|
|
|
40
|
-
const Cell = ({ value, isMergedWithPrev, columnLayout, name, isDimensionCol, formatter, hasTooltipCard, previousValue, orderCellProps, campaignsCellProps, isTotalRow, isMockData, }) => {
|
|
40
|
+
const Cell = ({ value, gxId, isMergedWithPrev, columnLayout, name, isDimensionCol, formatter, hasTooltipCard, previousValue, orderCellProps, campaignsCellProps, isTotalRow, isMockData, }) => {
|
|
41
41
|
const columnLayoutStyles = getColumnLayoutStyles(columnLayout, hasTooltipCard);
|
|
42
42
|
const { formatData } = useReportData();
|
|
43
43
|
const formattedValue = formatData({ value, formatter, name });
|
|
44
|
-
const formattedPreviousValue = typeof previousValue === 'undefined'
|
|
45
|
-
? previousValue
|
|
46
|
-
: formatData({ value: previousValue, formatter, name });
|
|
44
|
+
const formattedPreviousValue = typeof previousValue === 'undefined' ? previousValue : formatData({ value: previousValue, formatter, name });
|
|
47
45
|
const cellStyles = {
|
|
48
46
|
borderTop: isMergedWithPrev ? '0' : undefined,
|
|
49
47
|
...columnLayoutStyles,
|
|
@@ -56,7 +54,7 @@ const Cell = ({ value, isMergedWithPrev, columnLayout, name, isDimensionCol, for
|
|
|
56
54
|
if (formattedValue === NONE_VALUE) {
|
|
57
55
|
Renderer = NoneCell;
|
|
58
56
|
}
|
|
59
|
-
return (jsx(Renderer, { value: formattedValue, name: name, isMergedWithPrev: isMergedWithPrev, previousValue: formattedPreviousValue, columnLayout: columnLayout, orderCellProps: orderCellProps, campaignsCellProps: campaignsCellProps, isTotalRow: isTotalRow, isDimensionCol: isDimensionCol, isMockData: isMockData }));
|
|
57
|
+
return (jsx(Renderer, { value: formattedValue, gxId: gxId, name: name, isMergedWithPrev: isMergedWithPrev, previousValue: formattedPreviousValue, columnLayout: columnLayout, orderCellProps: orderCellProps, campaignsCellProps: campaignsCellProps, isTotalRow: isTotalRow, isDimensionCol: isDimensionCol, isMockData: isMockData }));
|
|
60
58
|
};
|
|
61
59
|
return (jsx("div", { className: cls('GReportTable__Cell', { 'GReportTable__Cell--dimension': isDimensionCol }), style: cellStyles, children: jsx("div", { className: "GReportTable__CellContent", style: columnLayoutStyles, children: renderContent() }) }));
|
|
62
60
|
};
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { getColumnLayoutStyles } from '../../../utils/table.mjs';
|
|
3
|
-
import { cls } from '../../../../../../../utils/cls.mjs';
|
|
4
|
-
import '../../../../../../../utils/dayjs.mjs';
|
|
5
|
-
import '../../../../../../../utils/analytics.mjs';
|
|
6
|
-
import '../../../../../../../types/template.mjs';
|
|
7
|
-
import '../../../../../common/Visualization/types/report.mjs';
|
|
8
|
-
import '../../../../../common/Visualization/types/chart.mjs';
|
|
9
|
-
import '../../../../../common/Visualization/types/report-metric.mjs';
|
|
10
|
-
import '../../../types/report-columns.mjs';
|
|
11
|
-
import '../../../types/index.mjs';
|
|
12
|
-
import '../../../../../../../core/gemxql/builder/filters/build-filter-conditions.mjs';
|
|
13
|
-
import '../../../../../../../core/gemxql/builder/filters/build-extra-conditions.mjs';
|
|
14
2
|
import { NONE_VALUE } from '../../../../../../../core/gemxql/constants/analytic-data.mjs';
|
|
15
3
|
import '../../../../../../../core/gemxql/constants/row-reader-mode.mjs';
|
|
16
4
|
import '../../../../../../../core/gemxql/builder/configs/keywords.mjs';
|
|
5
|
+
import '../../../../../../../core/gemxql/builder/filters/build-extra-conditions.mjs';
|
|
6
|
+
import '../../../../../../../core/gemxql/builder/filters/build-filter-conditions.mjs';
|
|
17
7
|
import '../../../../../../../core/gemxql/types/analytic-data.mjs';
|
|
18
8
|
import '../../../../../../../core/gemxql/types/analytic-source.mjs';
|
|
19
9
|
import '../../../../../../../core/gemxql/types/extra-condition.mjs';
|
|
@@ -24,6 +14,10 @@ import '../../../../../../../core/gemxql/types/order-by.mjs';
|
|
|
24
14
|
import '../../../../../../../core/gemxql/types/page-fields.mjs';
|
|
25
15
|
import '../../../../../../../core/gemxql/types/row-reader-mode.mjs';
|
|
26
16
|
import '../../../../../../../core/gemxql/types/time-dimension.mjs';
|
|
17
|
+
import { cls } from '../../../../../../../utils/cls.mjs';
|
|
18
|
+
import '../../../../../../../utils/dayjs.mjs';
|
|
19
|
+
import '../../../../../../../utils/analytics.mjs';
|
|
20
|
+
import '../../../../../../../types/template.mjs';
|
|
27
21
|
import '../../../../../../../core/gemxql/api/useCustomGemXQlQuery.mjs';
|
|
28
22
|
import '../../../../../../../core/gemxql/api/useGemxQlNamedQuery.mjs';
|
|
29
23
|
import '../../../../../../../providers/ConvertMoneyProvider.mjs';
|
|
@@ -32,18 +26,22 @@ import 'react';
|
|
|
32
26
|
import '../../../../../common/Visualization/constants/version.mjs';
|
|
33
27
|
import '../../../constants/order.mjs';
|
|
34
28
|
import { useReportData } from '../../../hooks/useReportTableCell.mjs';
|
|
35
|
-
import {
|
|
29
|
+
import { getColumnLayoutStyles } from '../../../utils/table.mjs';
|
|
30
|
+
import '../../../types/index.mjs';
|
|
31
|
+
import '../../../types/report-columns.mjs';
|
|
32
|
+
import '../../../../../common/Visualization/types/report.mjs';
|
|
33
|
+
import '../../../../../common/Visualization/types/chart.mjs';
|
|
34
|
+
import '../../../../../common/Visualization/types/report-metric.mjs';
|
|
36
35
|
import { cellMap } from './CellRenderers.mjs';
|
|
37
|
-
import {
|
|
36
|
+
import { DefaultCell } from './DefaultCell.mjs';
|
|
38
37
|
import { NoneCell } from './NoneCell.mjs';
|
|
38
|
+
import { TotalCell } from './TotalCell.mjs';
|
|
39
39
|
|
|
40
|
-
const Cell = ({ value, isMergedWithPrev, columnLayout, name, isDimensionCol, formatter, hasTooltipCard, previousValue, orderCellProps, campaignsCellProps, isTotalRow, isMockData, }) => {
|
|
40
|
+
const Cell = ({ value, gxId, isMergedWithPrev, columnLayout, name, isDimensionCol, formatter, hasTooltipCard, previousValue, orderCellProps, campaignsCellProps, isTotalRow, isMockData, }) => {
|
|
41
41
|
const columnLayoutStyles = getColumnLayoutStyles(columnLayout, hasTooltipCard);
|
|
42
42
|
const { formatData } = useReportData();
|
|
43
43
|
const formattedValue = formatData({ value, formatter, name });
|
|
44
|
-
const formattedPreviousValue = typeof previousValue === 'undefined'
|
|
45
|
-
? previousValue
|
|
46
|
-
: formatData({ value: previousValue, formatter, name });
|
|
44
|
+
const formattedPreviousValue = typeof previousValue === 'undefined' ? previousValue : formatData({ value: previousValue, formatter, name });
|
|
47
45
|
const cellStyles = {
|
|
48
46
|
borderTop: isMergedWithPrev ? '0' : undefined,
|
|
49
47
|
...columnLayoutStyles,
|
|
@@ -56,7 +54,7 @@ const Cell = ({ value, isMergedWithPrev, columnLayout, name, isDimensionCol, for
|
|
|
56
54
|
if (formattedValue === NONE_VALUE) {
|
|
57
55
|
Renderer = NoneCell;
|
|
58
56
|
}
|
|
59
|
-
return (jsx(Renderer, { value: formattedValue, name: name, isMergedWithPrev: isMergedWithPrev, previousValue: formattedPreviousValue, columnLayout: columnLayout, orderCellProps: orderCellProps, campaignsCellProps: campaignsCellProps, isTotalRow: isTotalRow, isDimensionCol: isDimensionCol, isMockData: isMockData }));
|
|
57
|
+
return (jsx(Renderer, { value: formattedValue, gxId: gxId, name: name, isMergedWithPrev: isMergedWithPrev, previousValue: formattedPreviousValue, columnLayout: columnLayout, orderCellProps: orderCellProps, campaignsCellProps: campaignsCellProps, isTotalRow: isTotalRow, isDimensionCol: isDimensionCol, isMockData: isMockData }));
|
|
60
58
|
};
|
|
61
59
|
return (jsx("div", { className: cls('GReportTable__Cell', { 'GReportTable__Cell--dimension': isDimensionCol }), style: cellStyles, children: jsx("div", { className: "GReportTable__CellContent", style: columnLayoutStyles, children: renderContent() }) }));
|
|
62
60
|
};
|
|
@@ -2,14 +2,18 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import '../../../../../common/Visualization/types/report.js';
|
|
3
3
|
import '../../../../../common/Visualization/types/chart.js';
|
|
4
4
|
import { IRMetricKey } from '../../../../../common/Visualization/types/report-metric.js';
|
|
5
|
-
import { EReportColumnKey } from '../../../types/report-columns.js';
|
|
6
5
|
import { EDimensionKey } from '../../../types/dimension.js';
|
|
6
|
+
import { EReportColumnKey } from '../../../types/report-columns.js';
|
|
7
|
+
import { CampaignsCell } from './CampaignsCell/CampaignsCell.js';
|
|
8
|
+
import { DateCell } from './DateCell.js';
|
|
9
|
+
import { GemxIdCell } from './GemxIdCell.js';
|
|
10
|
+
import { ItemsCell } from './ItemsCell/ItemsCell.js';
|
|
11
|
+
import 'react';
|
|
7
12
|
import '@shopify/polaris';
|
|
8
13
|
import '@shopify/polaris-icons';
|
|
9
14
|
import '../../../../../../../utils/dayjs.js';
|
|
10
15
|
import '../../../../../../../utils/analytics.js';
|
|
11
16
|
import '../../../../../../../types/template.js';
|
|
12
|
-
import 'react';
|
|
13
17
|
import '../../../../../../components/GTooltip/components/GTooltipCard.js';
|
|
14
18
|
import '../../../../../../components/GDiv/GDiv.js';
|
|
15
19
|
import 'react-i18next';
|
|
@@ -19,6 +23,7 @@ import '../../../../../../components/GPagination/GPagination.js';
|
|
|
19
23
|
import '../../../../../../charts/components/GPolarisViz/hooks/useResizeObserver.js';
|
|
20
24
|
import '../../../../../../../stores/currencyRatesStore.js';
|
|
21
25
|
import '@tanstack/react-query';
|
|
26
|
+
import '../../../../../../../providers/ConvertMoneyProvider.js';
|
|
22
27
|
import '../../../../../../../core/gemxql/constants/row-reader-mode.js';
|
|
23
28
|
import '../../../../../../../core/gemxql/types/analytic-data.js';
|
|
24
29
|
import '../../../../../../../core/gemxql/types/analytic-source.js';
|
|
@@ -30,14 +35,10 @@ import '../../../../../../../core/gemxql/types/order-by.js';
|
|
|
30
35
|
import '../../../../../../../core/gemxql/types/page-fields.js';
|
|
31
36
|
import '../../../../../../../core/gemxql/types/row-reader-mode.js';
|
|
32
37
|
import '../../../../../../../core/gemxql/types/time-dimension.js';
|
|
33
|
-
import '../../../../../../../providers/ConvertMoneyProvider.js';
|
|
34
38
|
import '../../../context/ReportTableActionsContext.js';
|
|
35
39
|
import { OrderCellContainer } from './OrderCell/OrderCellContainer.js';
|
|
36
|
-
import { CampaignsCell } from './CampaignsCell/CampaignsCell.js';
|
|
37
|
-
import { VersionCell } from './VersionCell.js';
|
|
38
40
|
import { OrderIdCell } from './OrderIdCell.js';
|
|
39
|
-
import {
|
|
40
|
-
import { DateCell } from './DateCell.js';
|
|
41
|
+
import { VersionCell } from './VersionCell.js';
|
|
41
42
|
|
|
42
43
|
const isString = (value) => typeof value === 'string';
|
|
43
44
|
const isNonEmptyArray = (value) => Array.isArray(value) && value.length > 0;
|
|
@@ -53,7 +54,7 @@ const cellMap = {
|
|
|
53
54
|
return null;
|
|
54
55
|
return jsx(VersionCell, { value: value, isMergedWithPrev: isMergedWithPrev });
|
|
55
56
|
},
|
|
56
|
-
[IRMetricKey.ORDERS]: ({ value, columnLayout, orderCellProps, previousValue, isTotalRow, isMockData
|
|
57
|
+
[IRMetricKey.ORDERS]: ({ value, columnLayout, orderCellProps, previousValue, isTotalRow, isMockData }) => {
|
|
57
58
|
if (!isString(value))
|
|
58
59
|
return null;
|
|
59
60
|
return (jsx(OrderCellContainer, { value: value, columnLayout: columnLayout, orderCellProps: orderCellProps, previousValue: previousValue, isTotalRow: isTotalRow, isMockData: isMockData }));
|
|
@@ -73,10 +74,15 @@ const cellMap = {
|
|
|
73
74
|
return null;
|
|
74
75
|
return jsx(CampaignsCell, { value: value, campaignsCellProps: campaignsCellProps });
|
|
75
76
|
},
|
|
76
|
-
[EReportColumnKey.ORDER_ID]: ({ value, isMockData }) => {
|
|
77
|
+
[EReportColumnKey.ORDER_ID]: ({ value, isMockData, gxId }) => {
|
|
78
|
+
if (!isString(value))
|
|
79
|
+
return null;
|
|
80
|
+
return jsx(OrderIdCell, { value: value, isMockData: isMockData, gxId: gxId });
|
|
81
|
+
},
|
|
82
|
+
[EReportColumnKey.GEMX_ID]: ({ value, isMergedWithPrev, previousValue, columnLayout }) => {
|
|
77
83
|
if (!isString(value))
|
|
78
84
|
return null;
|
|
79
|
-
return jsx(
|
|
85
|
+
return (jsx(GemxIdCell, { value: value, isMergedWithPrev: isMergedWithPrev, previousValue: previousValue, columnLayout: columnLayout }));
|
|
80
86
|
},
|
|
81
87
|
};
|
|
82
88
|
|