@fluentui/react-charting 5.23.21 → 5.23.23

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 (41) hide show
  1. package/CHANGELOG.json +49 -1
  2. package/CHANGELOG.md +23 -2
  3. package/dist/react-charting.d.ts +40 -5
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +2 -0
  7. package/lib/components/DeclarativeChart/DeclarativeChart.d.ts +1 -0
  8. package/lib/components/DeclarativeChart/DeclarativeChart.js +16 -10
  9. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  10. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +9 -9
  11. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +24 -21
  12. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  13. package/lib/components/Legends/Legends.base.d.ts +14 -8
  14. package/lib/components/Legends/Legends.base.js +53 -34
  15. package/lib/components/Legends/Legends.base.js.map +1 -1
  16. package/lib/components/Legends/Legends.types.d.ts +40 -5
  17. package/lib/components/Legends/Legends.types.js.map +1 -1
  18. package/lib-amd/components/DeclarativeChart/DeclarativeChart.d.ts +1 -0
  19. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +18 -12
  20. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  21. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +9 -9
  22. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +24 -21
  23. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  24. package/lib-amd/components/Legends/Legends.base.d.ts +14 -8
  25. package/lib-amd/components/Legends/Legends.base.js +53 -34
  26. package/lib-amd/components/Legends/Legends.base.js.map +1 -1
  27. package/lib-amd/components/Legends/Legends.types.d.ts +40 -5
  28. package/lib-amd/components/Legends/Legends.types.js.map +1 -1
  29. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.d.ts +1 -0
  30. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +18 -11
  31. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  32. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +9 -9
  33. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +24 -21
  34. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  35. package/lib-commonjs/components/Legends/Legends.base.d.ts +14 -8
  36. package/lib-commonjs/components/Legends/Legends.base.js +53 -34
  37. package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
  38. package/lib-commonjs/components/Legends/Legends.types.d.ts +40 -5
  39. package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
  40. package/package.json +3 -3
  41. package/src/components/Legends/Legends.types.ts +42 -5
