@fluentui/react-charting 5.18.18 → 5.19.0

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.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 14 Nov 2023 07:26:20 GMT",
5
+ "date": "Wed, 15 Nov 2023 07:27:47 GMT",
6
+ "tag": "@fluentui/react-charting_v5.19.0",
7
+ "version": "5.19.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "NewFuture@users.noreply.github.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "0b5c2f7934907e92d47502e637712731bf841700",
14
+ "comment": "add defaultSelectedLegeands and onChange for Legends"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 14 Nov 2023 07:26:38 GMT",
6
21
  "tag": "@fluentui/react-charting_v5.18.18",
7
22
  "version": "5.18.18",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,21 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Tue, 14 Nov 2023 07:26:20 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 15 Nov 2023 07:27:47 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.19.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.19.0)
8
+
9
+ Wed, 15 Nov 2023 07:27:47 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.18.18..@fluentui/react-charting_v5.19.0)
11
+
12
+ ### Minor changes
13
+
14
+ - add defaultSelectedLegeands and onChange for Legends ([PR #29799](https://github.com/microsoft/fluentui/pull/29799) by NewFuture@users.noreply.github.com)
15
+
7
16
  ## [5.18.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.18.18)
8
17
 
9
- Tue, 14 Nov 2023 07:26:20 GMT
18
+ Tue, 14 Nov 2023 07:26:38 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.18.17..@fluentui/react-charting_v5.18.18)
11
20
 
12
21
  ### Patches
@@ -1953,10 +1953,6 @@ export declare interface ILegendsProps {
1953
1953
  * text for overflow legends string
1954
1954
  */
1955
1955
  overflowText?: string;
1956
- /**
1957
- * Prop that takes the active legend
1958
- */
1959
- selectedLegend?: string;
1960
1956
  /**
1961
1957
  * prop that decides if legends are focusable
1962
1958
  * @default true
@@ -1969,10 +1965,25 @@ export declare interface ILegendsProps {
1969
1965
  canSelectMultipleLegends?: boolean;
1970
1966
  /**
1971
1967
  * Defines the function that is executed upon hiding of hover card
1972
- * make sure to send prop when the prop is canSelectMultipleLegends is set to ture
1973
- * and empty the selecetd state legends
1968
+ * make sure to send prop when the prop is canSelectMultipleLegends is set to true
1969
+ * and empty the selected state legends
1974
1970
  */
1975
1971
  onLegendHoverCardLeave?: VoidFunction;
1972
+ /**
1973
+ * Callback issued when the selected option changes.
1974
+ */
1975
+ onChange?: (selectedLegends: string[], event: React_2.MouseEvent<HTMLButtonElement>, currentLegend?: ILegend) => void;
1976
+ /**
1977
+ * Keys (title) that will be initially used to set selected items.
1978
+ * This prop is used for multiSelect scenarios.
1979
+ * In other cases, defaultSelectedLegend should be used.
1980
+ */
1981
+ defaultSelectedLegends?: string[];
1982
+ /**
1983
+ * Key that will be initially used to set selected item.
1984
+ * This prop is used for singleSelect scenarios.
1985
+ */
1986
+ defaultSelectedLegend?: string;
1976
1987
  }
1977
1988
 
1978
1989
  /**