@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.
Files changed (705) hide show
  1. package/dist/esm/components/OrderAnalytic/types/order.d.ts +1 -1
  2. package/package.json +38 -15
  3. package/src/api/graphql/fragments/pathAnalytic.generated.ts +0 -26
  4. package/src/assets/img/all-sessions.png +0 -0
  5. package/src/assets/img/analytic-empty.png +0 -0
  6. package/src/assets/img/first-session.png +0 -0
  7. package/src/assets/img/page-only.png +0 -0
  8. package/src/assets/svg/gemx-skeleton.svg +0 -12
  9. package/src/assets/svg/product.svg +0 -18
  10. package/src/components/AnalyticMode/AnalyticModeSelector.tsx +0 -50
  11. package/src/components/AnalyticMode/index.ts +0 -2
  12. package/src/components/CardPathAnalysis/CardJourneyAnalysis.tsx +0 -33
  13. package/src/components/CardPathAnalysis/assets/img/analytic-gemx.png +0 -0
  14. package/src/components/CardPathAnalysis/assets/styles/PathAnalysis.scss +0 -60
  15. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.tsx +0 -45
  16. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.tsx +0 -53
  17. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.tsx +0 -65
  18. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.tsx +0 -29
  19. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.tsx +0 -12
  20. package/src/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.tsx +0 -43
  21. package/src/components/CardPathAnalysis/components/CardPathAnalysis/index.ts +0 -1
  22. package/src/components/CardPathAnalysis/components/PathAnalysisChart.tsx +0 -55
  23. package/src/components/CardPathAnalysis/components/index.ts +0 -1
  24. package/src/components/CardPathAnalysis/configs/index.ts +0 -2
  25. package/src/components/CardPathAnalysis/constants/index.ts +0 -1
  26. package/src/components/CardPathAnalysis/constants/path-analysis.ts +0 -162
  27. package/src/components/CardPathAnalysis/contexts/PathAnalysisConfigProvider.tsx +0 -66
  28. package/src/components/CardPathAnalysis/contexts/PathAnalysisProvider.tsx +0 -130
  29. package/src/components/CardPathAnalysis/contexts/index.ts +0 -2
  30. package/src/components/CardPathAnalysis/helpers/index.ts +0 -2
  31. package/src/components/CardPathAnalysis/helpers/metricHelpers.ts +0 -13
  32. package/src/components/CardPathAnalysis/helpers/pathAnalysis.ts +0 -96
  33. package/src/components/CardPathAnalysis/helpers/pathAnalysisChart.ts +0 -128
  34. package/src/components/CardPathAnalysis/helpers/treeUtils.ts +0 -38
  35. package/src/components/CardPathAnalysis/hooks/usePathAnalysisChart.tsx +0 -292
  36. package/src/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.ts +0 -206
  37. package/src/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.ts +0 -43
  38. package/src/components/CardPathAnalysis/index.ts +0 -5
  39. package/src/components/CardPathAnalysis/stores/funnel-chart.ts +0 -30
  40. package/src/components/CardPathAnalysis/stores/index.ts +0 -3
  41. package/src/components/CardPathAnalysis/stores/path-analysis-campaign.ts +0 -16
  42. package/src/components/CardPathAnalysis/stores/path-analysis.ts +0 -11
  43. package/src/components/CardPathAnalysis/types/index.ts +0 -1
  44. package/src/components/CardPathAnalysis/types/path-analysis.ts +0 -10
  45. package/src/components/CurrencySelector/CurrencySelector.tsx +0 -127
  46. package/src/components/CurrencySelector/index.ts +0 -2
  47. package/src/components/GModalOrderJourney/GModalOrderJourney.tsx +0 -131
  48. package/src/components/GModalOrderJourney/components/OrderJourneySkeleton.tsx +0 -93
  49. package/src/components/GModalOrderJourney/components/index.ts +0 -1
  50. package/src/components/GModalOrderJourney/context/OrderJourneyContext.tsx +0 -17
  51. package/src/components/GModalOrderJourney/context/index.ts +0 -1
  52. package/src/components/GModalOrderJourney/hooks/index.ts +0 -1
  53. package/src/components/GModalOrderJourney/hooks/useGModalOrderJourney.ts +0 -25
  54. package/src/components/GModalOrderJourney/index.ts +0 -5
  55. package/src/components/GModalOrderJourney/types/index.ts +0 -4
  56. package/src/components/GModalOrderJourney/utils/index.ts +0 -75
  57. package/src/components/GSelectableMetricChartCard/GSelectableMetricChartCard.tsx +0 -83
  58. package/src/components/GSelectableMetricChartCard/MetricChartTab.tsx +0 -56
  59. package/src/components/GSelectableMetricChartCard/index.ts +0 -2
  60. package/src/components/GTimePicker/GTimePicker.tsx +0 -31
  61. package/src/components/GTimePicker/components/BaseTimePicker.tsx +0 -249
  62. package/src/components/GTimePicker/components/CompareTimePicker.tsx +0 -41
  63. package/src/components/GTimePicker/components/DateTimeFilterAddition.tsx +0 -84
  64. package/src/components/GTimePicker/components/DateTimeFilterInputs.tsx +0 -124
  65. package/src/components/GTimePicker/components/DateTimeFilters.tsx +0 -86
  66. package/src/components/GTimePicker/components/MainTimePicker.tsx +0 -47
  67. package/src/components/GTimePicker/components/index.ts +0 -2
  68. package/src/components/GTimePicker/constants/compareDateTimePicker.ts +0 -68
  69. package/src/components/GTimePicker/constants/datePicker.ts +0 -14
  70. package/src/components/GTimePicker/constants/index.ts +0 -2
  71. package/src/components/GTimePicker/constants/mainDataTimePicker.ts +0 -88
  72. package/src/components/GTimePicker/contexts/DateTimePickerProvider.tsx +0 -125
  73. package/src/components/GTimePicker/contexts/index.ts +0 -1
  74. package/src/components/GTimePicker/helpers/date-range-info.ts +0 -84
  75. package/src/components/GTimePicker/helpers/index.ts +0 -4
  76. package/src/components/GTimePicker/helpers/parse-date.ts +0 -127
  77. package/src/components/GTimePicker/helpers/time-picker.ts +0 -123
  78. package/src/components/GTimePicker/helpers/version.ts +0 -36
  79. package/src/components/GTimePicker/hooks/index.ts +0 -3
  80. package/src/components/GTimePicker/hooks/useCompareDateTimePicker.tsx +0 -79
  81. package/src/components/GTimePicker/hooks/useDateTimeFilter.ts +0 -83
  82. package/src/components/GTimePicker/hooks/useDateTimePicker.tsx +0 -99
  83. package/src/components/GTimePicker/hooks/useVersionDateTimeFilters.ts +0 -30
  84. package/src/components/GTimePicker/index.ts +0 -7
  85. package/src/components/GTimePicker/types/index.ts +0 -43
  86. package/src/components/MetricDonutChartCard/MetricDonutChartCard.tsx +0 -121
  87. package/src/components/MetricDonutChartCard/index.ts +0 -2
  88. package/src/components/MetricDonutChartCard/utils/donut-chart.ts +0 -75
  89. package/src/components/MetricDonutChartCard/utils/index.ts +0 -1
  90. package/src/components/OrderAnalytic/OrderListingLatestTable.tsx +0 -111
  91. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/OrderListingTableSkeleton.tsx +0 -40
  92. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonCellContent.tsx +0 -77
  93. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonHeader.tsx +0 -35
  94. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonRow.tsx +0 -35
  95. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/SkeletonSummaryRow.tsx +0 -36
  96. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/constants.ts +0 -11
  97. package/src/components/OrderAnalytic/components/OrderListing/OrderListingSkeleton/index.ts +0 -1
  98. package/src/components/OrderAnalytic/components/OrderListing/OrderListingTable.tsx +0 -159
  99. package/src/components/OrderAnalytic/components/OrderListing/OrderListingTableEmpty.tsx +0 -29
  100. package/src/components/OrderAnalytic/components/OrderListing/index.ts +0 -2
  101. package/src/components/OrderAnalytic/components/index.ts +0 -1
  102. package/src/components/OrderAnalytic/constants/index.ts +0 -2
  103. package/src/components/OrderAnalytic/constants/order-columns.ts +0 -51
  104. package/src/components/OrderAnalytic/constants/order-listing.ts +0 -199
  105. package/src/components/OrderAnalytic/helpers/index.ts +0 -1
  106. package/src/components/OrderAnalytic/helpers/order-listing.ts +0 -48
  107. package/src/components/OrderAnalytic/hooks/index.ts +0 -1
  108. package/src/components/OrderAnalytic/hooks/useOrderListingData.ts +0 -55
  109. package/src/components/OrderAnalytic/index.ts +0 -5
  110. package/src/components/OrderAnalytic/stores/index.ts +0 -2
  111. package/src/components/OrderAnalytic/stores/order-columns-selector.ts +0 -24
  112. package/src/components/OrderAnalytic/stores/order-control.ts +0 -15
  113. package/src/components/OrderAnalytic/types/index.ts +0 -3
  114. package/src/components/OrderAnalytic/types/order.ts +0 -89
  115. package/src/components/OrderAnalytic/types/orderListing.ts +0 -4
  116. package/src/components/OrderAnalytic/types/report.ts +0 -14
  117. package/src/components/SingleMetricChartCard/SingleMetricChartCard.tsx +0 -56
  118. package/src/components/SingleMetricChartCard/index.tsx +0 -2
  119. package/src/components/common/chart/GChartSkeleton.tsx +0 -5
  120. package/src/components/common/chart/MetricChart.tsx +0 -62
  121. package/src/components/common/chart/MetricChartEmpty.tsx +0 -35
  122. package/src/components/common/chart/MetricChartTooltip.tsx +0 -74
  123. package/src/components/common/chart/MetricDonutChartSkeleton.tsx +0 -14
  124. package/src/components/common/chart/MetricInfoBlock.tsx +0 -66
  125. package/src/components/common/chart/MetricInfoSkeleton.tsx +0 -25
  126. package/src/components/common/chart/MetricValueSummary.tsx +0 -23
  127. package/src/components/common/chart/index.ts +0 -8
  128. package/src/components/common/icons/DownIcon8px.tsx +0 -14
  129. package/src/components/common/icons/UpIcon8px.tsx +0 -14
  130. package/src/components/common/icons/index.ts +0 -2
  131. package/src/components/common/percent/MetricPercentage.tsx +0 -42
  132. package/src/components/common/percent/index.ts +0 -1
  133. package/src/components/index.ts +0 -9
  134. package/src/constants/analytic-metric-tooltip.tsx +0 -164
  135. package/src/constants/breakdown-targets.ts +0 -25
  136. package/src/constants/campaign.ts +0 -4
  137. package/src/constants/chart.ts +0 -17
  138. package/src/constants/currency.ts +0 -3
  139. package/src/constants/index.ts +0 -6
  140. package/src/constants/thumbnail.ts +0 -3
  141. package/src/core/gemxql/api/index.ts +0 -2
  142. package/src/core/gemxql/api/useCustomGemXQlQuery.ts +0 -35
  143. package/src/core/gemxql/api/useGemxQlNamedQuery.ts +0 -34
  144. package/src/core/gemxql/builder/build-gemxql-query.ts +0 -81
  145. package/src/core/gemxql/builder/clauses/condition-query.ts +0 -74
  146. package/src/core/gemxql/builder/clauses/from-query.ts +0 -18
  147. package/src/core/gemxql/builder/clauses/group-query.ts +0 -43
  148. package/src/core/gemxql/builder/clauses/index.ts +0 -11
  149. package/src/core/gemxql/builder/clauses/limit-query.ts +0 -15
  150. package/src/core/gemxql/builder/clauses/mode-query.ts +0 -14
  151. package/src/core/gemxql/builder/clauses/offset-query.ts +0 -15
  152. package/src/core/gemxql/builder/clauses/order-by-query.ts +0 -37
  153. package/src/core/gemxql/builder/clauses/show-query.ts +0 -18
  154. package/src/core/gemxql/builder/clauses/time-query.ts +0 -67
  155. package/src/core/gemxql/builder/clauses/time-series-query.ts +0 -15
  156. package/src/core/gemxql/builder/clauses/timezone-query.ts +0 -17
  157. package/src/core/gemxql/builder/configs/date-formats.ts +0 -1
  158. package/src/core/gemxql/builder/configs/index.ts +0 -3
  159. package/src/core/gemxql/builder/configs/keywords.ts +0 -16
  160. package/src/core/gemxql/builder/configs/query-defaults.ts +0 -1
  161. package/src/core/gemxql/builder/filters/build-extra-conditions.ts +0 -69
  162. package/src/core/gemxql/builder/filters/build-filter-conditions.ts +0 -161
  163. package/src/core/gemxql/builder/filters/index.ts +0 -2
  164. package/src/core/gemxql/builder/helpers/date-query-helpers.ts +0 -41
  165. package/src/core/gemxql/builder/helpers/index.ts +0 -1
  166. package/src/core/gemxql/builder/helpers/is-valid-query-input.ts +0 -8
  167. package/src/core/gemxql/builder/index.ts +0 -6
  168. package/src/core/gemxql/builder/parse-gemxql-query.ts +0 -43
  169. package/src/core/gemxql/constants/analytic-data.ts +0 -2
  170. package/src/core/gemxql/constants/column-keys.ts +0 -4
  171. package/src/core/gemxql/constants/index.ts +0 -4
  172. package/src/core/gemxql/constants/operators.ts +0 -2
  173. package/src/core/gemxql/constants/row-reader-mode.ts +0 -9
  174. package/src/core/gemxql/graphql/fragments/gemxql.generated.ts +0 -80
  175. package/src/core/gemxql/graphql/fragments/gemxql.gql +0 -18
  176. package/src/core/gemxql/graphql/index.ts +0 -2
  177. package/src/core/gemxql/graphql/queries/gemxql.generated.ts +0 -26
  178. package/src/core/gemxql/graphql/queries/gemxql.gql +0 -5
  179. package/src/core/gemxql/helpers/columnKeys.ts +0 -8
  180. package/src/core/gemxql/helpers/extractQueryData.ts +0 -18
  181. package/src/core/gemxql/helpers/formatAnalyticData.ts +0 -92
  182. package/src/core/gemxql/helpers/formatAnalyticDate.ts +0 -29
  183. package/src/core/gemxql/helpers/getTimeDimension.ts +0 -11
  184. package/src/core/gemxql/helpers/hasMetricData.ts +0 -6
  185. package/src/core/gemxql/helpers/index.ts +0 -8
  186. package/src/core/gemxql/helpers/parseJsonFields.ts +0 -36
  187. package/src/core/gemxql/helpers/readNumeric.ts +0 -25
  188. package/src/core/gemxql/hooks/index.ts +0 -2
  189. package/src/core/gemxql/hooks/useAnalyticData.ts +0 -67
  190. package/src/core/gemxql/hooks/useGemXQlPagination.ts +0 -79
  191. package/src/core/gemxql/index.ts +0 -8
  192. package/src/core/gemxql/types/analytic-data.ts +0 -26
  193. package/src/core/gemxql/types/analytic-source.ts +0 -4
  194. package/src/core/gemxql/types/extra-condition.ts +0 -40
  195. package/src/core/gemxql/types/field-filters.ts +0 -18
  196. package/src/core/gemxql/types/field-operators.ts +0 -8
  197. package/src/core/gemxql/types/filter-types.ts +0 -33
  198. package/src/core/gemxql/types/group-with-clause.ts +0 -12
  199. package/src/core/gemxql/types/index.ts +0 -11
  200. package/src/core/gemxql/types/order-by.ts +0 -13
  201. package/src/core/gemxql/types/page-fields.ts +0 -25
  202. package/src/core/gemxql/types/row-reader-mode.ts +0 -6
  203. package/src/core/gemxql/types/time-dimension.ts +0 -8
  204. package/src/global.d.ts +0 -38
  205. package/src/hooks/index.ts +0 -7
  206. package/src/hooks/publish/index.ts +0 -2
  207. package/src/hooks/publish/useStickyDetectById.ts +0 -39
  208. package/src/hooks/publish/useStickyFilterBoxProps.ts +0 -26
  209. package/src/hooks/publish/useWindowSize.ts +0 -54
  210. package/src/hooks/useEnhancedEffect.ts +0 -3
  211. package/src/hooks/useFetchCurrencyRates.ts +0 -48
  212. package/src/hooks/useFormatLineChartData.ts +0 -28
  213. package/src/hooks/usePopoverResizeObserver.ts +0 -43
  214. package/src/hooks/usePreventBodyScroll.ts +0 -15
  215. package/src/hooks/useSearchParams.ts +0 -7
  216. package/src/hooks/useToggle.ts +0 -23
  217. package/src/index.ts +0 -10
  218. package/src/modules/analytics/constants/index.ts +0 -124
  219. package/src/modules/analytics/index.ts +0 -3
  220. package/src/modules/analytics/types/index.ts +0 -43
  221. package/src/modules/analytics/utils/formatMetric.ts +0 -42
  222. package/src/modules/analytics/utils/getPAMetricValue.ts +0 -11
  223. package/src/modules/analytics/utils/index.ts +0 -3
  224. package/src/modules/analytics/utils/metric.ts +0 -172
  225. package/src/providers/ConvertMoneyProvider.tsx +0 -68
  226. package/src/providers/MetricChartProvider.tsx +0 -50
  227. package/src/providers/TimezoneProvider.tsx +0 -31
  228. package/src/providers/index.ts +0 -5
  229. package/src/shared/charts/components/ComboChart.tsx +0 -108
  230. package/src/shared/charts/components/GBarChart.tsx +0 -96
  231. package/src/shared/charts/components/GComboChart.tsx +0 -15
  232. package/src/shared/charts/components/GDonutChart.tsx +0 -25
  233. package/src/shared/charts/components/GFunnelChart/GFunnelChart.tsx +0 -34
  234. package/src/shared/charts/components/GFunnelChart/components/FunnelChartAction.tsx +0 -67
  235. package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionIcon.tsx +0 -60
  236. package/src/shared/charts/components/GFunnelChart/components/FunnelChartActionWrapper.tsx +0 -100
  237. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionContent.tsx +0 -92
  238. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionHeader.tsx +0 -54
  239. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionItem.tsx +0 -51
  240. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/FunnelSelectionPopover.tsx +0 -95
  241. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/index.ts +0 -1
  242. package/src/shared/charts/components/GFunnelChart/components/FunnelSelection/type.ts +0 -7
  243. package/src/shared/charts/components/GFunnelChart/components/types.ts +0 -24
  244. package/src/shared/charts/components/GFunnelChart/index.ts +0 -4
  245. package/src/shared/charts/components/GFunnelChart/types.ts +0 -11
  246. package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.module.scss +0 -7
  247. package/src/shared/charts/components/GPolarisViz/components/Arc/Arc.tsx +0 -135
  248. package/src/shared/charts/components/GPolarisViz/components/Arc/index.ts +0 -1
  249. package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.module.scss +0 -39
  250. package/src/shared/charts/components/GPolarisViz/components/ChartContainer/ChartContainer.tsx +0 -150
  251. package/src/shared/charts/components/GPolarisViz/components/ChartContainer/hooks/useContainerBounds.ts +0 -113
  252. package/src/shared/charts/components/GPolarisViz/components/ChartContainer/index.ts +0 -1
  253. package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartDiv.tsx +0 -18
  254. package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartElements.module.scss +0 -21
  255. package/src/shared/charts/components/GPolarisViz/components/ChartElements/ChartSVG.tsx +0 -40
  256. package/src/shared/charts/components/GPolarisViz/components/ChartElements/index.ts +0 -7
  257. package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/ChartErrorBoundary.tsx +0 -56
  258. package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/index.ts +0 -1
  259. package/src/shared/charts/components/GPolarisViz/components/ChartErrorBoundary/utilities/checkForMismatchedData.ts +0 -34
  260. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.module.scss +0 -6
  261. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/ChartSkeleton.tsx +0 -96
  262. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.module.scss +0 -41
  263. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/DonutSkeleton.tsx +0 -193
  264. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/DonutSkeleton/index.ts +0 -1
  265. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/ErrorText.tsx +0 -40
  266. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/ErrorText/index.ts +0 -1
  267. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/FunnelSkeleton.tsx +0 -69
  268. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/FunnelSkeleton/index.ts +0 -1
  269. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/GridSkeleton.tsx +0 -155
  270. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/GridSkeleton/index.ts +0 -1
  271. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.module.scss +0 -33
  272. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/Shimmer.tsx +0 -34
  273. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/Shimmer/index.ts +0 -1
  274. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.module.scss +0 -15
  275. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/SimpleBarSkeleton.tsx +0 -53
  276. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleBarSkeleton/index.ts +0 -1
  277. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.module.scss +0 -35
  278. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/SimpleNormalizedSkeleton.tsx +0 -75
  279. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SimpleNormalizedSkeleton/index.ts +0 -1
  280. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/SparkSkeleton.tsx +0 -27
  281. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/SparkSkeleton/index.ts +0 -1
  282. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/components/index.ts +0 -8
  283. package/src/shared/charts/components/GPolarisViz/components/ChartSkeleton/index.ts +0 -9
  284. package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/ConicGradientWithStops.tsx +0 -27
  285. package/src/shared/charts/components/GPolarisViz/components/ConicGradientWithStops/index.ts +0 -1
  286. package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.module.scss +0 -8
  287. package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/DefaultPreview.tsx +0 -25
  288. package/src/shared/charts/components/GPolarisViz/components/DefaultPreview/index.ts +0 -2
  289. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/Chart.tsx +0 -209
  290. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/FunnelChart.tsx +0 -72
  291. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisArrows.tsx +0 -52
  292. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelChartXAxisLabels.tsx +0 -66
  293. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/FunnelSegment.tsx +0 -121
  294. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.module.scss +0 -23
  295. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/Label.tsx +0 -67
  296. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/components/index.ts +0 -4
  297. package/src/shared/charts/components/GPolarisViz/components/FunnelChart/index.ts +0 -2
  298. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/Chart.tsx +0 -259
  299. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/FunnelChartNext.tsx +0 -104
  300. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/FunnelChartLabels.tsx +0 -387
  301. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelChartLabels/index.ts +0 -1
  302. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.scss +0 -8
  303. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/FunnelTooltip.tsx +0 -37
  304. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/FunnelTooltip/index.ts +0 -3
  305. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIcon.tsx +0 -20
  306. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/ScaleIconTooltip.tsx +0 -31
  307. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/CustomTooltip.tsx +0 -68
  308. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.scss +0 -52
  309. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/Tooltip.tsx +0 -149
  310. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/Tooltip/index.ts +0 -1
  311. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipOverlay.tsx +0 -117
  312. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/TooltipWithPortal.tsx +0 -12
  313. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/components/index.ts +0 -8
  314. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/constants.ts +0 -28
  315. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipInteraction.ts +0 -59
  316. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/hooks/useTooltipPlacement.ts +0 -113
  317. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/index.ts +0 -6
  318. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/types.ts +0 -13
  319. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/calculate-dropoff.ts +0 -4
  320. package/src/shared/charts/components/GPolarisViz/components/FunnelChartNext/utilities/useBuildFunnelTrends.ts +0 -108
  321. package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/HorizontalGridLines.tsx +0 -27
  322. package/src/shared/charts/components/GPolarisViz/components/HorizontalGridLines/index.ts +0 -1
  323. package/src/shared/charts/components/GPolarisViz/components/Labels/SingleTextLine.tsx +0 -64
  324. package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/index.ts +0 -1
  325. package/src/shared/charts/components/GPolarisViz/components/Labels/hooks/useLabels.tsx +0 -131
  326. package/src/shared/charts/components/GPolarisViz/components/Labels/index.ts +0 -3
  327. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endLineTruncate.ts +0 -23
  328. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/endWordTruncate.ts +0 -34
  329. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/estimateTextHeight.ts +0 -31
  330. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/formatAndAddEllipsis.ts +0 -12
  331. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getDiagonalLabels.ts +0 -70
  332. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getHorizontalLabels.ts +0 -90
  333. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getVerticalLabels.ts +0 -58
  334. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/getWidestLabel.ts +0 -15
  335. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/shouldSkipLabel.ts +0 -11
  336. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/endWordTruncate.test.ts +0 -16
  337. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/estimateTextHeight.test.ts +0 -19
  338. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/formatAndAddEllipsis.test.ts +0 -9
  339. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateLastLine.test.ts +0 -22
  340. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/tests/truncateSingleLine.test.ts +0 -15
  341. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLabels.ts +0 -75
  342. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateLastLine.ts +0 -61
  343. package/src/shared/charts/components/GPolarisViz/components/Labels/utilities/truncateSingleLine.ts +0 -39
  344. package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.module.scss +0 -8
  345. package/src/shared/charts/components/GPolarisViz/components/LinePreview/LinePreview.tsx +0 -105
  346. package/src/shared/charts/components/GPolarisViz/components/LinePreview/constants.ts +0 -3
  347. package/src/shared/charts/components/GPolarisViz/components/LinePreview/index.ts +0 -2
  348. package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/SwallowErrors.tsx +0 -32
  349. package/src/shared/charts/components/GPolarisViz/components/SwallowErrors/index.ts +0 -1
  350. package/src/shared/charts/components/GPolarisViz/components/TextLine/TextLine.tsx +0 -88
  351. package/src/shared/charts/components/GPolarisViz/components/TextLine/index.ts +0 -1
  352. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/TooltipContent.tsx +0 -109
  353. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.module.scss +0 -10
  354. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/TooltipContentContainer.tsx +0 -67
  355. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipContentContainer/index.ts +0 -1
  356. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.module.scss +0 -26
  357. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/TooltipRow.tsx +0 -57
  358. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipRow/index.ts +0 -1
  359. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.module.scss +0 -4
  360. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/TooltipSeries.tsx +0 -26
  361. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeries/index.ts +0 -1
  362. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.module.scss +0 -4
  363. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/TooltipSeriesName.tsx +0 -20
  364. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipSeriesName/index.ts +0 -1
  365. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.module.scss +0 -7
  366. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/TooltipTitle.tsx +0 -15
  367. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/TooltipTitle/index.ts +0 -1
  368. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/components/index.ts +0 -5
  369. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/constants.ts +0 -2
  370. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/hooks/useGetLongestLabelFromData.ts +0 -56
  371. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/index.ts +0 -4
  372. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/get-tooltip-template-content-column-count.ts +0 -10
  373. package/src/shared/charts/components/GPolarisViz/components/TooltipContent/utilities/tests/get-tooltip-template-content-column-count.test.ts +0 -48
  374. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/TooltipWrapper.tsx +0 -338
  375. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.module.scss +0 -6
  376. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/components/TooltipAnimatedContainer.tsx +0 -139
  377. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/constants.ts +0 -18
  378. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/index.ts +0 -5
  379. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/types.ts +0 -62
  380. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/eventPoint.ts +0 -84
  381. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredHorizontalBarPosition.ts +0 -110
  382. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredLineChartPosition.ts +0 -115
  383. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getAlteredVerticalBarPosition.ts +0 -105
  384. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getDonutChartTooltipPosition.ts +0 -64
  385. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getHorizontalBarChartTooltipPosition.ts +0 -79
  386. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getLineChartTooltipPosition.ts +0 -68
  387. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/getVerticalBarChartTooltipPosition.ts +0 -123
  388. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities/shouldBlockTooltipEvents.ts +0 -6
  389. package/src/shared/charts/components/GPolarisViz/components/TooltipWrapper/utilities.ts +0 -162
  390. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/TrendIndicator.tsx +0 -72
  391. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowDown.tsx +0 -12
  392. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/ArrowUp.tsx +0 -12
  393. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Arrows/index.ts +0 -2
  394. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.scss +0 -7
  395. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/Svg.tsx +0 -27
  396. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/Svg/index.ts +0 -1
  397. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/components/index.ts +0 -2
  398. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/constants.ts +0 -12
  399. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/index.ts +0 -6
  400. package/src/shared/charts/components/GPolarisViz/components/TrendIndicator/utilities/estimateTrendIndicatorWidth.ts +0 -9
  401. package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/index.ts +0 -1
  402. package/src/shared/charts/components/GPolarisViz/components/VerticalBarChart/utilities/sortBarChartData.ts +0 -20
  403. package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/VerticalGridLines.tsx +0 -32
  404. package/src/shared/charts/components/GPolarisViz/components/VerticalGridLines/index.ts +0 -1
  405. package/src/shared/charts/components/GPolarisViz/components/index.ts +0 -6
  406. package/src/shared/charts/components/GPolarisViz/constants.ts +0 -72
  407. package/src/shared/charts/components/GPolarisViz/data/character-width-offsets.json +0 -65
  408. package/src/shared/charts/components/GPolarisViz/data/character-widths.json +0 -1
  409. package/src/shared/charts/components/GPolarisViz/hooks/index.ts +0 -5
  410. package/src/shared/charts/components/GPolarisViz/hooks/useBarSpringConfig.ts +0 -21
  411. package/src/shared/charts/components/GPolarisViz/hooks/useBrowserCheck.ts +0 -13
  412. package/src/shared/charts/components/GPolarisViz/hooks/useCallbackRef.tsx +0 -39
  413. package/src/shared/charts/components/GPolarisViz/hooks/useDataForHorizontalChart.ts +0 -69
  414. package/src/shared/charts/components/GPolarisViz/hooks/useDebouncedCallback.ts +0 -197
  415. package/src/shared/charts/components/GPolarisViz/hooks/useFormattedLabels.ts +0 -31
  416. package/src/shared/charts/components/GPolarisViz/hooks/useFunnelBarScaling.ts +0 -53
  417. package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalBarSizes.ts +0 -70
  418. package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalStackedValues.ts +0 -34
  419. package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalTicksAndScale.ts +0 -67
  420. package/src/shared/charts/components/GPolarisViz/hooks/useHorizontalXScale.ts +0 -48
  421. package/src/shared/charts/components/GPolarisViz/hooks/useIndexForLabels.ts +0 -16
  422. package/src/shared/charts/components/GPolarisViz/hooks/usePrefersReducedMotion.ts +0 -6
  423. package/src/shared/charts/components/GPolarisViz/hooks/usePrintResizing.ts +0 -94
  424. package/src/shared/charts/components/GPolarisViz/hooks/useReducedLabelIndexes.ts +0 -21
  425. package/src/shared/charts/components/GPolarisViz/hooks/useResizeObserver.ts +0 -39
  426. package/src/shared/charts/components/GPolarisViz/hooks/useRootContainer.ts +0 -20
  427. package/src/shared/charts/components/GPolarisViz/hooks/useWatchColorVisionEvents.tsx +0 -35
  428. package/src/shared/charts/components/GPolarisViz/index.ts +0 -10
  429. package/src/shared/charts/components/GPolarisViz/shared/Bar/Bar.tsx +0 -89
  430. package/src/shared/charts/components/GPolarisViz/shared/Bar/index.ts +0 -1
  431. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnector.tsx +0 -46
  432. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/FunnelChartConnectorGradient.tsx +0 -21
  433. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/constants.ts +0 -11
  434. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartConnector/index.ts +0 -3
  435. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/FunnelChartSegment.tsx +0 -100
  436. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/AnimatedSegment.tsx +0 -50
  437. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/InteractiveOverlay.tsx +0 -34
  438. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/components/ScaledSegment.tsx +0 -218
  439. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/constants.ts +0 -4
  440. package/src/shared/charts/components/GPolarisViz/shared/FunnelChartSegment/index.ts +0 -2
  441. package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/SeriesIcon.tsx +0 -22
  442. package/src/shared/charts/components/GPolarisViz/shared/SeriesIcon/index.ts +0 -1
  443. package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/ZeroValueLine.tsx +0 -45
  444. package/src/shared/charts/components/GPolarisViz/shared/ZeroValueLine/index.ts +0 -1
  445. package/src/shared/charts/components/GPolarisViz/shared/index.ts +0 -3
  446. package/src/shared/charts/components/GPolarisViz/styles/_common.scss +0 -15
  447. package/src/shared/charts/components/GPolarisViz/styles/shared/_accessibility.scss +0 -41
  448. package/src/shared/charts/components/GPolarisViz/styles/shared/_chart-container.scss +0 -8
  449. package/src/shared/charts/components/GPolarisViz/styles/shared/_variables.scss +0 -322
  450. package/src/shared/charts/components/GPolarisViz/types.ts +0 -261
  451. package/src/shared/charts/components/GPolarisViz/utilities/base.ts +0 -13
  452. package/src/shared/charts/components/GPolarisViz/utilities/classnames.ts +0 -3
  453. package/src/shared/charts/components/GPolarisViz/utilities/createCssConicGradient.ts +0 -12
  454. package/src/shared/charts/components/GPolarisViz/utilities/createCssGradient.ts +0 -7
  455. package/src/shared/charts/components/GPolarisViz/utilities/estimateStringWidthWithOffset.ts +0 -15
  456. package/src/shared/charts/components/GPolarisViz/utilities/getAxisOptions.ts +0 -26
  457. package/src/shared/charts/components/GPolarisViz/utilities/getCSSBackgroundFromColor.ts +0 -8
  458. package/src/shared/charts/components/GPolarisViz/utilities/getChartId.ts +0 -3
  459. package/src/shared/charts/components/GPolarisViz/utilities/getFontSize.ts +0 -7
  460. package/src/shared/charts/components/GPolarisViz/utilities/getStackedMinMax.ts +0 -43
  461. package/src/shared/charts/components/GPolarisViz/utilities/getStackedValues.ts +0 -35
  462. package/src/shared/charts/components/GPolarisViz/utilities/getStackedValuesFromDataSeries.tsx +0 -30
  463. package/src/shared/charts/components/GPolarisViz/utilities/getTrendIndicatorData.ts +0 -22
  464. package/src/shared/charts/components/GPolarisViz/utilities/hasHiddenComparisonSeries.ts +0 -26
  465. package/src/shared/charts/components/GPolarisViz/utilities/index.ts +0 -6
  466. package/src/shared/charts/components/GSimpleBarChart.tsx +0 -32
  467. package/src/shared/charts/components/index.ts +0 -7
  468. package/src/shared/charts/constants/chart.ts +0 -14
  469. package/src/shared/charts/constants/index.ts +0 -1
  470. package/src/shared/charts/contexts/GChartProvider.tsx +0 -48
  471. package/src/shared/charts/contexts/index.ts +0 -1
  472. package/src/shared/charts/index.ts +0 -4
  473. package/src/shared/charts/types/chart.ts +0 -36
  474. package/src/shared/charts/types/index.ts +0 -1
  475. package/src/shared/components/GActivatorPopover/GActivatorPopover.tsx +0 -107
  476. package/src/shared/components/GActivatorPopover/index.ts +0 -1
  477. package/src/shared/components/GBlockCenter/GBlockCenter.scss +0 -19
  478. package/src/shared/components/GBlockCenter/GBlockCenter.tsx +0 -72
  479. package/src/shared/components/GBlockCenter/index.ts +0 -1
  480. package/src/shared/components/GBox/GBox.scss +0 -25
  481. package/src/shared/components/GBox/GBox.tsx +0 -15
  482. package/src/shared/components/GBox/index.ts +0 -1
  483. package/src/shared/components/GBoxCard/GBoxCard.tsx +0 -27
  484. package/src/shared/components/GBoxCard/index.ts +0 -1
  485. package/src/shared/components/GButton/GButton.scss +0 -41
  486. package/src/shared/components/GButton/GButton.tsx +0 -73
  487. package/src/shared/components/GButton/index.ts +0 -1
  488. package/src/shared/components/GCheckbox/GCheckbox.tsx +0 -176
  489. package/src/shared/components/GCheckbox/index.ts +0 -1
  490. package/src/shared/components/GChoice/ChoiceHelpText.tsx +0 -25
  491. package/src/shared/components/GChoice/GChoice.scss +0 -14
  492. package/src/shared/components/GChoice/GChoice.tsx +0 -165
  493. package/src/shared/components/GChoice/index.ts +0 -2
  494. package/src/shared/components/GClickable/GClickable.tsx +0 -43
  495. package/src/shared/components/GClickable/index.ts +0 -1
  496. package/src/shared/components/GDiv/GDiv.tsx +0 -27
  497. package/src/shared/components/GDiv/index.ts +0 -1
  498. package/src/shared/components/GDotInline/GDotInline.tsx +0 -20
  499. package/src/shared/components/GDotInline/index.ts +0 -1
  500. package/src/shared/components/GFeatureLocked/GFeatureLocked.tsx +0 -85
  501. package/src/shared/components/GFeatureLocked/assets/images/empty-analytics.png +0 -0
  502. package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template-illustration.png +0 -0
  503. package/src/shared/components/GFeatureLocked/assets/images/empty-campaign-group-template.png +0 -0
  504. package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing-illustration.png +0 -0
  505. package/src/shared/components/GFeatureLocked/assets/images/empty-page-listing.png +0 -0
  506. package/src/shared/components/GFeatureLocked/constants.ts +0 -33
  507. package/src/shared/components/GFeatureLocked/index.ts +0 -2
  508. package/src/shared/components/GFeatureLocked/types.ts +0 -16
  509. package/src/shared/components/GI18NText/GI18NText.tsx +0 -37
  510. package/src/shared/components/GI18NText/index.ts +0 -2
  511. package/src/shared/components/GI18NText/types.ts +0 -7
  512. package/src/shared/components/GInlineCenter/GInlineCenter.scss +0 -17
  513. package/src/shared/components/GInlineCenter/GInlineCenter.tsx +0 -39
  514. package/src/shared/components/GInlineCenter/index.ts +0 -1
  515. package/src/shared/components/GMockDataTooltip/GMockDataTooltip.tsx +0 -30
  516. package/src/shared/components/GMockDataTooltip/index.ts +0 -1
  517. package/src/shared/components/GModal/GModal.tsx +0 -49
  518. package/src/shared/components/GModal/index.ts +0 -1
  519. package/src/shared/components/GOptionList/GOptionList.tsx +0 -63
  520. package/src/shared/components/GOptionList/index.ts +0 -1
  521. package/src/shared/components/GPagination/GPagination.tsx +0 -44
  522. package/src/shared/components/GPagination/hooks/useGPagination.ts +0 -42
  523. package/src/shared/components/GPagination/index.ts +0 -2
  524. package/src/shared/components/GSelector/GSelector.tsx +0 -198
  525. package/src/shared/components/GSelector/index.ts +0 -1
  526. package/src/shared/components/GSkeletonDisplayText/GSkeletonDisplayText.tsx +0 -14
  527. package/src/shared/components/GSkeletonDisplayText/index.ts +0 -1
  528. package/src/shared/components/GSpinner/GSpinner.tsx +0 -16
  529. package/src/shared/components/GSpinner/index.ts +0 -1
  530. package/src/shared/components/GTextLink/GTextLink.tsx +0 -26
  531. package/src/shared/components/GTextLink/index.ts +0 -1
  532. package/src/shared/components/GTextTooltip/GTextTooltip.tsx +0 -18
  533. package/src/shared/components/GTextTooltip/index.ts +0 -1
  534. package/src/shared/components/GTextTruncated/GTextTruncated.tsx +0 -80
  535. package/src/shared/components/GTextTruncated/index.ts +0 -1
  536. package/src/shared/components/GThumbnail/GThumbnail.scss +0 -5
  537. package/src/shared/components/GThumbnail/GThumbnail.tsx +0 -69
  538. package/src/shared/components/GThumbnail/index.ts +0 -1
  539. package/src/shared/components/GTooltip/GTooltip.tsx +0 -34
  540. package/src/shared/components/GTooltip/components/GTooltipCard.tsx +0 -164
  541. package/src/shared/components/GTooltip/index.ts +0 -3
  542. package/src/shared/components/GTooltipCard/GTooltipCard.tsx +0 -161
  543. package/src/shared/components/GTooltipCard/index.ts +0 -7
  544. package/src/shared/components/GVariantBadge/GVariant.tsx +0 -55
  545. package/src/shared/components/GVariantBadge/GVariantBadge.scss +0 -10
  546. package/src/shared/components/GVariantBadge/GVariantBadge.tsx +0 -82
  547. package/src/shared/components/GVariantBadge/index.ts +0 -4
  548. package/src/shared/components/GVariantBadge/types.ts +0 -20
  549. package/src/shared/components/GViewBySelector/GViewBySelector.tsx +0 -114
  550. package/src/shared/components/GViewBySelector/index.ts +0 -1
  551. package/src/shared/components/index.ts +0 -26
  552. package/src/shared/index.ts +0 -1
  553. package/src/shared/journey/common/JourneyContainer/components/JourneyContainer.tsx +0 -140
  554. package/src/shared/journey/common/JourneyContainer/components/JourneyTimeline.tsx +0 -18
  555. package/src/shared/journey/common/JourneyContainer/components/index.ts +0 -2
  556. package/src/shared/journey/common/JourneyContainer/index.ts +0 -1
  557. package/src/shared/journey/common/index.ts +0 -1
  558. package/src/shared/journey/index.ts +0 -2
  559. package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/AcceptedPostPurchaseOffer.tsx +0 -24
  560. package/src/shared/journey/ui/JourneyEvents/components/AcceptedPostPurchaseOffer/index.ts +0 -1
  561. package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/CheckoutCompleted.tsx +0 -64
  562. package/src/shared/journey/ui/JourneyEvents/components/CheckoutCompleted/index.ts +0 -1
  563. package/src/shared/journey/ui/JourneyEvents/components/CheckoutItems.tsx +0 -27
  564. package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStarted.tsx +0 -25
  565. package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/CheckoutStartedDetail.tsx +0 -79
  566. package/src/shared/journey/ui/JourneyEvents/components/CheckoutStarted/index.ts +0 -2
  567. package/src/shared/journey/ui/JourneyEvents/components/PageViewed/PageViewed.tsx +0 -116
  568. package/src/shared/journey/ui/JourneyEvents/components/PageViewed/index.ts +0 -1
  569. package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/ProductAddedToCart.tsx +0 -24
  570. package/src/shared/journey/ui/JourneyEvents/components/ProductAddedToCart/index.ts +0 -1
  571. package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/ProductQuantity.tsx +0 -33
  572. package/src/shared/journey/ui/JourneyEvents/components/ProductQuantity/index.ts +0 -1
  573. package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/ProductRemovedFromCart.tsx +0 -24
  574. package/src/shared/journey/ui/JourneyEvents/components/ProductRemovedFromCart/index.ts +0 -1
  575. package/src/shared/journey/ui/JourneyEvents/components/index.ts +0 -6
  576. package/src/shared/journey/ui/JourneyEvents/constants/event.ts +0 -38
  577. package/src/shared/journey/ui/JourneyEvents/constants/index.ts +0 -1
  578. package/src/shared/journey/ui/JourneyEvents/index.ts +0 -2
  579. package/src/shared/journey/ui/JourneyEvents/types.ts +0 -2
  580. package/src/shared/journey/ui/JourneyGroup/JourneyGroup.tsx +0 -41
  581. package/src/shared/journey/ui/JourneyGroup/index.ts +0 -1
  582. package/src/shared/journey/ui/JourneyItem/components/EventMarkerIcon.tsx +0 -28
  583. package/src/shared/journey/ui/JourneyItem/components/JourneyDetail.tsx +0 -24
  584. package/src/shared/journey/ui/JourneyItem/components/JourneyItem.tsx +0 -27
  585. package/src/shared/journey/ui/JourneyItem/components/JourneyTime.tsx +0 -33
  586. package/src/shared/journey/ui/JourneyItem/components/QuantityWrapper.tsx +0 -17
  587. package/src/shared/journey/ui/JourneyItem/components/index.ts +0 -3
  588. package/src/shared/journey/ui/JourneyItem/index.ts +0 -2
  589. package/src/shared/journey/ui/JourneyItem/types/events.ts +0 -33
  590. package/src/shared/journey/ui/JourneyItem/types/index.ts +0 -1
  591. package/src/shared/journey/ui/JourneyTitle/components/GemxIdBadge.tsx +0 -38
  592. package/src/shared/journey/ui/JourneyTitle/components/JourneyDateBadge.tsx +0 -18
  593. package/src/shared/journey/ui/JourneyTitle/components/JourneyIdBadge.tsx +0 -65
  594. package/src/shared/journey/ui/JourneyTitle/components/JourneyLoadMore.tsx +0 -43
  595. package/src/shared/journey/ui/JourneyTitle/components/JourneyTitle.tsx +0 -42
  596. package/src/shared/journey/ui/JourneyTitle/components/index.ts +0 -2
  597. package/src/shared/journey/ui/JourneyTitle/constants/idBadge.ts +0 -1
  598. package/src/shared/journey/ui/JourneyTitle/constants/index.ts +0 -1
  599. package/src/shared/journey/ui/JourneyTitle/index.ts +0 -1
  600. package/src/shared/journey/ui/index.ts +0 -3
  601. package/src/shared/journey/ui/type.ts +0 -2
  602. package/src/shared/reports/common/Visualization/constants/columns.ts +0 -6
  603. package/src/shared/reports/common/Visualization/constants/index.ts +0 -2
  604. package/src/shared/reports/common/Visualization/constants/version.ts +0 -8
  605. package/src/shared/reports/common/Visualization/index.ts +0 -2
  606. package/src/shared/reports/common/Visualization/types/chart.ts +0 -5
  607. package/src/shared/reports/common/Visualization/types/index.ts +0 -3
  608. package/src/shared/reports/common/Visualization/types/report-metric.ts +0 -21
  609. package/src/shared/reports/common/Visualization/types/report.ts +0 -42
  610. package/src/shared/reports/common/Visualization/utils/index.ts +0 -2
  611. package/src/shared/reports/common/Visualization/utils/version.ts +0 -9
  612. package/src/shared/reports/common/Visualization/utils/visualization.ts +0 -58
  613. package/src/shared/reports/common/index.ts +0 -1
  614. package/src/shared/reports/ui/ReportTable/ReportTable.tsx +0 -194
  615. package/src/shared/reports/ui/ReportTable/ReportTableSkeleton.tsx +0 -73
  616. package/src/shared/reports/ui/ReportTable/assets/styles/ReportTable.scss +0 -288
  617. package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCell.tsx +0 -102
  618. package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/CampaignsCellVersion.tsx +0 -11
  619. package/src/shared/reports/ui/ReportTable/components/Body/Cell/CampaignsCell/index.ts +0 -1
  620. package/src/shared/reports/ui/ReportTable/components/Body/Cell/Cell.tsx +0 -93
  621. package/src/shared/reports/ui/ReportTable/components/Body/Cell/CellRenderers.tsx +0 -72
  622. package/src/shared/reports/ui/ReportTable/components/Body/Cell/DateCell.tsx +0 -9
  623. package/src/shared/reports/ui/ReportTable/components/Body/Cell/DefaultCell.tsx +0 -32
  624. package/src/shared/reports/ui/ReportTable/components/Body/Cell/GemxIdCell.tsx +0 -18
  625. package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/CheckoutStartedDetail.tsx +0 -79
  626. package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/ItemsCell.tsx +0 -56
  627. package/src/shared/reports/ui/ReportTable/components/Body/Cell/ItemsCell/index.ts +0 -1
  628. package/src/shared/reports/ui/ReportTable/components/Body/Cell/NoneCell.tsx +0 -11
  629. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/LoadingData.tsx +0 -10
  630. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/NoData.tsx +0 -13
  631. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCell.tsx +0 -78
  632. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellBase.tsx +0 -55
  633. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderCellContainer.tsx +0 -43
  634. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/OrderItem.tsx +0 -79
  635. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderCell/index.ts +0 -2
  636. package/src/shared/reports/ui/ReportTable/components/Body/Cell/OrderIdCell.tsx +0 -70
  637. package/src/shared/reports/ui/ReportTable/components/Body/Cell/PreviousCell.tsx +0 -17
  638. package/src/shared/reports/ui/ReportTable/components/Body/Cell/TotalCell.tsx +0 -14
  639. package/src/shared/reports/ui/ReportTable/components/Body/Cell/VersionCell.tsx +0 -31
  640. package/src/shared/reports/ui/ReportTable/components/Body/Cell/WrapperCell.tsx +0 -31
  641. package/src/shared/reports/ui/ReportTable/components/Body/Cell/index.ts +0 -1
  642. package/src/shared/reports/ui/ReportTable/components/Body/Cell/type.ts +0 -18
  643. package/src/shared/reports/ui/ReportTable/components/Body/Row.tsx +0 -85
  644. package/src/shared/reports/ui/ReportTable/components/Body/index.ts +0 -2
  645. package/src/shared/reports/ui/ReportTable/components/Footer/Pagination.tsx +0 -76
  646. package/src/shared/reports/ui/ReportTable/components/Footer/ScrollBar.tsx +0 -19
  647. package/src/shared/reports/ui/ReportTable/components/Footer/WrapperFooter.tsx +0 -39
  648. package/src/shared/reports/ui/ReportTable/components/Footer/index.ts +0 -1
  649. package/src/shared/reports/ui/ReportTable/components/Header/Header.tsx +0 -68
  650. package/src/shared/reports/ui/ReportTable/components/Header/SortableHeader.tsx +0 -49
  651. package/src/shared/reports/ui/ReportTable/components/Header/SortableHeaderWithTooltip.tsx +0 -60
  652. package/src/shared/reports/ui/ReportTable/components/Header/SummaryCell.tsx +0 -26
  653. package/src/shared/reports/ui/ReportTable/components/Header/SummaryRow.tsx +0 -69
  654. package/src/shared/reports/ui/ReportTable/components/Header/WrapperHeader.tsx +0 -54
  655. package/src/shared/reports/ui/ReportTable/components/Header/index.ts +0 -1
  656. package/src/shared/reports/ui/ReportTable/components/index.ts +0 -2
  657. package/src/shared/reports/ui/ReportTable/constants/index.ts +0 -2
  658. package/src/shared/reports/ui/ReportTable/constants/order.ts +0 -30
  659. package/src/shared/reports/ui/ReportTable/constants/table.ts +0 -17
  660. package/src/shared/reports/ui/ReportTable/context/ReportTableActionsContext.tsx +0 -28
  661. package/src/shared/reports/ui/ReportTable/helpers/format.ts +0 -29
  662. package/src/shared/reports/ui/ReportTable/helpers/index.ts +0 -2
  663. package/src/shared/reports/ui/ReportTable/helpers/report.ts +0 -7
  664. package/src/shared/reports/ui/ReportTable/hooks/index.ts +0 -3
  665. package/src/shared/reports/ui/ReportTable/hooks/useReportTable.ts +0 -172
  666. package/src/shared/reports/ui/ReportTable/hooks/useReportTableCell.tsx +0 -28
  667. package/src/shared/reports/ui/ReportTable/hooks/useSyncedScroll.ts +0 -81
  668. package/src/shared/reports/ui/ReportTable/index.ts +0 -4
  669. package/src/shared/reports/ui/ReportTable/types/dimension.ts +0 -8
  670. package/src/shared/reports/ui/ReportTable/types/index.ts +0 -43
  671. package/src/shared/reports/ui/ReportTable/types/order.ts +0 -15
  672. package/src/shared/reports/ui/ReportTable/types/report-columns.ts +0 -11
  673. package/src/shared/reports/ui/ReportTable/utils/format.ts +0 -100
  674. package/src/shared/reports/ui/ReportTable/utils/index.ts +0 -2
  675. package/src/shared/reports/ui/ReportTable/utils/order.ts +0 -8
  676. package/src/shared/reports/ui/ReportTable/utils/table.ts +0 -19
  677. package/src/shared/reports/ui/ReportTable/utils/visualization.ts +0 -56
  678. package/src/shared/reports/ui/index.ts +0 -0
  679. package/src/stores/currencyRatesStore.ts +0 -13
  680. package/src/stores/index.ts +0 -2
  681. package/src/styles/index.scss +0 -9
  682. package/src/types/analytic-mode.ts +0 -5
  683. package/src/types/breakdown-items.ts +0 -21
  684. package/src/types/campaign.ts +0 -13
  685. package/src/types/chart.ts +0 -42
  686. package/src/types/currency.ts +0 -329
  687. package/src/types/index.ts +0 -8
  688. package/src/types/metric.ts +0 -81
  689. package/src/types/pricing.ts +0 -38
  690. package/src/types/report-columns.ts +0 -1
  691. package/src/types/template.ts +0 -19
  692. package/src/utils/analytics.ts +0 -75
  693. package/src/utils/array.ts +0 -13
  694. package/src/utils/cls.ts +0 -18
  695. package/src/utils/currency.ts +0 -42
  696. package/src/utils/date-time.ts +0 -7
  697. package/src/utils/dayjs.ts +0 -52
  698. package/src/utils/deep-copy.ts +0 -4
  699. package/src/utils/index.ts +0 -12
  700. package/src/utils/is-browser.ts +0 -3
  701. package/src/utils/number.ts +0 -19
  702. package/src/utils/percentage.ts +0 -40
  703. package/src/utils/sort.ts +0 -87
  704. package/src/utils/string.ts +0 -20
  705. package/src/utils/template-type.ts +0 -30
