@levi-gemcommerce/analytics 3.0.1-dev.3 → 3.0.1-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/OrderAnalytic/types/order.d.ts +1 -1
- package/package.json +38 -15
- package/src/api/graphql/fragments/pathAnalytic.generated.ts +0 -26
- package/src/assets/img/all-sessions.png +0 -0
- package/src/assets/img/analytic-empty.png +0 -0
- package/src/assets/img/first-session.png +0 -0
- package/src/assets/img/page-only.png +0 -0
- package/src/assets/svg/gemx-skeleton.svg +0 -12
- package/src/assets/svg/product.svg +0 -18
- package/src/components/AnalyticMode/AnalyticModeSelector.tsx +0 -50
- package/src/components/AnalyticMode/index.ts +0 -2
- package/src/components/CardPathAnalysis/CardJourneyAnalysis.tsx +0 -33
- package/src/components/CardPathAnalysis/assets/img/analytic-gemx.png +0 -0
- package/src/components/CardPathAnalysis/assets/styles/PathAnalysis.scss +0 -60
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.tsx +0 -45
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.tsx +0 -53
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.tsx +0 -65
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.tsx +0 -29
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.tsx +0 -12
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.tsx +0 -43
- package/src/components/CardPathAnalysis/components/CardPathAnalysis/index.ts +0 -1
- package/src/components/CardPathAnalysis/components/PathAnalysisChart.tsx +0 -55
- package/src/components/CardPathAnalysis/components/index.ts +0 -1
- package/src/components/CardPathAnalysis/configs/index.ts +0 -2
- package/src/components/CardPathAnalysis/constants/index.ts +0 -1
- package/src/components/CardPathAnalysis/constants/path-analysis.ts +0 -162
- package/src/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.tsx +0 -66
- package/src/components/CardPathAnalysis/contexts/PathAnalysisProvider.tsx +0 -130
- package/src/components/CardPathAnalysis/contexts/index.ts +0 -2
- package/src/components/CardPathAnalysis/helpers/index.ts +0 -2
- package/src/components/CardPathAnalysis/helpers/metricHelpers.ts +0 -13
- package/src/components/CardPathAnalysis/helpers/pathAnalysis.ts +0 -96
- package/src/components/CardPathAnalysis/helpers/pathAnalysisChart.ts +0 -128
- package/src/components/CardPathAnalysis/helpers/treeUtils.ts +0 -38
- package/src/components/CardPathAnalysis/hooks/usePathAnalysisChart.tsx +0 -292
- package/src/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.ts +0 -206
- package/src/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.ts +0 -43
- package/src/components/CardPathAnalysis/index.ts +0 -5
- package/src/components/CardPathAnalysis/stores/funnel-chart.ts +0 -30
- package/src/components/CardPathAnalysis/stores/index.ts +0 -3
- package/src/components/CardPathAnalysis/stores/path-analysis-campaign.ts +0 -16
- package/src/components/CardPathAnalysis/stores/path-analysis.ts +0 -11
- package/src/components/CardPathAnalysis/types/index.ts +0 -1
- package/src/components/CardPathAnalysis/types/path-analysis.ts +0 -10
- package/src/components/CurrencySelector/CurrencySelector.tsx +0 -127
- package/src/components/CurrencySelector/index.ts +0 -2
- package/src/components/GModalOrderJourney/GModalOrderJourney.tsx +0 -131
- package/src/components/GModalOrderJourney/components/OrderJourneySkeleton.tsx +0 -93
- package/src/components/GModalOrderJourney/components/index.ts +0 -1
- package/src/components/GModalOrderJourney/context/OrderJourneyContext.tsx +0 -17
- package/src/components/GModalOrderJourney/context/index.ts +0 -1
- package/src/components/GModalOrderJourney/hooks/index.ts +0 -1
- package/src/components/GModalOrderJourney/hooks/useGModalOrderJourney.ts +0 -25
- package/src/components/GModalOrderJourney/index.ts +0 -5
- package/src/components/GModalOrderJourney/types/index.ts +0 -4
- package/src/components/GModalOrderJourney/utils/index.ts +0 -75
- package/src/components/GSelectableMetricChartCard/GSelectableMetricChartCard.tsx +0 -83
- package/src/components/GSelectableMetricChartCard/MetricChartTab.tsx +0 -56
- package/src/components/GSelectableMetricChartCard/index.ts +0 -2
- package/src/components/GTimePicker/GTimePicker.tsx +0 -31
- package/src/components/GTimePicker/components/BaseTimePicker.tsx +0 -249
- package/src/components/GTimePicker/components/CompareTimePicker.tsx +0 -41
- package/src/components/GTimePicker/components/DateTimeFilterAddition.tsx +0 -84
- package/src/components/GTimePicker/components/DateTimeFilterInputs.tsx +0 -124
- package/src/components/GTimePicker/components/DateTimeFilters.tsx +0 -86
- package/src/components/GTimePicker/components/MainTimePicker.tsx +0 -47
- package/src/components/GTimePicker/components/index.ts +0 -2
- package/src/components/GTimePicker/constants/compareDateTimePicker.ts +0 -68
- package/src/components/GTimePicker/constants/datePicker.ts +0 -14
- package/src/components/GTimePicker/constants/index.ts +0 -2
- package/src/components/GTimePicker/constants/mainDataTimePicker.ts +0 -88
- package/src/components/GTimePicker/contexts/DateTimePickerProvider.tsx +0 -125
- package/src/components/GTimePicker/contexts/index.ts +0 -1
- package/src/components/GTimePicker/helpers/date-range-info.ts +0 -84
- package/src/components/GTimePicker/helpers/index.ts +0 -4
- package/src/components/GTimePicker/helpers/parse-date.ts +0 -127
- package/src/components/GTimePicker/helpers/time-picker.ts +0 -123
- package/src/components/GTimePicker/helpers/version.ts +0 -36
- package/src/components/GTimePicker/hooks/index.ts +0 -3
- package/src/components/GTimePicker/hooks/useCompareDateTimePicker.tsx +0 -79
- package/src/components/GTimePicker/hooks/useDateTimeFilter.ts +0 -83
- package/src/components/GTimePicker/hooks/useDateTimePicker.tsx +0 -99
- package/src/components/GTimePicker/hooks/useVersionDateTimeFilters.ts +0 -30
- package/src/components/GTimePicker/index.ts +0 -7
- package/src/components/GTimePicker/types/index.ts +0 -43
- package/src/components/MetricDonutChartCard/MetricDonutChartCard.tsx +0 -121
- package/src/components/MetricDonutChartCard/index.ts +0 -2
- package/src/components/MetricDonutChartCard/utils/donut-chart.ts +0 -75
- package/src/components/MetricDonutChartCard/utils/index.ts +0 -1
- package/src/components/OrderAnalytic/OrderListingLatestTable.tsx +0 -111
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/OrderListingTableSkeleton.tsx +0 -40
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonCellContent.tsx +0 -77
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonHeader.tsx +0 -35
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonRow.tsx +0 -35
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonSummaryRow.tsx +0 -36
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/constants.ts +0 -11
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/index.ts +0 -1
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingTable.tsx +0 -159
- package/src/components/OrderAnalytic/components/OrderListing/OrderListingTableEmpty.tsx +0 -29
- package/src/components/OrderAnalytic/components/OrderListing/index.ts +0 -2
- package/src/components/OrderAnalytic/components/index.ts +0 -1
- package/src/components/OrderAnalytic/constants/index.ts +0 -2
- package/src/components/OrderAnalytic/constants/order-columns.ts +0 -51
- package/src/components/OrderAnalytic/constants/order-listing.ts +0 -199
- package/src/components/OrderAnalytic/helpers/index.ts +0 -1
- package/src/components/OrderAnalytic/helpers/order-listing.ts +0 -48
- package/src/components/OrderAnalytic/hooks/index.ts +0 -1
- package/src/components/OrderAnalytic/hooks/useOrderListingData.ts +0 -55
- package/src/components/OrderAnalytic/index.ts +0 -5
- package/src/components/OrderAnalytic/stores/index.ts +0 -2
- package/src/components/OrderAnalytic/stores/order-columns-selector.ts +0 -24
- package/src/components/OrderAnalytic/stores/order-control.ts +0 -15
- package/src/components/OrderAnalytic/types/index.ts +0 -3
- package/src/components/OrderAnalytic/types/order.ts +0 -89
- package/src/components/OrderAnalytic/types/orderListing.ts +0 -4
- package/src/components/OrderAnalytic/types/report.ts +0 -14
- package/src/components/SingleMetricChartCard/SingleMetricChartCard.tsx +0 -56
- package/src/components/SingleMetricChartCard/index.tsx +0 -2
- package/src/components/common/chart/GChartSkeleton.tsx +0 -5
- package/src/components/common/chart/MetricChart.tsx +0 -62
- package/src/components/common/chart/MetricChartEmpty.tsx +0 -35
- package/src/components/common/chart/MetricChartTooltip.tsx +0 -74
- package/src/components/common/chart/MetricDonutChartSkeleton.tsx +0 -14
- package/src/components/common/chart/MetricInfoBlock.tsx +0 -66
- package/src/components/common/chart/MetricInfoSkeleton.tsx +0 -25
- package/src/components/common/chart/MetricValueSummary.tsx +0 -23
- package/src/components/common/chart/index.ts +0 -8
- package/src/components/common/icons/DownIcon8px.tsx +0 -14
- package/src/components/common/icons/UpIcon8px.tsx +0 -14
- package/src/components/common/icons/index.ts +0 -2
- package/src/components/common/percent/MetricPercentage.tsx +0 -42
- package/src/components/common/percent/index.ts +0 -1
- package/src/components/index.ts +0 -9
- package/src/constants/analytic-metric-tooltip.tsx +0 -164
- package/src/constants/breakdown-targets.ts +0 -25
- package/src/constants/campaign.ts +0 -4
- package/src/constants/chart.ts +0 -17
- package/src/constants/currency.ts +0 -3
- package/src/constants/index.ts +0 -6
- package/src/constants/thumbnail.ts +0 -3
- package/src/core/gemxql/api/index.ts +0 -2
- package/src/core/gemxql/api/useCustomGemXQlQuery.ts +0 -35
- package/src/core/gemxql/api/useGemxQlNamedQuery.ts +0 -34
- package/src/core/gemxql/builder/build-gemxql-query.ts +0 -81
- package/src/core/gemxql/builder/clauses/condition-query.ts +0 -74
- package/src/core/gemxql/builder/clauses/from-query.ts +0 -18
- package/src/core/gemxql/builder/clauses/group-query.ts +0 -43
- package/src/core/gemxql/builder/clauses/index.ts +0 -11
- package/src/core/gemxql/builder/clauses/limit-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/mode-query.ts +0 -14
- package/src/core/gemxql/builder/clauses/offset-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/order-by-query.ts +0 -37
- package/src/core/gemxql/builder/clauses/show-query.ts +0 -18
- package/src/core/gemxql/builder/clauses/time-query.ts +0 -67
- package/src/core/gemxql/builder/clauses/time-series-query.ts +0 -15
- package/src/core/gemxql/builder/clauses/timezone-query.ts +0 -17
- package/src/core/gemxql/builder/configs/date-formats.ts +0 -1
- package/src/core/gemxql/builder/configs/index.ts +0 -3
- package/src/core/gemxql/builder/configs/keywords.ts +0 -16
- package/src/core/gemxql/builder/configs/query-defaults.ts +0 -1
- package/src/core/gemxql/builder/filters/build-extra-conditions.ts +0 -69
- package/src/core/gemxql/builder/filters/build-filter-conditions.ts +0 -161
- package/src/core/gemxql/builder/filters/index.ts +0 -2
- package/src/core/gemxql/builder/helpers/date-query-helpers.ts +0 -41
- package/src/core/gemxql/builder/helpers/index.ts +0 -1
- package/src/core/gemxql/builder/helpers/is-valid-query-input.ts +0 -8
- package/src/core/gemxql/builder/index.ts +0 -6
- package/src/core/gemxql/builder/parse-gemxql-query.ts +0 -43
- package/src/core/gemxql/constants/analytic-data.ts +0 -2
- package/src/core/gemxql/constants/column-keys.ts +0 -4
- package/src/core/gemxql/constants/index.ts +0 -4
- package/src/core/gemxql/constants/operators.ts +0 -2
- package/src/core/gemxql/constants/row-reader-mode.ts +0 -9
- package/src/core/gemxql/graphql/fragments/gemxql.generated.ts +0 -80
- package/src/core/gemxql/graphql/fragments/gemxql.gql +0 -18
- package/src/core/gemxql/graphql/index.ts +0 -2
- package/src/core/gemxql/graphql/queries/gemxql.generated.ts +0 -26
- package/src/core/gemxql/graphql/queries/gemxql.gql +0 -5
- package/src/core/gemxql/helpers/columnKeys.ts +0 -8
- package/src/core/gemxql/helpers/extractQueryData.ts +0 -18
- package/src/core/gemxql/helpers/formatAnalyticData.ts +0 -92
- package/src/core/gemxql/helpers/formatAnalyticDate.ts +0 -29
- package/src/core/gemxql/helpers/getTimeDimension.ts +0 -11
- package/src/core/gemxql/helpers/hasMetricData.ts +0 -6
- package/src/core/gemxql/helpers/index.ts +0 -8
- package/src/core/gemxql/helpers/parseJsonFields.ts +0 -36
- package/src/core/gemxql/helpers/readNumeric.ts +0 -25
- package/src/core/gemxql/hooks/index.ts +0 -2
- package/src/core/gemxql/hooks/useAnalyticData.ts +0 -67
- package/src/core/gemxql/hooks/useGemXQlPagination.ts +0 -79
- package/src/core/gemxql/index.ts +0 -8
- package/src/core/gemxql/types/analytic-data.ts +0 -26
- package/src/core/gemxql/types/analytic-source.ts +0 -4
- package/src/core/gemxql/types/extra-condition.ts +0 -40
- package/src/core/gemxql/types/field-filters.ts +0 -18
- package/src/core/gemxql/types/field-operators.ts +0 -8
- package/src/core/gemxql/types/filter-types.ts +0 -33
- package/src/core/gemxql/types/group-with-clause.ts +0 -12
- package/src/core/gemxql/types/index.ts +0 -11
- package/src/core/gemxql/types/order-by.ts +0 -13
- package/src/core/gemxql/types/page-fields.ts +0 -25
- package/src/core/gemxql/types/row-reader-mode.ts +0 -6
- package/src/core/gemxql/types/time-dimension.ts +0 -8
- package/src/global.d.ts +0 -38
- package/src/hooks/index.ts +0 -7
- package/src/hooks/publish/index.ts +0 -2
- package/src/hooks/publish/useStickyDetectById.ts +0 -39
- package/src/hooks/publish/useStickyFilterBoxProps.ts +0 -26
- package/src/hooks/publish/useWindowSize.ts +0 -54
- package/src/hooks/useEnhancedEffect.ts +0 -3
- package/src/hooks/useFetchCurrencyRates.ts +0 -48
- package/src/hooks/useFormatLineChartData.ts +0 -28
- package/src/hooks/usePopoverResizeObserver.ts +0 -43
- package/src/hooks/usePreventBodyScroll.ts +0 -15
- package/src/hooks/useSearchParams.ts +0 -7
- package/src/hooks/useToggle.ts +0 -23
- package/src/index.ts +0 -10
- package/src/modules/analytics/constants/index.ts +0 -124
- package/src/modules/analytics/index.ts +0 -3
- package/src/modules/analytics/types/index.ts +0 -43
- package/src/modules/analytics/utils/formatMetric.ts +0 -42
- package/src/modules/analytics/utils/getPAMetricValue.ts +0 -11
- package/src/modules/analytics/utils/index.ts +0 -3
- package/src/modules/analytics/utils/metric.ts +0 -172
- package/src/providers/ConvertMoneyProvider.tsx +0 -68
- package/src/providers/MetricChartProvider.tsx +0 -50
- package/src/providers/TimezoneProvider.tsx +0 -31
- package/src/providers/index.ts +0 -5
- package/src/shared/charts/components/ComboChart.tsx +0 -108
- package/src/shared/charts/components/GBarChart.tsx +0 -96
- package/src/shared/charts/components/GComboChart.tsx +0 -15
- package/src/shared/charts/components/GDonutChart.tsx +0 -25
- package/src/shared/charts/components/GFunnelChart/GFunnelChart.tsx +0 -34
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartAction.tsx +0 -67
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionIcon.tsx +0 -60
- package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionWrapper.tsx +0 -100
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionContent.tsx +0 -92
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionHeader.tsx +0 -54
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionItem.tsx +0 -51
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionPopover.tsx +0 -95
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/index.ts +0 -1
- package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/type.ts +0 -7
- package/src/shared/charts/components/GFunnelChart/components/types.ts +0 -24
- package/src/shared/charts/components/GFunnelChart/index.ts +0 -4
- package/src/shared/charts/components/GFunnelChart/types.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.module.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.tsx +0 -135
- package/src/shared/charts/components/GPolarisViz/components/Arc/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.module.scss +0 -39
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.tsx +0 -150
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/hooks/useContainerBounds.ts +0 -113
- package/src/shared/charts/components/GPolarisViz/components/ChartContainer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartDiv.tsx +0 -18
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartElements.module.scss +0 -21
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartSVG.tsx +0 -40
- package/src/shared/charts/components/GPolarisViz/components/ChartElements/index.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/ChartErrorBoundary.tsx +0 -56
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/utilities/checkForMismatchedData.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.module.scss +0 -6
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.tsx +0 -96
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.module.scss +0 -41
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.tsx +0 -193
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/ErrorText.tsx +0 -40
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/FunnelSkeleton.tsx +0 -69
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/GridSkeleton.tsx +0 -155
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.module.scss +0 -33
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.tsx +0 -34
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.module.scss +0 -15
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.tsx +0 -53
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.module.scss +0 -35
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.tsx +0 -75
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/SparkSkeleton.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/index.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/index.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/ConicGradientWithStops.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.module.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.tsx +0 -25
- package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/Chart.tsx +0 -209
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/FunnelChart.tsx +0 -72
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisArrows.tsx +0 -52
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisLabels.tsx +0 -66
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelSegment.tsx +0 -121
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.module.scss +0 -23
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.tsx +0 -67
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/index.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/FunnelChart/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/Chart.tsx +0 -259
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/FunnelChartNext.tsx +0 -104
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/FunnelChartLabels.tsx +0 -387
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.tsx +0 -37
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIcon.tsx +0 -20
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIconTooltip.tsx +0 -31
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/CustomTooltip.tsx +0 -68
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.scss +0 -52
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.tsx +0 -149
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipOverlay.tsx +0 -117
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipWithPortal.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/index.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/constants.ts +0 -28
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipInteraction.ts +0 -59
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipPlacement.ts +0 -113
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/types.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/calculate-dropoff.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/useBuildFunnelTrends.ts +0 -108
- package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/HorizontalGridLines.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/Labels/SingleTextLine.tsx +0 -64
- package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/useLabels.tsx +0 -131
- package/src/shared/charts/components/GPolarisViz/components/Labels/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endLineTruncate.ts +0 -23
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endWordTruncate.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/estimateTextHeight.ts +0 -31
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/formatAndAddEllipsis.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getDiagonalLabels.ts +0 -70
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getHorizontalLabels.ts +0 -90
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getVerticalLabels.ts +0 -58
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getWidestLabel.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/shouldSkipLabel.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/endWordTruncate.test.ts +0 -16
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/estimateTextHeight.test.ts +0 -19
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/formatAndAddEllipsis.test.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateLastLine.test.ts +0 -22
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateSingleLine.test.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLabels.ts +0 -75
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLastLine.ts +0 -61
- package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateSingleLine.ts +0 -39
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.module.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.tsx +0 -105
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/constants.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/components/LinePreview/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/SwallowErrors.tsx +0 -32
- package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TextLine/TextLine.tsx +0 -88
- package/src/shared/charts/components/GPolarisViz/components/TextLine/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/TooltipContent.tsx +0 -109
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.module.scss +0 -10
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.tsx +0 -67
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.module.scss +0 -26
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.tsx +0 -57
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.module.scss +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.tsx +0 -26
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.module.scss +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.tsx +0 -20
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.module.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.tsx +0 -15
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/constants.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/hooks/useGetLongestLabelFromData.ts +0 -56
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/index.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/get-tooltip-template-content-column-count.ts +0 -10
- package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/tests/get-tooltip-template-content-column-count.test.ts +0 -48
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/TooltipWrapper.tsx +0 -338
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.module.scss +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.tsx +0 -139
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/constants.ts +0 -18
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/types.ts +0 -62
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/eventPoint.ts +0 -84
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredHorizontalBarPosition.ts +0 -110
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredLineChartPosition.ts +0 -115
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredVerticalBarPosition.ts +0 -105
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getDonutChartTooltipPosition.ts +0 -64
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getHorizontalBarChartTooltipPosition.ts +0 -79
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getLineChartTooltipPosition.ts +0 -68
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getVerticalBarChartTooltipPosition.ts +0 -123
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/shouldBlockTooltipEvents.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities.ts +0 -162
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/TrendIndicator.tsx +0 -72
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowDown.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowUp.tsx +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.scss +0 -7
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.tsx +0 -27
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/constants.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/utilities/estimateTrendIndicatorWidth.ts +0 -9
- package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/sortBarChartData.ts +0 -20
- package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/VerticalGridLines.tsx +0 -32
- package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/components/index.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/constants.ts +0 -72
- package/src/shared/charts/components/GPolarisViz/data/character-width-offsets.json +0 -65
- package/src/shared/charts/components/GPolarisViz/data/character-widths.json +0 -1
- package/src/shared/charts/components/GPolarisViz/hooks/index.ts +0 -5
- package/src/shared/charts/components/GPolarisViz/hooks/useBarSpringConfig.ts +0 -21
- package/src/shared/charts/components/GPolarisViz/hooks/useBrowserCheck.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/hooks/useCallbackRef.tsx +0 -39
- package/src/shared/charts/components/GPolarisViz/hooks/useDataForHorizontalChart.ts +0 -69
- package/src/shared/charts/components/GPolarisViz/hooks/useDebouncedCallback.ts +0 -197
- package/src/shared/charts/components/GPolarisViz/hooks/useFormattedLabels.ts +0 -31
- package/src/shared/charts/components/GPolarisViz/hooks/useFunnelBarScaling.ts +0 -53
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalBarSizes.ts +0 -70
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalStackedValues.ts +0 -34
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalTicksAndScale.ts +0 -67
- package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalXScale.ts +0 -48
- package/src/shared/charts/components/GPolarisViz/hooks/useIndexForLabels.ts +0 -16
- package/src/shared/charts/components/GPolarisViz/hooks/usePrefersReducedMotion.ts +0 -6
- package/src/shared/charts/components/GPolarisViz/hooks/usePrintResizing.ts +0 -94
- package/src/shared/charts/components/GPolarisViz/hooks/useReducedLabelIndexes.ts +0 -21
- package/src/shared/charts/components/GPolarisViz/hooks/useResizeObserver.ts +0 -39
- package/src/shared/charts/components/GPolarisViz/hooks/useRootContainer.ts +0 -20
- package/src/shared/charts/components/GPolarisViz/hooks/useWatchColorVisionEvents.tsx +0 -35
- package/src/shared/charts/components/GPolarisViz/index.ts +0 -10
- package/src/shared/charts/components/GPolarisViz/shared/Bar/Bar.tsx +0 -89
- package/src/shared/charts/components/GPolarisViz/shared/Bar/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnector.tsx +0 -46
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnectorGradient.tsx +0 -21
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/constants.ts +0 -11
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/FunnelChartSegment.tsx +0 -100
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/AnimatedSegment.tsx +0 -50
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/InteractiveOverlay.tsx +0 -34
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/ScaledSegment.tsx +0 -218
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/constants.ts +0 -4
- package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/index.ts +0 -2
- package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/SeriesIcon.tsx +0 -22
- package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/ZeroValueLine.tsx +0 -45
- package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/index.ts +0 -1
- package/src/shared/charts/components/GPolarisViz/shared/index.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/styles/_common.scss +0 -15
- package/src/shared/charts/components/GPolarisViz/styles/shared/_accessibility.scss +0 -41
- package/src/shared/charts/components/GPolarisViz/styles/shared/_chart-container.scss +0 -8
- package/src/shared/charts/components/GPolarisViz/styles/shared/_variables.scss +0 -322
- package/src/shared/charts/components/GPolarisViz/types.ts +0 -261
- package/src/shared/charts/components/GPolarisViz/utilities/base.ts +0 -13
- package/src/shared/charts/components/GPolarisViz/utilities/classnames.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/utilities/createCssConicGradient.ts +0 -12
- package/src/shared/charts/components/GPolarisViz/utilities/createCssGradient.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/utilities/estimateStringWidthWithOffset.ts +0 -15
- package/src/shared/charts/components/GPolarisViz/utilities/getAxisOptions.ts +0 -26
- package/src/shared/charts/components/GPolarisViz/utilities/getCSSBackgroundFromColor.ts +0 -8
- package/src/shared/charts/components/GPolarisViz/utilities/getChartId.ts +0 -3
- package/src/shared/charts/components/GPolarisViz/utilities/getFontSize.ts +0 -7
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedMinMax.ts +0 -43
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedValues.ts +0 -35
- package/src/shared/charts/components/GPolarisViz/utilities/getStackedValuesFromDataSeries.tsx +0 -30
- package/src/shared/charts/components/GPolarisViz/utilities/getTrendIndicatorData.ts +0 -22
- package/src/shared/charts/components/GPolarisViz/utilities/hasHiddenComparisonSeries.ts +0 -26
- package/src/shared/charts/components/GPolarisViz/utilities/index.ts +0 -6
- package/src/shared/charts/components/GSimpleBarChart.tsx +0 -32
- package/src/shared/charts/components/index.ts +0 -7
- package/src/shared/charts/constants/chart.ts +0 -14
- package/src/shared/charts/constants/index.ts +0 -1
- package/src/shared/charts/contexts/GChartProvider.tsx +0 -48
- package/src/shared/charts/contexts/index.ts +0 -1
- package/src/shared/charts/index.ts +0 -4
- package/src/shared/charts/types/chart.ts +0 -36
- package/src/shared/charts/types/index.ts +0 -1
- package/src/shared/components/GActivatorPopover/GActivatorPopover.tsx +0 -107
- package/src/shared/components/GActivatorPopover/index.ts +0 -1
- package/src/shared/components/GBlockCenter/GBlockCenter.scss +0 -19
- package/src/shared/components/GBlockCenter/GBlockCenter.tsx +0 -72
- package/src/shared/components/GBlockCenter/index.ts +0 -1
- package/src/shared/components/GBox/GBox.scss +0 -25
- package/src/shared/components/GBox/GBox.tsx +0 -15
- package/src/shared/components/GBox/index.ts +0 -1
- package/src/shared/components/GBoxCard/GBoxCard.tsx +0 -27
- package/src/shared/components/GBoxCard/index.ts +0 -1
- package/src/shared/components/GButton/GButton.scss +0 -41
- package/src/shared/components/GButton/GButton.tsx +0 -73
- package/src/shared/components/GButton/index.ts +0 -1
- package/src/shared/components/GCheckbox/GCheckbox.tsx +0 -176
- package/src/shared/components/GCheckbox/index.ts +0 -1
- package/src/shared/components/GChoice/ChoiceHelpText.tsx +0 -25
- package/src/shared/components/GChoice/GChoice.scss +0 -14
- package/src/shared/components/GChoice/GChoice.tsx +0 -165
- package/src/shared/components/GChoice/index.ts +0 -2
- package/src/shared/components/GClickable/GClickable.tsx +0 -43
- package/src/shared/components/GClickable/index.ts +0 -1
- package/src/shared/components/GDiv/GDiv.tsx +0 -27
- package/src/shared/components/GDiv/index.ts +0 -1
- package/src/shared/components/GDotInline/GDotInline.tsx +0 -20
- package/src/shared/components/GDotInline/index.ts +0 -1
- package/src/shared/components/GFeatureLocked/GFeatureLocked.tsx +0 -85
- package/src/shared/components/GFeatureLocked/assets/images/empty-analytics.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template-illustration.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing-illustration.png +0 -0
- package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing.png +0 -0
- package/src/shared/components/GFeatureLocked/constants.ts +0 -33
- package/src/shared/components/GFeatureLocked/index.ts +0 -2
- package/src/shared/components/GFeatureLocked/types.ts +0 -16
- package/src/shared/components/GI18NText/GI18NText.tsx +0 -37
- package/src/shared/components/GI18NText/index.ts +0 -2
- package/src/shared/components/GI18NText/types.ts +0 -7
- package/src/shared/components/GInlineCenter/GInlineCenter.scss +0 -17
- package/src/shared/components/GInlineCenter/GInlineCenter.tsx +0 -39
- package/src/shared/components/GInlineCenter/index.ts +0 -1
- package/src/shared/components/GMockDataTooltip/GMockDataTooltip.tsx +0 -30
- package/src/shared/components/GMockDataTooltip/index.ts +0 -1
- package/src/shared/components/GModal/GModal.tsx +0 -49
- package/src/shared/components/GModal/index.ts +0 -1
- package/src/shared/components/GOptionList/GOptionList.tsx +0 -63
- package/src/shared/components/GOptionList/index.ts +0 -1
- package/src/shared/components/GPagination/GPagination.tsx +0 -44
- package/src/shared/components/GPagination/hooks/useGPagination.ts +0 -42
- package/src/shared/components/GPagination/index.ts +0 -2
- package/src/shared/components/GSelector/GSelector.tsx +0 -198
- package/src/shared/components/GSelector/index.ts +0 -1
- package/src/shared/components/GSkeletonDisplayText/GSkeletonDisplayText.tsx +0 -14
- package/src/shared/components/GSkeletonDisplayText/index.ts +0 -1
- package/src/shared/components/GSpinner/GSpinner.tsx +0 -16
- package/src/shared/components/GSpinner/index.ts +0 -1
- package/src/shared/components/GTextLink/GTextLink.tsx +0 -26
- package/src/shared/components/GTextLink/index.ts +0 -1
- package/src/shared/components/GTextTooltip/GTextTooltip.tsx +0 -18
- package/src/shared/components/GTextTooltip/index.ts +0 -1
- package/src/shared/components/GTextTruncated/GTextTruncated.tsx +0 -80
- package/src/shared/components/GTextTruncated/index.ts +0 -1
- package/src/shared/components/GThumbnail/GThumbnail.scss +0 -5
- package/src/shared/components/GThumbnail/GThumbnail.tsx +0 -69
- package/src/shared/components/GThumbnail/index.ts +0 -1
- package/src/shared/components/GTooltip/GTooltip.tsx +0 -34
- package/src/shared/components/GTooltip/components/GTooltipCard.tsx +0 -164
- package/src/shared/components/GTooltip/index.ts +0 -3
- package/src/shared/components/GTooltipCard/GTooltipCard.tsx +0 -161
- package/src/shared/components/GTooltipCard/index.ts +0 -7
- package/src/shared/components/GVariantBadge/GVariant.tsx +0 -55
- package/src/shared/components/GVariantBadge/GVariantBadge.scss +0 -10
- package/src/shared/components/GVariantBadge/GVariantBadge.tsx +0 -82
- package/src/shared/components/GVariantBadge/index.ts +0 -4
- package/src/shared/components/GVariantBadge/types.ts +0 -20
- package/src/shared/components/GViewBySelector/GViewBySelector.tsx +0 -114
- package/src/shared/components/GViewBySelector/index.ts +0 -1
- package/src/shared/components/index.ts +0 -26
- package/src/shared/index.ts +0 -1
- package/src/shared/journey/common/JourneyContainer/components/JourneyContainer.tsx +0 -140
- package/src/shared/journey/common/JourneyContainer/components/JourneyTimeline.tsx +0 -18
- package/src/shared/journey/common/JourneyContainer/components/index.ts +0 -2
- package/src/shared/journey/common/JourneyContainer/index.ts +0 -1
- package/src/shared/journey/common/index.ts +0 -1
- package/src/shared/journey/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/AcceptedPostPurchaseOffer.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/CheckoutCompleted.tsx +0 -64
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutItems.tsx +0 -27
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStarted.tsx +0 -25
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStartedDetail.tsx +0 -79
- package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/components/PageViewed/PageViewed.tsx +0 -116
- package/src/shared/journey/ui/JourneyEvents/components/PageViewed/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/ProductAddedToCart.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/ProductQuantity.tsx +0 -33
- package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/ProductRemovedFromCart.tsx +0 -24
- package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/components/index.ts +0 -6
- package/src/shared/journey/ui/JourneyEvents/constants/event.ts +0 -38
- package/src/shared/journey/ui/JourneyEvents/constants/index.ts +0 -1
- package/src/shared/journey/ui/JourneyEvents/index.ts +0 -2
- package/src/shared/journey/ui/JourneyEvents/types.ts +0 -2
- package/src/shared/journey/ui/JourneyGroup/JourneyGroup.tsx +0 -41
- package/src/shared/journey/ui/JourneyGroup/index.ts +0 -1
- package/src/shared/journey/ui/JourneyItem/components/EventMarkerIcon.tsx +0 -28
- package/src/shared/journey/ui/JourneyItem/components/JourneyDetail.tsx +0 -24
- package/src/shared/journey/ui/JourneyItem/components/JourneyItem.tsx +0 -27
- package/src/shared/journey/ui/JourneyItem/components/JourneyTime.tsx +0 -33
- package/src/shared/journey/ui/JourneyItem/components/QuantityWrapper.tsx +0 -17
- package/src/shared/journey/ui/JourneyItem/components/index.ts +0 -3
- package/src/shared/journey/ui/JourneyItem/index.ts +0 -2
- package/src/shared/journey/ui/JourneyItem/types/events.ts +0 -33
- package/src/shared/journey/ui/JourneyItem/types/index.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/components/GemxIdBadge.tsx +0 -38
- package/src/shared/journey/ui/JourneyTitle/components/JourneyDateBadge.tsx +0 -18
- package/src/shared/journey/ui/JourneyTitle/components/JourneyIdBadge.tsx +0 -65
- package/src/shared/journey/ui/JourneyTitle/components/JourneyLoadMore.tsx +0 -43
- package/src/shared/journey/ui/JourneyTitle/components/JourneyTitle.tsx +0 -42
- package/src/shared/journey/ui/JourneyTitle/components/index.ts +0 -2
- package/src/shared/journey/ui/JourneyTitle/constants/idBadge.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/constants/index.ts +0 -1
- package/src/shared/journey/ui/JourneyTitle/index.ts +0 -1
- package/src/shared/journey/ui/index.ts +0 -3
- package/src/shared/journey/ui/type.ts +0 -2
- package/src/shared/reports/common/Visualization/constants/columns.ts +0 -6
- package/src/shared/reports/common/Visualization/constants/index.ts +0 -2
- package/src/shared/reports/common/Visualization/constants/version.ts +0 -8
- package/src/shared/reports/common/Visualization/index.ts +0 -2
- package/src/shared/reports/common/Visualization/types/chart.ts +0 -5
- package/src/shared/reports/common/Visualization/types/index.ts +0 -3
- package/src/shared/reports/common/Visualization/types/report-metric.ts +0 -21
- package/src/shared/reports/common/Visualization/types/report.ts +0 -42
- package/src/shared/reports/common/Visualization/utils/index.ts +0 -2
- package/src/shared/reports/common/Visualization/utils/version.ts +0 -9
- package/src/shared/reports/common/Visualization/utils/visualization.ts +0 -58
- package/src/shared/reports/common/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/ReportTable.tsx +0 -194
- package/src/shared/reports/ui/ReportTable/ReportTableSkeleton.tsx +0 -73
- package/src/shared/reports/ui/ReportTable/assets/styles/ReportTable.scss +0 -288
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.tsx +0 -102
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCellVersion.tsx +0 -11
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/Cell.tsx +0 -93
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/CellRenderers.tsx +0 -72
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/DateCell.tsx +0 -9
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/DefaultCell.tsx +0 -32
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.tsx +0 -18
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.tsx +0 -79
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/ItemsCell.tsx +0 -56
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/NoneCell.tsx +0 -11
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/LoadingData.tsx +0 -10
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/NoData.tsx +0 -13
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCell.tsx +0 -78
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellBase.tsx +0 -55
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellContainer.tsx +0 -43
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderItem.tsx +0 -79
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.tsx +0 -70
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/PreviousCell.tsx +0 -17
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/TotalCell.tsx +0 -14
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/VersionCell.tsx +0 -31
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/WrapperCell.tsx +0 -31
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Body/Cell/type.ts +0 -18
- package/src/shared/reports/ui/ReportTable/components/Body/Row.tsx +0 -85
- package/src/shared/reports/ui/ReportTable/components/Body/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/components/Footer/Pagination.tsx +0 -76
- package/src/shared/reports/ui/ReportTable/components/Footer/ScrollBar.tsx +0 -19
- package/src/shared/reports/ui/ReportTable/components/Footer/WrapperFooter.tsx +0 -39
- package/src/shared/reports/ui/ReportTable/components/Footer/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/Header/Header.tsx +0 -68
- package/src/shared/reports/ui/ReportTable/components/Header/SortableHeader.tsx +0 -49
- package/src/shared/reports/ui/ReportTable/components/Header/SortableHeaderWithTooltip.tsx +0 -60
- package/src/shared/reports/ui/ReportTable/components/Header/SummaryCell.tsx +0 -26
- package/src/shared/reports/ui/ReportTable/components/Header/SummaryRow.tsx +0 -69
- package/src/shared/reports/ui/ReportTable/components/Header/WrapperHeader.tsx +0 -54
- package/src/shared/reports/ui/ReportTable/components/Header/index.ts +0 -1
- package/src/shared/reports/ui/ReportTable/components/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/constants/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/constants/order.ts +0 -30
- package/src/shared/reports/ui/ReportTable/constants/table.ts +0 -17
- package/src/shared/reports/ui/ReportTable/context/ReportTableActionsContext.tsx +0 -28
- package/src/shared/reports/ui/ReportTable/helpers/format.ts +0 -29
- package/src/shared/reports/ui/ReportTable/helpers/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/helpers/report.ts +0 -7
- package/src/shared/reports/ui/ReportTable/hooks/index.ts +0 -3
- package/src/shared/reports/ui/ReportTable/hooks/useReportTable.ts +0 -172
- package/src/shared/reports/ui/ReportTable/hooks/useReportTableCell.tsx +0 -28
- package/src/shared/reports/ui/ReportTable/hooks/useSyncedScroll.ts +0 -81
- package/src/shared/reports/ui/ReportTable/index.ts +0 -4
- package/src/shared/reports/ui/ReportTable/types/dimension.ts +0 -8
- package/src/shared/reports/ui/ReportTable/types/index.ts +0 -43
- package/src/shared/reports/ui/ReportTable/types/order.ts +0 -15
- package/src/shared/reports/ui/ReportTable/types/report-columns.ts +0 -11
- package/src/shared/reports/ui/ReportTable/utils/format.ts +0 -100
- package/src/shared/reports/ui/ReportTable/utils/index.ts +0 -2
- package/src/shared/reports/ui/ReportTable/utils/order.ts +0 -8
- package/src/shared/reports/ui/ReportTable/utils/table.ts +0 -19
- package/src/shared/reports/ui/ReportTable/utils/visualization.ts +0 -56
- package/src/shared/reports/ui/index.ts +0 -0
- package/src/stores/currencyRatesStore.ts +0 -13
- package/src/stores/index.ts +0 -2
- package/src/styles/index.scss +0 -9
- package/src/types/analytic-mode.ts +0 -5
- package/src/types/breakdown-items.ts +0 -21
- package/src/types/campaign.ts +0 -13
- package/src/types/chart.ts +0 -42
- package/src/types/currency.ts +0 -329
- package/src/types/index.ts +0 -8
- package/src/types/metric.ts +0 -81
- package/src/types/pricing.ts +0 -38
- package/src/types/report-columns.ts +0 -1
- package/src/types/template.ts +0 -19
- package/src/utils/analytics.ts +0 -75
- package/src/utils/array.ts +0 -13
- package/src/utils/cls.ts +0 -18
- package/src/utils/currency.ts +0 -42
- package/src/utils/date-time.ts +0 -7
- package/src/utils/dayjs.ts +0 -52
- package/src/utils/deep-copy.ts +0 -4
- package/src/utils/index.ts +0 -12
- package/src/utils/is-browser.ts +0 -3
- package/src/utils/number.ts +0 -19
- package/src/utils/percentage.ts +0 -40
- package/src/utils/sort.ts +0 -87
- package/src/utils/string.ts +0 -20
- package/src/utils/template-type.ts +0 -30
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import type { GemXQlFilters, GemXQlOverrideFilters, GemXQlVersionIds, OrderByFields } from '../../types';
|
|
2
|
-
|
|
3
|
-
import { OPERATOR_IS, OPERATOR_IS_ONE_OF } from '../../constants';
|
|
4
|
-
import { EFilterField, EOperatorField } from '../../types';
|
|
5
|
-
|
|
6
|
-
export interface IBuildFilterConditionsParams {
|
|
7
|
-
filters: GemXQlFilters;
|
|
8
|
-
overrideFilters?: GemXQlOverrideFilters;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface IBuildVersionIdConditionParams {
|
|
12
|
-
versionIds?: GemXQlVersionIds;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface FilterConfig {
|
|
16
|
-
operator?: EOperatorField;
|
|
17
|
-
operatorVal?: string;
|
|
18
|
-
singleField: EFilterField;
|
|
19
|
-
multiField: EFilterField;
|
|
20
|
-
condition?: EFilterField;
|
|
21
|
-
fieldName?: EFilterField;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const filterConfigs: FilterConfig[] = [
|
|
25
|
-
{
|
|
26
|
-
operator: EOperatorField.DEVICE_OPERATOR,
|
|
27
|
-
singleField: EFilterField.DEVICE,
|
|
28
|
-
multiField: EFilterField.DEVICES,
|
|
29
|
-
fieldName: EFilterField.DEVICE,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
operator: EOperatorField.VISITOR_OPERATOR,
|
|
33
|
-
singleField: EFilterField.VISITOR,
|
|
34
|
-
multiField: EFilterField.VISITORS,
|
|
35
|
-
fieldName: EFilterField.VISITOR,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
operator: EOperatorField.TRAFFIC_SOURCE_OPERATOR,
|
|
39
|
-
singleField: EFilterField.TRAFFIC_SOURCE,
|
|
40
|
-
multiField: EFilterField.TRAFFIC_SOURCES,
|
|
41
|
-
fieldName: EFilterField.TRAFFIC_SOURCE,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
operator: EOperatorField.VERSION_OPERATOR,
|
|
45
|
-
singleField: EFilterField.VERSION,
|
|
46
|
-
multiField: EFilterField.VERSIONS,
|
|
47
|
-
fieldName: EFilterField.VERSION,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
operator: EOperatorField.PAGE_OPERATOR,
|
|
51
|
-
singleField: EFilterField.SINGLE_PAGE,
|
|
52
|
-
multiField: EFilterField.LIST_PAGE,
|
|
53
|
-
fieldName: EFilterField.SINGLE_PAGE,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
operator: EOperatorField.CAMPAIGN_ITEM_OPERATOR,
|
|
57
|
-
singleField: EFilterField.GROUP_CAMPAIGN_ITEM,
|
|
58
|
-
multiField: EFilterField.GROUP_CAMPAIGN_ITEMS,
|
|
59
|
-
condition: EFilterField.GROUP_CAMPAIGN,
|
|
60
|
-
fieldName: EFilterField.SINGLE_CAMPAIGN,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
operatorVal: OPERATOR_IS,
|
|
64
|
-
singleField: EFilterField.SINGLE_CAMPAIGN,
|
|
65
|
-
multiField: EFilterField.GROUP_CAMPAIGN,
|
|
66
|
-
},
|
|
67
|
-
];
|
|
68
|
-
|
|
69
|
-
const quoteStr = (v: string): string => `'${v.replace(/'/g, "''")}'`;
|
|
70
|
-
|
|
71
|
-
const buildCondition = (data: {
|
|
72
|
-
operatorValue: string | undefined;
|
|
73
|
-
singleValue?: string;
|
|
74
|
-
multiValue?: string[];
|
|
75
|
-
fieldName: string;
|
|
76
|
-
}) => {
|
|
77
|
-
const { operatorValue, singleValue, multiValue, fieldName } = data;
|
|
78
|
-
if (operatorValue === OPERATOR_IS && singleValue) {
|
|
79
|
-
return `${fieldName} = ${quoteStr(singleValue)}`;
|
|
80
|
-
} else if (operatorValue === OPERATOR_IS_ONE_OF && Array.isArray(multiValue) && multiValue.length > 0) {
|
|
81
|
-
return `${fieldName} IN (${multiValue.map(quoteStr).join(', ')})`;
|
|
82
|
-
}
|
|
83
|
-
return '';
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
const buildOverrideFilterConditions = (overrideFilters?: GemXQlOverrideFilters) => {
|
|
87
|
-
if (!overrideFilters) return {};
|
|
88
|
-
|
|
89
|
-
return Object.fromEntries(
|
|
90
|
-
Object.entries(overrideFilters)
|
|
91
|
-
.filter(([, value]) => value !== undefined)
|
|
92
|
-
.map(([key, value]) => {
|
|
93
|
-
const condition = Array.isArray(value)
|
|
94
|
-
? `${key} IN (${value.map(quoteStr).join(', ')})`
|
|
95
|
-
: `${key} = ${quoteStr(String(value))}`;
|
|
96
|
-
return [key, condition];
|
|
97
|
-
}),
|
|
98
|
-
);
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export const generateFilterConditions = (filters: GemXQlFilters, overrideFilters?: GemXQlOverrideFilters) => {
|
|
102
|
-
const conditions: string[] = [];
|
|
103
|
-
|
|
104
|
-
const hasFilters = Object.keys(filters).length > 0;
|
|
105
|
-
const hasOverride = !!overrideFilters && Object.keys(overrideFilters).length > 0;
|
|
106
|
-
if (!hasFilters && !hasOverride) return conditions;
|
|
107
|
-
|
|
108
|
-
const overrideConditionsMap = buildOverrideFilterConditions(overrideFilters);
|
|
109
|
-
|
|
110
|
-
filterConfigs.forEach(({ operator, operatorVal, singleField, multiField, condition, fieldName }) => {
|
|
111
|
-
if (overrideConditionsMap[singleField]) {
|
|
112
|
-
conditions.push(overrideConditionsMap[singleField]);
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
const operatorValue = operator ? filters[operator] : operatorVal;
|
|
117
|
-
let singleValue = filters[singleField];
|
|
118
|
-
const multiValue = filters[multiField];
|
|
119
|
-
const conditionValue = condition && filters[condition];
|
|
120
|
-
|
|
121
|
-
if (condition && !conditionValue) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const resolvedFieldName = fieldName ?? (singleValue ? singleField : multiField);
|
|
126
|
-
|
|
127
|
-
if (operatorVal && !singleValue) {
|
|
128
|
-
singleValue = filters[multiField] as string | undefined;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
const result = buildCondition({
|
|
132
|
-
operatorValue,
|
|
133
|
-
singleValue: Array.isArray(singleValue) ? undefined : singleValue,
|
|
134
|
-
multiValue: Array.isArray(multiValue) ? multiValue : undefined,
|
|
135
|
-
fieldName: resolvedFieldName,
|
|
136
|
-
});
|
|
137
|
-
if (result) conditions.push(result);
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
return conditions;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
export const buildVersionIdCondition = (versionIds?: GemXQlVersionIds) => {
|
|
144
|
-
const conditions: string[] = [];
|
|
145
|
-
|
|
146
|
-
if (!versionIds) return conditions;
|
|
147
|
-
|
|
148
|
-
Object.entries(versionIds).forEach(([key, value]) => {
|
|
149
|
-
if (!value) return;
|
|
150
|
-
conditions.push(`${key} = ${quoteStr(value)}`);
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
return conditions;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
export const getFirstMetricInOrderBy = (orderBy: OrderByFields | undefined, metrics: string[]) => {
|
|
157
|
-
if (!orderBy || metrics.length === 0) return [];
|
|
158
|
-
|
|
159
|
-
const metric = metrics.find((metric) => orderBy[metric]);
|
|
160
|
-
return metric ? [metric] : [];
|
|
161
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { Dayjs } from '@/utils';
|
|
2
|
-
import type { AnalyticDateFilter } from '@/components';
|
|
3
|
-
|
|
4
|
-
import { dayjsTz } from '@/utils';
|
|
5
|
-
import { DATE_QUERY_FORMAT } from '../configs';
|
|
6
|
-
|
|
7
|
-
const toDate = (value: Dayjs | string): Dayjs => (typeof value === 'string' ? dayjsTz(value) : value);
|
|
8
|
-
|
|
9
|
-
const isMidnight = (date: Dayjs) => date.hour() === 0 && date.minute() === 0;
|
|
10
|
-
|
|
11
|
-
const formatDateForQuery = (date: Dayjs, isEndDay = false) => {
|
|
12
|
-
if (isEndDay && isMidnight(date)) {
|
|
13
|
-
return date.endOf('day').format(DATE_QUERY_FORMAT);
|
|
14
|
-
}
|
|
15
|
-
return date.format(DATE_QUERY_FORMAT);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const getEndOfDayForQuery = (value?: string | Dayjs) => {
|
|
19
|
-
if (!value) {
|
|
20
|
-
return formatDateForQuery(dayjsTz().endOf('day'));
|
|
21
|
-
}
|
|
22
|
-
return formatDateForQuery(dayjsTz(value).endOf('day'));
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const getDateRangeForQuery = (dateRange: AnalyticDateFilter) => {
|
|
26
|
-
const startDate = toDate(dateRange.startDate);
|
|
27
|
-
const endDate = toDate(dateRange.endDate);
|
|
28
|
-
const isInTheDay = startDate.isSame(endDate);
|
|
29
|
-
|
|
30
|
-
if (isInTheDay) {
|
|
31
|
-
return {
|
|
32
|
-
dateGTE: formatDateForQuery(startDate),
|
|
33
|
-
dateLTE: getEndOfDayForQuery(endDate),
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return {
|
|
38
|
-
dateGTE: formatDateForQuery(startDate),
|
|
39
|
-
dateLTE: formatDateForQuery(endDate, true),
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './is-valid-query-input';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { AnalyticDateFilter } from '@/components';
|
|
2
|
-
import type { IBuildGemXQlQueryParams } from './build-gemxql-query';
|
|
3
|
-
|
|
4
|
-
import { parseConditionQuery } from './clauses/condition-query';
|
|
5
|
-
import { parseFromQuery } from './clauses/from-query';
|
|
6
|
-
import { parseGroupQuery } from './clauses/group-query';
|
|
7
|
-
import { parseLimitQuery } from './clauses/limit-query';
|
|
8
|
-
import { parseModeQuery } from './clauses/mode-query';
|
|
9
|
-
import { parseOffsetQuery } from './clauses/offset-query';
|
|
10
|
-
import { parseOrderByQuery } from './clauses/order-by-query';
|
|
11
|
-
import { parseShowQuery } from './clauses/show-query';
|
|
12
|
-
import { parseTimeQuery } from './clauses/time-query';
|
|
13
|
-
import { parseTimeSeriesQuery } from './clauses/time-series-query';
|
|
14
|
-
import { parseTimezoneQuery } from './clauses/timezone-query';
|
|
15
|
-
|
|
16
|
-
export type IParsedGemXQlQuery = Partial<IBuildGemXQlQueryParams>;
|
|
17
|
-
|
|
18
|
-
const parse = (query: string): IParsedGemXQlQuery => {
|
|
19
|
-
const { dateRange, compareDateRange, timeDimension: overrideTimeDimension, overrideFilters } = parseTimeQuery(query);
|
|
20
|
-
const timeDimension = overrideTimeDimension ?? parseTimeSeriesQuery(query);
|
|
21
|
-
const { dimensions, groupWithClause } = parseGroupQuery(query);
|
|
22
|
-
const { filters, versionIds } = parseConditionQuery(query);
|
|
23
|
-
|
|
24
|
-
return {
|
|
25
|
-
mode: parseModeQuery(query),
|
|
26
|
-
sources: parseFromQuery(query),
|
|
27
|
-
metrics: parseShowQuery(query),
|
|
28
|
-
dimensions,
|
|
29
|
-
groupWithClause,
|
|
30
|
-
timeDimension,
|
|
31
|
-
dateRange: dateRange as AnalyticDateFilter,
|
|
32
|
-
compareDateRange: compareDateRange as AnalyticDateFilter,
|
|
33
|
-
overrideFilters,
|
|
34
|
-
filters,
|
|
35
|
-
versionIds,
|
|
36
|
-
timezone: parseTimezoneQuery(query),
|
|
37
|
-
orderBy: parseOrderByQuery(query),
|
|
38
|
-
limit: parseLimitQuery(query),
|
|
39
|
-
offset: parseOffsetQuery(query),
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export { parse as parseGemXQlQuery };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ERowReaderMode } from '../types';
|
|
2
|
-
import { COMPARE_PREFIX, COMPARE_SUFFIX, COMPARE_TOTALS_SUFFIX, TOTALS_SUFFIX } from './column-keys';
|
|
3
|
-
|
|
4
|
-
export const ROW_READER_MODE_CONFIG: Record<ERowReaderMode, { prefix: string; suffix: string }> = {
|
|
5
|
-
[ERowReaderMode.DEFAULT]: { prefix: '', suffix: '' },
|
|
6
|
-
[ERowReaderMode.COMPARISON]: { prefix: COMPARE_PREFIX, suffix: COMPARE_SUFFIX },
|
|
7
|
-
[ERowReaderMode.TOTALS]: { prefix: '', suffix: TOTALS_SUFFIX },
|
|
8
|
-
[ERowReaderMode.COMPARISON_TOTALS]: { prefix: COMPARE_PREFIX, suffix: COMPARE_TOTALS_SUFFIX },
|
|
9
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
export type Maybe<T> = T | null | undefined;
|
|
2
|
-
|
|
3
|
-
export type TableDataType =
|
|
4
|
-
| 'ARRAY'
|
|
5
|
-
| 'CURRENCY'
|
|
6
|
-
| 'DATE'
|
|
7
|
-
| 'DAY_TIMESTAMP'
|
|
8
|
-
| 'DURATION'
|
|
9
|
-
| 'HOUR_TIMESTAMP'
|
|
10
|
-
| 'INTEGER'
|
|
11
|
-
| 'MONTH_TIMESTAMP'
|
|
12
|
-
| 'OBJECT'
|
|
13
|
-
| 'PERCENT'
|
|
14
|
-
| 'QUARTER_TIMESTAMP'
|
|
15
|
-
| 'STRING'
|
|
16
|
-
| 'WEEK_TIMESTAMP'
|
|
17
|
-
| 'YEAR_TIMESTAMP';
|
|
18
|
-
|
|
19
|
-
export interface IColumn {
|
|
20
|
-
dataType: TableDataType;
|
|
21
|
-
displayName?: Maybe<string>;
|
|
22
|
-
name: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type Scalars = {
|
|
26
|
-
ID: { input: string; output: string };
|
|
27
|
-
String: { input: string; output: string };
|
|
28
|
-
Boolean: { input: boolean; output: boolean };
|
|
29
|
-
Int: { input: number; output: number };
|
|
30
|
-
Float: { input: number; output: number };
|
|
31
|
-
Any: { input: any; output: any };
|
|
32
|
-
Cursor: { input: string; output: string };
|
|
33
|
-
Decimal: { input: any; output: any };
|
|
34
|
-
Map: { input: any; output: any };
|
|
35
|
-
Time: { input: string; output: string };
|
|
36
|
-
Uint: { input: string; output: string };
|
|
37
|
-
Upload: { input: any; output: any };
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export interface ITableData {
|
|
41
|
-
rows: Maybe<Array<Maybe<Scalars['Map']['output']>>>;
|
|
42
|
-
columns?: Maybe<Array<Maybe<IColumn>>>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export type ColumnSelectFragment = Pick<IColumn, 'dataType' | 'displayName' | 'name'>;
|
|
46
|
-
|
|
47
|
-
export type TableDataSelectFragment = Pick<ITableData, 'rows'> & {
|
|
48
|
-
columns?: Maybe<Array<Maybe<Pick<IColumn, 'dataType' | 'displayName' | 'name'>>>>;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export type GemXqlResultSelectFragment = {
|
|
52
|
-
tableData?: Maybe<
|
|
53
|
-
Pick<ITableData, 'rows'> & {
|
|
54
|
-
columns?: Maybe<Array<Maybe<Pick<IColumn, 'dataType' | 'displayName' | 'name'>>>>;
|
|
55
|
-
}
|
|
56
|
-
>;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const ColumnSelectFragmentDoc = `
|
|
60
|
-
fragment ColumnSelect on Column {
|
|
61
|
-
dataType
|
|
62
|
-
displayName
|
|
63
|
-
name
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
export const TableDataSelectFragmentDoc = `
|
|
67
|
-
fragment TableDataSelect on TableData {
|
|
68
|
-
columns {
|
|
69
|
-
...ColumnSelect
|
|
70
|
-
}
|
|
71
|
-
rows
|
|
72
|
-
}
|
|
73
|
-
`;
|
|
74
|
-
export const GemXqlResultSelectFragmentDoc = `
|
|
75
|
-
fragment GemXQLResultSelect on GemxQLResult {
|
|
76
|
-
tableData {
|
|
77
|
-
...TableDataSelect
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
`;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
fragment ColumnSelect on Column {
|
|
2
|
-
dataType
|
|
3
|
-
displayName
|
|
4
|
-
name
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
fragment TableDataSelect on TableData {
|
|
8
|
-
columns {
|
|
9
|
-
...ColumnSelect
|
|
10
|
-
}
|
|
11
|
-
rows
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
fragment GemXQLResultSelect on GemxQLResult {
|
|
15
|
-
tableData {
|
|
16
|
-
...TableDataSelect
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Maybe } from '../fragments/gemxql.generated';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ColumnSelectFragmentDoc,
|
|
5
|
-
GemXqlResultSelectFragmentDoc,
|
|
6
|
-
TableDataSelectFragmentDoc,
|
|
7
|
-
type GemXqlResultSelectFragment,
|
|
8
|
-
} from '../fragments/gemxql.generated';
|
|
9
|
-
|
|
10
|
-
export type GemxQlQueryVariables = {
|
|
11
|
-
input: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type GemxQlQueryResponse = {
|
|
15
|
-
gemxQLQuery?: Maybe<GemXqlResultSelectFragment>;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const GemxQlDocument = `
|
|
19
|
-
query GemxQL($input: String!) {
|
|
20
|
-
gemxQLQuery(query: $input) {
|
|
21
|
-
...GemXQLResultSelect
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
${GemXqlResultSelectFragmentDoc}
|
|
25
|
-
${TableDataSelectFragmentDoc}
|
|
26
|
-
${ColumnSelectFragmentDoc}`;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { COMPARE_PREFIX, COMPARE_SUFFIX, TOTALS_SUFFIX } from '../constants';
|
|
2
|
-
|
|
3
|
-
export const getTotalsKey = (metric: string): string => `${metric}${TOTALS_SUFFIX}`;
|
|
4
|
-
|
|
5
|
-
export const getComparisonKey = (metric: string): string => `${COMPARE_PREFIX}${metric}${COMPARE_SUFFIX}`;
|
|
6
|
-
|
|
7
|
-
export const getComparisonTotalsKey = (metric: string): string =>
|
|
8
|
-
`${COMPARE_PREFIX}${metric}${COMPARE_SUFFIX}${TOTALS_SUFFIX}`;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { GemxQlQueryResponse, TableDataType } from '../graphql';
|
|
2
|
-
|
|
3
|
-
export type ColumnTypesMap = Record<string, TableDataType>;
|
|
4
|
-
|
|
5
|
-
export const extractQueryRows = (response?: GemxQlQueryResponse): Record<string, unknown>[] =>
|
|
6
|
-
(response?.gemxQLQuery?.tableData?.rows as Record<string, unknown>[]) ?? [];
|
|
7
|
-
|
|
8
|
-
export const extractQueryColumns = (response?: GemxQlQueryResponse) => response?.gemxQLQuery?.tableData?.columns ?? [];
|
|
9
|
-
|
|
10
|
-
export const extractColumnTypes = (response?: GemxQlQueryResponse): ColumnTypesMap => {
|
|
11
|
-
const columns = extractQueryColumns(response);
|
|
12
|
-
const columnTypes: ColumnTypesMap = {};
|
|
13
|
-
|
|
14
|
-
for (const column of columns) {
|
|
15
|
-
if (column?.name) columnTypes[column.name] = column.dataType;
|
|
16
|
-
}
|
|
17
|
-
return columnTypes;
|
|
18
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import type { AnalyticValueType } from '../types';
|
|
2
|
-
|
|
3
|
-
import { calcPercentageString } from '@/utils/percentage';
|
|
4
|
-
import { NONE_VALUE } from '../constants';
|
|
5
|
-
import { EAnalyticColumnKey, EAnalyticDataType } from '../types';
|
|
6
|
-
import { AnalyticInterval, getFormattedByInterval, getTimeDurationLabel, numberWithCommas } from '@/utils';
|
|
7
|
-
import { formatAnalyticDate } from './formatAnalyticDate';
|
|
8
|
-
|
|
9
|
-
export type IGetTextPrice = (
|
|
10
|
-
price?: number | string | null,
|
|
11
|
-
hasCurrency?: boolean,
|
|
12
|
-
options?: { compact?: boolean },
|
|
13
|
-
) => string;
|
|
14
|
-
|
|
15
|
-
export const formatAnalyticData = ({
|
|
16
|
-
value,
|
|
17
|
-
formatter,
|
|
18
|
-
getTextPrice,
|
|
19
|
-
name,
|
|
20
|
-
}: {
|
|
21
|
-
value: AnalyticValueType;
|
|
22
|
-
formatter?: string;
|
|
23
|
-
getTextPrice?: IGetTextPrice;
|
|
24
|
-
name?: string;
|
|
25
|
-
}): AnalyticValueType => {
|
|
26
|
-
const dataTypeIsObjectOrArray = value !== null && (typeof value === 'object' || Array.isArray(value));
|
|
27
|
-
|
|
28
|
-
if (dataTypeIsObjectOrArray) return value;
|
|
29
|
-
|
|
30
|
-
switch (formatter) {
|
|
31
|
-
case EAnalyticDataType.INTEGER: {
|
|
32
|
-
return numberWithCommas((value ?? 0).toString());
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
case EAnalyticDataType.CURRENCY: {
|
|
36
|
-
if (!getTextPrice) return `${value ?? 0}`;
|
|
37
|
-
return getTextPrice(value as number | null, false);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
case EAnalyticDataType.DATE: {
|
|
41
|
-
return formatAnalyticDate(value as string | number | null);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
case EAnalyticDataType.PERCENT: {
|
|
45
|
-
if (typeof value !== 'number') return calcPercentageString(0, 1, 2) ?? '';
|
|
46
|
-
return calcPercentageString(value / 100, 1, 2) ?? '';
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
case EAnalyticDataType.DURATION: {
|
|
50
|
-
return getTimeDurationLabel(Number(value));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
case EAnalyticDataType.STRING: {
|
|
54
|
-
const fallbackValue = name === EAnalyticColumnKey.CAMPAIGNS ? '' : NONE_VALUE;
|
|
55
|
-
return value ?? fallbackValue;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
case EAnalyticDataType.DAY: {
|
|
59
|
-
return getFormattedByInterval(value as string | number | null, AnalyticInterval.DAY, { isExpandDetail: true });
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
case EAnalyticDataType.HOUR: {
|
|
63
|
-
return getFormattedByInterval(value as string | number | null, AnalyticInterval.HOUR, { isExpandDetail: true });
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
case EAnalyticDataType.MONTH: {
|
|
67
|
-
return getFormattedByInterval(value as string | number | null, AnalyticInterval.MONTH, { isExpandDetail: true });
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
case EAnalyticDataType.YEAR: {
|
|
71
|
-
return getFormattedByInterval(value as string | number | null, AnalyticInterval.YEAR);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
case EAnalyticDataType.WEEK: {
|
|
75
|
-
return getFormattedByInterval(value as string | number | null, AnalyticInterval.WEEK, { isExpandDetail: true });
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
case EAnalyticDataType.QUARTER: {
|
|
79
|
-
return getFormattedByInterval(value as string | number | null, AnalyticInterval.QUARTER, {
|
|
80
|
-
isExpandDetail: true,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
case EAnalyticDataType.OBJECT:
|
|
85
|
-
case EAnalyticDataType.ARRAY: {
|
|
86
|
-
return value;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
default:
|
|
90
|
-
return `${value}`;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { dayjsTz } from '@/utils';
|
|
2
|
-
|
|
3
|
-
export const formatAnalyticDate = (dateString: string | number | null) => {
|
|
4
|
-
if (!dateString) return 'None';
|
|
5
|
-
|
|
6
|
-
const date = dayjsTz(dateString);
|
|
7
|
-
const now = dayjsTz();
|
|
8
|
-
const yesterday = dayjsTz().subtract(1, 'day');
|
|
9
|
-
|
|
10
|
-
const isToday = date.format('YYYY-MM-DD') === now.format('YYYY-MM-DD');
|
|
11
|
-
const isYesterday = date.format('YYYY-MM-DD') === yesterday.format('YYYY-MM-DD');
|
|
12
|
-
|
|
13
|
-
if (isToday) {
|
|
14
|
-
return `Today at ${date.format('HH:mm')}`;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if (isYesterday) {
|
|
18
|
-
return `Yesterday at ${date.format('HH:mm')}`;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const daysDiff = now.diff(date, 'day');
|
|
22
|
-
const isWithinWeek = daysDiff >= 0 && daysDiff < 7;
|
|
23
|
-
|
|
24
|
-
if (isWithinWeek) {
|
|
25
|
-
return `${date.format('dddd')} at ${date.format('HH:mm')}`;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return `${date.format('MMM D')} at ${date.format('hh:mm a')}`;
|
|
29
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Dayjs } from '@/utils';
|
|
2
|
-
|
|
3
|
-
import { ETimeDimension } from '../types';
|
|
4
|
-
|
|
5
|
-
export const getTimeDimensionByDate = (startDate: Dayjs, endDate: Dayjs): ETimeDimension => {
|
|
6
|
-
const durationInDays = endDate.diff(startDate, 'day');
|
|
7
|
-
|
|
8
|
-
if (durationInDays <= 3) return ETimeDimension.HOUR;
|
|
9
|
-
if (durationInDays <= 93) return ETimeDimension.DAY;
|
|
10
|
-
return ETimeDimension.MONTH;
|
|
11
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './columnKeys';
|
|
2
|
-
export * from './extractQueryData';
|
|
3
|
-
export * from './formatAnalyticData';
|
|
4
|
-
export * from './formatAnalyticDate';
|
|
5
|
-
export * from './getTimeDimension';
|
|
6
|
-
export * from './hasMetricData';
|
|
7
|
-
export * from './parseJsonFields';
|
|
8
|
-
export * from './readNumeric';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { IPageItemsPayload } from '../types';
|
|
2
|
-
|
|
3
|
-
export interface IBreakdownItem<T extends string = string> {
|
|
4
|
-
type: T;
|
|
5
|
-
total: number;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const parseRawJson = (raw: unknown): unknown => {
|
|
9
|
-
if (!raw) return undefined;
|
|
10
|
-
return typeof raw === 'string' ? JSON.parse(raw) : raw;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const parseJsonObject = <T extends object>(value: unknown): T | null => {
|
|
14
|
-
try {
|
|
15
|
-
const parsed = parseRawJson(value);
|
|
16
|
-
if (!parsed || typeof parsed !== 'object') return null;
|
|
17
|
-
return parsed as T;
|
|
18
|
-
} catch {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export const parseJsonArray = <T>(raw: unknown): T[] | undefined => {
|
|
24
|
-
try {
|
|
25
|
-
const parsed = parseRawJson(raw);
|
|
26
|
-
if (!Array.isArray(parsed)) return undefined;
|
|
27
|
-
return parsed as T[];
|
|
28
|
-
} catch {
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const parseBreakdownItems = <T extends string = string>(raw: unknown): IBreakdownItem<T>[] | undefined =>
|
|
34
|
-
parseJsonArray<IBreakdownItem<T>>(raw)?.map((item) => ({ ...item, total: Number(item.total) }));
|
|
35
|
-
|
|
36
|
-
export const parsePageItems = (value: unknown): IPageItemsPayload | null => parseJsonObject<IPageItemsPayload>(value);
|