@fluentui/react-charts 9.3.11 → 9.3.13

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 (47) hide show
  1. package/CHANGELOG.md +30 -2
  2. package/dist/index.d.ts +852 -0
  3. package/lib/VegaDeclarativeChart.js +1 -0
  4. package/lib/VegaDeclarativeChart.js.map +1 -0
  5. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js +2 -0
  6. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +1 -1
  7. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js +1 -0
  8. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +1 -1
  9. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js +386 -0
  10. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +1 -0
  11. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js +20 -0
  12. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +1 -0
  13. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +415 -0
  14. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +1 -0
  15. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +3284 -0
  16. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -0
  17. package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js +28 -0
  18. package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js.map +1 -0
  19. package/lib/components/VegaDeclarativeChart/index.js +1 -0
  20. package/lib/components/VegaDeclarativeChart/index.js.map +1 -0
  21. package/lib/index.js +1 -0
  22. package/lib/index.js.map +1 -1
  23. package/lib/utilities/getWindow.js +1 -0
  24. package/lib/utilities/getWindow.js.map +1 -1
  25. package/lib-commonjs/VegaDeclarativeChart.js +6 -0
  26. package/lib-commonjs/VegaDeclarativeChart.js.map +1 -0
  27. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js +1 -0
  28. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +1 -1
  29. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js +1 -0
  30. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +1 -1
  31. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.js +255 -0
  32. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +1 -0
  33. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js +35 -0
  34. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +1 -0
  35. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +412 -0
  36. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +1 -0
  37. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +3219 -0
  38. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -0
  39. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.js +31 -0
  40. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.js.map +1 -0
  41. package/lib-commonjs/components/VegaDeclarativeChart/index.js +6 -0
  42. package/lib-commonjs/components/VegaDeclarativeChart/index.js.map +1 -0
  43. package/lib-commonjs/index.js +1 -0
  44. package/lib-commonjs/index.js.map +1 -1
  45. package/lib-commonjs/utilities/getWindow.js +1 -0
  46. package/lib-commonjs/utilities/getWindow.js.map +1 -1
  47. package/package.json +9 -9
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Vega-Lite TypeScript interfaces for declarative chart specifications.
3
+ * This is a minimal subset focused on line/point charts with basic encodings.
4
+ *
5
+ * RECOMMENDED: For full type coverage, install the official vega-lite package:
6
+ * ```
7
+ * npm install vega-lite
8
+ * ```
9
+ * Then import `TopLevelSpec` from 'vega-lite' for complete schema support.
10
+ *
11
+ * The types provided here are a lightweight alternative that covers common use cases
12
+ * without requiring the full vega-lite dependency (~5.8MB unpacked).
13
+ *
14
+ * Full Vega-Lite spec: https://vega.github.io/vega-lite/docs/
15
+ *
16
+ * TODO: Add support for:
17
+ * - Transform operations (filter, aggregate, calculate, etc.)
18
+ * - Remote data sources (url, named datasets)
19
+ * - Facet and concatenation for multi-view layouts
20
+ * - Selection interactions
21
+ * - Additional mark types (bar, area, etc.)
22
+ * - Conditional encodings
23
+ * - Tooltip customization
24
+ */ /**
25
+ * Vega-Lite data type for field encodings
26
+ */ /**
27
+ * Top-level Vega-Lite specification
28
+ */ "use strict";
29
+ Object.defineProperty(exports, "__esModule", {
30
+ value: true
31
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/VegaDeclarativeChart/VegaLiteTypes.ts"],"sourcesContent":["/**\n * Vega-Lite TypeScript interfaces for declarative chart specifications.\n * This is a minimal subset focused on line/point charts with basic encodings.\n *\n * RECOMMENDED: For full type coverage, install the official vega-lite package:\n * ```\n * npm install vega-lite\n * ```\n * Then import `TopLevelSpec` from 'vega-lite' for complete schema support.\n *\n * The types provided here are a lightweight alternative that covers common use cases\n * without requiring the full vega-lite dependency (~5.8MB unpacked).\n *\n * Full Vega-Lite spec: https://vega.github.io/vega-lite/docs/\n *\n * TODO: Add support for:\n * - Transform operations (filter, aggregate, calculate, etc.)\n * - Remote data sources (url, named datasets)\n * - Facet and concatenation for multi-view layouts\n * - Selection interactions\n * - Additional mark types (bar, area, etc.)\n * - Conditional encodings\n * - Tooltip customization\n */\n\n/**\n * Vega-Lite data type for field encodings\n */\nexport type VegaLiteType = 'quantitative' | 'temporal' | 'ordinal' | 'nominal' | 'geojson';\n\n/**\n * Vega-Lite mark types\n */\nexport type VegaLiteMark = 'line' | 'point' | 'circle' | 'square' | 'bar' | 'area' | 'rect' | 'rule' | 'text' | 'arc';\n\n/**\n * Vega-Lite scale type\n */\nexport type VegaLiteScaleType =\n | 'linear'\n | 'log'\n | 'pow'\n | 'sqrt'\n | 'symlog'\n | 'time'\n | 'utc'\n | 'ordinal'\n | 'band'\n | 'point';\n\n/**\n * Vega-Lite interpolation method\n */\nexport type VegaLiteInterpolate =\n | 'linear'\n | 'linear-closed'\n | 'step'\n | 'step-before'\n | 'step-after'\n | 'basis'\n | 'cardinal'\n | 'monotone'\n | 'natural';\n\n/**\n * Vega-Lite axis configuration\n */\nexport interface VegaLiteAxis {\n /**\n * Axis title\n */\n title?: string | null;\n\n /**\n * Format string for axis tick labels\n * Uses d3-format for quantitative and d3-time-format for temporal\n */\n format?: string;\n\n /**\n * Tick values to display\n */\n values?: number[] | string[];\n\n /**\n * Number of ticks\n */\n tickCount?: number;\n\n /**\n * Grid visibility\n */\n grid?: boolean;\n}\n\n/**\n * Vega-Lite scale configuration\n */\nexport interface VegaLiteScale {\n /**\n * Scale type\n */\n type?: VegaLiteScaleType;\n\n /**\n * Domain values [min, max]\n */\n domain?: (number | string)[];\n\n /**\n * Range values [min, max]\n */\n range?: [number | string, number | string] | string[];\n\n /**\n * Color scheme name (e.g., 'category10', 'tableau10')\n */\n scheme?: string;\n\n /**\n * Whether scale domain should include zero\n */\n zero?: boolean;\n\n /**\n * Whether to reverse the scale\n */\n reverse?: boolean;\n}\n\n/**\n * Vega-Lite legend configuration\n */\nexport interface VegaLiteLegend {\n /**\n * Legend title\n */\n title?: string | null;\n\n /**\n * Hide the legend\n */\n disable?: boolean;\n}\n\n/**\n * Vega-Lite sort specification\n */\nexport type VegaLiteSort =\n | 'ascending'\n | 'descending'\n | null\n | {\n field?: string;\n op?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n order?: 'ascending' | 'descending';\n }\n | string[];\n\n/**\n * Vega-Lite binning configuration\n */\nexport interface VegaLiteBin {\n /**\n * Maximum number of bins\n */\n maxbins?: number;\n\n /**\n * Exact step size between bins\n */\n step?: number;\n\n /**\n * Extent [min, max] for binning\n */\n extent?: [number, number];\n\n /**\n * Base for nice bin values (e.g., 10 for powers of 10)\n */\n base?: number;\n\n /**\n * Whether to include the boundary in bins\n */\n anchor?: number;\n}\n\n/**\n * Vega-Lite position encoding channel (x or y)\n */\nexport interface VegaLitePositionEncoding {\n /**\n * Field name in data\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Axis configuration\n */\n axis?: VegaLiteAxis | null;\n\n /**\n * Constant value for encoding (for reference lines and annotations)\n */\n value?: number | string | Date;\n\n /**\n * Datum value for encoding (alternative to value)\n */\n datum?: number | string | Date;\n\n /**\n * Scale configuration\n */\n scale?: VegaLiteScale | null;\n\n /**\n * Sort order for categorical axes\n * Supports: 'ascending', 'descending', null, array of values, or object with field/op/order\n */\n sort?: VegaLiteSort;\n\n /**\n * Binning configuration for histograms\n * Set to true for default binning or provide custom bin parameters\n */\n bin?: boolean | VegaLiteBin;\n\n /**\n * Stack configuration for area/bar charts\n * - null: disable stacking\n * - 'zero': stack from zero baseline (default for area charts)\n * - 'center': center stack\n * - 'normalize': normalize to 100%\n */\n stack?: null | 'zero' | 'center' | 'normalize';\n\n /**\n * Aggregate function\n */\n aggregate?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n\n /**\n * Axis title (shorthand alternative to axis.title)\n */\n title?: string;\n\n /**\n * Time unit for temporal fields (e.g., 'yearmonth', 'month', 'day')\n */\n timeUnit?: string;\n}\n\n/**\n * Vega-Lite color encoding channel\n */\nexport interface VegaLiteColorEncoding {\n /**\n * Field name for color differentiation\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Legend configuration\n */\n legend?: VegaLiteLegend | null;\n\n /**\n * Scale configuration\n */\n scale?: VegaLiteScale | null;\n\n /**\n * Fixed color value\n */\n value?: string;\n}\n\n/**\n * Vega-Lite size encoding channel\n */\nexport interface VegaLiteSizeEncoding {\n /**\n * Field name for size encoding\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Fixed size value\n */\n value?: number;\n}\n\n/**\n * Vega-Lite shape encoding channel\n */\nexport interface VegaLiteShapeEncoding {\n /**\n * Field name for shape encoding\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Fixed shape value\n */\n value?: string;\n}\n\n/**\n * Vega-Lite theta encoding channel for pie/donut charts and polar coordinates\n */\nexport interface VegaLiteThetaEncoding {\n /**\n * Field name\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Aggregate function\n */\n aggregate?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n\n /**\n * Axis configuration for polar charts\n */\n axis?: VegaLiteAxis | null;\n\n /**\n * Scale configuration for polar charts\n */\n scale?: VegaLiteScale | null;\n}\n\n/**\n * Vega-Lite radius encoding channel for polar charts\n */\nexport interface VegaLiteRadiusEncoding {\n /**\n * Field name\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Aggregate function\n */\n aggregate?: 'count' | 'sum' | 'mean' | 'average' | 'median' | 'min' | 'max';\n\n /**\n * Axis configuration\n */\n axis?: VegaLiteAxis | null;\n\n /**\n * Scale configuration\n */\n scale?: VegaLiteScale | null;\n}\n\n/**\n * Vega-Lite text encoding channel\n */\nexport interface VegaLiteTextEncoding {\n /**\n * Field name\n */\n field?: string;\n\n /**\n * Data type\n */\n type?: VegaLiteType;\n\n /**\n * Fixed text value\n */\n value?: string;\n\n /**\n * Datum value for text encoding\n */\n datum?: string | number;\n}\n\n/**\n * Vega-Lite encoding channels\n */\nexport interface VegaLiteEncoding {\n /**\n * X-axis encoding\n */\n x?: VegaLitePositionEncoding;\n\n /**\n * Y-axis encoding\n */\n y?: VegaLitePositionEncoding;\n\n /**\n * Color encoding for series differentiation\n */\n color?: VegaLiteColorEncoding;\n\n /**\n * Size encoding for point marks\n */\n size?: VegaLiteSizeEncoding;\n\n /**\n * Shape encoding for point marks\n */\n shape?: VegaLiteShapeEncoding;\n\n /**\n * Theta encoding for pie/donut charts and polar coordinates\n */\n theta?: VegaLiteThetaEncoding;\n\n /**\n * Radius encoding for polar charts\n */\n radius?: VegaLiteRadiusEncoding;\n\n /**\n * X2 encoding for interval marks (rect, rule, bar with ranges)\n */\n x2?: VegaLitePositionEncoding;\n\n /**\n * Y2 encoding for interval marks (rect, rule, bar with ranges)\n */\n y2?: VegaLitePositionEncoding;\n\n /**\n * Text encoding for text marks\n */\n text?: VegaLiteTextEncoding;\n\n /**\n * xOffset encoding for grouped bar charts\n */\n xOffset?: VegaLitePositionEncoding;\n\n /**\n * Tooltip encoding (single field or array of fields)\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n tooltip?: any;\n}\n\n/**\n * Vega-Lite mark definition (can be string or object)\n */\nexport type VegaLiteMarkDef =\n | VegaLiteMark\n | {\n type: VegaLiteMark;\n /**\n * Mark color\n */\n color?: string;\n /**\n * Line interpolation method\n */\n interpolate?: VegaLiteInterpolate;\n /**\n * Point marker visibility\n */\n point?: boolean | { filled?: boolean; size?: number };\n /**\n * Stroke width\n */\n strokeWidth?: number;\n /**\n * Stroke dash pattern (e.g., [5, 5] for dashed, [2, 2] for dotted)\n */\n strokeDash?: number[];\n /**\n * Fill opacity\n */\n fillOpacity?: number;\n /**\n * Stroke opacity\n */\n strokeOpacity?: number;\n /**\n * Overall opacity\n */\n opacity?: number;\n /**\n * Inner radius for arc/pie/donut marks (0-1 or pixel value)\n */\n innerRadius?: number;\n /**\n * Outer radius for arc/pie marks (pixel value)\n */\n outerRadius?: number;\n };\n\n/**\n * Vega-Lite inline data\n */\nexport interface VegaLiteData {\n /**\n * Inline data values (array of objects)\n */\n values?: Array<Record<string, unknown>>;\n\n /**\n * URL to load data from\n * TODO: Implement remote data loading\n */\n url?: string;\n\n /**\n * Named dataset reference\n * TODO: Implement named dataset resolution\n */\n name?: string;\n\n /**\n * Data format specification\n * TODO: Implement format parsing (csv, json, etc.)\n */\n format?: {\n type?: 'json' | 'csv' | 'tsv';\n parse?: Record<string, string>;\n };\n}\n\n/**\n * Base Vega-Lite spec unit (single view)\n */\nexport interface VegaLiteUnitSpec {\n /**\n * Mark type\n */\n mark: VegaLiteMarkDef;\n\n /**\n * Encoding channels\n */\n encoding?: VegaLiteEncoding;\n\n /**\n * Data specification\n */\n data?: VegaLiteData;\n\n /**\n * Data transformations\n * TODO: Implement transform pipeline\n */\n transform?: Array<Record<string, unknown>>;\n}\n\n/**\n * Vega-Lite layer spec (multiple overlaid views)\n */\nexport interface VegaLiteLayerSpec {\n /**\n * Layer array\n */\n layer: VegaLiteUnitSpec[];\n\n /**\n * Shared data across layers\n */\n data?: VegaLiteData;\n\n /**\n * Shared encoding across layers\n */\n encoding?: VegaLiteEncoding;\n\n /**\n * Data transformations\n * TODO: Implement transform pipeline\n */\n transform?: Array<Record<string, unknown>>;\n}\n\n/**\n * Vega-Lite title configuration with styling options\n */\nexport interface VegaLiteTitleParams {\n /**\n * Title text\n */\n text: string;\n\n /**\n * Subtitle text\n */\n subtitle?: string;\n\n /**\n * Font for the title\n */\n font?: string;\n\n /**\n * Font size for the title\n */\n fontSize?: number;\n\n /**\n * Font style for the title (e.g., 'normal', 'italic')\n */\n fontStyle?: string;\n\n /**\n * Font weight for the title (e.g., 'normal', 'bold', 100-900)\n */\n fontWeight?: string | number;\n\n /**\n * Color of the title text\n */\n color?: string;\n\n /**\n * Horizontal anchor position for the title\n * - 'start': left-aligned\n * - 'middle': centered\n * - 'end': right-aligned\n */\n anchor?: 'start' | 'middle' | 'end';\n\n /**\n * Vertical offset from the top of the chart\n */\n offset?: number;\n\n /**\n * Additional padding around the subtitle\n */\n subtitlePadding?: number;\n}\n\n/**\n * Top-level Vega-Lite specification\n */\nexport interface VegaLiteSpec {\n /**\n * Schema version\n */\n $schema?: string;\n\n /**\n * Chart title - can be a string or a detailed title configuration\n */\n title?: string | VegaLiteTitleParams;\n\n /**\n * Chart description\n */\n description?: string;\n\n /**\n * Chart width\n */\n width?: number | 'container';\n\n /**\n * Chart height\n */\n height?: number | 'container';\n\n /**\n * Data specification (for single/layer specs)\n */\n data?: VegaLiteData;\n\n /**\n * Mark type (for single view)\n */\n mark?: VegaLiteMarkDef;\n\n /**\n * Encoding channels (for single view)\n */\n encoding?: VegaLiteEncoding;\n\n /**\n * Horizontal concatenation for multi-plot layouts\n */\n hconcat?: VegaLiteSpec[];\n\n /**\n * Vertical concatenation for multi-plot layouts\n */\n vconcat?: VegaLiteSpec[];\n\n /**\n * Layer specification\n */\n layer?: VegaLiteUnitSpec[];\n\n /**\n * Data transformations\n * TODO: Implement transform pipeline\n */\n transform?: Array<Record<string, unknown>>;\n\n /**\n * Background color\n */\n background?: string;\n\n /**\n * Padding configuration\n */\n padding?: number | { top?: number; bottom?: number; left?: number; right?: number };\n\n /**\n * Auto-size configuration\n */\n autosize?: string | { type?: string; contains?: string };\n\n /**\n * Configuration overrides\n * TODO: Implement config resolution\n */\n config?: Record<string, unknown>;\n\n /**\n * Interactive selection definitions\n * TODO: Implement selection support\n */\n selection?: Record<string, unknown>;\n\n /**\n * Facet specification for small multiples\n * TODO: Implement facet support\n */\n facet?: Record<string, unknown>;\n\n /**\n * Repeat specification for small multiples\n * TODO: Implement repeat support\n */\n repeat?: Record<string, unknown>;\n\n /**\n * Scale resolution configuration\n * Controls whether scales are shared or independent across views\n */\n resolve?: {\n scale?: {\n x?: 'shared' | 'independent';\n y?: 'shared' | 'independent';\n color?: 'shared' | 'independent';\n opacity?: 'shared' | 'independent';\n size?: 'shared' | 'independent';\n shape?: 'shared' | 'independent';\n };\n axis?: {\n x?: 'shared' | 'independent';\n y?: 'shared' | 'independent';\n };\n legend?: {\n color?: 'shared' | 'independent';\n opacity?: 'shared' | 'independent';\n size?: 'shared' | 'independent';\n shape?: 'shared' | 'independent';\n };\n };\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;CAuBC,GAED;;CAEC,GAooBD;;CAEC,GACD,WA6HC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./VegaDeclarativeChart"), exports);
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/VegaDeclarativeChart/index.ts"],"sourcesContent":["export * from './VegaDeclarativeChart';\n"],"names":[],"mappings":";;;;;uBAAc,yBAAyB"}
@@ -28,3 +28,4 @@ _export_star._(require("./GanttChart"), exports);
28
28
  _export_star._(require("./ChartTable"), exports);
29
29
  _export_star._(require("./AnnotationOnlyChart"), exports);
30
30
  _export_star._(require("./PolarChart"), exports);
31
+ _export_star._(require("./VegaDeclarativeChart"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './HorizontalBarChart';\nexport * from './DonutChart';\nexport * from './Legends';\nexport * from './LineChart';\nexport * from './VerticalBarChart';\nexport * from './VerticalStackedBarChart';\nexport * from './GroupedVerticalBarChart';\nexport * from './CartesianChart';\nexport * from './types/index';\nexport * from './Sparkline';\nexport * from './ScatterChart';\nexport * from './GaugeChart';\nexport * from './utilities/colors';\nexport * from './Popover';\nexport * from './ResponsiveContainer';\nexport * from './DeclarativeChart';\nexport * from './AreaChart';\nexport * from './HorizontalBarChartWithAxis';\nexport * from './HeatMapChart';\nexport * from './SankeyChart';\nexport * from './FunnelChart';\nexport * from './GanttChart';\nexport * from './ChartTable';\nexport * from './AnnotationOnlyChart';\nexport * from './PolarChart';\n"],"names":[],"mappings":";;;;;uBAAc,uBAAuB;uBACvB,eAAe;uBACf,YAAY;uBACZ,cAAc;uBACd,qBAAqB;uBACrB,4BAA4B;uBAC5B,4BAA4B;uBAC5B,mBAAmB;uBACnB,gBAAgB;uBAChB,cAAc;uBACd,iBAAiB;uBACjB,eAAe;uBACf,qBAAqB;uBACrB,YAAY;uBACZ,wBAAwB;uBACxB,qBAAqB;uBACrB,cAAc;uBACd,+BAA+B;uBAC/B,iBAAiB;uBACjB,gBAAgB;uBAChB,gBAAgB;uBAChB,eAAe;uBACf,eAAe;uBACf,wBAAwB;uBACxB,eAAe"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './HorizontalBarChart';\nexport * from './DonutChart';\nexport * from './Legends';\nexport * from './LineChart';\nexport * from './VerticalBarChart';\nexport * from './VerticalStackedBarChart';\nexport * from './GroupedVerticalBarChart';\nexport * from './CartesianChart';\nexport * from './types/index';\nexport * from './Sparkline';\nexport * from './ScatterChart';\nexport * from './GaugeChart';\nexport * from './utilities/colors';\nexport * from './Popover';\nexport * from './ResponsiveContainer';\nexport * from './DeclarativeChart';\nexport * from './AreaChart';\nexport * from './HorizontalBarChartWithAxis';\nexport * from './HeatMapChart';\nexport * from './SankeyChart';\nexport * from './FunnelChart';\nexport * from './GanttChart';\nexport * from './ChartTable';\nexport * from './AnnotationOnlyChart';\nexport * from './PolarChart';\nexport * from './VegaDeclarativeChart';\n"],"names":[],"mappings":";;;;;uBAAc,uBAAuB;uBACvB,eAAe;uBACf,YAAY;uBACZ,cAAc;uBACd,qBAAqB;uBACrB,4BAA4B;uBAC5B,4BAA4B;uBAC5B,mBAAmB;uBACnB,gBAAgB;uBAChB,cAAc;uBACd,iBAAiB;uBACjB,eAAe;uBACf,qBAAqB;uBACrB,YAAY;uBACZ,wBAAwB;uBACxB,qBAAqB;uBACrB,cAAc;uBACd,+BAA+B;uBAC/B,iBAAiB;uBACjB,gBAAgB;uBAChB,gBAAgB;uBAChB,eAAe;uBACf,eAAe;uBACf,wBAAwB;uBACxB,eAAe;uBACf,yBAAyB"}
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  "use strict";
2
3
  Object.defineProperty(exports, "__esModule", {
3
4
  value: true
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utilities/getWindow.ts"],"sourcesContent":["import { canUseDOM } from '@fluentui/react-utilities';\n\nlet _window: Window | undefined = undefined;\n\n// Note: Accessing \"window\" in IE11 is somewhat expensive, and calling \"typeof window\"\n// hits a memory leak, whereas aliasing it and calling \"typeof _window\" does not.\n// Caching the window value at the file scope lets us minimize the impact.\ntry {\n _window = window;\n} catch (e) {\n /* no-op */\n}\n\n/**\n * Helper to get the window object. The helper will make sure to use a cached variable\n * of \"window\", to avoid overhead and memory leaks in IE11. Note that in popup scenarios the\n * window object won't match the \"global\" window object, and for these scenarios, you should\n * pass in an element hosted within the popup.\n *\n * @public\n */\nexport function getWindow(rootElement?: Element | null): Window | undefined {\n if (!canUseDOM() || typeof _window === 'undefined') {\n return undefined;\n } else {\n const el = rootElement as Element;\n\n return el && el.ownerDocument && el.ownerDocument.defaultView ? el.ownerDocument.defaultView : _window;\n }\n}\n"],"names":["canUseDOM","_window","undefined","window","e","getWindow","rootElement","el","ownerDocument","defaultView"],"mappings":";;;;+BAqBgBK;;;;;;gCArBU,4BAA4B;AAEtD,IAAIJ,UAA8BC;AAElC,sFAAsF;AACtF,iFAAiF;AACjF,0EAA0E;AAC1E,IAAI;IACFD,UAAUE;AACZ,EAAE,OAAOC,GAAG;AACV,SAAS,GACX;AAUO,mBAAmBE,WAA4B;IACpD,IAAI,KAACN,yBAAAA,OAAe,OAAOC,YAAY,aAAa;QAClD,OAAOC;IACT,OAAO;QACL,MAAMK,KAAKD;QAEX,OAAOC,MAAMA,GAAGC,aAAa,IAAID,GAAGC,aAAa,CAACC,WAAW,GAAGF,GAAGC,aAAa,CAACC,WAAW,GAAGR;IACjG;AACF"}
1
+ {"version":3,"sources":["../src/utilities/getWindow.ts"],"sourcesContent":["'use client';\n\nimport { canUseDOM } from '@fluentui/react-utilities';\n\nlet _window: Window | undefined = undefined;\n\n// Note: Accessing \"window\" in IE11 is somewhat expensive, and calling \"typeof window\"\n// hits a memory leak, whereas aliasing it and calling \"typeof _window\" does not.\n// Caching the window value at the file scope lets us minimize the impact.\ntry {\n _window = window;\n} catch (e) {\n /* no-op */\n}\n\n/**\n * Helper to get the window object. The helper will make sure to use a cached variable\n * of \"window\", to avoid overhead and memory leaks in IE11. Note that in popup scenarios the\n * window object won't match the \"global\" window object, and for these scenarios, you should\n * pass in an element hosted within the popup.\n *\n * @public\n */\nexport function getWindow(rootElement?: Element | null): Window | undefined {\n if (!canUseDOM() || typeof _window === 'undefined') {\n return undefined;\n } else {\n const el = rootElement as Element;\n\n return el && el.ownerDocument && el.ownerDocument.defaultView ? el.ownerDocument.defaultView : _window;\n }\n}\n"],"names":["canUseDOM","_window","undefined","window","e","getWindow","rootElement","el","ownerDocument","defaultView"],"mappings":"AAAA;;;;;;;;;;;gCAE0B,4BAA4B;AAEtD,IAAIC,UAA8BC;AAElC,sFAAsF;AACtF,iFAAiF;AACjF,0EAA0E;AAC1E,IAAI;IACFD,UAAUE;AACZ,EAAE,OAAOC,GAAG;AACV,SAAS,GACX;AAUO,SAASC,UAAUC,WAA4B;IACpD,IAAI,KAACN,yBAAAA,OAAe,OAAOC,YAAY,aAAa;QAClD,OAAOC;IACT,OAAO;QACL,MAAMK,KAAKD;QAEX,OAAOC,MAAMA,GAAGC,aAAa,IAAID,GAAGC,aAAa,CAACC,WAAW,GAAGF,GAAGC,aAAa,CAACC,WAAW,GAAGR;IACjG;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-charts",
3
- "version": "9.3.11",
3
+ "version": "9.3.13",
4
4
  "description": "React web chart controls for Microsoft fluentui v9 system.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -22,15 +22,15 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@fluentui/chart-utilities": "^1.1.38",
25
- "@fluentui/react-button": "^9.8.1",
26
- "@fluentui/react-jsx-runtime": "^9.4.0",
27
- "@fluentui/react-overflow": "^9.7.0",
28
- "@fluentui/react-popover": "^9.13.1",
29
- "@fluentui/react-shared-contexts": "^9.26.1",
30
- "@fluentui/react-tabster": "^9.26.12",
25
+ "@fluentui/react-button": "^9.8.2",
26
+ "@fluentui/react-jsx-runtime": "^9.4.1",
27
+ "@fluentui/react-overflow": "^9.7.1",
28
+ "@fluentui/react-popover": "^9.14.0",
29
+ "@fluentui/react-shared-contexts": "^9.26.2",
30
+ "@fluentui/react-tabster": "^9.26.13",
31
31
  "@fluentui/react-theme": "^9.2.1",
32
- "@fluentui/react-tooltip": "^9.9.1",
33
- "@fluentui/react-utilities": "^9.26.1",
32
+ "@fluentui/react-tooltip": "^9.9.3",
33
+ "@fluentui/react-utilities": "^9.26.2",
34
34
  "@griffel/react": "^1.5.32",
35
35
  "@swc/helpers": "^0.5.1",
36
36
  "@types/d3-array": "^3.0.0",