@fluentui/react-charting 4.22.3 → 4.22.4

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": "Wed, 24 Aug 2022 22:38:07 GMT",
5
+ "date": "Tue, 30 Aug 2022 00:05:22 GMT",
6
+ "tag": "@fluentui/react-charting_v4.22.4",
7
+ "version": "4.22.4",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Bump @uifabric/charting to v4.22.0",
12
+ "author": "mgodbolt@microsoft.com",
13
+ "commit": "b585aa5bdf7e57d5746598f9389aba9c6fc8d489",
14
+ "package": "@fluentui/react-charting"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 24 Aug 2022 22:39:29 GMT",
6
21
  "tag": "@fluentui/react-charting_v4.22.3",
7
22
  "version": "4.22.3",
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 Wed, 24 Aug 2022 22:38:07 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 30 Aug 2022 00:05:22 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [4.22.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v4.22.4)
8
+
9
+ Tue, 30 Aug 2022 00:05:22 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v4.22.3..@fluentui/react-charting_v4.22.4)
11
+
12
+ ### Patches
13
+
14
+ - Bump @uifabric/charting to v4.22.0 ([PR #24574](https://github.com/microsoft/fluentui/pull/24574) by mgodbolt@microsoft.com)
15
+
7
16
  ## [4.22.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v4.22.3)
8
17
 
9
- Wed, 24 Aug 2022 22:38:07 GMT
18
+ Wed, 24 Aug 2022 22:39:29 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v4.22.2..@fluentui/react-charting_v4.22.3)
11
20
 
12
21
  ### Patches
@@ -20773,7 +20773,7 @@ __webpack_require__.r(__webpack_exports__);
20773
20773
  // Do not modify this file; it is generated as part of publish.
20774
20774
  // The checked in version is a placeholder only and will not be updated.
20775
20775
 
20776
- Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@uifabric/charting', '4.21.13');
20776
+ Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@uifabric/charting', '4.21.14');
20777
20777
 
20778
20778
 
20779
20779
  /***/ }),
@@ -53379,6 +53379,16 @@ var GroupHeaderBase = /** @class */ (function (_super) {
53379
53379
  }
53380
53380
  };