package/CHANGELOG.json CHANGED
@@ -2,7 +2,55 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 06 Dec 2024 07:20:55 GMT",
5
+ "date": "Thu, 12 Dec 2024 07:21:27 GMT",
6
+ "tag": "@fluentui/react-charting_v5.23.23",
7
+ "version": "5.23.23",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "120183316+srmukher@users.noreply.github.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "221a380b189a7ae191cc5c1ee96d07d107800067",
14
+ "comment": "Dark mode theme colors for declarative charts"
15
+ },
16
+ {
17
+ "author": "74965306+Anush2303@users.noreply.github.com",
18
+ "package": "@fluentui/react-charting",
19
+ "commit": "608336dee79ebb116cc5ed3d0775fc7385a028c8",
20
+ "comment": "Add support for controlled selction of legends."
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-charting",
25
+ "comment": "Bump @fluentui/theme-samples to v8.7.189",
26
+ "commit": "53dd771e70338065810404663cd6219d1b54c1e2"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-charting",
31
+ "comment": "Bump @fluentui/react to v8.122.0",
32
+ "commit": "53dd771e70338065810404663cd6219d1b54c1e2"
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "date": "Mon, 09 Dec 2024 07:21:03 GMT",
39
+ "tag": "@fluentui/react-charting_v5.23.22",
40
+ "version": "5.23.22",
41
+ "comments": {
42
+ "patch": [
43
+ {
44
+ "author": "74965306+Anush2303@users.noreply.github.com",
45
+ "package": "@fluentui/react-charting",
46
+ "commit": "e186b82f297ec893820859c7ed08e2e890a0839e",
47
+ "comment": "enable negativeData prop in declarative charts"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "date": "Fri, 06 Dec 2024 07:21:16 GMT",
6
54
  "tag": "@fluentui/react-charting_v5.23.21",
7
55
  "version": "5.23.21",
8
56
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,33 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Fri, 06 Dec 2024 07:20:55 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 12 Dec 2024 07:21:27 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.23.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.23)
8
+
9
+ Thu, 12 Dec 2024 07:21:27 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.22..@fluentui/react-charting_v5.23.23)
11
+
12
+ ### Patches
13
+
14
+ - Dark mode theme colors for declarative charts ([PR #33439](https://github.com/microsoft/fluentui/pull/33439) by 120183316+srmukher@users.noreply.github.com)
15
+ - Add support for controlled selction of legends. ([PR #33436](https://github.com/microsoft/fluentui/pull/33436) by 74965306+Anush2303@users.noreply.github.com)
16
+ - Bump @fluentui/theme-samples to v8.7.189 ([PR #33243](https://github.com/microsoft/fluentui/pull/33243) by beachball)
17
+ - Bump @fluentui/react to v8.122.0 ([PR #33243](https://github.com/microsoft/fluentui/pull/33243) by beachball)
18
+
19
+ ## [5.23.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.22)
20
+
21
+ Mon, 09 Dec 2024 07:21:03 GMT
22
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.21..@fluentui/react-charting_v5.23.22)
23
+
24
+ ### Patches
25
+
26
+ - enable negativeData prop in declarative charts ([PR #33414](https://github.com/microsoft/fluentui/pull/33414) by 74965306+Anush2303@users.noreply.github.com)
27
+
7
28
  ## [5.23.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.21)
8
29
 
9
- Fri, 06 Dec 2024 07:20:55 GMT
30
+ Fri, 06 Dec 2024 07:21:16 GMT
10
31
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.20..@fluentui/react-charting_v5.23.21)
11
32
 
12
33
  ### Patches
@@ -2171,16 +2171,51 @@ export declare interface ILegendsProps {
2171
2171
  */
2172
2172
  onChange?: (selectedLegends: string[], event: React_2.MouseEvent<HTMLButtonElement>, currentLegend?: ILegend) => void;
2173
2173
  /**
2174
- * Keys (title) that will be initially used to set selected items.
2175
- * This prop is used for multiSelect scenarios.
2176
- * In other cases, defaultSelectedLegend should be used.
2174
+ * Keys (title) that will be initially used to set selected items. This prop is used for multi-select scenarios when
2175
+ * canSelectMultipleLegends is true; for single-select, use defaultSelectedLegend.
2176
+ *
2177
+ * Updating this prop does not change the selection after the component has been initialized. For controlled
2178
+ * selections, use selectedLegends instead.
2179
+ *
2180
+ * @see selectedLegends for setting the selected legends in controlled mode.
2181
+ * @see defaultSelectedLegend for setting the initially selected legend when canSelectMultipleLegends is false.
2177
2182
  */
2178
2183
  defaultSelectedLegends?: string[];
2179
2184
  /**
2180
- * Key that will be initially used to set selected item.
2181
- * This prop is used for singleSelect scenarios.
2185
+ * Key that will be initially used to set selected item. This prop is used for single-select scenarios when
2186
+ * canSelectMultipleLegends is false or unspecified; for multi-select, use defaultSelectedLegends.
2187
+ *
2188
+ * Updating this prop does not change the selection after the component has been initialized. For controlled
2189
+ * selections, use selectedLegend instead.
2190
+ *
2191
+ * @see selectedLegend for setting the selected legend in controlled mode.
2192
+ * @see defaultSelectedLegends for setting the initially selected legends when canSelectMultipleLegends is true.
2182
2193
  */
2183
2194
  defaultSelectedLegend?: string;
2195
+ /**
2196
+ * Keys (title) that will be used to set selected items in multi-select scenarios when canSelectMultipleLegends is
2197
+ * true. For single-select, use selectedLegend.
2198
+ *
2199
+ * When this prop is provided, the component is controlled and does not automatically update the selection based on
2200
+ * user interactions; the parent component must update the value passed to this property by handling the onChange
2201
+ * event.
2202
+ *
2203
+ * @see defaultSelectedLegends for setting the initially-selected legends in uncontrolled mode.
2204
+ * @see selectedLegends for setting the selected legends when `canSelectMultipleLegends` is `true`.
2205
+ */
2206
+ selectedLegends?: string[];
2207
+ /**
2208
+ * Key (title) that will be used to set the selected item in single-select scenarios when canSelectMultipleLegends is
2209
+ * false or unspecified. For multi-select, use selectedLegends.
2210
+ *
2211
+ * When this prop is provided, the component is controlled and does not automatically update the selection based on
2212
+ * user interactions; the parent component must update the value passed to this property by handling the onChange
2213
+ * event.
2214
+ *
2215
+ * @see defaultSelectedLegend for setting the initially-selected legend in uncontrolled mode.
2216
+ * @see selectedLegend for setting the selected legend when `canSelectMultipleLegends` is `false`.
2217
+ */
2218
+ selectedLegend?: string;
2184
2219
  /**
2185
2220
  * The shape for the legend.
2186
2221
  */