@@ -1,70 +0,0 @@
1
- import type { RendererProps } from './type';
2
-
3
- import { ActionList, Icon, InlineStack, Popover, Text } from '@shopify/polaris';
4
- import { CaretDownIcon, ChartLineIcon, OrderIcon } from '@shopify/polaris-icons';
5
- import { useCallback, useState } from 'react';
6
- import { useTranslation } from 'react-i18next';
7
- import { useReportTableActionsContext } from '../../../context/ReportTableActionsContext';
8
-
9
- export const OrderIdCell = ({
10
- value,
11
- isMockData,
12
- gxId,
13
- }: Pick<RendererProps<string>, 'value' | 'isMockData' | 'gxId'>) => {
14
- const { t } = useTranslation();
15
-
16
- const [active, setActive] = useState(false);
17
-
18
- const { onViewOrderJourney, onViewOrderDetails } = useReportTableActionsContext();
19
-
20
- const toggleActive = useCallback(() => setActive((active) => !active), []);
21
-
22
- if (isMockData) {
23
- return (
24
- <Text as="span" variant="bodyMd" tone="subdued">
25
- {value}
26
- </Text>
27
- );
28
- }
29
-
30
- return (
31
- <Popover
32
- active={active}
33
- activator={
34
- <div
35
- className="GReportTable__CellContent--clickable flex h-full w-full cursor-pointer items-center rounded-md pl-3"
36
- onClick={toggleActive}
37
- >
38
- <InlineStack gap="200" blockAlign="center" wrap={false}>
39
- <Text as="span" variant="bodyMd" tone="subdued">
40
- {value}
41
- </Text>
42
-
43
- <span className="opacity-0 group-hover/GReportTable__Row:opacity-100">
44
- <Icon source={CaretDownIcon} />
45
- </span>
46
- </InlineStack>
47
- </div>
48
- }
49
- onClose={toggleActive}
50
- >
51
- <ActionList
52
- actionRole="menuitem"
53
- items={[
54
- {
55
- id: 'view_order_journey',
56
- content: t('View order journey'),
57
- icon: ChartLineIcon,
58
- onAction: () => onViewOrderJourney?.(value, gxId),
59
- },
60
- {
61
- id: 'view_order_details',
62
- content: t('View order details on Shopify'),
63
- icon: OrderIcon,
64
- onAction: () => onViewOrderDetails?.(value),
65
- },
66
- ]}
67
- />
68
- </Popover>
69
- );
70
- };
@@ -1,17 +0,0 @@
1
- import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
2
-
3
- import { Text } from '@shopify/polaris';
4
-
5
- interface PreviousCellProps {
6
- previousValue?: ReportValueType;
7
- isMergedWithPrev: boolean;
8
- }
9
- export const PreviousCell: React.FC<PreviousCellProps> = ({ previousValue, isMergedWithPrev }) => {
10
- if (isMergedWithPrev || typeof previousValue !== 'string') return null;
11
-
12
- return (
13
- <Text as="span" variant="bodySm" tone="subdued">
14
- {previousValue}
15
- </Text>
16
- );
17
- };
@@ -1,14 +0,0 @@
1
- import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
2
-
3
- import { Text } from '@shopify/polaris';
4
-
5
- interface TotalCellProps {
6
- value: string;
7
- isTotalRow?: ReportValueType;
8
- }
9
-
10
- export const TotalCell: React.FC<TotalCellProps> = ({ value, isTotalRow }) => (
11
- <Text as="span" variant="bodySm" fontWeight={isTotalRow ? 'semibold' : 'regular'}>
12
- {value}
13
- </Text>
14
- );
@@ -1,31 +0,0 @@
1
- import { IVariantType } from '@/components/CardPathAnalysis/stores/path-analysis-campaign';
2
- import type { RendererProps } from './type';
3
-
4
- import { WrapperCell } from './WrapperCell';
5
- import { GVariantBadge } from '@/shared/components/GVariantBadge';
6
-
7
- export const VERSION_LABEL = {
8
- [IVariantType.VARIANT_A]: 'Control A',
9
- [IVariantType.VARIANT_B]: 'Variant B',
10
- };
11
- export const VERSION_OPTIONS = [
12
- { label: VERSION_LABEL[IVariantType.VARIANT_A], value: IVariantType.VARIANT_A },
13
- { label: VERSION_LABEL[IVariantType.VARIANT_B], value: IVariantType.VARIANT_B },
14
- ];
15
- export const VersionCell = ({ value, previousValue, isMergedWithPrev, columnLayout }: RendererProps) => {
16
- const variantValue = VERSION_OPTIONS.find((opt) => opt.label.split(' ')[1] === value);
17
-
18
- if (isMergedWithPrev) return '';
19
-
20
- return (
21
- <WrapperCell previousValue={previousValue} isMergedWithPrev={isMergedWithPrev} columnLayout={columnLayout}>
22
- {variantValue && (
23
- <GVariantBadge
24
- variant={variantValue.value}
25
- tone={variantValue.value === 'A' ? 'active' : 'inactive'}
26
- size="xs"
27
- />
28
- )}
29
- </WrapperCell>
30
- );
31
- };
@@ -1,31 +0,0 @@
1
- import type { ReportColumnLayout } from '../../../types';
2
- import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
3
-
4
- import { GInlineCenter } from '@/shared/components';
5
- import { PreviousCell } from './PreviousCell';
6
-
7
- interface WrapperCellProps {
8
- children: React.ReactNode;
9
- previousValue?: ReportValueType;
10
- isMergedWithPrev: boolean;
11
- columnLayout?: ReportColumnLayout;
12
- }
13
- export const WrapperCell: React.FC<WrapperCellProps> = ({
14
- children,
15
- previousValue,
16
- isMergedWithPrev,
17
- columnLayout,
18
- }) => {
19
- return (
20
- <GInlineCenter
21
- flexDirection="column"
22
- align={columnLayout?.align}
23
- gap="100"
24
- paddingBlock="200"
25
- width={columnLayout?.columnWrapperWidth}
26
- >
27
- {children}
28
- <PreviousCell previousValue={previousValue} isMergedWithPrev={isMergedWithPrev} />
29
- </GInlineCenter>
30
- );
31
- };
@@ -1 +0,0 @@
1
- export { Cell } from './Cell';
@@ -1,18 +0,0 @@
1
- import type { IMetricFormatter } from '@/modules/analytics';
2
- import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
3
- import type { CampaignsCellProps, OrderCellProps, ReportColumnLayout } from '../../../types';
4
-
5
- export type RendererProps<T = ReportValueType> = {
6
- value: T;
7
- gxId?: string;
8
- campaignsCellProps?: CampaignsCellProps;
9
- name?: string;
10
- isMergedWithPrev: boolean;
11
- formatter?: IMetricFormatter;
12
- previousValue?: T;
13
- columnLayout?: ReportColumnLayout;
14
- orderCellProps?: OrderCellProps;
15
- isTotalRow?: ReportValueType;
16
- isDimensionCol?: boolean;
17
- isMockData?: boolean;
18
- };
@@ -1,85 +0,0 @@
1
- import type { IReportColumn, ReportRowType } from '@/shared/reports/common/Visualization/types';
2
- import type { OrderCellProps, ReportColumnLayoutMap } from '../../types';
3
-
4
- import { getMetricPreviousValue } from '@/shared/reports/common/Visualization/utils';
5
- import { IS_TOTAL_ROW_FIELD } from '../../constants';
6
- import { EReportColumnKey } from '../../types/report-columns';
7
- import { Cell } from './Cell';
8
-
9
- interface RowProps {
10
- row: ReportRowType;
11
- rowIndex: number;
12
- columns: IReportColumn[];
13
- dimensions: string[];
14
- prevRow?: ReportRowType;
15
- columnLayoutMap: ReportColumnLayoutMap;
16
- orderCellProps?: OrderCellProps;
17
- isHideCampaignContent: boolean;
18
- minWidth?: number;
19
- isMockData?: boolean;
20
- }
21
-
22
- export const Row = ({
23
- row,
24
- rowIndex,
25
- columns,
26
- dimensions,
27
- prevRow,
28
- columnLayoutMap,
29
- orderCellProps,
30
- isHideCampaignContent,
31
- minWidth,
32
- isMockData,
33
- }: RowProps) => {
34
- const checkMergedWithPrev = (col: string) => {
35
- const isDimensionCol = dimensions.includes(col);
36
- let isMergedWithPrev = false;
37
-
38
- if (isDimensionCol && rowIndex > 0 && prevRow) {
39
- const dimIndex = dimensions.indexOf(col);
40
-
41
- const allMatch = dimensions.slice(0, dimIndex + 1).every((d) => row[d] === prevRow[d]);
42
-
43
- isMergedWithPrev = allMatch;
44
- }
45
-
46
- return isMergedWithPrev;
47
- };
48
-
49
- const customOrderCellProps = orderCellProps
50
- ? {
51
- ...orderCellProps,
52
- onClickOrderCell: (data: { isPrevious?: boolean }) =>
53
- orderCellProps?.onClickOrderCell({ row, isPrevious: data.isPrevious }),
54
- }
55
- : orderCellProps;
56
-
57
- return (
58
- <div className="GReportTable__Row group/GReportTable__Row" style={{ minWidth }}>
59
- {columns.map((col) => {
60
- const hasTooltipCard = !!col.tooltipCardProps;
61
- const orderId = row[EReportColumnKey.ORDER_ID]?.toString() ?? '';
62
- const gxId = row[EReportColumnKey.GEMX_ID]?.toString() ?? '';
63
-
64
- return (
65
- <Cell
66
- key={col.name}
67
- value={row[col.name]!}
68
- gxId={gxId}
69
- isTotalRow={row[IS_TOTAL_ROW_FIELD]!}
70
- previousValue={getMetricPreviousValue(row, col.name)}
71
- isMergedWithPrev={checkMergedWithPrev(col.name)}
72
- columnLayout={columnLayoutMap[col.name]!}
73
- name={col.name}
74
- campaignsCellProps={{ orderId, gxId, isHideCampaignContent }}
75
- isDimensionCol={dimensions.includes(col.name)}
76
- formatter={col.dataType}
77
- hasTooltipCard={hasTooltipCard}
78
- orderCellProps={customOrderCellProps}
79
- isMockData={isMockData}
80
- />
81
- );
82
- })}
83
- </div>
84
- );
85
- };
@@ -1,2 +0,0 @@
1
- export * from './Cell';
2
- export * from './Row';
@@ -1,76 +0,0 @@
1
- import type { GPaginationProps } from '@/shared/components';
2
-
3
- import { useReportTableActionsContext } from '../../context/ReportTableActionsContext';
4
- import { GMockDataTooltip, GPagination } from '@/shared/components';
5
- import { Button, Text } from '@shopify/polaris';
6
- import { useTranslation } from 'react-i18next';
7
- import { cls } from '@/utils';
8
-
9
- interface PaginationProps {
10
- totalRows?: number;
11
- itemCount?: number;
12
- viewAllMetricContent?: string;
13
- showViewAllButton: boolean;
14
- paginationProps?: GPaginationProps;
15
- isPaginationHidden: boolean;
16
- isMockData?: boolean;
17
- }
18
-
19
- export const Pagination = ({
20
- totalRows,
21
- itemCount,
22
- viewAllMetricContent = 'order',
23
- showViewAllButton,
24
- paginationProps,
25
- isPaginationHidden,
26
- isMockData,
27
- }: PaginationProps) => {
28
- const { t } = useTranslation();
29
-
30
- const { onViewAllStoreOrders } = useReportTableActionsContext();
31
- const isHasTotalRows = Boolean(totalRows && totalRows > 0);
32
- const isHasTotalStoreOrders = Boolean(itemCount && itemCount > 0);
33
- const isShowViewAllStoreOrders = isHasTotalStoreOrders && showViewAllButton;
34
-
35
- const handleClickViewAllStoreOrders = () => {
36
- onViewAllStoreOrders?.();
37
- };
38
-
39
- if (isPaginationHidden) return null;
40
-
41
- return (
42
- <div
43
- className={cls('GReportTable__Pagination', {
44
- 'justify-end': isShowViewAllStoreOrders,
45
- 'justify-center': isHasTotalRows,
46
- 'justify-between': (isHasTotalRows || paginationProps) && isShowViewAllStoreOrders,
47
- })}
48
- >
49
- {paginationProps && <GPagination {...paginationProps} />}
50
-
51
- {isHasTotalRows && (
52
- <Text variant="bodyMd" as="span">
53
- {t('{{count}} rows', { count: totalRows })}
54
- </Text>
55
- )}
56
-
57
- {isShowViewAllStoreOrders && (
58
- <GMockDataTooltip isMockData={isMockData}>
59
- <Button variant="plain" disabled={isMockData} onClick={handleClickViewAllStoreOrders}>
60
- {getViewAllStoreOrdersText()}
61
- </Button>
62
- </GMockDataTooltip>
63
- )}
64
- </div>
65
- );
66
-
67
- function getViewAllStoreOrdersText() {
68
- if (itemCount && itemCount > 1) {
69
- return t('View all store {{metric}}s by date range ({{itemCount}})', {
70
- itemCount,
71
- metric: viewAllMetricContent,
72
- });
73
- }
74
- return t('View all store {{metric}} by date range(1)', { metric: viewAllMetricContent });
75
- }
76
- };
@@ -1,19 +0,0 @@
1
- import { forwardRef } from 'react';
2
- import { cls } from '@/utils';
3
-
4
- export const ScrollBar = forwardRef<HTMLDivElement, { isPaginationHidden: boolean }>(({ isPaginationHidden }, ref) => {
5
- return (
6
- <div
7
- className={cls('GReportTable__ScrollBarContainer', {
8
- 'GReportTable__ScrollBarContainer--pagination-hidden': isPaginationHidden,
9
- })}
10
- ref={ref}
11
- >
12
- <div className="GReportTable__ScrollBar">
13
- <div className="GReportTable__ScrollBarContent"></div>
14
- </div>
15
- </div>
16
- );
17
- });
18
-
19
- ScrollBar.displayName = 'ScrollBar';
@@ -1,39 +0,0 @@
1
- import type { GPaginationProps } from '@/shared/components';
2
-
3
- import { Pagination } from './Pagination';
4
- import { ScrollBar } from './ScrollBar';
5
-
6
- interface WrapperFooterProps {
7
- scrollbarContainerRef?: React.RefObject<HTMLDivElement>;
8
- totalPaginationRows: number;
9
- itemCount?: number;
10
- showViewAllButton: boolean;
11
- paginationProps?: GPaginationProps;
12
- isPaginationHidden: boolean;
13
- isMockData?: boolean;
14
- }
15
-
16
- export const WrapperFooter = ({
17
- scrollbarContainerRef,
18
- itemCount,
19
- totalPaginationRows,
20
- showViewAllButton,
21
- paginationProps,
22
- isPaginationHidden,
23
- isMockData,
24
- }: WrapperFooterProps) => {
25
- return (
26
- <div className="GReportTable__FooterWrapper">
27
- {scrollbarContainerRef && <ScrollBar ref={scrollbarContainerRef} isPaginationHidden={isPaginationHidden} />}
28
-
29
- <Pagination
30
- totalRows={totalPaginationRows}
31
- itemCount={itemCount}
32
- showViewAllButton={showViewAllButton}
33
- paginationProps={paginationProps}
34
- isPaginationHidden={isPaginationHidden}
35
- isMockData={isMockData}
36
- />
37
- </div>
38
- );
39
- };
@@ -1 +0,0 @@
1
- export * from './WrapperFooter';
@@ -1,68 +0,0 @@
1
- import type { IReportColumn } from '@/shared/reports/common/Visualization/types';
2
- import type { OrderByFields, ReportColumnLayoutMap } from '../../types';
3
-
4
- import { SortableHeaderWithTooltip } from './SortableHeaderWithTooltip';
5
- import { getColumnLayoutStyles } from '../../utils';
6
- import { CheckIcon } from '@shopify/polaris-icons';
7
- import { SortableHeader } from './SortableHeader';
8
- import { Box, Icon } from '@shopify/polaris';
9
- import { useState } from 'react';
10
- import { cls } from '@/utils';
11
-
12
- interface HeaderProps {
13
- columns: IReportColumn[];
14
- columnLayoutMap: ReportColumnLayoutMap;
15
- activeColumn?: string;
16
- orderBy?: OrderByFields;
17
- showSummary?: boolean;
18
- onChangeOrderBy?: (field: string) => void;
19
- }
20
-
21
- export const Header = ({
22
- columns,
23
- columnLayoutMap,
24
- activeColumn,
25
- orderBy,
26
- showSummary,
27
- onChangeOrderBy,
28
- }: HeaderProps) => {
29
- const [itemHovering, setItemHovering] = useState<string>();
30
-
31
- return (
32
- <div
33
- className={cls('GReportTable__Header', {
34
- 'GReportTable__Header--hide-summary': !showSummary,
35
- })}
36
- >
37
- {columns.map((item) => {
38
- const isTooltipCard = !!item.tooltipCardProps;
39
-
40
- const SortableHeaderComponent = isTooltipCard ? SortableHeaderWithTooltip : SortableHeader;
41
-
42
- return (
43
- <div
44
- key={item.name}
45
- className="GReportTable__Header-Cell"
46
- style={getColumnLayoutStyles(columnLayoutMap[item.name]!)}
47
- onMouseEnter={() => setItemHovering(item.name)}
48
- onMouseLeave={() => setItemHovering(undefined)}
49
- >
50
- {activeColumn === item.name && (
51
- <Box>
52
- <Icon source={CheckIcon} />
53
- </Box>
54
- )}
55
-
56
- <SortableHeaderComponent
57
- item={item}
58
- orderBy={orderBy}
59
- itemHovering={itemHovering}
60
- onChangeOrderBy={onChangeOrderBy}
61
- {...item.tooltipCardProps}
62
- />
63
- </div>
64
- );
65
- })}
66
- </div>
67
- );
68
- };
@@ -1,49 +0,0 @@
1
- import type { IReportColumn } from '@/shared/reports/common/Visualization/types';
2
- import type { OrderByFields } from '../../types';
3
-
4
- import { SortDescendingIcon, SortAscendingIcon } from '@shopify/polaris-icons';
5
- import { getOrderTooltip } from '../../utils/order';
6
- import { EOrderDirectionType } from '../../types';
7
- import { Box, Icon } from '@shopify/polaris';
8
- import { GTextTruncated } from '@/shared/components';
9
-
10
- interface ISortableHeaderProps {
11
- item: IReportColumn;
12
- orderBy?: OrderByFields;
13
- itemHovering?: string;
14
- onChangeOrderBy?: (field: string) => void;
15
- }
16
-
17
- export const SortableHeader = ({ item, orderBy, itemHovering, onChangeOrderBy }: ISortableHeaderProps) => {
18
- const { displayName, name } = item;
19
-
20
- function getTooltipInfo(name: string) {
21
- const orderByField = orderBy?.[name];
22
- const content = getOrderTooltip(name, orderByField?.direction || EOrderDirectionType.ASC);
23
- return { content };
24
- }
25
-
26
- function getOpacity(name: string) {
27
- return itemHovering === name ? '1' : '0';
28
- }
29
-
30
- function getOrderIcon(name: string) {
31
- const orderByField = orderBy?.[name];
32
- if (!orderByField) return SortAscendingIcon;
33
- return orderByField.direction === EOrderDirectionType.ASC ? SortAscendingIcon : SortDescendingIcon;
34
- }
35
-
36
- return (
37
- <button className="GReportTable-SortableHeaderButton" onClick={() => onChangeOrderBy?.(name)}>
38
- <div className="min-w-0">
39
- <GTextTruncated as="p" variant="bodySm" fontWeight="medium" tone="subdued" tooltip={getTooltipInfo(name)}>
40
- {displayName}
41
- </GTextTruncated>
42
- </div>
43
-
44
- <Box opacity={getOpacity(name)}>
45
- <Icon source={getOrderIcon(name)} />
46
- </Box>
47
- </button>
48
- );
49
- };
@@ -1,60 +0,0 @@
1
- import type { IReportColumn } from '@/shared/reports/common/Visualization/types';
2
- import type { OrderByFields } from '../../types';
3
-
4
- import { ArrowDownIcon, ArrowUpIcon } from '@shopify/polaris-icons';
5
- import { GButton, GTooltipCard } from '@/shared/components';
6
- import { InlineStack, Text } from '@shopify/polaris';
7
- import { getOrderTooltip } from '../../utils/order';
8
- import { EOrderDirectionType } from '../../types';
9
-
10
- interface ISortableHeaderWithTooltipProps {
11
- item: IReportColumn;
12
- orderBy?: OrderByFields;
13
- onChangeOrderBy?: (field: string) => void;
14
- }
15
-
16
- export const SortableHeaderWithTooltip = ({ item, orderBy, onChangeOrderBy }: ISortableHeaderWithTooltipProps) => {
17
- const { displayName, name, tooltipCardProps } = item;
18
-
19
- return (
20
- <InlineStack gap="050" blockAlign="center">
21
- <GTooltipCard {...tooltipCardProps}>
22
- <Text as="span" variant="bodySm" fontWeight="medium" truncate tone="subdued">
23
- {displayName}
24
- </Text>
25
- </GTooltipCard>
26
-
27
- {hasOrderByName(name) && (
28
- <div className="-mb-1">
29
- <GButton
30
- variant="plain"
31
- icon={getOrderIcon(name)}
32
- tooltip={getSortTooltip(name)}
33
- onClick={() => onChangeOrderBy?.(name)}
34
- />
35
- </div>
36
- )}
37
- </InlineStack>
38
- );
39
-
40
- function hasOrderByName(name: string) {
41
- const orderByField = orderBy?.[name];
42
- return !!orderByField;
43
- }
44
-
45
- function getSortTooltip(name: string) {
46
- const orderByField = orderBy?.[name];
47
- if (!hasOrderByName(name) || !orderByField) return undefined;
48
-
49
- const content = getOrderTooltip(name, orderByField?.direction);
50
-
51
- return { content };
52
- }
53
-
54
- function getOrderIcon(name: string) {
55
- const orderByField = orderBy?.[name];
56
- if (!orderByField) return ArrowUpIcon;
57
-
58
- return orderByField.direction === EOrderDirectionType.ASC ? ArrowUpIcon : ArrowDownIcon;
59
- }
60
- };
@@ -1,26 +0,0 @@
1
- import type { ReportValueType } from '@/shared/reports/common/Visualization/types';
2
- import type { ReportColumnLayout } from '../../types';
3
-
4
- import { GInlineCenter } from '@/shared/components';
5
- import { Text } from '@shopify/polaris';
6
-
7
- interface ISummaryCellProps {
8
- currentValue?: string | null | number;
9
- previousValue?: ReportValueType;
10
- showPrevious?: boolean;
11
- columnLayout: ReportColumnLayout;
12
- }
13
- export const SummaryCell = ({ currentValue, previousValue, showPrevious, columnLayout }: ISummaryCellProps) => {
14
- return (
15
- <GInlineCenter flexDirection="column" align={columnLayout.align} gap="100" paddingBlock="200">
16
- <Text as="span" variant="bodySm" fontWeight="semibold">
17
- {currentValue}
18
- </Text>
19
- {showPrevious && typeof previousValue !== 'object' && (
20
- <Text as="span" variant="bodySm" fontWeight="semibold" tone="subdued">
21
- {previousValue}
22
- </Text>
23
- )}
24
- </GInlineCenter>
25
- );
26
- };