53381
53381
  _this._onRenderTitle = function (props) {
53382
+ var group = props.group;
53383
+ if (!group) {
53384
+ return null;
53385
+ }
53386
+ var onRenderName = props.onRenderName
53387
+ ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(props.onRenderName, _this._onRenderName)
53388
+ : _this._onRenderName;
53389
+ return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: _this._classNames.title, id: _this._id, onClick: _this._onHeaderClick, role: "gridcell", "aria-colspan": _this.props.ariaColSpan, "data-selection-invoke": true }, onRenderName(props)));
53390
+ };
53391
+ _this._onRenderName = function (props) {
53382
53392
  var group = props.group;
53383
53393
  if (!group) {
53384
53394
  return null;
@@ -53412,12 +53422,15 @@ var GroupHeaderBase = /** @class */ (function (_super) {
53412
53422
  // eslint-disable-next-line deprecation/deprecation
53413
53423
  _c = _a.isSelected,
53414
53424
  // eslint-disable-next-line deprecation/deprecation
53415
- isSelected = _c === void 0 ? false : _c, _d = _a.selected, selected = _d === void 0 ? false : _d, indentWidth = _a.indentWidth, _e = _a.onRenderTitle, onRenderTitle = _e === void 0 ? this._onRenderTitle : _e, onRenderGroupHeaderCheckbox = _a.onRenderGroupHeaderCheckbox, _f = _a.isCollapsedGroupSelectVisible, isCollapsedGroupSelectVisible = _f === void 0 ? true : _f, expandButtonProps = _a.expandButtonProps, expandButtonIcon = _a.expandButtonIcon, selectAllButtonProps = _a.selectAllButtonProps, theme = _a.theme, styles = _a.styles, className = _a.className, compact = _a.compact, ariaPosInSet = _a.ariaPosInSet, ariaSetSize = _a.ariaSetSize, useFastIcons = _a.useFastIcons;
53425
+ isSelected = _c === void 0 ? false : _c, _d = _a.selected, selected = _d === void 0 ? false : _d, indentWidth = _a.indentWidth, onRenderGroupHeaderCheckbox = _a.onRenderGroupHeaderCheckbox, _e = _a.isCollapsedGroupSelectVisible, isCollapsedGroupSelectVisible = _e === void 0 ? true : _e, expandButtonProps = _a.expandButtonProps, expandButtonIcon = _a.expandButtonIcon, selectAllButtonProps = _a.selectAllButtonProps, theme = _a.theme, styles = _a.styles, className = _a.className, compact = _a.compact, ariaPosInSet = _a.ariaPosInSet, ariaSetSize = _a.ariaSetSize, useFastIcons = _a.useFastIcons;
53426
+ var onRenderTitle = this.props.onRenderTitle
53427
+ ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(this.props.onRenderTitle, this._onRenderTitle)
53428
+ : this._onRenderTitle;
53416
53429
  var defaultCheckboxRender = useFastIcons ? this._fastDefaultCheckboxRender : this._defaultCheckboxRender;
53417
53430
  var onRenderCheckbox = onRenderGroupHeaderCheckbox
53418
53431
  ? Object(_Utilities__WEBPACK_IMPORTED_MODULE_2__["composeRenderFunction"])(onRenderGroupHeaderCheckbox, defaultCheckboxRender)
53419
53432
  : defaultCheckboxRender;
53420
- var _g = this.state, isCollapsed = _g.isCollapsed, isLoadingVisible = _g.isLoadingVisible;
53433
+ var _f = this.state, isCollapsed = _f.isCollapsed, isLoadingVisible = _f.isLoadingVisible;
53421
53434
  var canSelectGroup = selectionMode === _Selection__WEBPACK_IMPORTED_MODULE_3__["SelectionMode"].multiple;
53422
53435
  var isSelectionCheckVisible = canSelectGroup && (isCollapsedGroupSelectVisible || !(group && group.isCollapsed));
53423
53436
  var currentlySelected = selected || isSelected;
@@ -53442,7 +53455,7 @@ var GroupHeaderBase = /** @class */ (function (_super) {
53442
53455
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { role: "gridcell" },
53443
53456
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ "data-is-focusable": false, type: "button", className: this._classNames.expand, onClick: this._onToggleClick, "aria-expanded": !this.state.isCollapsed }, expandButtonProps),
53444
53457
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], { className: this._classNames.expandIsCollapsed, iconName: expandButtonIcon || (isRTL ? 'ChevronLeftMed' : 'ChevronRightMed') }))),
53445
- react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this._classNames.title, id: this._id, onClick: this._onHeaderClick, role: "gridcell", "aria-colspan": this.props.ariaColSpan, "data-selection-invoke": true }, onRenderTitle(this.props, this._onRenderTitle)),
53458
+ onRenderTitle(this.props),
53446
53459
  isLoadingVisible && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Spinner__WEBPACK_IMPORTED_MODULE_7__["Spinner"], { label: loadingText }))));
53447
53460
  };
