@primeui/vue-chart 0.0.1-alpha.1

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 (277) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +1 -0
  3. package/dist/Chart.parts.d.ts +39 -0
  4. package/dist/Chart.vue.d.ts +27 -0
  5. package/dist/ChartCanvas.mjs +14 -0
  6. package/dist/ChartCanvas.render.spec.d.ts +1 -0
  7. package/dist/ChartCanvas.vue.d.ts +23 -0
  8. package/dist/ChartStacked.spec.d.ts +1 -0
  9. package/dist/ChartSvg.axes.spec.d.ts +1 -0
  10. package/dist/ChartSvg.context.spec.d.ts +1 -0
  11. package/dist/ChartSvg.customizations.spec.d.ts +1 -0
  12. package/dist/ChartSvg.features.spec.d.ts +1 -0
  13. package/dist/ChartSvg.legend.spec.d.ts +1 -0
  14. package/dist/ChartSvg.mjs +14 -0
  15. package/dist/ChartSvg.registration.spec.d.ts +1 -0
  16. package/dist/ChartSvg.render.spec.d.ts +1 -0
  17. package/dist/ChartSvg.vue.d.ts +23 -0
  18. package/dist/_test/fixtures.d.ts +34 -0
  19. package/dist/bundle-discipline.spec.d.ts +1 -0
  20. package/dist/chunk-2D3PWFR2.mjs +214 -0
  21. package/dist/chunk-32XIRBZ7.mjs +87 -0
  22. package/dist/chunk-372K2BMN.mjs +1476 -0
  23. package/dist/chunk-42J32DPD.mjs +70 -0
  24. package/dist/chunk-44BAFHPK.mjs +51 -0
  25. package/dist/chunk-4CRHCZV3.mjs +142 -0
  26. package/dist/chunk-4NJ2PSHV.mjs +230 -0
  27. package/dist/chunk-4THCGGER.mjs +53 -0
  28. package/dist/chunk-4UVPCLJ7.mjs +70 -0
  29. package/dist/chunk-54DLUFIA.mjs +96 -0
  30. package/dist/chunk-56NMBNNX.mjs +52 -0
  31. package/dist/chunk-5DWO3G33.mjs +276 -0
  32. package/dist/chunk-5FTUGKPC.mjs +167 -0
  33. package/dist/chunk-5SRBQVU5.mjs +6 -0
  34. package/dist/chunk-62NGBLQ7.mjs +28 -0
  35. package/dist/chunk-644ROAHU.mjs +362 -0
  36. package/dist/chunk-6S4JMPKC.mjs +55 -0
  37. package/dist/chunk-72KINEJ6.mjs +52 -0
  38. package/dist/chunk-7P6ASYW6.mjs +7 -0
  39. package/dist/chunk-AAX7FOW3.mjs +210 -0
  40. package/dist/chunk-AUI5R4DA.mjs +84 -0
  41. package/dist/chunk-CDXF6ZTL.mjs +50 -0
  42. package/dist/chunk-CQHNYT2V.mjs +1692 -0
  43. package/dist/chunk-DLUFOM5K.mjs +218 -0
  44. package/dist/chunk-DOOXGOOB.mjs +123 -0
  45. package/dist/chunk-DYVFVVTO.mjs +97 -0
  46. package/dist/chunk-E2U4W5FW.mjs +288 -0
  47. package/dist/chunk-E4ROAOPT.mjs +291 -0
  48. package/dist/chunk-FFBK7Q3W.mjs +91 -0
  49. package/dist/chunk-FQTWLAVA.mjs +23 -0
  50. package/dist/chunk-FZ3PZ66C.mjs +12 -0
  51. package/dist/chunk-GA4VV5V4.mjs +21 -0
  52. package/dist/chunk-GFC24374.mjs +244 -0
  53. package/dist/chunk-GX2MK6VT.mjs +255 -0
  54. package/dist/chunk-HANSF33Z.mjs +169 -0
  55. package/dist/chunk-HTZVV6VV.mjs +550 -0
  56. package/dist/chunk-J2P5JBHC.mjs +26 -0
  57. package/dist/chunk-J43KLCZF.mjs +10 -0
  58. package/dist/chunk-JKK3D33U.mjs +64 -0
  59. package/dist/chunk-K326BBF7.mjs +276 -0
  60. package/dist/chunk-KOWFD2AE.mjs +72 -0
  61. package/dist/chunk-LD57I4SY.mjs +5 -0
  62. package/dist/chunk-MDA22SIZ.mjs +29 -0
  63. package/dist/chunk-NLXOJSKK.mjs +727 -0
  64. package/dist/chunk-O6L3PNFC.mjs +49 -0
  65. package/dist/chunk-PJVOZSPF.mjs +55 -0
  66. package/dist/chunk-PQV55JYI.mjs +38 -0
  67. package/dist/chunk-PSSXPTLQ.mjs +210 -0
  68. package/dist/chunk-RQURY2H3.mjs +40 -0
  69. package/dist/chunk-RRHYGSK6.mjs +29 -0
  70. package/dist/chunk-RSAZ7V5Z.mjs +42 -0
  71. package/dist/chunk-RSTIA3KM.mjs +41 -0
  72. package/dist/chunk-TEOO4OLV.mjs +6 -0
  73. package/dist/chunk-TIV2FI4S.mjs +53 -0
  74. package/dist/chunk-UO27BCRL.mjs +86 -0
  75. package/dist/chunk-VWABO23U.mjs +143 -0
  76. package/dist/chunk-W5M3BR6N.mjs +26 -0
  77. package/dist/chunk-WA735Y26.mjs +101 -0
  78. package/dist/chunk-WKSQR6L5.mjs +247 -0
  79. package/dist/chunk-WYV2MHP6.mjs +34 -0
  80. package/dist/chunk-XBDNMPF7.mjs +87 -0
  81. package/dist/chunk-YGHWUR7K.mjs +45 -0
  82. package/dist/chunk-YRKAI2R2.mjs +151 -0
  83. package/dist/chunk-ZHFL3RYO.mjs +228 -0
  84. package/dist/chunk-ZNINPVG7.mjs +30 -0
  85. package/dist/chunk-ZRCOVQQM.mjs +47 -0
  86. package/dist/components/charts/ChartBar.mjs +13 -0
  87. package/dist/components/charts/ChartBar.vue.d.ts +11 -0
  88. package/dist/components/charts/ChartCandlestick.mjs +11 -0
  89. package/dist/components/charts/ChartCandlestick.vue.d.ts +11 -0
  90. package/dist/components/charts/ChartHeatmap.mjs +11 -0
  91. package/dist/components/charts/ChartHeatmap.vue.d.ts +11 -0
  92. package/dist/components/charts/ChartLine.mjs +11 -0
  93. package/dist/components/charts/ChartLine.vue.d.ts +11 -0
  94. package/dist/components/charts/ChartPie.mjs +11 -0
  95. package/dist/components/charts/ChartPie.vue.d.ts +15 -0
  96. package/dist/components/charts/ChartPolar.mjs +11 -0
  97. package/dist/components/charts/ChartPolar.vue.d.ts +11 -0
  98. package/dist/components/charts/ChartRadar.mjs +11 -0
  99. package/dist/components/charts/ChartRadar.vue.d.ts +11 -0
  100. package/dist/components/charts/ChartScatter.mjs +11 -0
  101. package/dist/components/charts/ChartScatter.vue.d.ts +11 -0
  102. package/dist/components/charts/ChartTreemap.mjs +10 -0
  103. package/dist/components/charts/ChartTreemap.vue.d.ts +15 -0
  104. package/dist/components/charts/index.d.ts +2 -0
  105. package/dist/components/containers/ChartDecimation.mjs +6 -0
  106. package/dist/components/containers/ChartDecimation.vue.d.ts +29 -0
  107. package/dist/components/containers/ChartGroup.mjs +4 -0
  108. package/dist/components/containers/ChartGroup.vue.d.ts +13 -0
  109. package/dist/components/containers/ChartOverlap.mjs +5 -0
  110. package/dist/components/containers/ChartOverlap.vue.d.ts +13 -0
  111. package/dist/components/containers/ChartRange.mjs +6 -0
  112. package/dist/components/containers/ChartRange.vue.d.ts +13 -0
  113. package/dist/components/containers/ChartStacked.mjs +6 -0
  114. package/dist/components/containers/ChartStacked.vue.d.ts +21 -0
  115. package/dist/components/containers/ChartWaterfall.mjs +5 -0
  116. package/dist/components/containers/ChartWaterfall.vue.d.ts +17 -0
  117. package/dist/components/containers/keys.d.ts +5 -0
  118. package/dist/components/customizations/ChartAccessibility.mjs +9 -0
  119. package/dist/components/customizations/ChartAccessibility.vue.d.ts +28 -0
  120. package/dist/components/customizations/ChartAnnotation.mjs +5 -0
  121. package/dist/components/customizations/ChartAnnotation.vue.d.ts +8 -0
  122. package/dist/components/customizations/ChartAxisCategory.mjs +3 -0
  123. package/dist/components/customizations/ChartAxisCategory.vue.d.ts +4 -0
  124. package/dist/components/customizations/ChartAxisGroup.mjs +3 -0
  125. package/dist/components/customizations/ChartAxisGroup.vue.d.ts +14 -0
  126. package/dist/components/customizations/ChartBreadcrumb.mjs +6 -0
  127. package/dist/components/customizations/ChartBreadcrumb.vue.d.ts +15 -0
  128. package/dist/components/customizations/ChartCaption.mjs +9 -0
  129. package/dist/components/customizations/ChartCaption.vue.d.ts +4 -0
  130. package/dist/components/customizations/ChartColorLegend.mjs +9 -0
  131. package/dist/components/customizations/ChartColorLegend.vue.d.ts +47 -0
  132. package/dist/components/customizations/ChartDataLabels.mjs +9 -0
  133. package/dist/components/customizations/ChartDataLabels.vue.d.ts +53 -0
  134. package/dist/components/customizations/ChartExportMenu.mjs +9 -0
  135. package/dist/components/customizations/ChartExportMenu.vue.d.ts +29 -0
  136. package/dist/components/customizations/ChartHover.mjs +9 -0
  137. package/dist/components/customizations/ChartHover.vue.d.ts +4 -0
  138. package/dist/components/customizations/ChartLegend.mjs +9 -0
  139. package/dist/components/customizations/ChartLegend.vue.d.ts +7 -0
  140. package/dist/components/customizations/ChartNavigator.mjs +10 -0
  141. package/dist/components/customizations/ChartNavigator.vue.d.ts +4 -0
  142. package/dist/components/customizations/ChartReferenceBand.mjs +5 -0
  143. package/dist/components/customizations/ChartReferenceBand.vue.d.ts +4 -0
  144. package/dist/components/customizations/ChartReferenceLine.mjs +5 -0
  145. package/dist/components/customizations/ChartReferenceLine.vue.d.ts +4 -0
  146. package/dist/components/customizations/ChartResponsive.mjs +9 -0
  147. package/dist/components/customizations/ChartResponsive.vue.d.ts +12 -0
  148. package/dist/components/customizations/ChartTitle.mjs +9 -0
  149. package/dist/components/customizations/ChartTitle.vue.d.ts +4 -0
  150. package/dist/components/customizations/ChartTooltip.mjs +9 -0
  151. package/dist/components/customizations/ChartTooltip.vue.d.ts +6 -0
  152. package/dist/components/customizations/ChartXAxis.mjs +10 -0
  153. package/dist/components/customizations/ChartXAxis.vue.d.ts +24 -0
  154. package/dist/components/customizations/ChartYAxis.mjs +10 -0
  155. package/dist/components/customizations/ChartYAxis.vue.d.ts +23 -0
  156. package/dist/components/customizations/ChartZoom.mjs +9 -0
  157. package/dist/components/customizations/ChartZoom.vue.d.ts +4 -0
  158. package/dist/components/customizations/axisGroupKeys.d.ts +8 -0
  159. package/dist/components/customizations/index.d.ts +20 -0
  160. package/dist/components/items/ChartItem.mjs +3 -0
  161. package/dist/components/items/ChartItem.vue.d.ts +4 -0
  162. package/dist/components/items/ChartTreemapGroup.mjs +5 -0
  163. package/dist/components/items/ChartTreemapGroup.vue.d.ts +11 -0
  164. package/dist/components/items/index.d.ts +1 -0
  165. package/dist/components/renderers/CartesianRenderer.mjs +9 -0
  166. package/dist/components/renderers/CartesianRenderer.vue.d.ts +66 -0
  167. package/dist/components/renderers/ColorLegendRenderer.mjs +2 -0
  168. package/dist/components/renderers/ColorLegendRenderer.vue.d.ts +15 -0
  169. package/dist/components/renderers/LegendRenderer.mjs +3 -0
  170. package/dist/components/renderers/LegendRenderer.vue.d.ts +20 -0
  171. package/dist/components/renderers/NavigatorRenderer.mjs +5 -0
  172. package/dist/components/renderers/NavigatorRenderer.vue.d.ts +16 -0
  173. package/dist/components/renderers/RadialRenderer.mjs +9 -0
  174. package/dist/components/renderers/RadialRenderer.vue.d.ts +39 -0
  175. package/dist/components/renderers/RectRenderer.mjs +9 -0
  176. package/dist/components/renderers/RectRenderer.vue.d.ts +32 -0
  177. package/dist/components/renderers/TooltipRenderer.mjs +4 -0
  178. package/dist/components/renderers/TooltipRenderer.vue.d.ts +11 -0
  179. package/dist/components/renderers/layers/BarLayerCanvas.mjs +10 -0
  180. package/dist/components/renderers/layers/BarLayerCanvas.vue.d.ts +3 -0
  181. package/dist/components/renderers/layers/BarLayerSvg.mjs +10 -0
  182. package/dist/components/renderers/layers/BarLayerSvg.vue.d.ts +3 -0
  183. package/dist/components/renderers/layers/CandlestickLayer.mjs +9 -0
  184. package/dist/components/renderers/layers/CandlestickLayer.vue.d.ts +3 -0
  185. package/dist/components/renderers/layers/HeatmapLayer.mjs +9 -0
  186. package/dist/components/renderers/layers/HeatmapLayer.vue.d.ts +3 -0
  187. package/dist/components/renderers/layers/LineLayer.mjs +9 -0
  188. package/dist/components/renderers/layers/LineLayer.vue.d.ts +3 -0
  189. package/dist/components/renderers/layers/PieLayer.mjs +9 -0
  190. package/dist/components/renderers/layers/PieLayer.vue.d.ts +12 -0
  191. package/dist/components/renderers/layers/PolarLayer.mjs +9 -0
  192. package/dist/components/renderers/layers/PolarLayer.vue.d.ts +16 -0
  193. package/dist/components/renderers/layers/RadarLayer.mjs +9 -0
  194. package/dist/components/renderers/layers/RadarLayer.vue.d.ts +16 -0
  195. package/dist/components/renderers/layers/ScatterLayer.mjs +9 -0
  196. package/dist/components/renderers/layers/ScatterLayer.vue.d.ts +3 -0
  197. package/dist/composables/index.d.ts +35 -0
  198. package/dist/composables/useAnimationProps.d.ts +21 -0
  199. package/dist/composables/useAxisComponentBase.d.ts +11 -0
  200. package/dist/composables/useAxisRegistration.d.ts +7 -0
  201. package/dist/composables/useAxisTransition.d.ts +6 -0
  202. package/dist/composables/useBarLayer.d.ts +9 -0
  203. package/dist/composables/useBarRenderer.canvas.d.ts +2 -0
  204. package/dist/composables/useBarRenderer.svg.d.ts +2 -0
  205. package/dist/composables/useBarRendererBase.d.ts +3 -0
  206. package/dist/composables/useCandlestickRenderer.d.ts +2 -0
  207. package/dist/composables/useCartesianAnimation.d.ts +2 -0
  208. package/dist/composables/useCartesianFrame.d.ts +72 -0
  209. package/dist/composables/useCartesianLayout.d.ts +3 -0
  210. package/dist/composables/useChartContext.d.ts +40 -0
  211. package/dist/composables/useChartLayers.d.ts +31 -0
  212. package/dist/composables/useChartRefreshHook.d.ts +1 -0
  213. package/dist/composables/useChartSync.d.ts +2 -0
  214. package/dist/composables/useChartSyncCoordinator.d.ts +23 -0
  215. package/dist/composables/useControllerLifecycle.d.ts +18 -0
  216. package/dist/composables/useCustomizationRegistration.d.ts +18 -0
  217. package/dist/composables/useDatasetAnimationContext.d.ts +14 -0
  218. package/dist/composables/useDatasetRegistration.d.ts +6 -0
  219. package/dist/composables/useDrilldownState.d.ts +3 -0
  220. package/dist/composables/useFamilyRenderers.d.ts +10 -0
  221. package/dist/composables/useFamilyRenderers.spec.d.ts +1 -0
  222. package/dist/composables/useHeatmapRenderer.d.ts +2 -0
  223. package/dist/composables/useItemCollector.d.ts +2 -0
  224. package/dist/composables/useKeyboardController.d.ts +8 -0
  225. package/dist/composables/useKeyboardNavigation.d.ts +2 -0
  226. package/dist/composables/useLineRenderer.d.ts +2 -0
  227. package/dist/composables/useNavigatorRenderer.d.ts +7 -0
  228. package/dist/composables/usePieRenderer.d.ts +2 -0
  229. package/dist/composables/usePolarRenderer.d.ts +2 -0
  230. package/dist/composables/usePropertyAnimations.d.ts +4 -0
  231. package/dist/composables/useRadarRenderer.d.ts +2 -0
  232. package/dist/composables/useRadialFrame.d.ts +39 -0
  233. package/dist/composables/useResponsiveConfig.d.ts +8 -0
  234. package/dist/composables/useResponsiveDimensions.d.ts +2 -0
  235. package/dist/composables/useScatterRenderer.d.ts +2 -0
  236. package/dist/composables/useTreemapRenderer.d.ts +2 -0
  237. package/dist/composables/useZoomController.d.ts +9 -0
  238. package/dist/composables/useZoomPan.d.ts +2 -0
  239. package/dist/context/ChartContext.d.ts +21 -0
  240. package/dist/context/index.d.ts +4 -0
  241. package/dist/context/keys.d.ts +52 -0
  242. package/dist/context/syncKeys.d.ts +5 -0
  243. package/dist/index.d.ts +44 -0
  244. package/dist/index.mjs +67 -0
  245. package/dist/namespace.d.ts +1 -0
  246. package/dist/namespace.mjs +112 -0
  247. package/dist/release-date.d.ts +11 -0
  248. package/dist/types/animation.types.d.ts +38 -0
  249. package/dist/types/axes.types.d.ts +27 -0
  250. package/dist/types/axisComponentBase.types.d.ts +5 -0
  251. package/dist/types/axisGroup.types.d.ts +1 -0
  252. package/dist/types/bar.types.d.ts +42 -0
  253. package/dist/types/breadcrumb.types.d.ts +12 -0
  254. package/dist/types/candlestick.types.d.ts +41 -0
  255. package/dist/types/canvas.types.d.ts +5 -0
  256. package/dist/types/caption.types.d.ts +8 -0
  257. package/dist/types/cartesian.types.d.ts +22 -0
  258. package/dist/types/chart.types.d.ts +51 -0
  259. package/dist/types/heatmap.types.d.ts +58 -0
  260. package/dist/types/index.d.ts +27 -0
  261. package/dist/types/item.types.d.ts +25 -0
  262. package/dist/types/keyboard.types.d.ts +24 -0
  263. package/dist/types/layout.types.d.ts +35 -0
  264. package/dist/types/legend.types.d.ts +13 -0
  265. package/dist/types/line.types.d.ts +64 -0
  266. package/dist/types/pie.types.d.ts +49 -0
  267. package/dist/types/polar.types.d.ts +63 -0
  268. package/dist/types/radar.types.d.ts +56 -0
  269. package/dist/types/responsiveDimensions.types.d.ts +16 -0
  270. package/dist/types/scatter.types.d.ts +50 -0
  271. package/dist/types/svg.types.d.ts +44 -0
  272. package/dist/types/tooltip.types.d.ts +6 -0
  273. package/dist/types/treemap.types.d.ts +50 -0
  274. package/dist/types/zoom.types.d.ts +45 -0
  275. package/dist/utils/index.d.ts +3 -0
  276. package/dist/utils/styles.d.ts +10 -0
  277. package/package.json +63 -0
