@vizzly/dashboard 0.15.0-dev-3d764e5c2346be462bbcf7327369903e64b96b40 → 0.15.1-dev-7c85efb9d70a7b5e5367d265c0b48faf46ecac6e

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 (220) hide show
  1. package/dist/charts/src/BubbleChart/BubbleChart.d.ts +1 -1
  2. package/dist/charts/src/FunnelChart/FunnelChart.d.ts +0 -1
  3. package/dist/charts/src/ScatterChart/ScatterChart.d.ts +2 -2
  4. package/dist/charts/src/XYChart/types.d.ts +0 -3
  5. package/dist/charts/src/useXAxisLabelCount.d.ts +1 -1
  6. package/dist/charts/src/v2/components/AreaChart/AreaChart.d.ts +0 -1
  7. package/dist/charts/src/v2/components/Axis/AxisBottom.d.ts +1 -2
  8. package/dist/charts/src/v2/components/Axis/AxisLeft.d.ts +3 -3
  9. package/dist/charts/src/v2/components/BarChart/BarChart.d.ts +4 -6
  10. package/dist/charts/src/v2/components/BubbleChart/BubbleChart.d.ts +1 -1
  11. package/dist/charts/src/v2/components/ChartWrapper/ChartWrapper.d.ts +2 -4
  12. package/dist/charts/src/v2/components/ComboChart/ComboChart.d.ts +0 -1
  13. package/dist/charts/src/v2/components/LineChart/LineChart.d.ts +7 -12
  14. package/dist/charts/src/v2/components/RadarChart/Polygons.d.ts +1 -1
  15. package/dist/charts/src/v2/components/RadarChart/types.d.ts +0 -4
  16. package/dist/charts/src/v2/components/Tooltip/CrosshairCircle.d.ts +1 -1
  17. package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +1 -2
  18. package/dist/charts/src/v2/components/WaterfallChart/Tooltip.d.ts +2 -2
  19. package/dist/charts/src/v2/components/WaterfallChart/WaterfallChart.d.ts +2 -4
  20. package/dist/charts/src/v2/components/hooks/useBottomAxisBaselineShift.d.ts +10 -0
  21. package/dist/charts/src/v2/index.d.ts +2 -4
  22. package/dist/charts/src/v2/utils/buildMargin.d.ts +0 -1
  23. package/dist/charts/src/v2/utils/components/BarGroup.d.ts +5 -9
  24. package/dist/charts/src/v2/utils/components/BarStacked.d.ts +5 -10
  25. package/dist/charts/src/v2/utils/getBarFill.d.ts +1 -1
  26. package/dist/charts/src/v2/utils/getTooltipData.d.ts +5 -5
  27. package/dist/{shared-ui → dashboard}/src/SetupError.d.ts +2 -2
  28. package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/GlobalProvider.d.ts +2 -4
  29. package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/buildImplementationMeta.d.ts +1 -1
  30. package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/useGlobalProvider.d.ts +43 -75
  31. package/dist/{shared-ui → dashboard}/src/contexts/GlobalProvider/useOnDashboardLoadCallback.d.ts +2 -3
  32. package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/useSessionContext.d.ts +0 -1
  33. package/dist/dashboard/src/index.d.ts +0 -1
  34. package/dist/dashboard/src/types.d.ts +128 -1
  35. package/dist/dashboard.cjs.development.js +15053 -18233
  36. package/dist/dashboard.cjs.production.min.js +1 -1
  37. package/dist/dashboard.esm.js +15073 -18258
  38. package/dist/results-driver/src/driver/VizzlyQuery/AdditionalFilter/toQueries.d.ts +3 -7
  39. package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +2 -2
  40. package/dist/results-driver/src/driver/VizzlyQuery/AreaChartV2/toQueries.d.ts +2 -2
  41. package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +2 -2
  42. package/dist/results-driver/src/driver/VizzlyQuery/BarChartV2/toQueries.d.ts +2 -2
  43. package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +2 -2
  44. package/dist/results-driver/src/driver/VizzlyQuery/FunnelChart/toQueries.d.ts +2 -2
  45. package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +2 -2
  46. package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +2 -2
  47. package/dist/results-driver/src/driver/VizzlyQuery/LineChartV2/toQueries.d.ts +2 -2
  48. package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +2 -2
  49. package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +2 -2
  50. package/dist/results-driver/src/driver/VizzlyQuery/RadarChart/toQueries.d.ts +2 -2
  51. package/dist/results-driver/src/driver/VizzlyQuery/RichText/toQueries.d.ts +2 -2
  52. package/dist/results-driver/src/driver/VizzlyQuery/SunburstChart/toQueries.d.ts +2 -2
  53. package/dist/results-driver/src/driver/VizzlyQuery/WaterfallChart/toQueries.d.ts +3 -9
  54. package/dist/results-driver/src/driver/VizzlyQuery/buildVizzlyQuery.d.ts +5 -5
  55. package/dist/results-driver/src/driver/VizzlyQuery/commonToQueries.d.ts +1 -1
  56. package/dist/results-driver/src/types.d.ts +0 -2
  57. package/dist/services/src/index.d.ts +0 -5
  58. package/dist/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +7 -9
  59. package/dist/shared-logic/src/AdditionalFilter/FilterConfig.d.ts +3 -14
  60. package/dist/shared-logic/src/AdditionalFilter/toQueryAttributesFilter.d.ts +2 -2
  61. package/dist/shared-logic/src/AdditionalFilter/types.d.ts +2 -6
  62. package/dist/shared-logic/src/BarChartV2/buildBarChartRepresentation.d.ts +1 -1
  63. package/dist/shared-logic/src/BubbleChart/types.d.ts +0 -7
  64. package/dist/shared-logic/src/BubbleChartV2/buildBubbleChartRepresentation.d.ts +7 -5
  65. package/dist/shared-logic/src/BubbleChartV2/getScaleAndTicks.d.ts +3 -4
  66. package/dist/shared-logic/src/BubbleChartV2/types.d.ts +0 -10
  67. package/dist/shared-logic/src/Callbacks/cell.funcs.d.ts +1 -1
  68. package/dist/shared-logic/src/ChartsV2/adjustTicks.d.ts +4 -7
  69. package/dist/shared-logic/src/ChartsV2/types.d.ts +0 -2
  70. package/dist/shared-logic/src/ComboChartV2/buildComboChartRepresentation.d.ts +3 -3
  71. package/dist/shared-logic/src/Component/setAttributes.d.ts +1 -1
  72. package/dist/shared-logic/src/Component/sharedSchemas.d.ts +0 -2
  73. package/dist/shared-logic/src/Component/types.d.ts +7 -44
  74. package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +15 -17
  75. package/dist/shared-logic/src/CustomField/AggregateMath/index.d.ts +1 -2
  76. package/dist/shared-logic/src/CustomField/Conditional/index.d.ts +2 -2
  77. package/dist/shared-logic/src/CustomField/CustomField.d.ts +1 -2
  78. package/dist/shared-logic/src/CustomField/CustomMetric/build.d.ts +1 -1
  79. package/dist/shared-logic/src/CustomField/CustomMetric/combineFilters.d.ts +2 -0
  80. package/dist/shared-logic/src/CustomField/DateCalculation/index.d.ts +1 -2
  81. package/dist/shared-logic/src/CustomField/Percentage/index.d.ts +5 -6
  82. package/dist/shared-logic/src/CustomField/RoundedNumber/index.d.ts +1 -2
  83. package/dist/shared-logic/src/CustomField/Rules/index.d.ts +2 -2
  84. package/dist/shared-logic/src/CustomField/SimpleMath/index.d.ts +1 -1
  85. package/dist/shared-logic/src/CustomField/types.d.ts +1 -6
  86. package/dist/shared-logic/src/DataPanelConfig/types.d.ts +1 -1
  87. package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -1
  88. package/dist/shared-logic/src/DataTable/resultToPivotTableRepresentation.d.ts +1 -2
  89. package/dist/shared-logic/src/Field/Field.d.ts +3 -4
  90. package/dist/shared-logic/src/Filter/Filter.d.ts +10 -0
  91. package/dist/shared-logic/src/Filter/Where.d.ts +6 -0
  92. package/dist/shared-logic/src/Filter/combineFilters.d.ts +1 -0
  93. package/dist/shared-logic/src/Filter/types.d.ts +4 -2
  94. package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +1 -3
  95. package/dist/shared-logic/src/Generate/query.d.ts +3 -3
  96. package/dist/shared-logic/src/JSQueryEngine/types.d.ts +8 -2
  97. package/dist/shared-logic/src/Query/Query.d.ts +22 -0
  98. package/dist/shared-logic/src/Query/buildFromQueryAttributes.d.ts +3 -3
  99. package/dist/shared-logic/src/Query/types.d.ts +109 -6
  100. package/dist/shared-logic/src/Result/Result.d.ts +2 -2
  101. package/dist/shared-logic/src/Result/formattedResultToSeries.d.ts +1 -1
  102. package/dist/shared-logic/src/TimeDimension/TimeDimension.d.ts +1 -3
  103. package/dist/shared-logic/src/ValueAlias/ValueAlias.d.ts +1 -2
  104. package/dist/shared-logic/src/VizzlyState/index.d.ts +0 -2
  105. package/dist/shared-logic/src/WaterfallChart/buildWaterfallChartRepresentation.d.ts +3 -7
  106. package/dist/shared-logic/src/WaterfallChart/getRepresentationData.d.ts +2 -5
  107. package/dist/shared-logic/src/WaterfallChart/getYTicks.d.ts +1 -1
  108. package/dist/shared-logic/src/WaterfallChart/types.d.ts +0 -1
  109. package/dist/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +1 -2
  110. package/dist/shared-logic/src/api/vizzly/aiHelpers/view.d.ts +1 -1
  111. package/dist/shared-logic/src/getComponentInterface.d.ts +1 -1
  112. package/dist/shared-logic/src/utils/feedback.d.ts +2 -2
  113. package/dist/shared-ui/src/api/useQueryEffect.d.ts +4 -5
  114. package/dist/shared-ui/src/base/ListView/index.d.ts +2 -2
  115. package/dist/shared-ui/src/base/Panel/Panel.d.ts +1 -1
  116. package/dist/shared-ui/src/base/Section/Section.d.ts +1 -1
  117. package/dist/shared-ui/src/base/Table/Table.d.ts +1 -1
  118. package/dist/shared-ui/src/components/AdditionalFilter/AdvancedPicker/AdvancedSelectFilter.d.ts +1 -1
  119. package/dist/shared-ui/src/components/AdditionalFilter/FiltersModal.d.ts +1 -1
  120. package/dist/shared-ui/src/components/AdditionalFilter/asyncLoadFilterOptions.d.ts +1 -2
  121. package/dist/shared-ui/src/components/AdditionalFilter/labelWidth.d.ts +0 -15
  122. package/dist/shared-ui/src/components/AreaChart/AreaChartView.d.ts +1 -1
  123. package/dist/shared-ui/src/components/BarChartV2/BarChartV2View.d.ts +3 -3
  124. package/dist/shared-ui/src/components/BubbleChart/BubbleChartView.d.ts +1 -1
  125. package/dist/shared-ui/src/components/ChartHelper.d.ts +1 -1
  126. package/dist/shared-ui/src/components/ComboChart/ComboChartView.d.ts +1 -1
  127. package/dist/shared-ui/src/components/Component/types.d.ts +3 -2
  128. package/dist/shared-ui/src/components/Component.d.ts +2 -0
  129. package/dist/shared-ui/src/components/DataTable/DataTableRow.d.ts +1 -1
  130. package/dist/shared-ui/src/components/DataTable/buildTableRepresentation.d.ts +1 -2
  131. package/dist/shared-ui/src/components/DataTable/helpers.d.ts +1 -2
  132. package/dist/shared-ui/src/components/Drilldown/useDrilldownSelection.d.ts +1 -1
  133. package/dist/shared-ui/src/components/FormatPropsEditor/FormatPanelFromConfig.d.ts +1 -1
  134. package/dist/shared-ui/src/components/HeadlineStats/HeadlineStats.d.ts +2 -2
  135. package/dist/shared-ui/src/components/LineChart/LineChartView.d.ts +1 -1
  136. package/dist/shared-ui/src/components/MercatorMap/View.d.ts +1 -1
  137. package/dist/shared-ui/src/components/PieChart/PieChartView.d.ts +4 -4
  138. package/dist/shared-ui/src/components/Progress/ProgressView.d.ts +1 -1
  139. package/dist/shared-ui/src/components/ScatterChart/ScatterChartView.d.ts +1 -1
  140. package/dist/shared-ui/src/components/SingleStat/SingleStatView.d.ts +1 -1
  141. package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +2 -0
  142. package/dist/shared-ui/src/components/Studio/StudioContexts.d.ts +1 -1
  143. package/dist/shared-ui/src/components/SunburstChart/SunburstChartView.d.ts +2 -5
  144. package/dist/shared-ui/src/components/SunburstChart/convertDataToSunburstData.d.ts +2 -8
  145. package/dist/shared-ui/src/components/WaterfallChart/WaterfallChartView.d.ts +3 -3
  146. package/dist/shared-ui/src/components/useComponentEffect.d.ts +2 -2
  147. package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +2 -2
  148. package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +14 -19
  149. package/dist/shared-ui/src/contexts/DashboardContext/context.d.ts +1 -4
  150. package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +41 -27
  151. package/dist/shared-ui/src/headlessui/components/switch/switch.d.ts +1 -1
  152. package/dist/shared-ui/src/headlessui/hooks/use-disposables.d.ts +1 -1
  153. package/dist/shared-ui/src/headlessui/utils/disposables.d.ts +1 -1
  154. package/dist/shared-ui/src/hooks/useVizzly.d.ts +1 -1
  155. package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/Rules/RulesModal.d.ts +1 -1
  156. package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/types.d.ts +4 -4
  157. package/dist/shared-ui/src/library/DataPanel/CustomMetricsInput.d.ts +1 -1
  158. package/dist/shared-ui/src/library/DataPanel/sections/index.d.ts +0 -1
  159. package/dist/shared-ui/src/library/Editor/useEditor.d.ts +2 -0
  160. package/dist/shared-ui/src/library/Library/ComponentInLibrary.d.ts +1 -0
  161. package/dist/shared-ui/src/library/Library/Library.d.ts +4 -0
  162. package/dist/shared-ui/src/library/Library/types.d.ts +2 -0
  163. package/dist/shared-ui/src/library/StylePanel/AxisPreferenceSection.d.ts +1 -1
  164. package/package.json +3 -4
  165. package/dist/charts/src/ScatterChart/types.d.ts +0 -32
  166. package/dist/charts/src/v2/components/DataLabel/DataLabel.d.ts +0 -11
  167. package/dist/charts/src/v2/components/DataLabel/index.d.ts +0 -1
  168. package/dist/charts/src/v2/components/GridColumns/GridRows.d.ts +0 -10
  169. package/dist/charts/src/v2/components/HorizontalBarChart/HorizontalBarChart.d.ts +0 -27
  170. package/dist/charts/src/v2/components/HorizontalBarChart/getTooltipDataForHorizontalChart.d.ts +0 -25
  171. package/dist/charts/src/v2/components/HorizontalBarChart/index.d.ts +0 -1
  172. package/dist/charts/src/v2/components/HorizontalBarChart/useScalesForHorizontalChart.d.ts +0 -4
  173. package/dist/charts/src/v2/components/QuadrantOverlay/QuadrantOverlay.d.ts +0 -10
  174. package/dist/charts/src/v2/components/QuadrantOverlay/index.d.ts +0 -2
  175. package/dist/charts/src/v2/components/RadarChart/RadarCrosshairCircle.d.ts +0 -19
  176. package/dist/charts/src/v2/components/RadarChart/shared.d.ts +0 -2
  177. package/dist/charts/src/v2/components/VerticalGoalLine/VerticalGoalLine.d.ts +0 -11
  178. package/dist/charts/src/v2/components/VerticalGoalLine/VerticalGoalLines.d.ts +0 -11
  179. package/dist/charts/src/v2/components/VerticalGoalLine/index.d.ts +0 -2
  180. package/dist/charts/src/v2/components/WaterfallChart/waterfall.utils.d.ts +0 -2
  181. package/dist/charts/src/v2/components/hooks/useGroupingAxisBaselineShift.d.ts +0 -11
  182. package/dist/charts/src/v2/utils/components/HorizontalBarGroup.d.ts +0 -28
  183. package/dist/charts/src/v2/utils/components/HorizontalBarStacked.d.ts +0 -23
  184. package/dist/charts/src/v2/utils/getRadarTooltipData.d.ts +0 -21
  185. package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChartV2/toQueries.d.ts +0 -4
  186. package/dist/shared-logic/src/AliasFields/types.d.ts +0 -5
  187. package/dist/shared-logic/src/ChartsV2/convertToStackedPercentages.d.ts +0 -1
  188. package/dist/shared-logic/src/CustomField/AliasField/index.d.ts +0 -7
  189. package/dist/shared-logic/src/CustomField/CustomMetric/combineForCustomMetricFilters.d.ts +0 -2
  190. package/dist/shared-logic/src/CustomField/constants.d.ts +0 -15
  191. package/dist/shared-logic/src/DataLabel/index.d.ts +0 -17
  192. package/dist/shared-logic/src/HorizontalBarChartV2/attributesSchema.d.ts +0 -3
  193. package/dist/shared-logic/src/HorizontalBarChartV2/buildHorizontalBarChartRepresentation.d.ts +0 -41
  194. package/dist/shared-logic/src/HorizontalBarChartV2/constants.d.ts +0 -3
  195. package/dist/shared-logic/src/HorizontalBarChartV2/index.d.ts +0 -4
  196. package/dist/shared-logic/src/HorizontalBarChartV2/setAttributes.d.ts +0 -4
  197. package/dist/shared-logic/src/HorizontalBarChartV2/types.d.ts +0 -41
  198. package/dist/shared-logic/src/PivotConfigForMetricAxis/index.d.ts +0 -3
  199. package/dist/shared-logic/src/Result/formattedResultToSeriesForMetricAxis.d.ts +0 -25
  200. package/dist/shared-ui/src/components/HorizontalBarChartV2/HorizontalBarChartV2.d.ts +0 -3
  201. package/dist/shared-ui/src/components/HorizontalBarChartV2/HorizontalBarChartV2View.d.ts +0 -17
  202. package/dist/shared-ui/src/components/HorizontalBarChartV2/index.d.ts +0 -2
  203. package/dist/shared-ui/src/contexts/AliasFields/useInteractiveFields.d.ts +0 -6
  204. package/dist/shared-ui/src/contexts/GlobalProvider/GlobalProvider.test.d.ts +0 -1
  205. package/dist/shared-ui/src/errors/InvalidProperty.d.ts +0 -5
  206. package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/DateComparisonModal.d.ts +0 -12
  207. package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/Rules.d.ts +0 -11
  208. package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/types.d.ts +0 -13
  209. package/dist/shared-ui/src/library/DataPanel/DateComparisonModal/useCustomMetric.d.ts +0 -17
  210. package/dist/shared-ui/src/library/DataPanel/sections/DateComparisonSection.d.ts +0 -8
  211. package/dist/shared-ui/src/library/StylePanel/Quadrant/QuadrantSection.d.ts +0 -6
  212. package/dist/shared-ui/src/types/dashboard.d.ts +0 -130
  213. /package/dist/charts/src/v2/components/{GridColumns → GridRows}/shared.d.ts +0 -0
  214. /package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/getStrategy.d.ts +0 -0
  215. /package/dist/{shared-ui → dashboard}/src/contexts/SessionContext/index.d.ts +0 -0
  216. /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy/runStrategy.d.ts +0 -0
  217. /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy/types.d.ts +0 -0
  218. /package/dist/{shared-ui → dashboard}/src/contexts/useDashboardStrategy.d.ts +0 -0
  219. /package/dist/{shared-ui → dashboard}/src/contexts/useScheduledReports.d.ts +0 -0
  220. /package/dist/{shared-ui → dashboard}/src/errors/FailedToSaveError.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  export declare function useDisposables(): {
2
2
  enqueue(fn: Function): void;
3
- addEventListener<TEventName extends "error" | "input" | "progress" | "select" | "resize" | "scroll" | "reset" | "drag" | "submit" | "cancel" | "close" | "mousedown" | "readystatechange" | "abort" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "blur" | "canplay" | "canplaythrough" | "change" | "click" | "contextmenu" | "cuechange" | "dblclick" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "ended" | "focus" | "focusin" | "focusout" | "gotpointercapture" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadstart" | "lostpointercapture" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "ratechange" | "securitypolicyviolation" | "seeked" | "seeking" | "selectionchange" | "selectstart" | "stalled" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "waiting" | "wheel" | "message" | "afterprint" | "beforeprint" | "beforeunload" | "compassneedscalibration" | "devicelight" | "devicemotion" | "deviceorientation" | "deviceorientationabsolute" | "hashchange" | "mousewheel" | "MSGestureChange" | "MSGestureDoubleTap" | "MSGestureEnd" | "MSGestureHold" | "MSGestureStart" | "MSGestureTap" | "MSInertiaStart" | "MSPointerCancel" | "MSPointerDown" | "MSPointerEnter" | "MSPointerLeave" | "MSPointerMove" | "MSPointerOut" | "MSPointerOver" | "MSPointerUp" | "offline" | "online" | "orientationchange" | "pagehide" | "pageshow" | "popstate" | "storage" | "unload" | "vrdisplayactivate" | "vrdisplayblur" | "vrdisplayconnect" | "vrdisplaydeactivate" | "vrdisplaydisconnect" | "vrdisplayfocus" | "vrdisplaypointerrestricted" | "vrdisplaypointerunrestricted" | "vrdisplaypresentchange" | "languagechange" | "messageerror" | "rejectionhandled" | "unhandledrejection">(element: HTMLElement | Document, name: TEventName, listener: (event: WindowEventMap[TEventName]) => any, options?: boolean | AddEventListenerOptions | undefined): () => void;
3
+ addEventListener<TEventName extends "resize" | "scroll" | "progress" | "reset" | "drag" | "submit" | "select" | "input" | "error" | "cancel" | "close" | "mousedown" | "readystatechange" | "abort" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "blur" | "canplay" | "canplaythrough" | "change" | "click" | "contextmenu" | "cuechange" | "dblclick" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "ended" | "focus" | "focusin" | "focusout" | "gotpointercapture" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadstart" | "lostpointercapture" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "ratechange" | "securitypolicyviolation" | "seeked" | "seeking" | "selectionchange" | "selectstart" | "stalled" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "waiting" | "wheel" | "message" | "afterprint" | "beforeprint" | "beforeunload" | "compassneedscalibration" | "devicelight" | "devicemotion" | "deviceorientation" | "deviceorientationabsolute" | "hashchange" | "mousewheel" | "MSGestureChange" | "MSGestureDoubleTap" | "MSGestureEnd" | "MSGestureHold" | "MSGestureStart" | "MSGestureTap" | "MSInertiaStart" | "MSPointerCancel" | "MSPointerDown" | "MSPointerEnter" | "MSPointerLeave" | "MSPointerMove" | "MSPointerOut" | "MSPointerOver" | "MSPointerUp" | "offline" | "online" | "orientationchange" | "pagehide" | "pageshow" | "popstate" | "storage" | "unload" | "vrdisplayactivate" | "vrdisplayblur" | "vrdisplayconnect" | "vrdisplaydeactivate" | "vrdisplaydisconnect" | "vrdisplayfocus" | "vrdisplaypointerrestricted" | "vrdisplaypointerunrestricted" | "vrdisplaypresentchange" | "languagechange" | "messageerror" | "rejectionhandled" | "unhandledrejection">(element: Document | HTMLElement, name: TEventName, listener: (event: WindowEventMap[TEventName]) => any, options?: boolean | AddEventListenerOptions | undefined): () => void;
4
4
  requestAnimationFrame(callback: FrameRequestCallback): () => void;
5
5
  nextFrame(callback: FrameRequestCallback): () => void;
6
6
  setTimeout(callback: (args: void) => void, ms?: number | undefined): () => void;
@@ -1,6 +1,6 @@
1
1
  export declare function disposables(): {
2
2
  enqueue(fn: Function): void;
3
- addEventListener<TEventName extends "error" | "input" | "progress" | "select" | "resize" | "scroll" | "reset" | "drag" | "submit" | "cancel" | "close" | "mousedown" | "readystatechange" | "abort" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "blur" | "canplay" | "canplaythrough" | "change" | "click" | "contextmenu" | "cuechange" | "dblclick" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "ended" | "focus" | "focusin" | "focusout" | "gotpointercapture" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadstart" | "lostpointercapture" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "ratechange" | "securitypolicyviolation" | "seeked" | "seeking" | "selectionchange" | "selectstart" | "stalled" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "waiting" | "wheel" | "message" | "afterprint" | "beforeprint" | "beforeunload" | "compassneedscalibration" | "devicelight" | "devicemotion" | "deviceorientation" | "deviceorientationabsolute" | "hashchange" | "mousewheel" | "MSGestureChange" | "MSGestureDoubleTap" | "MSGestureEnd" | "MSGestureHold" | "MSGestureStart" | "MSGestureTap" | "MSInertiaStart" | "MSPointerCancel" | "MSPointerDown" | "MSPointerEnter" | "MSPointerLeave" | "MSPointerMove" | "MSPointerOut" | "MSPointerOver" | "MSPointerUp" | "offline" | "online" | "orientationchange" | "pagehide" | "pageshow" | "popstate" | "storage" | "unload" | "vrdisplayactivate" | "vrdisplayblur" | "vrdisplayconnect" | "vrdisplaydeactivate" | "vrdisplaydisconnect" | "vrdisplayfocus" | "vrdisplaypointerrestricted" | "vrdisplaypointerunrestricted" | "vrdisplaypresentchange" | "languagechange" | "messageerror" | "rejectionhandled" | "unhandledrejection">(element: HTMLElement | Document, name: TEventName, listener: (event: WindowEventMap[TEventName]) => any, options?: boolean | AddEventListenerOptions | undefined): () => void;
3
+ addEventListener<TEventName extends "resize" | "scroll" | "progress" | "reset" | "drag" | "submit" | "select" | "input" | "error" | "cancel" | "close" | "mousedown" | "readystatechange" | "abort" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "blur" | "canplay" | "canplaythrough" | "change" | "click" | "contextmenu" | "cuechange" | "dblclick" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "ended" | "focus" | "focusin" | "focusout" | "gotpointercapture" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadstart" | "lostpointercapture" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "ratechange" | "securitypolicyviolation" | "seeked" | "seeking" | "selectionchange" | "selectstart" | "stalled" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "waiting" | "wheel" | "message" | "afterprint" | "beforeprint" | "beforeunload" | "compassneedscalibration" | "devicelight" | "devicemotion" | "deviceorientation" | "deviceorientationabsolute" | "hashchange" | "mousewheel" | "MSGestureChange" | "MSGestureDoubleTap" | "MSGestureEnd" | "MSGestureHold" | "MSGestureStart" | "MSGestureTap" | "MSInertiaStart" | "MSPointerCancel" | "MSPointerDown" | "MSPointerEnter" | "MSPointerLeave" | "MSPointerMove" | "MSPointerOut" | "MSPointerOver" | "MSPointerUp" | "offline" | "online" | "orientationchange" | "pagehide" | "pageshow" | "popstate" | "storage" | "unload" | "vrdisplayactivate" | "vrdisplayblur" | "vrdisplayconnect" | "vrdisplaydeactivate" | "vrdisplaydisconnect" | "vrdisplayfocus" | "vrdisplaypointerrestricted" | "vrdisplaypointerunrestricted" | "vrdisplaypresentchange" | "languagechange" | "messageerror" | "rejectionhandled" | "unhandledrejection">(element: HTMLElement | Document, name: TEventName, listener: (event: WindowEventMap[TEventName]) => any, options?: boolean | AddEventListenerOptions | undefined): () => void;
4
4
  requestAnimationFrame(callback: FrameRequestCallback): () => void;
5
5
  nextFrame(callback: FrameRequestCallback): () => void;
6
6
  setTimeout(callback: (args: void) => void, ms?: number | undefined): () => void;
@@ -36,5 +36,5 @@ declare type State = {
36
36
  error: Error | undefined;
37
37
  saving?: SavingState;
38
38
  };
39
- export declare const useVizzly: (properties: VizzlyServicesProperties, options?: LoaderOptions | undefined, deps?: any[] | undefined) => Returns;
39
+ export declare const useVizzly: (properties: VizzlyServicesProperties, options?: LoaderOptions | undefined) => Returns;
40
40
  export {};
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { Rules as RulesType } from '../../../../../../shared-logic/src/CustomField/Rules/types';
3
2
  import { RulesField } from '../../../../../../shared-logic/src/CustomField/types';
3
+ import { Rules as RulesType } from '../../../../../../shared-logic/src/CustomField/Rules/types';
4
4
  import { BaseCustomMetricModals } from '../types';
5
5
  export declare type RulesModalProps = BaseCustomMetricModals<RulesField | undefined | null>;
6
6
  export declare const RulesModal: FunctionComponent<RulesModalProps>;
@@ -1,7 +1,7 @@
1
- import type { ComponentType } from '../../../../../shared-logic/src/Component/types';
2
- import type { CustomField } from '../../../../../shared-logic/src/CustomField/types';
3
- import type { DataSet } from '../../../../../shared-logic/src/DataSet/types';
4
- import type { QueryEngineConfig } from '../../../../../shared-logic/src/QueryEngineConfig/types';
1
+ import { ComponentType } from '../../../../../shared-logic/src/Component/types';
2
+ import { CustomField } from '../../../../../shared-logic/src/CustomField/types';
3
+ import { DataSet } from '../../../../../shared-logic/src/DataSet/types';
4
+ import { QueryEngineConfig } from '../../../../../shared-logic/src/QueryEngineConfig/types';
5
5
  export declare type BaseCustomMetricModals<T> = {
6
6
  show: boolean;
7
7
  onClose: () => void;
@@ -1,7 +1,7 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { ComponentType } from '../../../../shared-logic/src/Component/types';
3
2
  import { DataSet } from '../../../../shared-logic/src/DataSet/types';
4
3
  import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
4
+ import { ComponentType } from '../../../../shared-logic/src/Component/types';
5
5
  import { ModalType } from '../../contexts/DashboardContext/types';
6
6
  export declare const CustomMetricsInput: FunctionComponent<{
7
7
  dataSetId: string;
@@ -11,4 +11,3 @@ export * from './FieldsInputSection';
11
11
  export * from './ViewsSection';
12
12
  export * from './FieldCollectorSection';
13
13
  export * from './TrendsSection';
14
- export * from './DateComparisonSection';
@@ -7,6 +7,7 @@ import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/typ
7
7
  import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
8
8
  import { DashboardBehaviour, TextOverride } from '../../contexts/DashboardBehaviour/types';
9
9
  import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
10
+ import { Result } from '../../../../shared-logic/src/Result/types';
10
11
  import { StudioAction, StudioState } from '../../contexts/DashboardContext/types';
11
12
  import { SelectableCustomView } from '../../../../shared-logic/src/CustomView/types';
12
13
  export declare type EditorHookValues = {
@@ -27,6 +28,7 @@ export declare type EditorHookValues = {
27
28
  setAttributes: (attributes: ComponentType.Attributes) => void;
28
29
  setLocalFilters: (localFilters: Component['localFilters']) => void;
29
30
  setPartialAttributes: (attributes: Partial<ComponentType.Attributes>) => void;
31
+ setResults: (results: (Result | null)[]) => void;
30
32
  mode: 'endUser' | 'admin';
31
33
  origin: Origin;
32
34
  componentEditor: StudioState['componentEditor'];
@@ -6,6 +6,7 @@ declare type ComponentInLibraryProps = {
6
6
  libraryIndex: number;
7
7
  onSelectComponent: ViewsInLibraryProps['onSelectComponent'];
8
8
  runQueriesCallback: ViewsInLibraryProps['runQueriesCallback'];
9
+ setResults: ViewsInLibraryProps['setResults'];
9
10
  updateComponentAttributes: ViewsInLibraryProps['updateComponentAttributes'];
10
11
  selectedIndex: number;
11
12
  onEdit: (index: number) => void;
@@ -1,5 +1,7 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
3
+ import { Query } from '../../../../shared-logic/src/Query/types';
4
+ import { Result } from '../../../../shared-logic/src/Result/types';
3
5
  import { VizzlyComponents } from '../../types';
4
6
  import { Dashboard } from '../../../../shared-logic/src/Dashboard';
5
7
  export declare const Library: () => JSX.Element;
@@ -8,8 +10,10 @@ export declare const ViewLibraryDisplay: FunctionComponent<{
8
10
  onClose: () => void;
9
11
  onSelect: () => void;
10
12
  updateComponentAttributes: (attributes: ComponentType.Attributes) => void;
13
+ setFocussedComponentResults: (results: (Result | null)[], queries: Query[]) => void;
11
14
  dashboard: Dashboard;
12
15
  selectedLibraryIndex: number;
16
+ setResults: (results: (Result | null)[], libraryIndex: number) => void;
13
17
  canEditComponentLibrary: boolean;
14
18
  onEdit: (index: number) => void;
15
19
  onDelete: (index: number) => void;
@@ -1,8 +1,10 @@
1
1
  import { VizzlyComponents } from '../../types';
2
2
  import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
3
+ import { Result } from '../../../../shared-logic/src/Result/types';
3
4
  export declare type ViewsInLibraryProps = {
4
5
  onSelectComponent: (componentIndex: number) => void;
5
6
  runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
7
+ setResults: (results: (Result | null)[], libraryIndex: number) => void;
6
8
  components: ComponentType[];
7
9
  updateComponentAttributes: (attributes: ComponentType.Attributes) => void;
8
10
  selectedIndex: number;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { AxisLabelsSection as AxisLabelsSectionType } from '../../../../shared-logic/src/FormatPanelConfig/types';
3
2
  import { VizzlyComponents } from '../../types';
3
+ import { AxisLabelsSection as AxisLabelsSectionType } from '../../../../shared-logic/src/FormatPanelConfig/types';
4
4
  declare type AxisValues = {
5
5
  yAxisPrefix?: string;
6
6
  yAxisPostfix?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vizzly/dashboard",
3
3
  "author": "james@vizzly.co",
4
- "version": "0.15.0-dev-3d764e5c2346be462bbcf7327369903e64b96b40",
4
+ "version": "0.15.1-dev-7c85efb9d70a7b5e5367d265c0b48faf46ecac6e",
5
5
  "source": "src/index.tsx",
6
6
  "types": "./dist/dashboard/src/index.d.ts",
7
7
  "module": "./dist/dashboard.esm.js",
@@ -55,8 +55,8 @@
55
55
  "@visx/visx": "^3.10.2",
56
56
  "@vizzly/api-client": "0.0.57",
57
57
  "@vizzly/joi": "^17.7.0",
58
- "@vizzly/semantic-layer-public": "0.0.241",
59
- "@vizzly/sqlbuilder-public": "0.1.71",
58
+ "@vizzly/semantic-layer-public": "0.0.234",
59
+ "@vizzly/sqlbuilder-public": "0.1.43",
60
60
  "chroma-js": "2.4.2",
61
61
  "copy-to-clipboard": "^3.3.3",
62
62
  "cross-fetch": "^4.0.0",
@@ -65,7 +65,6 @@
65
65
  "fuse.js": "^6.6.2",
66
66
  "html2canvas": "^1.4.1",
67
67
  "joi-to-json": "^4.2.1",
68
- "js-md5": "^0.8.3",
69
68
  "jspdf": "^3.0.1",
70
69
  "lodash": "^4.17.21",
71
70
  "lodash-es": "^4.17.21",
@@ -1,32 +0,0 @@
1
- import { ChartData, ChartProps, ColorFormatterByDatum, ColorFormatterByKey } from '../types';
2
- import { GenerateAnnotationType } from '../XYChart/logic/annotations';
3
- import { AxisTitles, Datum, GoalLine, ThresholdType, Props as VizzlyXYChartProps } from '../XYChart';
4
- export interface ScatterChartProps extends ChartProps {
5
- uniqueId: string;
6
- x: string;
7
- keys: string[];
8
- colors: string[];
9
- data: Array<ChartData>;
10
- sparkline?: boolean;
11
- forceXAxisAsTime?: VizzlyXYChartProps['forceXAxisAsTime'];
12
- annotate?: Array<GenerateAnnotationType>;
13
- lineCurve?: VizzlyXYChartProps['lineCurve'];
14
- formatSeriesName: VizzlyXYChartProps['formatSeriesName'];
15
- formatter: ColorFormatterByKey;
16
- datumFormatter?: ColorFormatterByDatum;
17
- onClick?: (value: Datum | undefined) => void;
18
- goalLine?: GoalLine[];
19
- axisTitles?: AxisTitles;
20
- threshold?: Array<ThresholdType>;
21
- idPrefix: VizzlyXYChartProps['idPrefix'];
22
- trends?: {
23
- data: Array<ChartData>;
24
- keys: string[];
25
- colors?: string[];
26
- opacity?: number[];
27
- strokeWidth?: number[];
28
- strokeDasharray?: string | number[];
29
- };
30
- lineStyle?: 'dotted';
31
- quadrants?: VizzlyXYChartProps['quadrants'];
32
- }
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type DataLabelProps = {
3
- x: number;
4
- y: number;
5
- title: string;
6
- dx?: number;
7
- dy?: number;
8
- color?: string;
9
- backgroundColor?: string;
10
- };
11
- export declare const DataLabel: React.FC<DataLabelProps>;
@@ -1 +0,0 @@
1
- export { DataLabel } from './DataLabel';
@@ -1,10 +0,0 @@
1
- import { ScaleLinear } from '@visx/vendor/d3-scale';
2
- import { FunctionComponent } from 'react';
3
- export declare const GridColumns: FunctionComponent<{
4
- ticks: number[];
5
- xScale: ScaleLinear<number, number, never>;
6
- removeStroke?: boolean;
7
- width: number;
8
- height: number;
9
- themeCSS: any;
10
- }>;
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import { ChartOnViewClick, HorizontalBarChartRepresentation } from '../../../../../shared-logic/src/HorizontalBarChartV2/types';
3
- import { ChartTheme } from '../../../types';
4
- export declare type HorizontalBarChartProps = {
5
- width: number;
6
- height: number;
7
- theme?: ChartTheme;
8
- chart: HorizontalBarChartRepresentation;
9
- options: {
10
- stacked: boolean | string;
11
- showRoundedTotal: boolean;
12
- showLegend: boolean;
13
- showLabels: boolean;
14
- showSublabels: boolean;
15
- removeStroke: boolean;
16
- axis: {
17
- showXAxisLabels: boolean;
18
- showYAxisLabels: boolean;
19
- };
20
- };
21
- onClick?: (params: ChartOnViewClick) => void;
22
- enableHover?: boolean;
23
- numberOfDimensions: number;
24
- formatXAxisLabel?: (value: any) => any;
25
- formatYAxisLabel?: (value: any) => any;
26
- };
27
- export declare const HorizontalBarChart: ({ chart, width, height, options, theme, onClick, enableHover, numberOfDimensions, formatXAxisLabel, formatYAxisLabel, }: HorizontalBarChartProps) => JSX.Element;
@@ -1,25 +0,0 @@
1
- /// <reference types="react" />
2
- import { ScaleBand, ScaleLinear, ScalePoint, ScaleTime } from '@visx/vendor/d3-scale';
3
- import { DataItem } from '../../../../../shared-logic/src/ChartsV2/types';
4
- import { DataType } from '../../../../../shared-logic/src/Field/types';
5
- import { ChartType } from '../../../Legend/types';
6
- import { TooltipDataReturn } from '../../utils/getTooltipData';
7
- interface getTooltipDataForHorizontalChartArgs {
8
- data: Array<{
9
- [keyId: string]: DataItem;
10
- }>;
11
- event: React.MouseEvent<SVGElement>;
12
- margin: {
13
- top: number;
14
- right: number;
15
- bottom: number;
16
- left: number;
17
- };
18
- yScaleKey: string;
19
- yScaleDataType: DataType;
20
- yScale: ScaleBand<number> | ScaleBand<string> | ScaleBand<Date> | ScaleTime<number, number> | ScaleLinear<number, number> | ScalePoint<string>;
21
- yOrdering: 'asc' | 'desc' | null;
22
- chartType: ChartType;
23
- }
24
- export declare const getTooltipDataForHorizontalChart: ({ data, event, margin, yScaleKey, yScaleDataType, yScale, yOrdering, chartType, }: getTooltipDataForHorizontalChartArgs) => TooltipDataReturn | undefined;
25
- export {};
@@ -1 +0,0 @@
1
- export { HorizontalBarChart } from './HorizontalBarChart';
@@ -1,4 +0,0 @@
1
- import { Datum } from '../../../../../shared-logic/src/DatumKey';
2
- import { Scale } from '../../../../../shared-logic/src/ChartsV2/types';
3
- export declare function useHorizontalBarYScale(yScaleDataType: string, innerWidth: number, yScaleKey: string | null, data: Datum[]): import("@visx/vendor/d3-scale").ScaleBand<number> | import("@visx/vendor/d3-scale").ScaleBand<string> | import("@visx/vendor/d3-scale").ScaleBand<Date> | null;
4
- export declare function useHorizontalBarXScale<T>(innerWidth: number, scale: Scale<T>, leftOffset: number): import("@visx/vendor/d3-scale").ScaleLinear<number, number, never>;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type QuadrantOverlayProps = {
3
- innerWidth: number;
4
- innerHeight: number;
5
- topLeftText?: string;
6
- topRightText?: string;
7
- bottomLeftText?: string;
8
- bottomRightText?: string;
9
- };
10
- export declare const QuadrantOverlay: ({ innerWidth, innerHeight, topLeftText, topRightText, bottomLeftText, bottomRightText, }: QuadrantOverlayProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- export { QuadrantOverlay } from './QuadrantOverlay';
2
- export type { QuadrantOverlayProps } from './QuadrantOverlay';
@@ -1,19 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { DataItem, ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
3
- import { LinesItemStyleLine } from '../../../../../shared-logic/src/RadarChart/types';
4
- export declare const RadarCrosshairCircle: FunctionComponent<{
5
- tooltipData: {
6
- [keyId: string]: DataItem;
7
- };
8
- yKeys: string[];
9
- legendItems: ShapeDefinition<LinesItemStyleLine>[];
10
- conditionalFormattingRules?: any;
11
- visibleYKeys: string[];
12
- radius: number;
13
- yScale: {
14
- max: number | null;
15
- min: number | null;
16
- };
17
- dataPointIndex: number;
18
- totalDataPoints: number;
19
- }>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LINE_STYLES: React.CSSProperties;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { GoalLine as GoalLineType } from '../../../../../shared-logic/src/ChartsV2/types';
3
- import { Margin } from '../../utils/buildMargin';
4
- interface VerticalGoalLineProps {
5
- goalLine: GoalLineType;
6
- innerHeight: number;
7
- margin: Margin;
8
- x: number;
9
- }
10
- export declare const VerticalGoalLine: ({ goalLine, innerHeight, x, margin }: VerticalGoalLineProps) => JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { GoalLine as GoalLineType } from '../../../../../shared-logic/src/ChartsV2/types';
3
- import { Margin } from '../../utils/buildMargin';
4
- export declare const shouldUpdate: (previousProps: any, nextProps: any) => boolean;
5
- declare const _default: import("react").NamedExoticComponent<{
6
- goalLines: GoalLineType[];
7
- x: (value: number) => number;
8
- margin: Margin;
9
- height: number;
10
- }>;
11
- export default _default;
@@ -1,2 +0,0 @@
1
- export { VerticalGoalLine } from './VerticalGoalLine';
2
- export { default as VerticalGoalLines } from './VerticalGoalLines';
@@ -1,2 +0,0 @@
1
- import { Step } from '../../../../../shared-logic/src/WaterfallChart/types';
2
- export declare const getStepYPosition: (step: Step, height: number, y: number) => number;
@@ -1,11 +0,0 @@
1
- export declare type UseGroupingAxisBaseLineShiftProps = {
2
- showDetailedSubGroupingLabels: boolean;
3
- hasBottomTitle: boolean;
4
- hasLeftTitle: boolean;
5
- isChartHorizontal?: boolean;
6
- };
7
- export declare const useGroupingAxisBaseLineShift: ({ showDetailedSubGroupingLabels, hasBottomTitle, hasLeftTitle, isChartHorizontal, }: UseGroupingAxisBaseLineShiftProps) => {
8
- groupingAxisBaselineShift: number;
9
- bottomOffset: number;
10
- leftOffset: number;
11
- };
@@ -1,28 +0,0 @@
1
- /// <reference types="react" />
2
- import { ScaleBand, ScaleLinear } from '@visx/vendor/d3-scale';
3
- import { BarStyles } from '../../../../../shared-logic/src/BarChartV2/types';
4
- import { ChartDataDefinition, ConditionalFormattingRule, ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
5
- import { DataType } from '../../../../../shared-logic/src/Field/types';
6
- export declare type HorizontalBarGroupProps = {
7
- data: ChartDataDefinition[];
8
- keys: string[];
9
- width: number;
10
- yKey: string;
11
- yScaleDataType: DataType;
12
- yScale: ScaleBand<string> | ScaleBand<Date> | ScaleBand<number>;
13
- innerYScale: ScaleBand<string>;
14
- xScale: ScaleLinear<number, number, never>;
15
- onClick: (e: React.MouseEvent<SVGRectElement, MouseEvent>, barGroup: any, bar: any) => void;
16
- conditionalFormattingRules: ConditionalFormattingRule[];
17
- bars: ShapeDefinition<BarStyles>[];
18
- enableHover?: boolean;
19
- xAxisLabels?: string[];
20
- xLabelPosition?: number;
21
- showDetailedSubGroupingLabels: boolean;
22
- labelStyle?: React.CSSProperties;
23
- showLabels: boolean;
24
- labelDictionary: {
25
- [key: string]: string;
26
- };
27
- };
28
- export declare function HorizontalBarGroup({ data, keys, width, yKey, yScaleDataType, yScale, innerYScale, xScale, onClick, conditionalFormattingRules, bars, enableHover, xAxisLabels, xLabelPosition, showDetailedSubGroupingLabels, labelStyle, showLabels, labelDictionary, }: HorizontalBarGroupProps): JSX.Element;
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import { DatumObject } from '@visx/shape/lib/types';
3
- import { ScaleBand, ScaleLinear } from '@visx/vendor/d3-scale';
4
- import { BarStyles } from '../../../../../shared-logic/src/BarChartV2/types';
5
- import { ConditionalFormattingRule, ShapeDefinition } from '../../../../../shared-logic/src/ChartsV2/types';
6
- export declare type HorizontalBarStackedProps = {
7
- conditionalFormattingRules: ConditionalFormattingRule[];
8
- bars: ShapeDefinition<BarStyles>[];
9
- keys: string[];
10
- xScale: ScaleLinear<number, number, never>;
11
- yScale: ScaleBand<string> | ScaleBand<Date> | ScaleBand<number>;
12
- yScaleDataType: string;
13
- yScaleKey: string;
14
- data: DatumObject[];
15
- height: number;
16
- width: number;
17
- showLabels: boolean;
18
- labelDictionary: {
19
- [key: string]: string;
20
- };
21
- isStacked100?: boolean;
22
- };
23
- export declare const HorizontalBarStacked: ({ yScaleDataType, data, yScaleKey, yScale, keys, bars, conditionalFormattingRules, xScale, height, width, showLabels, labelDictionary, isStacked100, }: HorizontalBarStackedProps) => JSX.Element;
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- import { DataItem } from '../../../../shared-logic/src/RadarChart/types';
3
- declare type RadarTooltipData = {
4
- [keyId: string]: DataItem;
5
- };
6
- interface GetRadarTooltipDataArgs {
7
- data: Array<{
8
- [keyId: string]: DataItem;
9
- }>;
10
- event: React.MouseEvent<SVGElement>;
11
- totalDataPoints: number;
12
- centerX: number;
13
- centerY: number;
14
- }
15
- interface RadarTooltipDataReturn {
16
- tooltipData: RadarTooltipData | null;
17
- dataPointIndex: number;
18
- angle: number;
19
- }
20
- export declare const getRadarTooltipData: ({ data, event, totalDataPoints, centerX, centerY, }: GetRadarTooltipDataArgs) => RadarTooltipDataReturn | undefined;
21
- export {};
@@ -1,4 +0,0 @@
1
- export declare const toQueries: (attributes: import("../../../../../shared-logic/src/Component/types").Component.AreaChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.BasicTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.BubbleChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.DataTableAttributes | import("../../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes | import("../../../../../shared-logic/src/Component/types").Component.PieChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.SunburstChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RichTextAttributes | import("../../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.RadarChartAttributes | import("../../../../../shared-logic/src/Component/types").Component.HorizontalBarChartV2Attributes, dataSet: import("../../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../../shared-logic/src/DataSet/types").DataSet.Field>, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../types").Params) => {
2
- queries: import("../../../../../shared-logic/src/Query/types").Query[];
3
- resultFields: import("../../../../../shared-logic/src/Result/types").Result.Field[][];
4
- };
@@ -1,5 +0,0 @@
1
- export declare type AliasFields = {
2
- [dataSetId: string]: {
3
- [fieldId: string]: string;
4
- };
5
- };
@@ -1 +0,0 @@
1
- export declare function convertToStackedPercentages(data: Record<string, any>[], yKeys: string[], xKey: string | null): Record<string, any>[];
@@ -1,7 +0,0 @@
1
- import { Params } from '../../../../results-driver/src/types';
2
- import { DataSet } from '../../DataSet/types';
3
- import { Query } from '../../Query/types';
4
- import { QueryAttributes } from '../../QueryAttributes/types';
5
- import { QueryEngineConfig } from '../../QueryEngineConfig/types';
6
- import { AliasFieldType } from '../types';
7
- export declare const build: (measureAttribute: QueryAttributes.Measure, customField: AliasFieldType, _queryEngineConfig: QueryEngineConfig, dataSet: DataSet, _queryHasDimension: boolean, params: Params) => Query['measure'][number];
@@ -1,2 +0,0 @@
1
- import { QueryAttributes } from '../../QueryAttributes/types';
2
- export declare function combineForCustomMetricFilters(filters: QueryAttributes.Filter[][] | undefined, customFilters: QueryAttributes.Filter[][] | undefined): QueryAttributes.Filter[][];
@@ -1,15 +0,0 @@
1
- import { Clause } from '../Filter/types';
2
- export declare const alwaysTrueFilter: {
3
- type: Clause.AND_WHERE;
4
- value: {
5
- type: Clause.WHERE;
6
- value: {
7
- field: {
8
- type: "number";
9
- value: number;
10
- };
11
- op: string;
12
- value: number;
13
- };
14
- }[];
15
- };
@@ -1,17 +0,0 @@
1
- import { ChartDataDefinition } from '../ChartsV2/types';
2
- export declare const showDataLabel: (totalItems: number) => boolean;
3
- export declare const getMinMaxChartValue: (yKey: string, data: ChartDataDefinition[]) => {
4
- minValue: number;
5
- maxValue: number;
6
- };
7
- export declare const getMinMaxChartValueFromNumberArray: (data: number[]) => {
8
- minValue: number;
9
- maxValue: number;
10
- };
11
- export declare const getLabelDictionary: (formattedData: ChartDataDefinition[] | undefined, keys: string[]) => {
12
- [key: string]: string;
13
- };
14
- export declare const getFormattedValue: (value: any, dictionary?: {
15
- [key: string]: string;
16
- } | undefined) => any;
17
- export declare const getAllChartValues: (data: ChartDataDefinition[], keys: string[]) => number[];
@@ -1,3 +0,0 @@
1
- import Joi from '@vizzly/joi';
2
- import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
- export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -1,41 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { ValueAlias } from '../ValueAlias/types';
3
- import { HorizontalBarChartRepresentation } from './types';
4
- import { Component, FormatType } from '../Component/types';
5
- import { PivotConfig } from '../PivotConfig/types';
6
- import { QueryAttributes } from '../QueryAttributes/types';
7
- import { Result } from '../Result/types';
8
- import { DateTimeFormatter, NumberFormatter } from '../ChartsV2/types';
9
- import { seriesLabelFormatter } from '../Result/formattedResultToSeries';
10
- interface buildHorizontalBarChartRepresentationArgs {
11
- axisTitles?: Component.AxisTitles;
12
- colors: CSSProperties['color'][];
13
- conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
14
- dateTimeFormatOptions: {
15
- [id: string]: DateTimeFormatter;
16
- };
17
- defaultFormats: () => {
18
- [functionId: string]: string;
19
- };
20
- goalLineAttributes: Component.GoalLine.Rule[];
21
- nullValue?: string;
22
- numberFormatOptions: {
23
- [id: string]: NumberFormatter;
24
- };
25
- order: QueryAttributes.Order[];
26
- pivotConfig: PivotConfig;
27
- result: Result;
28
- trendsAndForecasts?: Component.Trends[];
29
- valueAlias?: ValueAlias;
30
- xAxisFormat: FormatType;
31
- xAxisPostfix: string;
32
- xAxisPrefix: string;
33
- yAxisFormat: FormatType;
34
- yAxisPostfix: string;
35
- yAxisPrefix: string;
36
- approxXAxisLabelCount: number;
37
- seriesLabelFormatter: seriesLabelFormatter;
38
- stacked?: boolean | '100%';
39
- }
40
- export declare const buildHorizontalBarChartRepresentation: ({ axisTitles, colors, conditionalFormattingAttributes, dateTimeFormatOptions, defaultFormats, goalLineAttributes, nullValue, numberFormatOptions, order, pivotConfig, result, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, approxXAxisLabelCount, seriesLabelFormatter, valueAlias, stacked, }: buildHorizontalBarChartRepresentationArgs) => HorizontalBarChartRepresentation;
41
- export {};
@@ -1,3 +0,0 @@
1
- import { ViewConstants } from '../ComponentInterface/types/namespaces.types';
2
- declare const CONSTANTS: ViewConstants;
3
- export default CONSTANTS;
@@ -1,4 +0,0 @@
1
- import { Component } from '../Component/types';
2
- import { LoadComponentInterface } from '../ComponentInterface/types';
3
- declare const HorizontalBarChart: LoadComponentInterface<Component.HorizontalBarChartV2Attributes, Component.HorizontalBarChartV2Attributes>;
4
- export default HorizontalBarChart;
@@ -1,4 +0,0 @@
1
- import { Component } from '../Component/types';
2
- import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
- declare const _default: (config: ComponentInterfaceConfig) => (horizontalBarChart: Component.HorizontalBarChartV2Attributes, partial: Partial<Component.HorizontalBarChartV2Attributes>) => Component.HorizontalBarChartV2Attributes;
4
- export default _default;