53448
53461
  GroupHeaderBase.prototype._defaultCheckboxRender = function (checkboxProps) {
@@ -83694,13 +83707,14 @@ var SelectionZone = /** @class */ (function (_super) {
83694
83707
  }
83695
83708
  };
83696
83709
  SelectionZone.prototype._onItemSurfaceClick = function (type, index, span) {
83697
- var _a = this.props, selection = _a.selection, toggleWithoutModifierPressed = _a.toggleWithoutModifierPressed;
83710
+ var _a, _b;
83711
+ var _c = this.props, selection = _c.selection, toggleWithoutModifierPressed = _c.toggleWithoutModifierPressed;
83698
83712
  var isToggleModifierPressed = this._isCtrlPressed || this._isMetaPressed;
83699
83713
  var selectionMode = this._getSelectionMode();
83700
83714
  if (selectionMode === _interfaces__WEBPACK_IMPORTED_MODULE_3__["SelectionMode"].multiple) {
83701
83715
  if (this._isShiftPressed && !this._isTabPressed) {
83702
83716
  if (span !== undefined) {
83703
- selection.selectToRange(index, span, !isToggleModifierPressed);
83717
+ (_b = (_a = selection).selectToRange) === null || _b === void 0 ? void 0 : _b.call(_a, index, span, !isToggleModifierPressed);
83704
83718
  }
83705
83719
  else {
83706
83720
  selection.selectToIndex(index, !isToggleModifierPressed);
@@ -83760,14 +83774,15 @@ var SelectionZone = /** @class */ (function (_super) {
83760
83774
  }
83761
83775
  };
83762
83776
  SelectionZone.prototype._clearAndSelectIndex = function (index, span) {
83763
- var _a = this.props, selection = _a.selection, _b = _a.selectionClearedOnSurfaceClick, selectionClearedOnSurfaceClick = _b === void 0 ? true : _b;
83777
+ var _a, _b;
83778
+ var _c = this.props, selection = _c.selection, _d = _c.selectionClearedOnSurfaceClick, selectionClearedOnSurfaceClick = _d === void 0 ? true : _d;
83764
83779
  var isAlreadySingleSelected = (span === undefined || span === 1) && selection.getSelectedCount() === 1 && selection.isIndexSelected(index);
83765
83780
  if (!isAlreadySingleSelected && selectionClearedOnSurfaceClick) {
83766
83781
  var isModal = selection.isModal && selection.isModal();
83767
83782
  selection.setChangeEvents(false);
83768
83783
  selection.setAllSelected(false);
83769
83784
  if (span !== undefined) {
83770
- selection.setRangeSelected(index, span, true, true);
83785
+ (_b = (_a = selection).setRangeSelected) === null || _b === void 0 ? void 0 : _b.call(_a, index, span, true, true);
83771
83786
  }
83772
83787
  else {
83773
83788
  selection.setIndexSelected(index, true, true);
@@ -83945,7 +83960,7 @@ __webpack_require__.r(__webpack_exports__);
83945
83960
  // Do not modify this file; it is generated as part of publish.
83946
83961
  // The checked in version is a placeholder only and will not be updated.
83947
83962
 
83948
- Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('office-ui-fabric-react', '7.195.0');
83963
+ Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('office-ui-fabric-react', '7.196.0');
83949
83964
 
83950
83965
 
83951
83966
  /***/ }),
@@ -94430,6 +94445,8 @@ var Selection = /** @class */ (function () {
94430
94445
  if (this.mode === _Selection_types__WEBPACK_IMPORTED_MODULE_0__["SelectionMode"].none) {
94431
94446
  return;
94432
94447
  }
94448
+ // Clamp the index.
94449
+ index = Math.min(Math.max(0, index), this._items.length - 1);
94433
94450
  // No-op on out of bounds selections.
94434
94451
  if (index < 0 || index >= this._items.length) {
94435
94452
  return;
@@ -94463,6 +94480,10 @@ var Selection = /** @class */ (function () {
94463
94480
  if (this.mode === _Selection_types__WEBPACK_IMPORTED_MODULE_0__["SelectionMode"].none) {
94464
94481
  return;
94465
94482
  }
94483
+ // Clamp the index.
94484
+ fromIndex = Math.min(Math.max(0, fromIndex), this._items.length - 1);
94485
+ // Clamp the range.
94486
+ count = Math.min(Math.max(0, count), this._items.length - fromIndex);
94466
94487
  // No-op on out of bounds selections.
94467
94488
  if (fromIndex < 0 || fromIndex >= this._items.length || count === 0) {
94468
94489
  return;
@@ -95267,7 +95288,7 @@ __webpack_require__.r(__webpack_exports__);
95267
95288
  // Do not modify this file; it is generated as part of publish.
95268
95289
  // The checked in version is a placeholder only and will not be updated.
95269
95290
 
95270
- Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/react-charting', '4.22.2');
95291
+ Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/react-charting', '4.22.3');
95271
95292
 
95272
95293
 
95273
95294
  /***/ }),