@@ -0,0 +1,24 @@
1
+ import type { DatasetRegistration, FocusPosition, KeyboardNavigationConfig, KeyboardNavState, RendererDelegate } from '@primeui/chart-types';
2
+ import type { ComputedRef, Ref } from 'vue';
3
+ export interface UseKeyboardNavigationOptions {
4
+ enabled: ComputedRef<boolean>;
5
+ config: ComputedRef<KeyboardNavigationConfig | undefined>;
6
+ datasets: ComputedRef<Map<string, DatasetRegistration>>;
7
+ datasetVisibility: ComputedRef<Map<string, boolean>>;
8
+ setHover: (datasetId: string | null, index: number | null) => void;
9
+ rendererDelegate: ComputedRef<RendererDelegate | null>;
10
+ /** Drives the focused point through the mouse-move pipeline (tooltip + crosshair + sync). */
11
+ emitFocusMove?: (x: number, y: number) => void;
12
+ /** Clears the focus-driven tooltip/hover/crosshair (mouse-leave equivalent). */
13
+ emitFocusLeave?: () => void;
14
+ }
15
+ export interface UseKeyboardNavigationResult {
16
+ state: Ref<KeyboardNavState>;
17
+ focusPosition: ComputedRef<FocusPosition | null>;
18
+ announcement: Ref<string>;
19
+ onKeyDown: (e: KeyboardEvent) => void;
20
+ onMouseMove: () => void;
21
+ onFocus: () => void;
22
+ onBlur: () => void;
23
+ notifyPointerDown: () => void;
24
+ }
@@ -0,0 +1,35 @@
1
+ import type { AnyFeatureProps, AxisConfig, BoxArea, ChartTheme, DatasetRegistration, FeatureType, HoverConfig, RendererType, ZoomState } from '@primeui/chart-types';
2
+ import type { ComputedRef, Ref } from 'vue';
3
+ export interface UseCartesianLayoutOptions {
4
+ cartesianArea: ComputedRef<BoxArea | null>;
5
+ datasets: ComputedRef<Map<string, DatasetRegistration>>;
6
+ axes: ComputedRef<{
7
+ x: Map<string, AxisConfig>;
8
+ y: Map<string, AxisConfig>;
9
+ }>;
10
+ features: ComputedRef<Map<FeatureType, {
11
+ type: FeatureType;
12
+ props: AnyFeatureProps;
13
+ }>>;
14
+ datasetVisibility: ComputedRef<Map<string, boolean>>;
15
+ hover: Ref<{
16
+ datasetId: string | null;
17
+ index: number | null;
18
+ }>;
19
+ hoverConfig: ComputedRef<HoverConfig | undefined>;
20
+ chartId: string;
21
+ renderer: RendererType;
22
+ width: ComputedRef<number>;
23
+ height: ComputedRef<number>;
24
+ zoomState?: ComputedRef<ZoomState | null>;
25
+ /** Reactive dir ref — `.value` is read inside the layout computed so direction changes trigger re-layout. */
26
+ dir?: Ref<'ltr' | 'rtl'>;
27
+ globalFont?: {
28
+ family?: string;
29
+ size?: number;
30
+ };
31
+ /** Reactive locale ref — `.value` is read inside the layout computed so locale changes trigger re-layout. */
32
+ locale?: Ref<string | undefined>;
33
+ /** Reactive theme — read via `.value` inside the composable. */
34
+ theme: ComputedRef<Required<ChartTheme>>;
35
+ }
@@ -0,0 +1,13 @@
1
+ import type { ColorLegendProps as CoreColorLegendProps, ColorLegendRenderContext, LegendProps as CoreLegendProps, LegendItemRenderContext } from '@primeui/chart-types';
2
+ import type { CSSProperties, VNode } from 'vue';
3
+ export interface ChartLegendProps extends CoreLegendProps {
4
+ render?: (context: LegendItemRenderContext) => VNode | VNode[] | string | null;
5
+ /** Custom CSS class (shared mode only) */
6
+ class?: string;
7
+ /** Custom inline styles (shared mode only) */
8
+ style?: CSSProperties;
9
+ }
10
+ export interface ColorLegendProps extends Omit<CoreColorLegendProps, 'render'> {
11
+ /** Custom render function for the color legend. When provided, replaces the default gradient bar entirely. */
12
+ render?: (context: ColorLegendRenderContext) => VNode | null;
13
+ }
@@ -0,0 +1,64 @@
1
+ import type { AnimatedPropertyStoreLike, CanvasCompositorLike, AnyFeatureProps, BandScale, BoxArea, CartesianHitTestResult, CartesianLayoutData, ChartTheme, ColorValue, CrosshairSeriesHit, DatasetRegistration, FeatureType, FrameDataLabelConfig, HoverConfig, LinearScale, LineHitTestResult, LineProps, LineRenderData, LineRenderProps, MarkerOverlayEntry } from '@primeui/chart-types';
2
+ import type { ComputedRef, Ref, ShallowRef, VNode } from 'vue';
3
+ export type { LineAnimationConfig } from '@primeui/chart-types';
4
+ export type ChartLineProps<T = unknown> = LineProps<T, VNode | null>;
5
+ export interface UseLineRendererOptions {
6
+ chartArea: ComputedRef<BoxArea>;
7
+ renderer: 'svg' | 'canvas';
8
+ canvasEl: Ref<HTMLCanvasElement | null> | ShallowRef<HTMLCanvasElement | null>;
9
+ datasets: ComputedRef<Map<string, DatasetRegistration>>;
10
+ datasetVisibility: ComputedRef<Map<string, boolean>>;
11
+ hover: ComputedRef<{
12
+ datasetId: string | null;
13
+ index: number | null;
14
+ }>;
15
+ hoverConfig: ComputedRef<HoverConfig | undefined>;
16
+ chartId: string;
17
+ width: ComputedRef<number>;
18
+ height: ComputedRef<number>;
19
+ categoryScale: ComputedRef<BandScale | undefined>;
20
+ valueScales: ComputedRef<Map<string, LinearScale> | undefined>;
21
+ firstValueAxisId: ComputedRef<string>;
22
+ axisIdProp: ComputedRef<string>;
23
+ lineStackBasesMap: ComputedRef<Map<string, number[]> | undefined>;
24
+ lineTransformedValues: ComputedRef<Map<string, number[]> | undefined>;
25
+ rangeGroups: ComputedRef<Map<string, {
26
+ datasetIds: string[];
27
+ color?: ColorValue;
28
+ fillOpacity: number;
29
+ }> | undefined>;
30
+ features: ComputedRef<Map<FeatureType, {
31
+ type: FeatureType;
32
+ props: AnyFeatureProps;
33
+ }>>;
34
+ labelConfig?: ComputedRef<FrameDataLabelConfig | null>;
35
+ layoutData?: ComputedRef<CartesianLayoutData | null>;
36
+ compositor?: CanvasCompositorLike;
37
+ dir: Ref<'ltr' | 'rtl'>;
38
+ /** Reactive theme — read via `.value` inside the composable. */
39
+ theme: ComputedRef<Required<ChartTheme>>;
40
+ }
41
+ export interface UseLineRendererResult {
42
+ groupRef: Ref<SVGGElement | null>;
43
+ hitTest: (x: number, y: number) => LineHitTestResult | null;
44
+ findAllNearest: (x: number, y: number) => {
45
+ primary: CartesianHitTestResult;
46
+ allSeries: CrosshairSeriesHit[];
47
+ } | null;
48
+ hasLineData: ComputedRef<boolean>;
49
+ lineLayouts: ShallowRef<Map<string, LineRenderData>>;
50
+ lineRenderProps: ShallowRef<Map<string, LineRenderProps<unknown>>>;
51
+ /**
52
+ * Subscribe to per-frame tip-position updates. Returns unsubscribe.
53
+ * Callback receives the current `datasetId → {x, y}` map during tip-extension
54
+ * animation, or `null` when no animation is in flight or when it completes.
55
+ */
56
+ subscribeTipPositions: (cb: (positions: Map<string, {
57
+ x: number;
58
+ y: number;
59
+ }> | null) => void) => () => void;
60
+ markerOverlays: Ref<MarkerOverlayEntry[]>;
61
+ syncWithAnimatedScale: (categoryScale: BandScale, valueScales?: Map<string, LinearScale>) => void;
62
+ applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void;
63
+ renderFrameCycle: () => void;
64
+ }
@@ -0,0 +1,49 @@
1
+ import type { AnimatedPropertyStoreLike, AnyFeatureProps, BoxArea, ChartTheme, DatasetRegistration, FeatureType, PieProps, RadialHitTestResult } from '@primeui/chart-types';
2
+ import type { ComputedRef, Ref, VNode } from 'vue';
3
+ export type ChartPieProps<T = unknown> = PieProps<T, VNode | null>;
4
+ export interface UsePieRendererOptions {
5
+ chartArea: Ref<BoxArea>;
6
+ renderer: 'svg' | 'canvas';
7
+ canvasEl: Ref<HTMLCanvasElement | null>;
8
+ containerEl: Ref<HTMLDivElement | null>;
9
+ datasets: Ref<Map<string, DatasetRegistration>>;
10
+ features: Ref<Map<FeatureType, {
11
+ type: FeatureType;
12
+ props: AnyFeatureProps;
13
+ }>>;
14
+ hover: Ref<{
15
+ datasetId: string | null;
16
+ index: number | null;
17
+ }>;
18
+ datasetVisibility: Ref<Map<string, boolean>>;
19
+ hiddenItems: Ref<Map<string, Set<number>>>;
20
+ chartId: string;
21
+ width: Ref<number>;
22
+ height: Ref<number>;
23
+ globalFont?: {
24
+ family?: string;
25
+ size?: number;
26
+ };
27
+ adaptiveDataLabelFontSize?: Ref<number | undefined>;
28
+ dir: Ref<'ltr' | 'rtl'>;
29
+ /** Reactive theme — read via `.value` inside the composable. */
30
+ theme: ComputedRef<Required<ChartTheme>>;
31
+ }
32
+ export interface UsePieRendererResult {
33
+ groupRef: Ref<SVGGElement | null>;
34
+ labelGroupRef: Ref<SVGGElement | null>;
35
+ hitTest: (x: number, y: number) => RadialHitTestResult | null;
36
+ getSlicePosition: (datasetId: string, index: number) => {
37
+ x: number;
38
+ y: number;
39
+ } | null;
40
+ center: Ref<{
41
+ x: number;
42
+ y: number;
43
+ } | null>;
44
+ svgContent: Ref<VNode[]>;
45
+ /** Forwards animated property values to the controller for the current frame. */
46
+ applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void;
47
+ /** Triggers a full re-render so SVG attributes restore to base values when a property animation completes. */
48
+ renderFrameCycle: () => void;
49
+ }
@@ -0,0 +1,63 @@
1
+ import type { AnimatedPropertyStoreLike, AxisConfig, AnyFeatureProps, BoxArea, ChartTheme, CrosshairSeriesHit, DatasetRegistration, FeatureType, PolarProps, PolarRenderData, RadialHitTestResult } from '@primeui/chart-types';
2
+ import type { ComputedRef, Ref, ShallowRef } from 'vue';
3
+ export type ChartPolarProps<T = unknown> = PolarProps<T>;
4
+ export interface UsePolarRendererOptions {
5
+ chartArea: ComputedRef<BoxArea | null>;
6
+ renderer: 'svg' | 'canvas';
7
+ canvasEl: Ref<HTMLCanvasElement | null> | ShallowRef<HTMLCanvasElement | null>;
8
+ datasets: ComputedRef<Map<string, DatasetRegistration>>;
9
+ features: ComputedRef<Map<FeatureType, {
10
+ type: FeatureType;
11
+ props: AnyFeatureProps;
12
+ }>>;
13
+ hover: ComputedRef<{
14
+ datasetId: string | null;
15
+ index: number | null;
16
+ axisIndex?: number | null;
17
+ }>;
18
+ datasetVisibility: ComputedRef<Map<string, boolean>>;
19
+ globalFont?: {
20
+ family?: string;
21
+ size?: number;
22
+ };
23
+ adaptiveDataLabelFontSize?: ComputedRef<number | undefined>;
24
+ chartId: string;
25
+ width: ComputedRef<number>;
26
+ height: ComputedRef<number>;
27
+ sharedContext?: ComputedRef<{
28
+ categories: string[];
29
+ domain: [number, number];
30
+ } | null>;
31
+ requestRedraw?: () => void;
32
+ dir: Ref<'ltr' | 'rtl'>;
33
+ xAxes?: ComputedRef<Map<string, AxisConfig>>;
34
+ yAxes?: ComputedRef<Map<string, AxisConfig>>;
35
+ /** Reactive theme — read via `.value` inside the composable. */
36
+ theme: ComputedRef<Required<ChartTheme>>;
37
+ }
38
+ export interface UsePolarRendererResult {
39
+ groupRef: Ref<SVGGElement | null>;
40
+ hitTest: (x: number, y: number) => RadialHitTestResult | null;
41
+ getPointPosition: (datasetId: string, index: number) => {
42
+ x: number;
43
+ y: number;
44
+ width: number;
45
+ height: number;
46
+ shape: 'circle';
47
+ } | null;
48
+ findAllNearest: (x: number, y: number) => {
49
+ primary: RadialHitTestResult;
50
+ allSeries: CrosshairSeriesHit[];
51
+ } | null;
52
+ active: ComputedRef<boolean>;
53
+ center: {
54
+ x: number;
55
+ y: number;
56
+ } | null;
57
+ layout: Ref<PolarRenderData | null>;
58
+ renderCanvasContent: (ctx: CanvasRenderingContext2D, canvas: HTMLCanvasElement) => void;
59
+ /** Forwards animated property values to the controller for the current frame. */
60
+ applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void;
61
+ /** Triggers a full re-render so SVG attributes restore to base values when a property animation completes. */
62
+ renderFrameCycle: () => void;
63
+ }
@@ -0,0 +1,56 @@
1
+ import type { AnimatedPropertyStoreLike, AxisConfig, AnyFeatureProps, BoxArea, ChartTheme, CrosshairSeriesHit, DatasetRegistration, FeatureType, RadarDatasetEntry, RadarProps, RadarRenderData, RadialHitTestResult } from '@primeui/chart-types';
2
+ import type { ComputedRef, Ref, ShallowRef, VNode } from 'vue';
3
+ export type ChartRadarProps<T = unknown> = RadarProps<T, VNode | null>;
4
+ export interface UseRadarRendererOptions {
5
+ chartArea: ComputedRef<BoxArea | null>;
6
+ renderer: 'svg' | 'canvas';
7
+ canvasEl: Ref<HTMLCanvasElement | null> | ShallowRef<HTMLCanvasElement | null>;
8
+ datasets: ComputedRef<Map<string, DatasetRegistration>>;
9
+ features: ComputedRef<Map<FeatureType, {
10
+ type: FeatureType;
11
+ props: AnyFeatureProps;
12
+ }>>;
13
+ hover: ComputedRef<{
14
+ datasetId: string | null;
15
+ index: number | null;
16
+ axisIndex?: number | null;
17
+ }>;
18
+ datasetVisibility: ComputedRef<Map<string, boolean>>;
19
+ globalFont?: {
20
+ family?: string;
21
+ size?: number;
22
+ };
23
+ adaptiveDataLabelFontSize?: ComputedRef<number | undefined>;
24
+ chartId: string;
25
+ width: ComputedRef<number>;
26
+ height: ComputedRef<number>;
27
+ sharedContext?: ComputedRef<{
28
+ categories: string[];
29
+ domain: [number, number];
30
+ } | null>;
31
+ requestRedraw?: () => void;
32
+ dir: Ref<'ltr' | 'rtl'>;
33
+ xAxes?: ComputedRef<Map<string, AxisConfig>>;
34
+ yAxes?: ComputedRef<Map<string, AxisConfig>>;
35
+ /** Reactive theme — read via `.value` inside the composable. */
36
+ theme: ComputedRef<Required<ChartTheme>>;
37
+ }
38
+ export interface UseRadarRendererResult {
39
+ groupRef: Ref<SVGGElement | null>;
40
+ hitTest: (x: number, y: number) => RadialHitTestResult | null;
41
+ findAllNearest: (x: number, y: number) => {
42
+ primary: RadialHitTestResult;
43
+ allSeries: CrosshairSeriesHit[];
44
+ } | null;
45
+ active: ComputedRef<boolean>;
46
+ markerData: Ref<{
47
+ layout: RadarRenderData;
48
+ entries: RadarDatasetEntry[];
49
+ } | null>;
50
+ layout: Ref<RadarRenderData | null>;
51
+ renderCanvasContent: (ctx: CanvasRenderingContext2D, canvas: HTMLCanvasElement) => void;
52
+ /** Forwards animated property values to the controller for the current frame. */
53
+ applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void;
54
+ /** Triggers a full re-render so SVG attributes restore to base values when a property animation completes. */
55
+ renderFrameCycle: () => void;
56
+ }
@@ -0,0 +1,16 @@
1
+ import type { MaybeRef, Ref, ShallowRef } from 'vue';
2
+ export interface UseResponsiveDimensionsOptions {
3
+ width: MaybeRef<number | undefined>;
4
+ height: MaybeRef<number | undefined>;
5
+ responsive: MaybeRef<boolean>;
6
+ debounceWithRAF?: boolean;
7
+ debounceDelay?: MaybeRef<number | undefined>;
8
+ aspectRatio?: MaybeRef<number | undefined>;
9
+ maxDimensions?: MaybeRef<boolean>;
10
+ onResize?: (width: number, height: number) => void;
11
+ }
12
+ export interface UseResponsiveDimensionsResult {
13
+ containerRef: ShallowRef<HTMLDivElement | null>;
14
+ width: Ref<number>;
15
+ height: Ref<number>;
16
+ }
@@ -0,0 +1,50 @@
1
+ import type { AnimatedPropertyStoreLike, BandScale, CanvasCompositorLike, AnyFeatureProps, BoxArea, ChartTheme, DatasetRegistration, DecimationAlgorithm, FeatureType, FrameDataLabelConfig, HoverConfig, LinearScale, MarkerOverlayEntry, ScatterHitTestResult, ScatterProps, ScatterRenderData, ZoomState } from '@primeui/chart-types';
2
+ import type { ComputedRef, Ref, ShallowRef, VNode } from 'vue';
3
+ export type ChartScatterProps<T = unknown> = ScatterProps<T, VNode | null>;
4
+ export interface UseScatterRendererOptions {
5
+ chartArea: ComputedRef<BoxArea>;
6
+ renderer: 'svg' | 'canvas';
7
+ canvasEl: Ref<HTMLCanvasElement | null> | ShallowRef<HTMLCanvasElement | null>;
8
+ datasets: ComputedRef<Map<string, DatasetRegistration>>;
9
+ datasetVisibility: ComputedRef<Map<string, boolean>>;
10
+ hover: ComputedRef<{
11
+ datasetId: string | null;
12
+ index: number | null;
13
+ }>;
14
+ hoverConfig: ComputedRef<HoverConfig | undefined>;
15
+ chartId: string;
16
+ width: ComputedRef<number>;
17
+ height: ComputedRef<number>;
18
+ scatterXScales: ComputedRef<Map<string, LinearScale> | undefined>;
19
+ valueScales: ComputedRef<Map<string, LinearScale> | undefined>;
20
+ firstCategoryAxisId: ComputedRef<string>;
21
+ firstValueAxisId: ComputedRef<string>;
22
+ scatterStackBasesMap: ComputedRef<Map<string, number[]> | undefined>;
23
+ compositor?: CanvasCompositorLike;
24
+ decimationConfig?: ComputedRef<{
25
+ algorithm?: DecimationAlgorithm;
26
+ samples?: number;
27
+ threshold?: number;
28
+ } | undefined>;
29
+ zoomState?: ComputedRef<ZoomState | null>;
30
+ orientation?: ComputedRef<'vertical' | 'horizontal'>;
31
+ labelConfig?: ComputedRef<FrameDataLabelConfig | null>;
32
+ features: ComputedRef<Map<FeatureType, {
33
+ type: FeatureType;
34
+ props: AnyFeatureProps;
35
+ }>>;
36
+ dir: Ref<'ltr' | 'rtl'>;
37
+ /** Reactive theme — read via `.value` inside the composable. */
38
+ theme: ComputedRef<Required<ChartTheme>>;
39
+ }
40
+ export interface UseScatterRendererResult {
41
+ groupRef: Ref<SVGGElement | null>;
42
+ hitTest: (x: number, y: number) => ScatterHitTestResult | null;
43
+ hasScatterData: ComputedRef<boolean>;
44
+ boostActive: ComputedRef<boolean>;
45
+ scatterLayouts: Map<string, ScatterRenderData>;
46
+ markerOverlays: Ref<MarkerOverlayEntry[]>;
47
+ applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void;
48
+ renderFrameCycle: () => void;
49
+ syncWithAnimatedScale: (categoryScale: BandScale, valueScales?: Map<string, LinearScale>, valueXScales?: Map<string, LinearScale>) => void;
50
+ }
@@ -0,0 +1,44 @@
1
+ import type { ChartAnimationProps, ChartContainerBaseProps, ChartPluginContext, ChartPluginExpose, ChartTheme } from '@primeui/chart-types';
2
+ import type { CSSProperties } from 'vue';
3
+ export type RendererHint = 'cartesian' | 'heatmap' | 'radial' | 'rect';
4
+ /**
5
+ * A chart plugin definition (the result of `defineChartPlugin`). Structurally a
6
+ * `@primeui/core` Plugin whose install receives a {@link ChartPluginContext}.
7
+ * Declared locally (not imported from `@primeui/core`) to keep vue-chart's
8
+ * public type surface free of an undeclared cross-package dependency.
9
+ */
10
+ export interface ChartPlugin<TOptions = unknown> {
11
+ /** Plugin name; keys the `$plugins[name]` binding. */
12
+ name?: string;
13
+ /** Install fn — receives the chart-filled context, returns the plugin's public API. */
14
+ install: (context: ChartPluginContext<TOptions>) => ChartPluginExpose | void | Promise<ChartPluginExpose | void>;
15
+ }
16
+ /**
17
+ * A single entry in the `plugins` prop: either a bare plugin or a
18
+ * `[plugin, options]` tuple — matching the `@primeui/core` install contract.
19
+ */
20
+ export type ChartPluginEntry = ChartPlugin | [ChartPlugin, unknown];
21
+ export interface ChartSvgProps extends Omit<ChartContainerBaseProps, 'width' | 'height'>, ChartAnimationProps {
22
+ /** Chart width in pixels (max width when responsive). */
23
+ width?: number;
24
+ /** Chart height in pixels (max height when responsive). */
25
+ height?: number;
26
+ /** Custom CSS class */
27
+ class?: string;
28
+ /** Custom inline styles */
29
+ style?: CSSProperties;
30
+ /**
31
+ * Theme overrides — series palette, chrome (axes, grid, labels), and effect coefficients.
32
+ * SVG: each set field expands to a `--p-chart-*` CSS variable on the chart container.
33
+ * Unset fields fall through to `@primeui/chart-style` token defaults.
34
+ */
35
+ theme?: ChartTheme;
36
+ /**
37
+ * Chart plugins (results of `defineChartPlugin`), each optionally paired with
38
+ * options as a `[plugin, options]` tuple. Plugins read chart state, subscribe
39
+ * to render frames/hover, and can paint an overlay layered above the chart.
40
+ * Their returned API is surfaced on `$plugins[name]` and the default slot's
41
+ * `plugins` binding.
42
+ */
43
+ plugins?: ChartPluginEntry[];
44
+ }
@@ -0,0 +1,6 @@
1
+ import type { TooltipProps as CoreTooltipProps, TooltipRenderContext } from '@primeui/chart-types';
2
+ import type { VNode } from 'vue';
3
+ export interface ChartTooltipProps extends CoreTooltipProps {
4
+ /** Custom render function for tooltip content */
5
+ render?: (context: TooltipRenderContext) => VNode | VNode[] | string | null;
6
+ }
@@ -0,0 +1,50 @@
1
+ import type { AnimatedPropertyStoreLike, AnyFeatureProps, BoxArea, ChartTheme, ColorScaleInfo, DatasetRegistration, FeatureType, RadialHitTestResult, TreemapCellContext, TreemapGroupProps, TreemapProps } from '@primeui/chart-types';
2
+ import type { ComputedRef, Ref, ShallowRef, VNode } from 'vue';
3
+ import type { DrilldownStateResult } from './chart.types';
4
+ export type ChartTreemapProps<T = unknown> = TreemapProps<T, VNode | null>;
5
+ export type { TreemapCellContext, TreemapGroupProps };
6
+ export interface UseTreemapRendererOptions {
7
+ chartArea: ComputedRef<BoxArea>;
8
+ renderer: 'svg' | 'canvas';
9
+ canvasEl: Ref<HTMLCanvasElement | null> | ShallowRef<HTMLCanvasElement | null>;
10
+ datasets: ComputedRef<Map<string, DatasetRegistration>>;
11
+ features: ComputedRef<Map<FeatureType, {
12
+ type: FeatureType;
13
+ props: AnyFeatureProps;
14
+ }>>;
15
+ hover: ComputedRef<{
16
+ datasetId: string | null;
17
+ index: number | null;
18
+ }>;
19
+ datasetVisibility: ComputedRef<Map<string, boolean>>;
20
+ width: ComputedRef<number>;
21
+ height: ComputedRef<number>;
22
+ chartId: string;
23
+ drilldownState: DrilldownStateResult;
24
+ globalFont?: {
25
+ family?: string;
26
+ size?: number;
27
+ };
28
+ /** Reactive theme — read via `.value` inside the composable. Treemap doesn't currently use theme.series, but the option is here for consistency. */
29
+ theme: ComputedRef<Required<ChartTheme>>;
30
+ }
31
+ export interface UseTreemapRendererResult {
32
+ wrapperRef: Ref<SVGGElement | null>;
33
+ groupRef: Ref<SVGGElement | null>;
34
+ overlayRef: Ref<SVGGElement | null>;
35
+ svgContent: ComputedRef<VNode[]>;
36
+ hitTest: (x: number, y: number) => RadialHitTestResult | null;
37
+ getPointPosition: (datasetId: string, index: number) => {
38
+ x: number;
39
+ y: number;
40
+ width: number;
41
+ height: number;
42
+ shape: 'rect';
43
+ } | null;
44
+ handleDrilldownClick: (hit: RadialHitTestResult) => boolean;
45
+ prepareDrillOut: () => void;
46
+ updateHoverOverlay: (hit: RadialHitTestResult | null) => void;
47
+ getColorScaleInfo: () => ColorScaleInfo | null;
48
+ applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void;
49
+ renderFrameCycle: () => void;
50
+ }
@@ -0,0 +1,45 @@
1
+ import type { BoxArea, LinearScale, ZoomProps, ZoomState } from '@primeui/chart-types';
2
+ import type { Ref, ShallowRef } from 'vue';
3
+ export interface UseZoomPanOptions {
4
+ /** Zoom config from <ChartZoom> (null if no zoom component) */
5
+ zoomConfig: Ref<ZoomProps | null>;
6
+ /** Ref to the chart container div */
7
+ containerRef: Ref<HTMLDivElement | null>;
8
+ /** Get the current plot area (cartesian area) */
9
+ getPlotArea: () => BoxArea | null;
10
+ /** Get current scales for inversion (pixel → data) */
11
+ getScales: () => {
12
+ x?: LinearScale;
13
+ y?: LinearScale;
14
+ } | null;
15
+ /** Get the original (pre-zoom) domains for limit resolution */
16
+ getOriginalDomains: () => {
17
+ x?: [number, number];
18
+ y?: [number, number];
19
+ minRangeX?: number;
20
+ minRangeY?: number;
21
+ };
22
+ /** Whether the chart is cartesian */
23
+ isCartesian: Ref<boolean>;
24
+ }
25
+ export interface UseZoomPanResult {
26
+ /** Current zoom state (reactive) */
27
+ zoomState: ShallowRef<ZoomState>;
28
+ /** Reset to original view */
29
+ resetZoom: () => void;
30
+ /** Programmatic zoom update — immediately settles state + fires onZoomChange */
31
+ updateZoom: (state: ZoomState) => void;
32
+ /** Read current zoom state (always up-to-date, never stale) */
33
+ getZoomState: () => ZoomState;
34
+ /** Whether the chart is zoomed or panned (reactive) */
35
+ isZoomed: Ref<boolean>;
36
+ /** Whether a drag/pan gesture is in progress (reactive) */
37
+ isDragging: Ref<boolean>;
38
+ /** Selection rect during drag-to-zoom (reactive, null when not dragging) */
39
+ selectionRect: Ref<{
40
+ x: number;
41
+ y: number;
42
+ width: number;
43
+ height: number;
44
+ } | null>;
45
+ }
@@ -0,0 +1,3 @@
1
+ export { normalizeDataLabelConfig } from '@primeui/chart-core';
2
+ export type { DataLabelConfig } from '@primeui/chart-core';
3
+ export { LEGEND_ITEM_BASE_STYLE, LEGEND_SWATCH_STYLE, TOOLTIP_BASE_STYLE, TOOLTIP_DEFAULT_STYLE, TOOLTIP_COLOR_INDICATOR_STYLE } from './styles';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Re-export shared style constants from chart-core.
3
+ * Cast to CSSProperties for Vue type compatibility.
4
+ */
5
+ import type { CSSProperties } from 'vue';
6
+ export declare const LEGEND_ITEM_BASE_STYLE: CSSProperties;
7
+ export declare const LEGEND_SWATCH_STYLE: CSSProperties;
8
+ export declare const TOOLTIP_BASE_STYLE: CSSProperties;
9
+ export declare const TOOLTIP_DEFAULT_STYLE: CSSProperties;
10
+ export declare const TOOLTIP_COLOR_INDICATOR_STYLE: CSSProperties;
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@primeui/vue-chart",
3
+ "version": "0.0.1-alpha.1",
4
+ "author": "PrimeTek Informatics",
5
+ "description": "Vue Chart component for PrimeUI.",
6
+ "keywords": [
7
+ "chart",
8
+ "primeui"
9
+ ],
10
+ "license": "SEE LICENSE IN LICENSE.md",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/primefaces/primeui.git",
14
+ "directory": "packages/components/chart/vue-chart"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/primefaces/primeui/issues"
18
+ },
19
+ "main": "./dist/index.mjs",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.mts",
23
+ "import": "./dist/index.mjs",
24
+ "default": "./dist/index.mjs"
25
+ },
26
+ "./namespace": {
27
+ "types": "./dist/namespace.d.mts",
28
+ "import": "./dist/namespace.mjs",
29
+ "default": "./dist/namespace.mjs"
30
+ }
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "sideEffects": false,
36
+ "files": [
37
+ "dist",
38
+ "README.md",
39
+ "LICENSE"
40
+ ],
41
+ "dependencies": {
42
+ "@primeui/license-manager": "^1.0.0-alpha.1",
43
+ "@primeui/chart-core": "0.0.1-alpha.1",
44
+ "@primeui/chart-types": "0.0.1-alpha.1"
45
+ },
46
+ "peerDependencies": {
47
+ "vue": "^3.5"
48
+ },
49
+ "devDependencies": {
50
+ "unplugin-vue": "^7.2.0"
51
+ },
52
+ "scripts": {
53
+ "build": "cross-env NODE_ENV=production INPUT_DIR=src/ OUTPUT_DIR=dist/ pnpm run build:package",
54
+ "build:dev": "cross-env NODE_ENV=development INPUT_DIR=src/ OUTPUT_DIR=dist/ pnpm run build:dev:package",
55
+ "build:package": "cross-env NODE_ENV=test pnpm run test && tsup && vue-tsc -p tsconfig.build.json",
56
+ "build:dev:package": "tsup --watch",
57
+ "test": "vitest run --root ../../../.. vue-chart --passWithNoTests",
58
+ "type:check": "vue-tsc --noEmit",
59
+ "dev:link": "pnpm link --global && npm link"
60
+ },
61
+ "module": "./dist/index.mjs",
62
+ "types": "./dist/index.d.mts"
63
+ }