@fluentui/react-button 0.20.0 → 0.20.3

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.
@@ -207,8 +207,7 @@ tslib_1.__exportStar(__webpack_require__(694), exports);
207
207
  /* 27 */,
208
208
  /* 28 */,
209
209
  /* 29 */,
210
- /* 30 */,
211
- /* 31 */
210
+ /* 30 */
212
211
  /***/ (function(module, exports, __webpack_require__) {
213
212
 
214
213
  "use strict";
@@ -217,6 +216,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
217
216
  var Styling_1 = __webpack_require__(4);
218
217
  exports.inputHeight = '18px';
219
218
  exports.borderWidth = '1px';
219
+ exports.borderRadius = '3px';
220
220
  exports.borderWidthError = '1px';
221
221
  exports.borderSolid = 'solid';
222
222
  exports.borderNone = 'none';
@@ -227,7 +227,9 @@ exports.fontFamily =
227
227
  'Segoe UI, "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue",sans-serif';
228
228
  exports.fontWeightRegular = '400';
229
229
  exports.fontWeightBold = '700';
230
+ exports.choiceGroupDimensions = '18px';
230
231
  exports.inputControlHeight = '24px';
232
+ exports.inputControlPadding = '12px';
231
233
  exports.inputControlHeightInner = '20px';
232
234
  exports.textAlignCenter = 'center';
233
235
  exports.transparent = 'transparent';
@@ -236,6 +238,7 @@ exports.MediumScreenSelector = Styling_1.getScreenSelector(Styling_1.ScreenWidth
236
238
 
237
239
 
238
240
  /***/ }),
241
+ /* 31 */,
239
242
  /* 32 */,
240
243
  /* 33 */,
241
244
  /* 34 */,
@@ -636,7 +639,7 @@ exports.DEFAULT_ROW_HEIGHTS = {
636
639
  var values = tslib_1.__assign(tslib_1.__assign({}, exports.DEFAULT_ROW_HEIGHTS), { rowVerticalPadding: 11, compactRowVerticalPadding: 6 });
637
640
  exports.getDetailsRowStyles = function (props) {
638
641
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
639
- var theme = props.theme, isSelected = props.isSelected, canSelect = props.canSelect, droppingClassName = props.droppingClassName, anySelected = props.anySelected, isCheckVisible = props.isCheckVisible, checkboxCellClassName = props.checkboxCellClassName, compact = props.compact, className = props.className, _o = props.cellStyleProps, cellStyleProps = _o === void 0 ? exports.DEFAULT_CELL_STYLE_PROPS : _o, enableUpdateAnimations = props.enableUpdateAnimations;
642
+ var theme = props.theme, isSelected = props.isSelected, canSelect = props.canSelect, droppingClassName = props.droppingClassName, anySelected = props.anySelected, isCheckVisible = props.isCheckVisible, checkboxCellClassName = props.checkboxCellClassName, compact = props.compact, className = props.className, _o = props.cellStyleProps, cellStyleProps = _o === void 0 ? exports.DEFAULT_CELL_STYLE_PROPS : _o, enableUpdateAnimations = props.enableUpdateAnimations, disabled = props.disabled;
640
643
  var palette = theme.palette, fonts = theme.fonts;
641
644
  var neutralPrimary = palette.neutralPrimary, white = palette.white, neutralSecondary = palette.neutralSecondary, neutralLighter = palette.neutralLighter, neutralLight = palette.neutralLight, neutralDark = palette.neutralDark, neutralQuaternaryAlt = palette.neutralQuaternaryAlt;
642
645
  var focusBorder = theme.semanticColors.focusBorder;
@@ -664,9 +667,20 @@ exports.getDetailsRowStyles = function (props) {
664
667
  focusBackground: neutralLight,
665
668
  focusHoverBackground: neutralQuaternaryAlt,
666
669
  };
670
+ var rowHighContrastFocus = {
671
+ top: 2,
672
+ right: 2,
673
+ bottom: 2,
674
+ left: 2,
675
+ };
667
676
  // Selected row styles
668
677
  var selectedStyles = [
669
- Styling_1.getFocusStyle(theme, { inset: -1, borderColor: focusBorder, outlineColor: white }),
678
+ Styling_1.getFocusStyle(theme, {
679
+ inset: -1,
680
+ borderColor: focusBorder,
681
+ outlineColor: white,
682
+ highContrastStyle: rowHighContrastFocus,
683
+ }),
670
684
  classNames.isSelected,
671
685
  {
672
686
  color: colors.selectedMetaText,
@@ -809,6 +823,7 @@ exports.getDetailsRowStyles = function (props) {
809
823
  _h),
810
824
  },
811
825
  compact && cellCompactStyles,
826
+ disabled && { opacity: 0.5 },
812
827
  ];
813
828
  return {
814
829
  root: [
@@ -964,12 +979,14 @@ var BaseColors;
964
979
  (function (BaseColors) {
965
980
  BaseColors.BLUE_F0F6FF = '#F0F6FF';
966
981
  BaseColors.BLUE_CCE1FF = '#cce1ff';
982
+ BaseColors.BLUE_C7E0F4 = '#C7E0F4';
967
983
  BaseColors.BLUE_DEECF9 = '#deecf9';
968
984
  BaseColors.BLUE_0000CD = '#0000cd';
969
985
  BaseColors.BLUE_00245B = '#00245B';
970
986
  BaseColors.BLUE_00E8E8 = '#00e8e8';
971
987
  BaseColors.BLUE_00FFFF = '#00ffff';
972
988
  BaseColors.BLUE_004578 = '#004578';
989
+ BaseColors.BLUE_004C87 = '#004C87';
973
990
  BaseColors.BLUE_005A9E = '#005A9E';
974
991
  BaseColors.BLUE_0078D4 = '#0078D4';
975
992
  BaseColors.BLUE_016AFE = '#016afe';
@@ -1037,6 +1054,7 @@ var BaseColors;
1037
1054
  BaseColors.GRAY_3B3A39 = '#3B3A39';
1038
1055
  BaseColors.GRAY_414141 = '#414141';
1039
1056
  BaseColors.GRAY_484644 = '#484644';
1057
+ BaseColors.GRAY_585858 = '#585858';
1040
1058
  BaseColors.GRAY_595959 = '#595959';
1041
1059
  BaseColors.GRAY_605E5C = '#605E5C';
1042
1060
  BaseColors.GRAY_747474 = '#747474';
@@ -1318,6 +1336,14 @@ exports.DarkSemanticColors = {
1318
1336
  primaryButtonBackground: BaseColors.BLUE_043862,
1319
1337
  },
1320
1338
  },
1339
+ slider: {
1340
+ activeBackground: BaseColors.GRAY_A19F9D,
1341
+ activeBackgroundHovered: BaseColors.BLUE_2899F5,
1342
+ inactiveBackgroundHovered: BaseColors.BLUE_004C87,
1343
+ activeDisabledBackground: BaseColors.GRAY_797775,
1344
+ inactiveDisabledBackground: BaseColors.GRAY_292827,
1345
+ activeBackgroundPressed: BaseColors.BLUE_3AA0F3,
1346
+ },
1321
1347
  };
1322
1348
  exports.HighContrastDarkSemanticColors = {
1323
1349
  background: BaseColors.BLACK,
@@ -1532,6 +1558,14 @@ exports.HighContrastDarkSemanticColors = {
1532
1558
  primaryButtonBackground: BaseColors.BLUE_043862,
1533
1559
  },
1534
1560
  },
1561
+ slider: {
1562
+ activeBackground: BaseColors.GRAY_605E5C,
1563
+ activeBackgroundHovered: BaseColors.BLUE_00FFFF,
1564
+ inactiveBackgroundHovered: BaseColors.GRAY_585858,
1565
+ activeDisabledBackground: BaseColors.GREEN_0AFF00,
1566
+ inactiveDisabledBackground: BaseColors.GREEN_0AFF00,
1567
+ activeBackgroundPressed: BaseColors.BLUE_00FFFF,
1568
+ },
1535
1569
  };
1536
1570
  exports.LightSemanticColors = {
1537
1571
  background: BaseColors.WHITE,
@@ -1548,7 +1582,7 @@ exports.LightSemanticColors = {
1548
1582
  hyperlinkHovered: BaseColors.BLUE_004578,
1549
1583
  success: BaseColors.GREEN_428000,
1550
1584
  error: BaseColors.RED_A4262C,
1551
- placeholder: BaseColors.GRAY_8A8886,
1585
+ placeholder: BaseColors.GRAY_605E5C,
1552
1586
  },
1553
1587
  statusBar: {
1554
1588
  link: BaseColors.BLUE_106EBE,
@@ -1746,6 +1780,14 @@ exports.LightSemanticColors = {
1746
1780
  primaryButtonBackground: BaseColors.BLUE_DEECF9,
1747
1781
  },
1748
1782
  },
1783
+ slider: {
1784
+ activeBackground: BaseColors.GRAY_605E5C,
1785
+ activeBackgroundHovered: BaseColors.BLUE_0078D4,
1786
+ inactiveBackgroundHovered: BaseColors.BLUE_C7E0F4,
1787
+ activeDisabledBackground: BaseColors.GRAY_A19F9D,
1788
+ inactiveDisabledBackground: BaseColors.GRAY_EDEBE9,
1789
+ activeBackgroundPressed: BaseColors.BLUE_106EBE,
1790
+ },
1749
1791
  };
1750
1792
  exports.HighContrastLightSemanticColors = {
1751
1793
  background: BaseColors.WHITE,
@@ -1960,6 +2002,14 @@ exports.HighContrastLightSemanticColors = {
1960
2002
  primaryButtonBackground: BaseColors.BLUE_DEECF9,
1961
2003
  },
1962
2004
  },
2005
+ slider: {
2006
+ activeBackground: BaseColors.GRAY_605E5C,
2007
+ activeBackgroundHovered: BaseColors.PURPLE_800080,
2008
+ inactiveBackgroundHovered: BaseColors.BLUE_C7E0F4,
2009
+ activeDisabledBackground: BaseColors.RED_800000,
2010
+ inactiveDisabledBackground: BaseColors.RED_800000,
2011
+ activeBackgroundPressed: BaseColors.PURPLE_800080,
2012
+ },
1963
2013
  };
1964
2014
 
1965
2015
 
@@ -2278,7 +2328,8 @@ function initializeResponsiveMode(element) {
2278
2328
  }
2279
2329
  exports.initializeResponsiveMode = initializeResponsiveMode;
2280
2330
  function getInitialResponsiveMode() {
2281
- return _defaultMode || _lastMode || ResponsiveMode.large;
2331
+ var _a;
2332
+ return _a = (_defaultMode !== null && _defaultMode !== void 0 ? _defaultMode : _lastMode), (_a !== null && _a !== void 0 ? _a : ResponsiveMode.large);
2282
2333
  }
2283
2334
  exports.getInitialResponsiveMode = getInitialResponsiveMode;
2284
2335
  function withResponsiveMode(ComposedComponent) {
@@ -2632,6 +2683,7 @@ var ContextualMenu_1 = __webpack_require__(248);
2632
2683
  var BaseButton_classNames_1 = __webpack_require__(194);
2633
2684
  var SplitButton_classNames_1 = __webpack_require__(719);
2634
2685
  var KeytipData_1 = __webpack_require__(79);
2686
+ var Utilities_2 = __webpack_require__(3);
2635
2687
  var TouchIdleDelay = 500; /* ms */
2636
2688
  var COMPONENT_NAME = 'BaseButton';
2637
2689
  /**
@@ -2718,16 +2770,8 @@ var BaseButton = /** @class */ (function (_super) {
2718
2770
  return React.createElement(Icon_1.FontIcon, tslib_1.__assign({ iconName: "ChevronDown" }, menuIconProps, { className: _this._classNames.menuIcon }));
2719
2771
  };
2720
2772
  _this._onRenderMenu = function (menuProps) {
2721
- var persistMenu = _this.props.persistMenu;
2722
- var menuHidden = _this.state.menuHidden;
2723
- var MenuType = _this.props.menuAs || ContextualMenu_1.ContextualMenu;
2724
- // the accessible menu label (accessible name) has a relationship to the button.
2725
- // If the menu props do not specify an explicit value for aria-label or aria-labelledBy,
2726
- // AND the button has text, we'll set the menu aria-labelledBy to the text element id.
2727
- if (!menuProps.ariaLabel && !menuProps.labelElementId && _this._hasText()) {
2728
- menuProps = tslib_1.__assign(tslib_1.__assign({}, menuProps), { labelElementId: _this._labelId });
2729
- }
2730
- return (React.createElement(MenuType, tslib_1.__assign({ id: _this._labelId + '-menu', directionalHint: DirectionalHint_1.DirectionalHint.bottomLeftEdge }, menuProps, { shouldFocusOnContainer: _this._menuShouldFocusOnContainer, shouldFocusOnMount: _this._menuShouldFocusOnMount, hidden: persistMenu ? menuHidden : undefined, className: Utilities_1.css('ms-BaseButton-menuhost', menuProps.className), target: _this._isSplitButton ? _this._splitButtonContainer.current : _this._buttonElement.current, onDismiss: _this._onDismissMenu })));
2773
+ var MenuType = _this.props.menuAs ? Utilities_2.composeComponentAs(_this.props.menuAs, ContextualMenu_1.ContextualMenu) : ContextualMenu_1.ContextualMenu;
2774
+ return React.createElement(MenuType, tslib_1.__assign({}, menuProps));
2731
2775
  };
2732
2776
  _this._onDismissMenu = function (ev) {
2733
2777
  var menuProps = _this.props.menuProps;
@@ -3088,14 +3132,14 @@ var BaseButton = /** @class */ (function (_super) {
3088
3132
  menuProps &&
3089
3133
  !menuProps.doNotLayer &&
3090
3134
  _this._shouldRenderMenu() &&
3091
- onRenderMenu(menuProps, _this._onRenderMenu)))); };
3135
+ onRenderMenu(_this._getMenuProps(menuProps), _this._onRenderMenu)))); };
3092
3136
  var Content = keytipProps ? (
3093
3137
  // If we're making a split button, we won't put the keytip here
3094
3138
  React.createElement(KeytipData_1.KeytipData, { keytipProps: !this._isSplitButton ? keytipProps : undefined, ariaDescribedBy: buttonProps['aria-describedby'], disabled: disabled }, function (keytipAttributes) { return Button(keytipAttributes); })) : (Button());
3095
3139
  if (menuProps && menuProps.doNotLayer) {
3096
3140
  return (React.createElement("span", { style: { display: 'inline-block' } },
3097
3141
  Content,
3098
- this._shouldRenderMenu() && onRenderMenu(menuProps, this._onRenderMenu)));
3142
+ this._shouldRenderMenu() && onRenderMenu(this._getMenuProps(menuProps), this._onRenderMenu)));
3099
3143
  }
3100
3144
  return (React.createElement(React.Fragment, null,
3101
3145
  Content,
@@ -3128,6 +3172,17 @@ var BaseButton = /** @class */ (function (_super) {
3128
3172
  // Purely a code maintainability/reuse issue, but logged as Issue #4979.
3129
3173
  return this.props.text !== null && (this.props.text !== undefined || typeof this.props.children === 'string');
3130
3174
  };
3175
+ BaseButton.prototype._getMenuProps = function (menuProps) {
3176
+ var persistMenu = this.props.persistMenu;
3177
+ var menuHidden = this.state.menuHidden;
3178
+ // the accessible menu label (accessible name) has a relationship to the button.
3179
+ // If the menu props do not specify an explicit value for aria-label or aria-labelledBy,
3180
+ // AND the button has text, we'll set the menu aria-labelledBy to the text element id.
3181
+ if (!menuProps.ariaLabel && !menuProps.labelElementId && this._hasText()) {
3182
+ menuProps = tslib_1.__assign(tslib_1.__assign({}, menuProps), { labelElementId: this._labelId });
3183
+ }
3184
+ return tslib_1.__assign(tslib_1.__assign({ id: this._labelId + '-menu', directionalHint: DirectionalHint_1.DirectionalHint.bottomLeftEdge }, menuProps), { shouldFocusOnContainer: this._menuShouldFocusOnContainer, shouldFocusOnMount: this._menuShouldFocusOnMount, hidden: persistMenu ? menuHidden : undefined, className: Utilities_1.css('ms-BaseButton-menuhost', menuProps.className), target: this._isSplitButton ? this._splitButtonContainer.current : this._buttonElement.current, onDismiss: this._onDismissMenu });
3185
+ };
3131
3186
  BaseButton.prototype._onRenderSplitButtonContent = function (tag, buttonProps) {
3132
3187
  var _this = this;
3133
3188
  var _a = this.props, _b = _a.styles, styles = _b === void 0 ? {} : _b, disabled = _a.disabled, allowDisabledFocus = _a.allowDisabledFocus, checked = _a.checked, getSplitButtonClassNames = _a.getSplitButtonClassNames, primaryDisabled = _a.primaryDisabled, menuProps = _a.menuProps, toggle = _a.toggle, role = _a.role, primaryActionButtonProps = _a.primaryActionButtonProps;
@@ -3290,7 +3345,7 @@ exports.getStyles = Utilities_1.memoizeFunction(function (theme) {
3290
3345
  borderRadius: effects.roundedCorner2,
3291
3346
  selectors: {
3292
3347
  // IE11 workaround for preventing shift of child elements of a button when active.
3293
- ':active > *': {
3348
+ ':active > span': {
3294
3349
  position: 'relative',
3295
3350
  left: 0,
3296
3351
  top: 0,
@@ -3761,7 +3816,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3761
3816
  // Do not modify this file; it is generated as part of publish.
3762
3817
  // The checked in version is a placeholder only and will not be updated.
3763
3818
  var set_version_1 = __webpack_require__(57);
3764
- set_version_1.setVersion('office-ui-fabric-react', '7.174.1');
3819
+ set_version_1.setVersion('office-ui-fabric-react', '7.185.5');
3765
3820
 
3766
3821
 
3767
3822
  /***/ }),
@@ -7463,16 +7518,8 @@ var Styling_1 = __webpack_require__(4);
7463
7518
  var Utilities_1 = __webpack_require__(3);
7464
7519
  exports.CONTEXTUAL_MENU_ITEM_HEIGHT = 36;
7465
7520
  var MediumScreenSelector = Styling_1.getScreenSelector(0, Styling_1.ScreenWidthMaxMedium);
7466
- var getItemHighContrastStyles = Utilities_1.memoizeFunction(function () {
7467
- var _a;
7468
- return {
7469
- selectors: (_a = {},
7470
- _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText' }, Styling_1.getHighContrastNoAdjustStyle()),
7471
- _a),
7472
- };
7473
- });
7474
7521
  exports.getMenuItemStyles = Utilities_1.memoizeFunction(function (theme) {
7475
- var _a, _b, _c, _d, _e, _f, _g;
7522
+ var _a, _b, _c, _d, _e;
7476
7523
  var semanticColors = theme.semanticColors, fonts = theme.fonts, palette = theme.palette;
7477
7524
  var ContextualMenuItemBackgroundHoverColor = semanticColors.menuItemBackgroundHovered;
7478
7525
  var ContextualMenuItemTextHoverColor = semanticColors.menuItemTextHovered;
@@ -7514,32 +7561,58 @@ exports.getMenuItemStyles = Utilities_1.memoizeFunction(function (theme) {
7514
7561
  cursor: 'default',
7515
7562
  pointerEvents: 'none',
7516
7563
  selectors: (_a = {},
7517
- _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'GrayText', opacity: 1 }, Styling_1.getHighContrastNoAdjustStyle()),
7564
+ _a[Styling_1.HighContrastSelector] = tslib_1.__assign({
7565
+ // ensure disabled text looks different than enabled
7566
+ color: 'GrayText', opacity: 1 }, Styling_1.getHighContrastNoAdjustStyle()),
7518
7567
  _a),
7519
7568
  },
7520
- rootHovered: tslib_1.__assign({ backgroundColor: ContextualMenuItemBackgroundHoverColor, color: ContextualMenuItemTextHoverColor, selectors: {
7569
+ rootHovered: {
7570
+ backgroundColor: ContextualMenuItemBackgroundHoverColor,
7571
+ color: ContextualMenuItemTextHoverColor,
7572
+ selectors: {
7521
7573
  '.ms-ContextualMenu-icon': {
7522
7574
  color: palette.themeDarkAlt,
7523
7575
  },
7524
7576
  '.ms-ContextualMenu-submenuIcon': {
7525
7577
  color: palette.neutralPrimary,
7526
7578
  },
7527
- } }, getItemHighContrastStyles()),
7528
- rootFocused: tslib_1.__assign({ backgroundColor: palette.white }, getItemHighContrastStyles()),
7529
- rootChecked: tslib_1.__assign({ selectors: {
7579
+ },
7580
+ },
7581
+ rootFocused: {
7582
+ backgroundColor: palette.white,
7583
+ },
7584
+ rootChecked: {
7585
+ selectors: {
7530
7586
  '.ms-ContextualMenu-checkmarkIcon': {
7531
7587
  color: palette.neutralPrimary,
7532
7588
  },
7533
- } }, getItemHighContrastStyles()),
7534
- rootPressed: tslib_1.__assign({ backgroundColor: ContextualMenuItemBackgroundSelectedColor, selectors: {
7589
+ },
7590
+ },
7591
+ rootPressed: {
7592
+ backgroundColor: ContextualMenuItemBackgroundSelectedColor,
7593
+ selectors: {
7535
7594
  '.ms-ContextualMenu-icon': {
7536
7595
  color: palette.themeDark,
7537
7596
  },
7538
7597
  '.ms-ContextualMenu-submenuIcon': {
7539
7598
  color: palette.neutralPrimary,
7540
7599
  },
7541
- } }, getItemHighContrastStyles()),
7542
- rootExpanded: tslib_1.__assign({ backgroundColor: ContextualMenuItemBackgroundSelectedColor, color: semanticColors.bodyTextChecked }, getItemHighContrastStyles()),
7600
+ },
7601
+ },
7602
+ rootExpanded: {
7603
+ backgroundColor: ContextualMenuItemBackgroundSelectedColor,
7604
+ color: semanticColors.bodyTextChecked,
7605
+ selectors: (_b = {
7606
+ '.ms-ContextualMenu-submenuIcon': (_c = {},
7607
+ _c[Styling_1.HighContrastSelector] = {
7608
+ // icons inside of anchor tags are not properly inheriting color in high contrast
7609
+ color: 'inherit',
7610
+ },
7611
+ _c)
7612
+ },
7613
+ _b[Styling_1.HighContrastSelector] = tslib_1.__assign({}, Styling_1.getHighContrastNoAdjustStyle()),
7614
+ _b),
7615
+ },
7543
7616
  linkContent: {
7544
7617
  whiteSpace: 'nowrap',
7545
7618
  height: 'inherit',
@@ -7582,45 +7655,21 @@ exports.getMenuItemStyles = Utilities_1.memoizeFunction(function (theme) {
7582
7655
  margin: '0 4px',
7583
7656
  verticalAlign: 'middle',
7584
7657
  flexShrink: '0',
7585
- selectors: (_b = {},
7586
- _b[MediumScreenSelector] = {
7658
+ selectors: (_d = {},
7659
+ _d[MediumScreenSelector] = {
7587
7660
  fontSize: Styling_1.IconFontSizes.large,
7588
7661
  width: Styling_1.IconFontSizes.large,
7589
7662
  },
7590
- _b),
7663
+ _d),
7591
7664
  },
7592
7665
  iconColor: {
7593
7666
  color: semanticColors.menuIcon,
7594
- selectors: (_c = {},
7595
- _c[Styling_1.HighContrastSelector] = {
7596
- color: 'inherit',
7597
- },
7598
- _c['$root:hover &'] = {
7599
- selectors: (_d = {},
7600
- _d[Styling_1.HighContrastSelector] = {
7601
- color: 'HighlightText',
7602
- },
7603
- _d),
7604
- },
7605
- _c['$root:focus &'] = {
7606
- selectors: (_e = {},
7607
- _e[Styling_1.HighContrastSelector] = {
7608
- color: 'HighlightText',
7609
- },
7610
- _e),
7611
- },
7612
- _c),
7613
7667
  },
7614
7668
  iconDisabled: {
7615
7669
  color: semanticColors.disabledBodyText,
7616
7670
  },
7617
7671
  checkmarkIcon: {
7618
7672
  color: semanticColors.bodySubtext,
7619
- selectors: (_f = {},
7620
- _f[Styling_1.HighContrastSelector] = {
7621
- color: 'HighlightText',
7622
- },
7623
- _f),
7624
7673
  },
7625
7674
  subMenuIcon: {
7626
7675
  height: exports.CONTEXTUAL_MENU_ITEM_HEIGHT,
@@ -7631,7 +7680,7 @@ exports.getMenuItemStyles = Utilities_1.memoizeFunction(function (theme) {
7631
7680
  verticalAlign: 'middle',
7632
7681
  flexShrink: '0',
7633
7682
  fontSize: Styling_1.IconFontSizes.small,
7634
- selectors: (_g = {
7683
+ selectors: (_e = {
7635
7684
  ':hover': {
7636
7685
  color: palette.neutralPrimary,
7637
7686
  },
@@ -7639,13 +7688,10 @@ exports.getMenuItemStyles = Utilities_1.memoizeFunction(function (theme) {
7639
7688
  color: palette.neutralPrimary,
7640
7689
  }
7641
7690
  },
7642
- _g[MediumScreenSelector] = {
7691
+ _e[MediumScreenSelector] = {
7643
7692
  fontSize: Styling_1.IconFontSizes.medium,
7644
7693
  },
7645
- _g[Styling_1.HighContrastSelector] = {
7646
- color: 'HighlightText',
7647
- },
7648
- _g),
7694
+ _e),
7649
7695
  },
7650
7696
  splitButtonFlexContainer: [
7651
7697
  Styling_1.getFocusStyle(theme),
@@ -8905,11 +8951,12 @@ var DetailsRowCheckBase = function (props) {
8905
8951
  checked: selected,
8906
8952
  theme: theme,
8907
8953
  };
8954
+ var divProps = Utilities_1.getNativeElementProps('div', buttonProps, ['aria-label', 'aria-labelledby', 'aria-describedby']);
8908
8955
  return canSelect ? (React.createElement("div", tslib_1.__assign({}, buttonProps, { role: "checkbox",
8909
8956
  // eslint-disable-next-line deprecation/deprecation
8910
8957
  className: Utilities_1.css(classNames.root, classNames.check), "aria-checked": selected, "data-selection-toggle": true, "data-automationid": "DetailsRowCheck", tabIndex: -1 }), onRenderCheckbox(detailsCheckboxProps))) : (
8911
8958
  // eslint-disable-next-line deprecation/deprecation
8912
- React.createElement("div", tslib_1.__assign({}, buttonProps, { className: Utilities_1.css(classNames.root, classNames.check) })));
8959
+ React.createElement("div", tslib_1.__assign({}, divProps, { className: Utilities_1.css(classNames.root, classNames.check) })));
8913
8960
  };
8914
8961
  var FastCheck = React.memo(function (props) {
8915
8962
  return React.createElement(Check_1.Check, { theme: props.theme, checked: props.checked, className: props.className, useFastIcons: true });
@@ -14754,9 +14801,12 @@ var fabric_icons_15_1 = __webpack_require__(2348);
14754
14801
  var fabric_icons_16_1 = __webpack_require__(2349);
14755
14802
  var fabric_icons_17_1 = __webpack_require__(2350);
14756
14803
  var iconAliases_1 = __webpack_require__(2351);
14757
- var DEFAULT_BASE_URL = 'https://spoprod-a.akamaihd.net/files/fabric/assets/icons/';
14804
+ var utilities_1 = __webpack_require__(11);
14805
+ var DEFAULT_BASE_URL = 'https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/';
14806
+ var win = utilities_1.getWindow();
14758
14807
  function initializeIcons(baseUrl, options) {
14759
- if (baseUrl === void 0) { baseUrl = DEFAULT_BASE_URL; }
14808
+ if (baseUrl === void 0) { baseUrl = (_c = (_b = (_a = win) === null || _a === void 0 ? void 0 : _a.FabricConfig) === null || _b === void 0 ? void 0 : _b.fontBaseUrl, (_c !== null && _c !== void 0 ? _c : DEFAULT_BASE_URL)); }
14809
+ var _a, _b, _c;
14760
14810
  [
14761
14811
  fabric_icons_1.initializeIcons,
14762
14812
  fabric_icons_0_1.initializeIcons,
@@ -17049,6 +17099,7 @@ exports.getNativeProps = getNativeProps;
17049
17099
 
17050
17100
  Object.defineProperty(exports, "__esModule", { value: true });
17051
17101
  exports.SELECTION_CHANGE = 'change';
17102
+ exports.SELECTION_ITEMS_CHANGE = 'items-change';
17052
17103
  /**
17053
17104
  * {@docCategory Selection}
17054
17105
  */
@@ -18464,11 +18515,15 @@ var _onThemeChangeCallbacks = [];
18464
18515
  exports.ThemeSettingName = 'theme';
18465
18516
  function initializeThemeInCustomizations() {
18466
18517
  var _a;
18467
- var _b, _c;
18468
- if (!utilities_1.Customizations.getSettings([exports.ThemeSettingName]).theme) {
18469
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
18470
- var win = utilities_1.getWindow();
18471
- if ((_c = (_b = win) === null || _b === void 0 ? void 0 : _b.FabricConfig) === null || _c === void 0 ? void 0 : _c.theme) {
18518
+ var _b, _c, _d, _e;
18519
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
18520
+ var win = utilities_1.getWindow();
18521
+ if ((_c = (_b = win) === null || _b === void 0 ? void 0 : _b.FabricConfig) === null || _c === void 0 ? void 0 : _c.legacyTheme) {
18522
+ // does everything the `else` clause does and more, such as invoke legacy theming
18523
+ loadTheme(win.FabricConfig.legacyTheme);
18524
+ }
18525
+ else if (!utilities_1.Customizations.getSettings([exports.ThemeSettingName]).theme) {
18526
+ if ((_e = (_d = win) === null || _d === void 0 ? void 0 : _d.FabricConfig) === null || _e === void 0 ? void 0 : _e.theme) {
18472
18527
  _theme = createTheme_1.createTheme(win.FabricConfig.theme);
18473
18528
  }
18474
18529
  // Set the default theme.
@@ -18923,33 +18978,37 @@ var LayerBase = /** @class */ (function (_super) {
18923
18978
  var _this = _super.call(this, props) || this;
18924
18979
  _this._rootRef = React.createRef();
18925
18980
  _this._createLayerElement = function () {
18981
+ var _a, _b;
18926
18982
  var hostId = _this.props.hostId;
18927
18983
  var doc = Utilities_1.getDocument(_this._rootRef.current);
18928
18984
  var host = _this._getHost();
18929
- if (!doc || !host) {
18985
+ if (!host) {
18930
18986
  return;
18931
18987
  }
18932
18988
  // If one was already existing, remove.
18933
18989
  _this._removeLayerElement();
18934
- var layerElement = doc.createElement('div');
18935
- var classNames = _this._getClassNames();
18936
- layerElement.className = classNames.root;
18937
- Utilities_1.setPortalAttribute(layerElement);
18938
- Utilities_1.setVirtualParent(layerElement, _this._rootRef.current);
18939
- _this.props.insertFirst ? host.insertBefore(layerElement, host.firstChild) : host.appendChild(layerElement);
18940
- _this.setState({
18941
- hostId: hostId,
18942
- layerElement: layerElement,
18943
- }, function () {
18944
- // eslint-disable-next-line deprecation/deprecation
18945
- var _a = _this.props, onLayerDidMount = _a.onLayerDidMount, onLayerMounted = _a.onLayerMounted;
18946
- if (onLayerMounted) {
18947
- onLayerMounted();
18948
- }
18949
- if (onLayerDidMount) {
18950
- onLayerDidMount();
18951
- }
18952
- });
18990
+ // eslint-disable-next-line deprecation/deprecation
18991
+ var layerElement = (_b = (_a = host.ownerDocument, (_a !== null && _a !== void 0 ? _a : doc))) === null || _b === void 0 ? void 0 : _b.createElement('div');
18992
+ if (layerElement) {
18993
+ var classNames = _this._getClassNames();
18994
+ layerElement.className = classNames.root;
18995
+ Utilities_1.setPortalAttribute(layerElement);
18996
+ Utilities_1.setVirtualParent(layerElement, _this._rootRef.current);
18997
+ _this.props.insertFirst ? host.insertBefore(layerElement, host.firstChild) : host.appendChild(layerElement);
18998
+ _this.setState({
18999
+ hostId: hostId,
19000
+ layerElement: layerElement,
19001
+ }, function () {
19002
+ // eslint-disable-next-line deprecation/deprecation
19003
+ var _a = _this.props, onLayerDidMount = _a.onLayerDidMount, onLayerMounted = _a.onLayerMounted;
19004
+ if (onLayerMounted) {
19005
+ onLayerMounted();
19006
+ }
19007
+ if (onLayerDidMount) {
19008
+ onLayerDidMount();
19009
+ }
19010
+ });
19011
+ }
18953
19012
  };
18954
19013
  _this.state = {};
18955
19014
  if (true) {
@@ -19011,17 +19070,19 @@ var LayerBase = /** @class */ (function (_super) {
19011
19070
  return classNames;
19012
19071
  };
19013
19072
  LayerBase.prototype._getHost = function () {
19073
+ var _a, _b, _c, _d, _e, _f;
19014
19074
  var hostId = this.props.hostId;
19015
19075
  var doc = Utilities_1.getDocument(this._rootRef.current);
19016
- if (!doc) {
19017
- return undefined;
19018
- }
19019
19076
  if (hostId) {
19020
- return doc.getElementById(hostId);
19077
+ var layerHost = Layer_notification_1.getLayerHost(hostId);
19078
+ if (layerHost) {
19079
+ return _a = layerHost.rootRef.current, (_a !== null && _a !== void 0 ? _a : null);
19080
+ }
19081
+ return _c = (_b = doc) === null || _b === void 0 ? void 0 : _b.getElementById(hostId), (_c !== null && _c !== void 0 ? _c : null);
19021
19082
  }
19022
19083
  else {
19023
19084
  var defaultHostSelector = Layer_notification_1.getDefaultTarget();
19024
- return defaultHostSelector ? doc.querySelector(defaultHostSelector) : doc.body;
19085
+ return _f = (defaultHostSelector ? (_d = doc) === null || _d === void 0 ? void 0 : _d.querySelector(defaultHostSelector) : (_e = doc) === null || _e === void 0 ? void 0 : _e.body), (_f !== null && _f !== void 0 ? _f : null);
19025
19086
  }
19026
19087
  };
19027
19088
  LayerBase.defaultProps = {
@@ -19189,6 +19250,7 @@ exports.FabricBase = FabricBase;
19189
19250
 
19190
19251
  Object.defineProperty(exports, "__esModule", { value: true });
19191
19252
  var _layersByHostId = {};
19253
+ var _layerHostsById = {};
19192
19254
  var _defaultHostSelector;
19193
19255
  /**
19194
19256
  * Register a layer for a given host id
@@ -19200,6 +19262,13 @@ function registerLayer(hostId, callback) {
19200
19262
  _layersByHostId[hostId] = [];
19201
19263
  }
19202
19264
  _layersByHostId[hostId].push(callback);
19265
+ var layerHosts = _layerHostsById[hostId];
19266
+ if (layerHosts) {
19267
+ for (var _i = 0, layerHosts_1 = layerHosts; _i < layerHosts_1.length; _i++) {
19268
+ var layerHost = layerHosts_1[_i];
19269
+ layerHost.notifyLayersChanged();
19270
+ }
19271
+ }
19203
19272
  }
19204
19273
  exports.registerLayer = registerLayer;
19205
19274
  /**
@@ -19208,17 +19277,77 @@ exports.registerLayer = registerLayer;
19208
19277
  * @param layer Layer instance
19209
19278
  */
19210
19279
  function unregisterLayer(hostId, callback) {
19211
- if (_layersByHostId[hostId]) {
19212
- var idx = _layersByHostId[hostId].indexOf(callback);
19280
+ var layers = _layersByHostId[hostId];
19281
+ if (layers) {
19282
+ var idx = layers.indexOf(callback);
19213
19283
  if (idx >= 0) {
19214
- _layersByHostId[hostId].splice(idx, 1);
19215
- if (_layersByHostId[hostId].length === 0) {
19284
+ layers.splice(idx, 1);
19285
+ if (layers.length === 0) {
19216
19286
  delete _layersByHostId[hostId];
19217
19287
  }
19218
19288
  }
19219
19289
  }
19290
+ var layerHosts = _layerHostsById[hostId];
19291
+ if (layerHosts) {
19292
+ for (var _i = 0, layerHosts_2 = layerHosts; _i < layerHosts_2.length; _i++) {
19293
+ var layerHost = layerHosts_2[_i];
19294
+ layerHost.notifyLayersChanged();
19295
+ }
19296
+ }
19220
19297
  }
19221
19298
  exports.unregisterLayer = unregisterLayer;
19299
+ /**
19300
+ * Gets the number of layers currently registered with a host id.
19301
+ * @param hostId Id of the layer host.
19302
+ * @returns The number of layers currently registered with the host.
19303
+ */
19304
+ function getLayerCount(hostId) {
19305
+ var layers = _layerHostsById[hostId];
19306
+ return layers ? layers.length : 0;
19307
+ }
19308
+ exports.getLayerCount = getLayerCount;
19309
+ /**
19310
+ * Gets the Layer Host instance associated with a hostId, if applicable.
19311
+ * @param hostId
19312
+ * @returns A component ref for the associated layer host.
19313
+ */
19314
+ function getLayerHost(hostId) {
19315
+ var layerHosts = _layerHostsById[hostId];
19316
+ return (layerHosts && layerHosts[0]) || undefined;
19317
+ }
19318
+ exports.getLayerHost = getLayerHost;
19319
+ /**
19320
+ * Registers a Layer Host with an associated hostId.
19321
+ * @param hostId Id of the layer host
19322
+ * @param layerHost layer host instance
19323
+ */
19324
+ function registerLayerHost(hostId, layerHost) {
19325
+ var layerHosts = _layerHostsById[hostId] || (_layerHostsById[hostId] = []);
19326
+ // Insert this at the start of an array to avoid race conditions between mount and unmount.
19327
+ // If a LayerHost is re-mounted, and mount of the new instance may occur before the unmount of the old one.
19328
+ // Putting the new instance at the start of this array ensures that calls to `getLayerHost` will immediately
19329
+ // get the new one even if the old one is around briefly.
19330
+ layerHosts.unshift(layerHost);
19331
+ }
19332
+ exports.registerLayerHost = registerLayerHost;
19333
+ /**
19334
+ * Unregisters a Layer Host from the associated hostId.
19335
+ * @param hostId Id of the layer host
19336
+ * @param layerHost layer host instance
19337
+ */
19338
+ function unregisterLayerHost(hostId, layerHost) {
19339
+ var layerHosts = _layerHostsById[hostId];
19340
+ if (layerHosts) {
19341
+ var idx = layerHosts.indexOf(layerHost);
19342
+ if (idx >= 0) {
19343
+ layerHosts.splice(idx, 1);
19344
+ }
19345
+ if (layerHosts.length === 0) {
19346
+ delete _layerHostsById[hostId];
19347
+ }
19348
+ }
19349
+ }
19350
+ exports.unregisterLayerHost = unregisterLayerHost;
19222
19351
  /**
19223
19352
  * Used for notifying applicable Layers that a host is available/unavailable and to re-evaluate Layers that
19224
19353
  * care about the specific host.
@@ -19295,8 +19424,26 @@ var Styling_1 = __webpack_require__(4);
19295
19424
  var ContextualMenu_classNames_1 = __webpack_require__(249);
19296
19425
  var getClassNames = Utilities_1.classNamesFunction();
19297
19426
  var getContextualMenuItemClassNames = Utilities_1.classNamesFunction();
19298
- function getSubmenuItems(item) {
19299
- return item.subMenuProps ? item.subMenuProps.items : item.items;
19427
+ function getSubmenuItems(item, options) {
19428
+ var _a;
19429
+ var target = (_a = options) === null || _a === void 0 ? void 0 : _a.target;
19430
+ // eslint-disable-next-line deprecation/deprecation
19431
+ var items = item.subMenuProps ? item.subMenuProps.items : item.items;
19432
+ if (items) {
19433
+ var overrideItems = [];
19434
+ for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
19435
+ var subItem = items_1[_i];
19436
+ if (subItem.preferMenuTargetAsEventTarget) {
19437
+ // For sub-items which need an overridden target, intercept `onClick`
19438
+ var onClick = subItem.onClick, contextItem = tslib_1.__rest(subItem, ["onClick"]);
19439
+ overrideItems.push(tslib_1.__assign(tslib_1.__assign({}, contextItem), { onClick: getOnClickWithOverrideTarget(onClick, target) }));
19440
+ }
19441
+ else {
19442
+ overrideItems.push(subItem);
19443
+ }
19444
+ }
19445
+ return overrideItems;
19446
+ }
19300
19447
  }
19301
19448
  exports.getSubmenuItems = getSubmenuItems;
19302
19449
  /**
@@ -19599,7 +19746,8 @@ var ContextualMenuBase = /** @class */ (function (_super) {
19599
19746
  _this._onItemClickBase(item, ev, ev.currentTarget);
19600
19747
  };
19601
19748
  _this._onItemClickBase = function (item, ev, target) {
19602
- var items = getSubmenuItems(item);
19749
+ var menuTarget = _this.props.target;
19750
+ var items = getSubmenuItems(item, { target: menuTarget });
19603
19751
  // Cancel a async menu item hover timeout action from being taken and instead
19604
19752
  // just trigger the click event instead.
19605
19753
  _this._cancelSubMenuTimer();
@@ -19630,9 +19778,13 @@ var ContextualMenuBase = /** @class */ (function (_super) {
19630
19778
  ev.stopPropagation();
19631
19779
  };
19632
19780
  _this._executeItemClick = function (item, ev) {
19781
+ var menuTarget = _this.props.target;
19633
19782
  if (item.disabled || item.isDisabled) {
19634
19783
  return;
19635
19784
  }
19785
+ if (item.preferMenuTargetAsEventTarget) {
19786
+ overrideTarget(ev, menuTarget);
19787
+ }
19636
19788
  var dismiss = false;
19637
19789
  if (item.onClick) {
19638
19790
  dismiss = !!item.onClick(ev, item);
@@ -19829,8 +19981,8 @@ var ContextualMenuBase = /** @class */ (function (_super) {
19829
19981
  // The menu should only return if items were provided, if no items were provided then it should not appear.
19830
19982
  if (items && items.length > 0) {
19831
19983
  var totalItemCount = 0;
19832
- for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
19833
- var item = items_1[_i];
19984
+ for (var _i = 0, items_2 = items; _i < items_2.length; _i++) {
19985
+ var item = items_2[_i];
19834
19986
  if (item.itemType !== ContextualMenu_types_1.ContextualMenuItemType.Divider && item.itemType !== ContextualMenu_types_1.ContextualMenuItemType.Header) {
19835
19987
  var itemCount = item.customOnRenderListLength ? item.customOnRenderListLength : 1;
19836
19988
  totalItemCount += itemCount;
@@ -20074,9 +20226,10 @@ var ContextualMenuBase = /** @class */ (function (_super) {
20074
20226
  var _a = this.state, submenuTarget = _a.submenuTarget, expandedMenuItemKey = _a.expandedMenuItemKey;
20075
20227
  var item = this._findItemByKey(expandedMenuItemKey);
20076
20228
  var submenuProps = null;
20229
+ var menuTarget = this.props.target;
20077
20230
  if (item) {
20078
20231
  submenuProps = {
20079
- items: getSubmenuItems(item),
20232
+ items: getSubmenuItems(item, { target: menuTarget }),
20080
20233
  target: submenuTarget,
20081
20234
  onDismiss: this._onSubMenuDismiss,
20082
20235
  isSubMenu: true,
@@ -20091,6 +20244,10 @@ var ContextualMenuBase = /** @class */ (function (_super) {
20091
20244
  if (item.subMenuProps) {
20092
20245
  Utilities_1.assign(submenuProps, item.subMenuProps);
20093
20246
  }
20247
+ if (item.preferMenuTargetAsEventTarget) {
20248
+ var onItemClick = item.onItemClick;
20249
+ submenuProps.onItemClick = getOnClickWithOverrideTarget(onItemClick, menuTarget);
20250
+ }
20094
20251
  }
20095
20252
  return submenuProps;
20096
20253
  };
@@ -20104,8 +20261,8 @@ var ContextualMenuBase = /** @class */ (function (_super) {
20104
20261
  * @param items - The items to look for the key
20105
20262
  */
20106
20263
  ContextualMenuBase.prototype._findItemByKeyFromItems = function (key, items) {
20107
- for (var _i = 0, items_2 = items; _i < items_2.length; _i++) {
20108
- var item = items_2[_i];
20264
+ for (var _i = 0, items_3 = items; _i < items_3.length; _i++) {
20265
+ var item = items_3[_i];
20109
20266
  if (item.itemType === ContextualMenu_types_1.ContextualMenuItemType.Section && item.sectionProps) {
20110
20267
  var match = this._findItemByKeyFromItems(key, item.sectionProps.items);
20111
20268
  if (match) {
@@ -20166,6 +20323,25 @@ var ContextualMenuBase = /** @class */ (function (_super) {
20166
20323
  return ContextualMenuBase;
20167
20324
  }(React.Component));
20168
20325
  exports.ContextualMenuBase = ContextualMenuBase;
20326
+ function getOnClickWithOverrideTarget(onClick, target) {
20327
+ return onClick
20328
+ ? function (ev, item) {
20329
+ overrideTarget(ev, target);
20330
+ return onClick(ev, item);
20331
+ }
20332
+ : onClick;
20333
+ }
20334
+ function overrideTarget(ev, target) {
20335
+ if (ev && target) {
20336
+ ev.persist();
20337
+ if (target instanceof Event) {
20338
+ ev.target = target.target;
20339
+ }
20340
+ else if (target instanceof Element) {
20341
+ ev.target = target;
20342
+ }
20343
+ }
20344
+ }
20169
20345
 
20170
20346
 
20171
20347
  /***/ }),
@@ -22023,7 +22199,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22023
22199
  var theme_1 = __webpack_require__(80);
22024
22200
  var AzureColors_1 = __webpack_require__(86);
22025
22201
  var AzureType_1 = __webpack_require__(115);
22026
- var StyleConstants = __webpack_require__(31);
22202
+ var StyleConstants = __webpack_require__(30);
22027
22203
  var AzureStyleSettings_1 = __webpack_require__(193);
22028
22204
  var darkExtendedSemanticColors = {
22029
22205
  bodyBackground: AzureColors_1.DarkSemanticColors.background,
@@ -22132,6 +22308,12 @@ var darkExtendedSemanticColors = {
22132
22308
  iconButtonFill: AzureColors_1.DarkSemanticColors.primaryButton.rest.background,
22133
22309
  iconButtonFillHovered: AzureColors_1.DarkSemanticColors.primaryButton.hover.background,
22134
22310
  labelText: AzureColors_1.DarkSemanticColors.text.label,
22311
+ sliderActiveBackground: AzureColors_1.DarkSemanticColors.slider.activeBackground,
22312
+ sliderInActiveHover: AzureColors_1.DarkSemanticColors.slider.inactiveBackgroundHovered,
22313
+ sliderActiveHover: AzureColors_1.DarkSemanticColors.slider.activeBackgroundHovered,
22314
+ sliderActivePressed: AzureColors_1.DarkSemanticColors.slider.activeBackgroundPressed,
22315
+ sliderDisabledActiveBackground: AzureColors_1.DarkSemanticColors.slider.activeDisabledBackground,
22316
+ sliderDisabledInActiveBackground: AzureColors_1.DarkSemanticColors.slider.inactiveDisabledBackground,
22135
22317
  statusDefaultBackground: AzureColors_1.DarkSemanticColors.statusBar.background.default,
22136
22318
  statusDefaultBorder: AzureColors_1.DarkSemanticColors.statusBar.border.default,
22137
22319
  statusErrorBackground: AzureColors_1.DarkSemanticColors.statusBar.background.error,
@@ -22864,7 +23046,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22864
23046
  var theme_1 = __webpack_require__(80);
22865
23047
  var AzureColors_1 = __webpack_require__(86);
22866
23048
  var AzureType_1 = __webpack_require__(115);
22867
- var StyleConstants = __webpack_require__(31);
23049
+ var StyleConstants = __webpack_require__(30);
22868
23050
  var AzureStyleSettings_1 = __webpack_require__(193);
22869
23051
  var lightExtendedSemanticColors = {
22870
23052
  bodyBackground: AzureColors_1.LightSemanticColors.background,
@@ -22973,6 +23155,12 @@ var lightExtendedSemanticColors = {
22973
23155
  iconButtonFill: AzureColors_1.LightSemanticColors.primaryButton.rest.background,
22974
23156
  iconButtonFillHovered: AzureColors_1.LightSemanticColors.primaryButton.hover.background,
22975
23157
  labelText: AzureColors_1.LightSemanticColors.text.label,
23158
+ sliderActiveBackground: AzureColors_1.LightSemanticColors.slider.activeBackground,
23159
+ sliderInActiveHover: AzureColors_1.LightSemanticColors.slider.inactiveBackgroundHovered,
23160
+ sliderActiveHover: AzureColors_1.LightSemanticColors.slider.activeBackgroundHovered,
23161
+ sliderActivePressed: AzureColors_1.LightSemanticColors.slider.activeBackgroundPressed,
23162
+ sliderDisabledActiveBackground: AzureColors_1.LightSemanticColors.slider.activeDisabledBackground,
23163
+ sliderDisabledInActiveBackground: AzureColors_1.LightSemanticColors.slider.inactiveDisabledBackground,
22976
23164
  statusDefaultBackground: AzureColors_1.LightSemanticColors.statusBar.background.default,
22977
23165
  statusDefaultBorder: AzureColors_1.LightSemanticColors.statusBar.border.default,
22978
23166
  statusErrorBackground: AzureColors_1.LightSemanticColors.statusBar.background.error,
@@ -23040,7 +23228,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
23040
23228
  var theme_1 = __webpack_require__(80);
23041
23229
  var AzureColors_1 = __webpack_require__(86);
23042
23230
  var AzureType_1 = __webpack_require__(115);
23043
- var StyleConstants = __webpack_require__(31);
23231
+ var StyleConstants = __webpack_require__(30);
23044
23232
  var AzureStyleSettings_1 = __webpack_require__(193);
23045
23233
  var highContrastLightExtendedSemanticColors = {
23046
23234
  bodyBackground: AzureColors_1.HighContrastLightSemanticColors.background,
@@ -23150,6 +23338,12 @@ var highContrastLightExtendedSemanticColors = {
23150
23338
  iconButtonFill: AzureColors_1.HighContrastLightSemanticColors.text.icon,
23151
23339
  iconButtonFillHovered: AzureColors_1.HighContrastLightSemanticColors.primaryButton.hover.text,
23152
23340
  labelText: AzureColors_1.HighContrastLightSemanticColors.text.label,
23341
+ sliderActiveBackground: AzureColors_1.HighContrastLightSemanticColors.slider.activeBackground,
23342
+ sliderInActiveHover: AzureColors_1.HighContrastLightSemanticColors.slider.inactiveBackgroundHovered,
23343
+ sliderActiveHover: AzureColors_1.HighContrastLightSemanticColors.slider.activeBackgroundHovered,
23344
+ sliderActivePressed: AzureColors_1.HighContrastLightSemanticColors.slider.activeBackgroundPressed,
23345
+ sliderDisabledActiveBackground: AzureColors_1.HighContrastLightSemanticColors.slider.activeDisabledBackground,
23346
+ sliderDisabledInActiveBackground: AzureColors_1.HighContrastLightSemanticColors.slider.inactiveDisabledBackground,
23153
23347
  statusDefaultBackground: AzureColors_1.HighContrastLightSemanticColors.statusBar.background.default,
23154
23348
  statusDefaultBorder: AzureColors_1.HighContrastLightSemanticColors.statusBar.border.default,
23155
23349
  statusErrorBackground: AzureColors_1.HighContrastLightSemanticColors.statusBar.background.error,
@@ -23217,7 +23411,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
23217
23411
  var theme_1 = __webpack_require__(80);
23218
23412
  var AzureColors_1 = __webpack_require__(86);
23219
23413
  var AzureType_1 = __webpack_require__(115);
23220
- var StyleConstants = __webpack_require__(31);
23414
+ var StyleConstants = __webpack_require__(30);
23221
23415
  var AzureStyleSettings_1 = __webpack_require__(193);
23222
23416
  var highContrastDarkExtendedSemanticColors = {
23223
23417
  bodyBackground: AzureColors_1.HighContrastDarkSemanticColors.background,
@@ -23326,6 +23520,12 @@ var highContrastDarkExtendedSemanticColors = {
23326
23520
  iconButtonFill: AzureColors_1.HighContrastDarkSemanticColors.text.icon,
23327
23521
  iconButtonFillHovered: AzureColors_1.HighContrastDarkSemanticColors.primaryButton.hover.text,
23328
23522
  labelText: AzureColors_1.HighContrastDarkSemanticColors.text.label,
23523
+ sliderActiveBackground: AzureColors_1.HighContrastDarkSemanticColors.slider.activeBackground,
23524
+ sliderInActiveHover: AzureColors_1.HighContrastDarkSemanticColors.slider.inactiveBackgroundHovered,
23525
+ sliderActiveHover: AzureColors_1.HighContrastDarkSemanticColors.slider.activeBackgroundHovered,
23526
+ sliderActivePressed: AzureColors_1.HighContrastDarkSemanticColors.slider.activeBackgroundPressed,
23527
+ sliderDisabledActiveBackground: AzureColors_1.HighContrastDarkSemanticColors.slider.activeDisabledBackground,
23528
+ sliderDisabledInActiveBackground: AzureColors_1.HighContrastDarkSemanticColors.slider.inactiveDisabledBackground,
23329
23529
  statusDefaultBackground: AzureColors_1.HighContrastDarkSemanticColors.statusBar.background.default,
23330
23530
  statusDefaultBorder: AzureColors_1.HighContrastDarkSemanticColors.statusBar.border.default,
23331
23531
  statusErrorBackground: AzureColors_1.HighContrastDarkSemanticColors.statusBar.background.error,
@@ -23679,7 +23879,6 @@ var TooltipHostBase = /** @class */ (function (_super) {
23679
23879
  _this._clearDismissTimer();
23680
23880
  _this._clearOpenTimer();
23681
23881
  if (delay !== Tooltip_types_1.TooltipDelay.zero) {
23682
- _this.setState({ isAriaPlaceholderRendered: true });
23683
23882
  var delayTime = _this._getDelayTime(delay); // non-null assertion because we set it in `defaultProps`
23684
23883
  _this._openTimerId = _this._async.setTimeout(function () {
23685
23884
  _this._toggleTooltip(true);
@@ -23726,7 +23925,7 @@ var TooltipHostBase = /** @class */ (function (_super) {
23726
23925
  };
23727
23926
  _this._toggleTooltip = function (isTooltipVisible) {
23728
23927
  if (_this.state.isTooltipVisible !== isTooltipVisible) {
23729
- _this.setState({ isAriaPlaceholderRendered: false, isTooltipVisible: isTooltipVisible }, function () { return _this.props.onTooltipToggle && _this.props.onTooltipToggle(isTooltipVisible); });
23928
+ _this.setState({ isTooltipVisible: isTooltipVisible }, function () { return _this.props.onTooltipToggle && _this.props.onTooltipToggle(isTooltipVisible); });
23730
23929
  }
23731
23930
  };
23732
23931
  _this._getDelayTime = function (delay) {
@@ -23754,7 +23953,7 @@ var TooltipHostBase = /** @class */ (function (_super) {
23754
23953
  theme: theme,
23755
23954
  className: className,
23756
23955
  });
23757
- var _c = this.state, isAriaPlaceholderRendered = _c.isAriaPlaceholderRendered, isTooltipVisible = _c.isTooltipVisible;
23956
+ var isTooltipVisible = this.state.isTooltipVisible;
23758
23957
  var tooltipId = id || this._defaultTooltipId;
23759
23958
  var isContentPresent = !!(content ||
23760
23959
  (tooltipProps && tooltipProps.onRenderContent && tooltipProps.onRenderContent()));
@@ -23762,12 +23961,12 @@ var TooltipHostBase = /** @class */ (function (_super) {
23762
23961
  var ariaDescribedBy = setAriaDescribedBy && isTooltipVisible && isContentPresent ? tooltipId : undefined;
23763
23962
  return (React.createElement("div", tslib_1.__assign({ className: this._classNames.root, ref: this._tooltipHost }, { onFocusCapture: this._onTooltipMouseEnter }, { onBlurCapture: this._hideTooltip }, { onMouseEnter: this._onTooltipMouseEnter, onMouseLeave: this._onTooltipMouseLeave, onKeyDown: this._onTooltipKeyDown, "aria-describedby": ariaDescribedBy }),
23764
23963
  children,
23765
- showTooltip && (React.createElement(Tooltip_1.Tooltip, tslib_1.__assign({ id: tooltipId, content: content, targetElement: this._getTargetElement(), directionalHint: directionalHint, directionalHintForRTL: directionalHintForRTL, calloutProps: Utilities_1.assign({}, calloutProps, {
23964
+ showTooltip && (React.createElement(Tooltip_1.Tooltip, tslib_1.__assign({ id: tooltipId + "--tooltip", content: content, targetElement: this._getTargetElement(), directionalHint: directionalHint, directionalHintForRTL: directionalHintForRTL, calloutProps: Utilities_1.assign({}, calloutProps, {
23766
23965
  onDismiss: this._hideTooltip,
23767
23966
  onMouseEnter: this._onTooltipMouseEnter,
23768
23967
  onMouseLeave: this._onTooltipMouseLeave,
23769
- }), onMouseEnter: this._onTooltipMouseEnter, onMouseLeave: this._onTooltipMouseLeave }, Utilities_1.getNativeProps(this.props, Utilities_1.divProperties), tooltipProps))),
23770
- isAriaPlaceholderRendered && (React.createElement("div", { id: tooltipId, style: Styling_1.hiddenContentStyle }, content))));
23968
+ }), onMouseEnter: this._onTooltipMouseEnter, onMouseLeave: this._onTooltipMouseLeave }, Utilities_1.getNativeProps(this.props, Utilities_1.divProperties, ['id']), tooltipProps))),
23969
+ React.createElement("div", { hidden: true, id: tooltipId, style: Styling_1.hiddenContentStyle }, content)));
23771
23970
  };
23772
23971
  TooltipHostBase.prototype.componentWillUnmount = function () {
23773
23972
  if (TooltipHostBase._currentVisibleTooltip && TooltipHostBase._currentVisibleTooltip === this) {
@@ -24600,6 +24799,7 @@ var Button_1 = __webpack_require__(44);
24600
24799
  var DirectionalHint_1 = __webpack_require__(53);
24601
24800
  var ResizeGroup_1 = __webpack_require__(379);
24602
24801
  var Tooltip_1 = __webpack_require__(256);
24802
+ var Utilities_2 = __webpack_require__(3);
24603
24803
  var getClassNames = Utilities_1.classNamesFunction();
24604
24804
  var OVERFLOW_KEY = 'overflow';
24605
24805
  var nullFunction = function () { return null; };
@@ -24657,7 +24857,7 @@ var BreadcrumbBase = /** @class */ (function (_super) {
24657
24857
  return tslib_1.__assign(tslib_1.__assign({}, data), { renderedItems: renderedItems, renderedOverflowItems: renderedOverflowItems });
24658
24858
  };
24659
24859
  _this._onRenderBreadcrumb = function (data) {
24660
- var _a = data.props, ariaLabel = _a.ariaLabel, _b = _a.dividerAs, DividerType = _b === void 0 ? Icon_1.Icon : _b, _c = _a.onRenderItem, onRenderItem = _c === void 0 ? _this._onRenderItem : _c, overflowAriaLabel = _a.overflowAriaLabel, overflowIndex = _a.overflowIndex, onRenderOverflowIcon = _a.onRenderOverflowIcon, overflowButtonAs = _a.overflowButtonAs;
24860
+ var _a = data.props, ariaLabel = _a.ariaLabel, _b = _a.dividerAs, DividerType = _b === void 0 ? Icon_1.Icon : _b, onRenderItem = _a.onRenderItem, overflowAriaLabel = _a.overflowAriaLabel, overflowIndex = _a.overflowIndex, onRenderOverflowIcon = _a.onRenderOverflowIcon, overflowButtonAs = _a.overflowButtonAs;
24661
24861
  var renderedOverflowItems = data.renderedOverflowItems, renderedItems = data.renderedItems;
24662
24862
  var contextualItems = renderedOverflowItems.map(function (item) {
24663
24863
  var isActionable = !!(item.onClick || item.href);
@@ -24675,9 +24875,18 @@ var BreadcrumbBase = /** @class */ (function (_super) {
24675
24875
  // knows not to render on that item
24676
24876
  var lastItemIndex = renderedItems.length - 1;
24677
24877
  var hasOverflowItems = renderedOverflowItems && renderedOverflowItems.length !== 0;
24678
- var itemElements = renderedItems.map(function (item, index) { return (React.createElement("li", { className: _this._classNames.listItem, key: item.key || String(index) },
24679
- onRenderItem(item, _this._onRenderItem),
24680
- (index !== lastItemIndex || (hasOverflowItems && index === overflowIndex - 1)) && (React.createElement(DividerType, { className: _this._classNames.chevron, iconName: Utilities_1.getRTL(_this.props.theme) ? 'ChevronLeft' : 'ChevronRight', item: item })))); });
24878
+ var itemElements = renderedItems.map(function (item, index) {
24879
+ var finalOnRenderItem = _this._onRenderItem;
24880
+ if (item.onRender) {
24881
+ finalOnRenderItem = Utilities_2.composeRenderFunction(item.onRender, finalOnRenderItem);
24882
+ }
24883
+ if (onRenderItem) {
24884
+ finalOnRenderItem = Utilities_2.composeRenderFunction(onRenderItem, finalOnRenderItem);
24885
+ }
24886
+ return (React.createElement("li", { className: _this._classNames.listItem, key: item.key || String(index) },
24887
+ finalOnRenderItem(item),
24888
+ (index !== lastItemIndex || (hasOverflowItems && index === overflowIndex - 1)) && (React.createElement(DividerType, { className: _this._classNames.chevron, iconName: Utilities_1.getRTL(_this.props.theme) ? 'ChevronLeft' : 'ChevronRight', item: item }))));
24889
+ });
24681
24890
  if (hasOverflowItems) {
24682
24891
  var iconProps = !onRenderOverflowIcon ? { iconName: 'More' } : {};
24683
24892
  var onRenderMenuIcon = onRenderOverflowIcon ? onRenderOverflowIcon : nullFunction;
@@ -24697,17 +24906,27 @@ var BreadcrumbBase = /** @class */ (function (_super) {
24697
24906
  React.createElement("ol", { className: _this._classNames.list }, itemElements))));
24698
24907
  };
24699
24908
  _this._onRenderItem = function (item) {
24700
- var as = item.as, href = item.href, onClick = item.onClick, isCurrentItem = item.isCurrentItem, text = item.text, additionalProps = tslib_1.__rest(item, ["as", "href", "onClick", "isCurrentItem", "text"]);
24909
+ if (!item) {
24910
+ return null;
24911
+ }
24912
+ var as = item.as, href = item.href, onClick = item.onClick, isCurrentItem = item.isCurrentItem, text = item.text, onRenderContent = item.onRenderContent, additionalProps = tslib_1.__rest(item, ["as", "href", "onClick", "isCurrentItem", "text", "onRenderContent"]);
24913
+ var finalOnRenderContent = defaultOnRenderCrumbContent;
24914
+ if (onRenderContent) {
24915
+ finalOnRenderContent = Utilities_2.composeRenderFunction(onRenderContent, finalOnRenderContent);
24916
+ }
24917
+ if (_this.props.onRenderItemContent) {
24918
+ finalOnRenderContent = Utilities_2.composeRenderFunction(_this.props.onRenderItemContent, finalOnRenderContent);
24919
+ }
24701
24920
  if (onClick || href) {
24702
24921
  return (React.createElement(Link_1.Link, tslib_1.__assign({}, additionalProps, { as: as, className: _this._classNames.itemLink, href: href, "aria-current": isCurrentItem ? 'page' : undefined,
24703
24922
  // eslint-disable-next-line react/jsx-no-bind
24704
24923
  onClick: _this._onBreadcrumbClicked.bind(_this, item) }),
24705
- React.createElement(Tooltip_1.TooltipHost, tslib_1.__assign({ content: text, overflowMode: Tooltip_1.TooltipOverflowMode.Parent }, _this.props.tooltipHostProps), text)));
24924
+ React.createElement(Tooltip_1.TooltipHost, tslib_1.__assign({ content: text, overflowMode: Tooltip_1.TooltipOverflowMode.Parent }, _this.props.tooltipHostProps), finalOnRenderContent(item))));
24706
24925
  }
24707
24926
  else {
24708
24927
  var Tag = as || 'span';
24709
24928
  return (React.createElement(Tag, tslib_1.__assign({}, additionalProps, { className: _this._classNames.item }),
24710
- React.createElement(Tooltip_1.TooltipHost, tslib_1.__assign({ content: text, overflowMode: Tooltip_1.TooltipOverflowMode.Parent }, _this.props.tooltipHostProps), text)));
24929
+ React.createElement(Tooltip_1.TooltipHost, tslib_1.__assign({ content: text, overflowMode: Tooltip_1.TooltipOverflowMode.Parent }, _this.props.tooltipHostProps), finalOnRenderContent(item))));
24711
24930
  }
24712
24931
  };
24713
24932
  _this._onBreadcrumbClicked = function (item, ev) {
@@ -24763,6 +24982,9 @@ var BreadcrumbBase = /** @class */ (function (_super) {
24763
24982
  return BreadcrumbBase;
24764
24983
  }(React.Component));
24765
24984
  exports.BreadcrumbBase = BreadcrumbBase;
24985
+ function defaultOnRenderCrumbContent(item) {
24986
+ return item ? React.createElement(React.Fragment, null, item.text) : null;
24987
+ }
24766
24988
 
24767
24989
 
24768
24990
  /***/ }),
@@ -27810,14 +28032,12 @@ var TextFieldBase = /** @class */ (function (_super) {
27810
28032
  return (React.createElement("textarea", tslib_1.__assign({ id: this._id }, textAreaProps, { ref: this._textElement, value: this.value || '', onInput: this._onInputChange, onChange: this._onInputChange, className: this._classNames.field, "aria-labelledby": ariaLabelledBy, "aria-describedby": this._isDescriptionAvailable ? this._descriptionId : this.props['aria-describedby'], "aria-invalid": !!this._errorMessage, "aria-label": this.props.ariaLabel, readOnly: this.props.readOnly, onFocus: this._onFocus, onBlur: this._onBlur })));
27811
28033
  };
27812
28034
  TextFieldBase.prototype._renderInput = function () {
27813
- var _a;
27814
- var inputProps = Utilities_1.getNativeProps(this.props, Utilities_1.inputProperties, [
27815
- 'defaultValue',
27816
- 'type',
27817
- ]);
27818
- var ariaLabelledBy = this.props['aria-labelledby'] || (this.props.label ? this._labelId : undefined);
27819
- var type = this.state.isRevealingPassword ? 'text' : (_a = this.props.type, (_a !== null && _a !== void 0 ? _a : 'text'));
27820
- return (React.createElement("input", tslib_1.__assign({ type: type, id: this._id, "aria-labelledby": ariaLabelledBy }, inputProps, { ref: this._textElement, value: this.value || '', onInput: this._onInputChange, onChange: this._onInputChange, className: this._classNames.field, "aria-label": this.props.ariaLabel, "aria-describedby": this._isDescriptionAvailable ? this._descriptionId : this.props['aria-describedby'], "aria-invalid": !!this._errorMessage, readOnly: this.props.readOnly, onFocus: this._onFocus, onBlur: this._onBlur })));
28035
+ var inputProps = tslib_1.__assign(tslib_1.__assign({ type: this.state.isRevealingPassword ? 'text' : this.props.type || 'text', id: this._id }, Utilities_1.getNativeProps(this.props, Utilities_1.inputProperties, ['defaultValue', 'type'])), { 'aria-labelledby': this.props['aria-labelledby'] || (this.props.label ? this._labelId : undefined), ref: this._textElement, value: this.value || '', onInput: this._onInputChange, onChange: this._onInputChange, className: this._classNames.field, 'aria-label': this.props.ariaLabel, 'aria-describedby': this._isDescriptionAvailable ? this._descriptionId : this.props['aria-describedby'], 'aria-invalid': !!this._errorMessage, onFocus: this._onFocus, onBlur: this._onBlur });
28036
+ var defaultRender = function (updatedInputProps) {
28037
+ return React.createElement("input", tslib_1.__assign({}, updatedInputProps));
28038
+ };
28039
+ var onRenderInput = this.props.onRenderInput || defaultRender;
28040
+ return onRenderInput(inputProps, defaultRender);
27821
28041
  };
27822
28042
  TextFieldBase.prototype._validate = function (value) {
27823
28043
  var _this = this;
@@ -28143,6 +28363,9 @@ var ComboBox = /** @class */ (function (_super) {
28143
28363
  * {@inheritdoc}
28144
28364
  */
28145
28365
  _this.focus = function (shouldOpenOnFocus, useFocusAsync) {
28366
+ if (_this.props.disabled === true) {
28367
+ return;
28368
+ }
28146
28369
  if (_this._autofill.current) {
28147
28370
  if (useFocusAsync) {
28148
28371
  Utilities_1.focusAsync(_this._autofill.current);
@@ -28412,9 +28635,54 @@ var ComboBox = /** @class */ (function (_super) {
28412
28635
  };
28413
28636
  // Render List of items
28414
28637
  _this._onRenderList = function (props) {
28415
- var onRenderItem = props.onRenderItem, options = props.options, label = props.label, ariaLabel = props.ariaLabel;
28638
+ var _a = props.onRenderItem, onRenderItem = _a === void 0 ? _this._onRenderItem : _a, label = props.label, ariaLabel = props.ariaLabel;
28639
+ var queue = { items: [] };
28640
+ var renderedList = [];
28416
28641
  var id = _this._id;
28417
- return (React.createElement("div", { id: id + '-list', className: _this._classNames.optionsContainer, "aria-labelledby": label && id + '-label', "aria-label": ariaLabel && !label ? ariaLabel : undefined, role: "listbox" }, options.map(function (item) { return onRenderItem(item, _this._onRenderItem); })));
28642
+ var emptyQueue = function () {
28643
+ var newGroup = queue.id
28644
+ ? [
28645
+ React.createElement("div", { role: "group", key: queue.id, "aria-labelledby": queue.id }, queue.items),
28646
+ ]
28647
+ : queue.items;
28648
+ renderedList = tslib_1.__spreadArrays(renderedList, newGroup);
28649
+ // Flush items and id
28650
+ queue = { items: [] };
28651
+ };
28652
+ var placeRenderedOptionIntoQueue = function (item, index) {
28653
+ /*
28654
+ Case Header
28655
+ empty queue if it's not already empty
28656
+ ensure unique ID for header and set queue ID
28657
+ push header into queue
28658
+ Case Divider
28659
+ push divider into queue if not first item
28660
+ empty queue if not already empty
28661
+ Default
28662
+ push item into queue
28663
+ */
28664
+ switch (item.itemType) {
28665
+ case index_2.SelectableOptionMenuItemType.Header:
28666
+ queue.items.length > 0 && emptyQueue();
28667
+ id = id + item.key;
28668
+ queue.items.push(onRenderItem(tslib_1.__assign(tslib_1.__assign({ id: id }, item), { index: index }), _this._onRenderItem));
28669
+ queue.id = id;
28670
+ break;
28671
+ case index_2.SelectableOptionMenuItemType.Divider:
28672
+ index > 0 && queue.items.push(onRenderItem(tslib_1.__assign(tslib_1.__assign({}, item), { index: index }), _this._onRenderItem));
28673
+ queue.items.length > 0 && emptyQueue();
28674
+ break;
28675
+ default:
28676
+ queue.items.push(onRenderItem(tslib_1.__assign(tslib_1.__assign({}, item), { index: index }), _this._onRenderItem));
28677
+ }
28678
+ };
28679
+ // Place options into the queue. Queue will be emptied anytime a Header or Divider is encountered
28680
+ props.options.forEach(function (item, index) {
28681
+ placeRenderedOptionIntoQueue(item, index);
28682
+ });
28683
+ // Push remaining items into all renderedList
28684
+ queue.items.length > 0 && emptyQueue();
28685
+ return (React.createElement("div", { id: id + '-list', className: _this._classNames.optionsContainer, "aria-labelledby": label && id + '-label', "aria-label": ariaLabel && !label ? ariaLabel : undefined, role: "listbox" }, renderedList));
28418
28686
  };
28419
28687
  // Render items
28420
28688
  _this._onRenderItem = function (item) {
@@ -28449,11 +28717,14 @@ var ComboBox = /** @class */ (function (_super) {
28449
28717
  // eslint-disable-next-line react/jsx-no-bind
28450
28718
  onMouseEnter: _this._onOptionMouseEnter.bind(_this, item.index),
28451
28719
  // eslint-disable-next-line react/jsx-no-bind
28452
- onMouseMove: _this._onOptionMouseMove.bind(_this, item.index), onMouseLeave: _this._onOptionMouseLeave, role: "option", "aria-selected": isSelected ? 'true' : 'false', ariaLabel: item.ariaLabel, disabled: item.disabled, title: title }, React.createElement("span", { className: optionClassNames.optionTextWrapper, ref: isSelected ? _this._selectedElement : undefined }, onRenderOption(item, _this._onRenderOptionContent)))) : (React.createElement(Checkbox_1.Checkbox, { id: id + '-list' + item.index, ariaLabel: item.ariaLabel, key: item.key, "data-index": item.index, styles: optionStyles, className: 'ms-ComboBox-option', "data-is-focusable": true, onChange: _this._onItemClick(item), label: item.text, role: "option", checked: isChecked, title: title, disabled: item.disabled,
28720
+ onMouseMove: _this._onOptionMouseMove.bind(_this, item.index), onMouseLeave: _this._onOptionMouseLeave, role: "option", "aria-selected": isChecked ? 'true' : 'false', ariaLabel: item.ariaLabel, disabled: item.disabled, title: title }, React.createElement("span", { className: optionClassNames.optionTextWrapper, ref: isSelected ? _this._selectedElement : undefined }, onRenderOption(item, _this._onRenderOptionContent)))) : (React.createElement(Checkbox_1.Checkbox, { id: id + '-list' + item.index, ariaLabel: item.ariaLabel, key: item.key, styles: optionStyles, className: 'ms-ComboBox-option', onChange: _this._onItemClick(item), label: item.text, checked: isChecked, title: title, disabled: item.disabled,
28453
28721
  // eslint-disable-next-line react/jsx-no-bind
28454
- onRenderLabel: onRenderCheckboxLabel, inputProps: {
28455
- 'aria-selected': isSelected ? 'true' : 'false',
28456
- } }));
28722
+ onRenderLabel: onRenderCheckboxLabel, inputProps: tslib_1.__assign({
28723
+ // aria-selected should only be applied to checked items, not hovered items
28724
+ 'aria-selected': isChecked ? 'true' : 'false', role: 'option' }, {
28725
+ 'data-index': item.index,
28726
+ 'data-is-focusable': true,
28727
+ }) }));
28457
28728
  };
28458
28729
  return (React.createElement(ComboBoxOptionWrapper, { key: item.key, index: item.index, disabled: item.disabled, isSelected: isSelected, isChecked: isChecked, text: item.text,
28459
28730
  // eslint-disable-next-line react/jsx-no-bind
@@ -28912,7 +29183,7 @@ var ComboBox = /** @class */ (function (_super) {
28912
29183
  onRenderContainer(tslib_1.__assign(tslib_1.__assign({}, this.props), { onRenderList: onRenderList,
28913
29184
  onRenderItem: onRenderItem,
28914
29185
  onRenderOption: onRenderOption, options: this.state.currentOptions.map(function (item, index) { return (tslib_1.__assign(tslib_1.__assign({}, item), { index: index })); }), onDismiss: this._onDismiss }), this._onRenderContainer),
28915
- React.createElement("div", { role: "region", "aria-live": "polite", "aria-atomic": "true", id: errorMessageId, className: hasErrorMessage ? this._classNames.errorMessage : '' }, errorMessage !== undefined ? errorMessage : '')));
29186
+ hasErrorMessage && (React.createElement("div", { role: "alert", id: errorMessageId, className: this._classNames.errorMessage }, errorMessage))));
28916
29187
  };
28917
29188
  ComboBox.prototype._getPendingString = function (currentPendingValue, currentOptions, index) {
28918
29189
  return currentPendingValue !== null && currentPendingValue !== undefined
@@ -29308,7 +29579,7 @@ var ComboBox = /** @class */ (function (_super) {
29308
29579
  };
29309
29580
  ComboBox.prototype._renderHeader = function (item) {
29310
29581
  var _a = this.props.onRenderOption, onRenderOption = _a === void 0 ? this._onRenderOptionContent : _a;
29311
- return (React.createElement("div", { key: item.key, className: this._classNames.header }, onRenderOption(item, this._onRenderOptionContent)));
29582
+ return (React.createElement("div", { id: item.id, key: item.key, className: this._classNames.header }, onRenderOption(item, this._onRenderOptionContent)));
29312
29583
  };
29313
29584
  /**
29314
29585
  * If we are coming from a mouseOut:
@@ -30451,6 +30722,17 @@ var DatePickerBase = /** @class */ (function (_super) {
30451
30722
  });
30452
30723
  }
30453
30724
  };
30725
+ _this._renderReadOnlyInput = function (inputProps) {
30726
+ var formattedDate = _this.state.formattedDate;
30727
+ var _a = _this.props, styles = _a.styles, theme = _a.theme, placeholder = _a.placeholder, tabIndex = _a.tabIndex, underlined = _a.underlined;
30728
+ var classNames = getClassNames(styles, { theme: theme, underlined: underlined });
30729
+ var divProps = Utilities_1.getNativeProps(inputProps, Utilities_1.divProperties);
30730
+ // Talkback on Android treats readonly inputs as disabled, so swipe gestures to open the Calendar
30731
+ // don't register. Workaround is rendering a div with role="combobox" (passed in via TextField props).
30732
+ return (React.createElement("div", tslib_1.__assign({}, divProps, { className: Utilities_1.css(divProps.className, classNames.readOnlyTextField), tabIndex: tabIndex || 0 }), formattedDate || (
30733
+ // Putting the placeholder in a separate span fixes specificity issues for the text color
30734
+ React.createElement("span", { className: classNames.readOnlyPlaceholder }, placeholder))));
30735
+ };
30454
30736
  Utilities_1.initializeComponentRef(_this);
30455
30737
  _this.state = _this._getDefaultState();
30456
30738
  _this._id = props.id || Utilities_1.getId('DatePicker');
@@ -30496,6 +30778,7 @@ var DatePickerBase = /** @class */ (function (_super) {
30496
30778
  theme: theme,
30497
30779
  className: className,
30498
30780
  disabled: disabled,
30781
+ underlined: underlined,
30499
30782
  label: !!label,
30500
30783
  isDatePickerShown: isDatePickerShown,
30501
30784
  });
@@ -30503,9 +30786,10 @@ var DatePickerBase = /** @class */ (function (_super) {
30503
30786
  var nativeProps = Utilities_1.getNativeProps(this.props, Utilities_1.divProperties, ['value']);
30504
30787
  var iconProps = textFieldProps && textFieldProps.iconProps;
30505
30788
  var textFieldId = textFieldProps && textFieldProps.id && textFieldProps.id !== this._id ? textFieldProps.id : this._id + '-label';
30789
+ var readOnly = !allowTextInput && !disabled;
30506
30790
  return (React.createElement("div", tslib_1.__assign({}, nativeProps, { className: classNames.root }),
30507
30791
  React.createElement("div", { ref: this._datePickerDiv, "aria-haspopup": "true", "aria-owns": isDatePickerShown ? calloutId : undefined, className: classNames.wrapper },
30508
- React.createElement(TextField_1.TextField, tslib_1.__assign({ role: "combobox", label: label, "aria-expanded": isDatePickerShown, ariaLabel: ariaLabel, "aria-controls": isDatePickerShown ? calloutId : undefined, required: isRequired, disabled: disabled, errorMessage: this._getErrorMessage(), placeholder: placeholder, borderless: borderless, value: formattedDate, componentRef: this._textField, underlined: underlined, tabIndex: tabIndex, readOnly: !allowTextInput }, textFieldProps, { id: textFieldId, className: Utilities_1.css(classNames.textField, textFieldProps && textFieldProps.className), iconProps: tslib_1.__assign(tslib_1.__assign({ iconName: 'Calendar' }, iconProps), { className: Utilities_1.css(classNames.icon, iconProps && iconProps.className), onClick: this._onIconClick }), onKeyDown: this._onTextFieldKeyDown, onFocus: this._onTextFieldFocus, onBlur: this._onTextFieldBlur, onClick: this._onTextFieldClick, onChange: this._onTextFieldChanged }))),
30792
+ React.createElement(TextField_1.TextField, tslib_1.__assign({ role: "combobox", label: label, "aria-expanded": isDatePickerShown, ariaLabel: ariaLabel, "aria-controls": isDatePickerShown ? calloutId : undefined, required: isRequired, disabled: disabled, errorMessage: this._getErrorMessage(), placeholder: placeholder, borderless: borderless, value: formattedDate, componentRef: this._textField, underlined: underlined, tabIndex: tabIndex, readOnly: !allowTextInput }, textFieldProps, { id: textFieldId, className: Utilities_1.css(classNames.textField, textFieldProps && textFieldProps.className), iconProps: tslib_1.__assign(tslib_1.__assign({ iconName: 'Calendar' }, iconProps), { className: Utilities_1.css(classNames.icon, iconProps && iconProps.className), onClick: this._onIconClick }), onKeyDown: this._onTextFieldKeyDown, onFocus: this._onTextFieldFocus, onBlur: this._onTextFieldBlur, onClick: this._onTextFieldClick, onChange: this._onTextFieldChanged, onRenderInput: readOnly ? this._renderReadOnlyInput : undefined }))),
30509
30793
  isDatePickerShown && (React.createElement(Callout_1.Callout, tslib_1.__assign({ id: calloutId, role: "dialog", ariaLabel: pickerAriaLabel, isBeakVisible: false, gapSpace: 0, doNotLayer: false, target: this._datePickerDiv.current, directionalHint: DirectionalHint_1.DirectionalHint.bottomLeftEdge }, calloutProps, { className: Utilities_1.css(classNames.callout, calloutProps && calloutProps.className), onDismiss: this._calendarDismissed, onPositioned: this._onCalloutPositioned }),
30510
30794
  React.createElement(FocusTrapZone_1.FocusTrapZone, { isClickableOutsideFocusTrap: true, disableFirstFocus: this.props.disableAutoFocus, forceFocusInsideTrap: false },
30511
30795
  React.createElement(CalendarType, tslib_1.__assign({}, calendarProps, { onSelectDate: this._onSelectDate, onDismiss: this._calendarDismissed, isMonthPickerVisible: this.props.isMonthPickerVisible, showMonthPickerAsOverlay: this.props.showMonthPickerAsOverlay, today: this.props.today, value: selectedDate || initialPickerDate, firstDayOfWeek: firstDayOfWeek, strings: strings, highlightCurrentMonth: this.props.highlightCurrentMonth, highlightSelectedMonth: this.props.highlightSelectedMonth, showWeekNumbers: this.props.showWeekNumbers, firstWeekOfYear: this.props.firstWeekOfYear, showGoToToday: this.props.showGoToToday, dateTimeFormatter: this.props.dateTimeFormatter, minDate: minDate, maxDate: maxDate, componentRef: this._calendar, showCloseButton: showCloseButton, allFocusable: allFocusable })))))));
@@ -31080,13 +31364,7 @@ var DetailsHeaderBase = /** @class */ (function (_super) {
31080
31364
  content: ariaLabelForSelectAllCheckbox,
31081
31365
  children: (React.createElement(DetailsRowCheck_1.DetailsRowCheck, { id: this._id + "-check", "aria-label": selectionMode === interfaces_1.SelectionMode.multiple
31082
31366
  ? ariaLabelForSelectAllCheckbox
31083
- : ariaLabelForSelectionColumn, "aria-describedby": !isCheckboxHidden
31084
- ? ariaLabelForSelectAllCheckbox && !this.props.onRenderColumnHeaderTooltip
31085
- ? this._id + "-checkTooltip"
31086
- : undefined
31087
- : ariaLabelForSelectionColumn && !this.props.onRenderColumnHeaderTooltip
31088
- ? this._id + "-checkTooltip"
31089
- : undefined, "data-is-focusable": !isCheckboxHidden || undefined, isHeader: true, selected: isAllSelected, anySelected: false, canSelect: !isCheckboxHidden, className: classNames.check, onRenderDetailsCheckbox: onRenderDetailsCheckbox, useFastIcons: useFastIcons, isVisible: isCheckboxAlwaysVisible })),
31367
+ : ariaLabelForSelectionColumn, "data-is-focusable": !isCheckboxHidden || undefined, isHeader: true, selected: isAllSelected, anySelected: false, canSelect: !isCheckboxHidden, className: classNames.check, onRenderDetailsCheckbox: onRenderDetailsCheckbox, useFastIcons: useFastIcons, isVisible: isCheckboxAlwaysVisible })),
31090
31368
  }, this._onRenderColumnHeaderTooltip)),
31091
31369
  !this.props.onRenderColumnHeaderTooltip ? (ariaLabelForSelectAllCheckbox && !isCheckboxHidden ? (React.createElement("label", { key: "__checkboxLabel", id: this._id + "-checkTooltip", className: classNames.accessibleLabel, "aria-hidden": true }, ariaLabelForSelectAllCheckbox)) : ariaLabelForSelectionColumn && isCheckboxHidden ? (React.createElement("label", { key: "__checkboxLabel", id: this._id + "-checkTooltip", className: classNames.accessibleLabel, "aria-hidden": true }, ariaLabelForSelectionColumn)) : null) : null,
31092
31370
  ]
@@ -31703,18 +31981,19 @@ var DetailsRowBase = /** @class */ (function (_super) {
31703
31981
  }
31704
31982
  };
31705
31983
  DetailsRowBase.prototype.render = function () {
31706
- var _a = this.props, className = _a.className, _b = _a.columns, columns = _b === void 0 ? NO_COLUMNS : _b, dragDropEvents = _a.dragDropEvents, item = _a.item, itemIndex = _a.itemIndex, id = _a.id, _c = _a.onRenderCheck, onRenderCheck = _c === void 0 ? this._onRenderCheck : _c, onRenderDetailsCheckbox = _a.onRenderDetailsCheckbox, onRenderItemColumn = _a.onRenderItemColumn, getCellValueKey = _a.getCellValueKey, selectionMode = _a.selectionMode, _d = _a.rowWidth, rowWidth = _d === void 0 ? 0 : _d, checkboxVisibility = _a.checkboxVisibility, getRowAriaLabel = _a.getRowAriaLabel, getRowAriaDescribedBy = _a.getRowAriaDescribedBy, checkButtonAriaLabel = _a.checkButtonAriaLabel, checkboxCellClassName = _a.checkboxCellClassName,
31984
+ var _a = this.props, className = _a.className, _b = _a.columns, columns = _b === void 0 ? NO_COLUMNS : _b, dragDropEvents = _a.dragDropEvents, item = _a.item, itemIndex = _a.itemIndex, _c = _a.flatIndexOffset, flatIndexOffset = _c === void 0 ? 2 : _c, id = _a.id, _d = _a.onRenderCheck, onRenderCheck = _d === void 0 ? this._onRenderCheck : _d, onRenderDetailsCheckbox = _a.onRenderDetailsCheckbox, onRenderItemColumn = _a.onRenderItemColumn, getCellValueKey = _a.getCellValueKey, selectionMode = _a.selectionMode, _e = _a.rowWidth, rowWidth = _e === void 0 ? 0 : _e, checkboxVisibility = _a.checkboxVisibility, getRowAriaLabel = _a.getRowAriaLabel, getRowAriaDescription = _a.getRowAriaDescription, getRowAriaDescribedBy = _a.getRowAriaDescribedBy, checkButtonAriaLabel = _a.checkButtonAriaLabel, checkboxCellClassName = _a.checkboxCellClassName,
31707
31985
  /** Alias rowFieldsAs as RowFields and default to DetailsRowFields if rowFieldsAs does not exist */
31708
- _e = _a.rowFieldsAs,
31986
+ _f = _a.rowFieldsAs,
31709
31987
  /** Alias rowFieldsAs as RowFields and default to DetailsRowFields if rowFieldsAs does not exist */
31710
- RowFields = _e === void 0 ? DetailsRowFields_1.DetailsRowFields : _e, selection = _a.selection, indentWidth = _a.indentWidth, enableUpdateAnimations = _a.enableUpdateAnimations, compact = _a.compact, theme = _a.theme, styles = _a.styles, cellsByColumn = _a.cellsByColumn, groupNestingDepth = _a.groupNestingDepth, _f = _a.useFastIcons, useFastIcons = _f === void 0 ? true : _f, cellStyleProps = _a.cellStyleProps;
31711
- var _g = this.state, columnMeasureInfo = _g.columnMeasureInfo, isDropping = _g.isDropping;
31712
- var _h = this.state.selectionState, _j = _h.isSelected, isSelected = _j === void 0 ? false : _j, _k = _h.isSelectionModal, isSelectionModal = _k === void 0 ? false : _k;
31988
+ RowFields = _f === void 0 ? DetailsRowFields_1.DetailsRowFields : _f, selection = _a.selection, indentWidth = _a.indentWidth, enableUpdateAnimations = _a.enableUpdateAnimations, compact = _a.compact, theme = _a.theme, styles = _a.styles, cellsByColumn = _a.cellsByColumn, groupNestingDepth = _a.groupNestingDepth, _g = _a.useFastIcons, useFastIcons = _g === void 0 ? true : _g, cellStyleProps = _a.cellStyleProps, _h = _a.disabled, disabled = _h === void 0 ? false : _h;
31989
+ var _j = this.state, columnMeasureInfo = _j.columnMeasureInfo, isDropping = _j.isDropping;
31990
+ var _k = this.state.selectionState, _l = _k.isSelected, isSelected = _l === void 0 ? false : _l, _m = _k.isSelectionModal, isSelectionModal = _m === void 0 ? false : _m;
31713
31991
  var isDraggable = dragDropEvents ? !!(dragDropEvents.canDrag && dragDropEvents.canDrag(item)) : undefined;
31714
31992
  var droppingClassName = isDropping ? this._droppingClassNames || DEFAULT_DROPPING_CSS_CLASS : '';
31715
31993
  var ariaLabel = getRowAriaLabel ? getRowAriaLabel(item) : undefined;
31994
+ var ariaRowDescription = getRowAriaDescription ? getRowAriaDescription(item) : undefined;
31716
31995
  var ariaDescribedBy = getRowAriaDescribedBy ? getRowAriaDescribedBy(item) : undefined;
31717
- var canSelect = !!selection && selection.canSelectItem(item, itemIndex);
31996
+ var canSelect = !!selection && selection.canSelectItem(item, itemIndex) && !disabled;
31718
31997
  var isContentUnselectable = selectionMode === interfaces_1.SelectionMode.multiple;
31719
31998
  var showCheckbox = selectionMode !== interfaces_1.SelectionMode.none && checkboxVisibility !== DetailsList_types_1.CheckboxVisibility.hidden;
31720
31999
  var ariaSelected = selectionMode === interfaces_1.SelectionMode.none ? undefined : isSelected;
@@ -31729,6 +32008,7 @@ var DetailsRowBase = /** @class */ (function (_super) {
31729
32008
  compact: compact,
31730
32009
  enableUpdateAnimations: enableUpdateAnimations,
31731
32010
  cellStyleProps: cellStyleProps,
32011
+ disabled: disabled,
31732
32012
  }));
31733
32013
  var rowClassNames = {
31734
32014
  isMultiline: this._classNames.isMultiline,
@@ -31749,12 +32029,14 @@ var DetailsRowBase = /** @class */ (function (_super) {
31749
32029
  var rowFields = (React.createElement(RowFields, { rowClassNames: this._rowClassNames, rowHeaderId: id + "-header", cellsByColumn: cellsByColumn, columns: columns, item: item, itemIndex: itemIndex, columnStartIndex: (showCheckbox ? 1 : 0) + (groupNestingDepth ? 1 : 0), onRenderItemColumn: onRenderItemColumn, getCellValueKey: getCellValueKey, enableUpdateAnimations: enableUpdateAnimations, cellStyleProps: cellStyleProps }));
31750
32030
  var defaultRole = 'row';
31751
32031
  var role = this.props.role ? this.props.role : defaultRole;
32032
+ this._ariaRowDescriptionId = Utilities_2.getId('DetailsRow-description');
31752
32033
  return (React.createElement(FocusZone_1.FocusZone, tslib_1.__assign({ "data-is-focusable": true }, Utilities_1.getNativeProps(this.props, Utilities_1.divProperties), (typeof isDraggable === 'boolean'
31753
32034
  ? {
31754
32035
  'data-is-draggable': isDraggable,
31755
32036
  draggable: isDraggable,
31756
32037
  }
31757
- : {}), { direction: FocusZone_1.FocusZoneDirection.horizontal, elementRef: this._root, componentRef: this._focusZone, role: role, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, className: this._classNames.root, "data-selection-index": itemIndex, "data-selection-touch-invoke": true, "data-item-index": itemIndex, "aria-rowindex": groupNestingDepth ? undefined : itemIndex + 1, "aria-level": (groupNestingDepth && groupNestingDepth + 1) || undefined, "data-automationid": "DetailsRow", style: { minWidth: rowWidth }, "aria-selected": ariaSelected, allowFocusRoot: true }),
32038
+ : {}), { direction: FocusZone_1.FocusZoneDirection.horizontal, elementRef: this._root, componentRef: this._focusZone, role: role, "aria-label": ariaLabel, "aria-disabled": disabled || undefined, "aria-describedby": ariaRowDescription ? this._ariaRowDescriptionId : ariaDescribedBy, className: this._classNames.root, "data-selection-index": itemIndex, "data-selection-touch-invoke": true, "data-selection-disabled": disabled || undefined, "data-item-index": itemIndex, "aria-rowindex": groupNestingDepth ? undefined : itemIndex + flatIndexOffset, "aria-level": (groupNestingDepth && groupNestingDepth + 1) || undefined, "data-automationid": "DetailsRow", style: { minWidth: rowWidth }, "aria-selected": ariaSelected, allowFocusRoot: true }),
32039
+ ariaRowDescription ? (React.createElement("span", { key: "description", role: "presentation", hidden: true, id: this._ariaRowDescriptionId }, ariaRowDescription)) : null,
31758
32040
  showCheckbox && (React.createElement("div", { role: "gridcell", "aria-colindex": 1, "data-selection-toggle": true, className: this._classNames.checkCell }, onRenderCheck({
31759
32041
  id: id ? id + "-checkbox" : undefined,
31760
32042
  selected: isSelected,
@@ -32559,7 +32841,8 @@ function withViewport(ComposedComponent) {
32559
32841
  return _this;
32560
32842
  }
32561
32843
  WithViewportComponent.prototype.componentDidMount = function () {
32562
- var _a = this.props, skipViewportMeasures = _a.skipViewportMeasures, disableResizeObserver = _a.disableResizeObserver;
32844
+ var _this = this;
32845
+ var _a = this.props, delayFirstMeasure = _a.delayFirstMeasure, disableResizeObserver = _a.disableResizeObserver, skipViewportMeasures = _a.skipViewportMeasures;
32563
32846
  var win = Utilities_1.getWindow(this._root.current);
32564
32847
  this._onAsyncResize = this._async.debounce(this._onAsyncResize, RESIZE_DELAY, {
32565
32848
  leading: false,
@@ -32571,12 +32854,19 @@ function withViewport(ComposedComponent) {
32571
32854
  else {
32572
32855
  this._events.on(win, 'resize', this._onAsyncResize);
32573
32856
  }
32574
- this._updateViewport();
32857
+ if (delayFirstMeasure) {
32858
+ this._async.setTimeout(function () {
32859
+ _this._updateViewport();
32860
+ }, RESIZE_DELAY);
32861
+ }
32862
+ else {
32863
+ this._updateViewport();
32864
+ }
32575
32865
  }
32576
32866
  };
32577
32867
  WithViewportComponent.prototype.componentDidUpdate = function (previousProps) {
32578
32868
  var previousSkipViewportMeasures = previousProps.skipViewportMeasures;
32579
- var _a = this.props, skipViewportMeasures = _a.skipViewportMeasures, disableResizeObserver = _a.disableResizeObserver;
32869
+ var _a = this.props, disableResizeObserver = _a.disableResizeObserver, skipViewportMeasures = _a.skipViewportMeasures;
32580
32870
  var win = Utilities_1.getWindow(this._root.current);
32581
32871
  if (skipViewportMeasures !== previousSkipViewportMeasures) {
32582
32872
  if (!skipViewportMeasures) {
@@ -32944,7 +33234,7 @@ var DEFAULT_RENDERED_WINDOWS_BEHIND = 2;
32944
33234
  */
32945
33235
  var DetailsListInner = function (props) {
32946
33236
  var selection = props.selection;
32947
- var ariaLabelForListHeader = props.ariaLabelForListHeader, ariaLabelForSelectAllCheckbox = props.ariaLabelForSelectAllCheckbox, ariaLabelForSelectionColumn = props.ariaLabelForSelectionColumn, className = props.className, checkboxVisibility = props.checkboxVisibility, compact = props.compact, constrainMode = props.constrainMode, dragDropEvents = props.dragDropEvents, groups = props.groups, groupProps = props.groupProps, indentWidth = props.indentWidth, items = props.items, isPlaceholderData = props.isPlaceholderData, isHeaderVisible = props.isHeaderVisible, layoutMode = props.layoutMode, onItemInvoked = props.onItemInvoked, onItemContextMenu = props.onItemContextMenu, onColumnHeaderClick = props.onColumnHeaderClick, onColumnHeaderContextMenu = props.onColumnHeaderContextMenu, _a = props.selectionMode, selectionMode = _a === void 0 ? selection.mode : _a, selectionPreservedOnEmptyClick = props.selectionPreservedOnEmptyClick, selectionZoneProps = props.selectionZoneProps, ariaLabel = props.ariaLabel, ariaLabelForGrid = props.ariaLabelForGrid, rowElementEventMap = props.rowElementEventMap, _b = props.shouldApplyApplicationRole, shouldApplyApplicationRole = _b === void 0 ? false : _b, getKey = props.getKey, listProps = props.listProps, usePageCache = props.usePageCache, onShouldVirtualize = props.onShouldVirtualize, viewport = props.viewport, minimumPixelsForDrag = props.minimumPixelsForDrag, getGroupHeight = props.getGroupHeight, styles = props.styles, theme = props.theme, _c = props.cellStyleProps, cellStyleProps = _c === void 0 ? DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS : _c, onRenderCheckbox = props.onRenderCheckbox, useFastIcons = props.useFastIcons, dragDropHelper = props.dragDropHelper, adjustedColumns = props.adjustedColumns, isCollapsed = props.isCollapsed, isSizing = props.isSizing, isSomeGroupExpanded = props.isSomeGroupExpanded, version = props.version, rootRef = props.rootRef, listRef = props.listRef, focusZoneRef = props.focusZoneRef, columnReorderOptions = props.columnReorderOptions, groupedListRef = props.groupedListRef, headerRef = props.headerRef, onGroupExpandStateChanged = props.onGroupExpandStateChanged, onColumnIsSizingChanged = props.onColumnIsSizingChanged, onRowDidMount = props.onRowDidMount, onRowWillUnmount = props.onRowWillUnmount, disableSelectionZone = props.disableSelectionZone, onColumnResized = props.onColumnResized, onColumnAutoResized = props.onColumnAutoResized, onToggleCollapse = props.onToggleCollapse, onActiveRowChanged = props.onActiveRowChanged, onBlur = props.onBlur, eventsToRegister = props.rowElementEventMap, onRenderMissingItem = props.onRenderMissingItem, onRenderItemColumn = props.onRenderItemColumn, getCellValueKey = props.getCellValueKey, getRowAriaLabel = props.getRowAriaLabel, getRowAriaDescribedBy = props.getRowAriaDescribedBy, checkButtonAriaLabel = props.checkButtonAriaLabel, checkboxCellClassName = props.checkboxCellClassName, useReducedRowRenderer = props.useReducedRowRenderer, enableUpdateAnimations = props.enableUpdateAnimations, enterModalSelectionOnTouch = props.enterModalSelectionOnTouch, onRenderDefaultRow = props.onRenderDefaultRow, selectionZoneRef = props.selectionZoneRef;
33237
+ var ariaLabelForListHeader = props.ariaLabelForListHeader, ariaLabelForSelectAllCheckbox = props.ariaLabelForSelectAllCheckbox, ariaLabelForSelectionColumn = props.ariaLabelForSelectionColumn, className = props.className, checkboxVisibility = props.checkboxVisibility, compact = props.compact, constrainMode = props.constrainMode, dragDropEvents = props.dragDropEvents, groups = props.groups, groupProps = props.groupProps, indentWidth = props.indentWidth, items = props.items, isPlaceholderData = props.isPlaceholderData, isHeaderVisible = props.isHeaderVisible, layoutMode = props.layoutMode, onItemInvoked = props.onItemInvoked, onItemContextMenu = props.onItemContextMenu, onColumnHeaderClick = props.onColumnHeaderClick, onColumnHeaderContextMenu = props.onColumnHeaderContextMenu, _a = props.selectionMode, selectionMode = _a === void 0 ? selection.mode : _a, selectionPreservedOnEmptyClick = props.selectionPreservedOnEmptyClick, selectionZoneProps = props.selectionZoneProps, ariaLabel = props.ariaLabel, ariaLabelForGrid = props.ariaLabelForGrid, rowElementEventMap = props.rowElementEventMap, _b = props.shouldApplyApplicationRole, shouldApplyApplicationRole = _b === void 0 ? false : _b, getKey = props.getKey, listProps = props.listProps, usePageCache = props.usePageCache, onShouldVirtualize = props.onShouldVirtualize, viewport = props.viewport, minimumPixelsForDrag = props.minimumPixelsForDrag, getGroupHeight = props.getGroupHeight, styles = props.styles, theme = props.theme, _c = props.cellStyleProps, cellStyleProps = _c === void 0 ? DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS : _c, onRenderCheckbox = props.onRenderCheckbox, useFastIcons = props.useFastIcons, dragDropHelper = props.dragDropHelper, adjustedColumns = props.adjustedColumns, isCollapsed = props.isCollapsed, isSizing = props.isSizing, isSomeGroupExpanded = props.isSomeGroupExpanded, version = props.version, rootRef = props.rootRef, listRef = props.listRef, focusZoneRef = props.focusZoneRef, columnReorderOptions = props.columnReorderOptions, groupedListRef = props.groupedListRef, headerRef = props.headerRef, onGroupExpandStateChanged = props.onGroupExpandStateChanged, onColumnIsSizingChanged = props.onColumnIsSizingChanged, onRowDidMount = props.onRowDidMount, onRowWillUnmount = props.onRowWillUnmount, disableSelectionZone = props.disableSelectionZone, onColumnResized = props.onColumnResized, onColumnAutoResized = props.onColumnAutoResized, onToggleCollapse = props.onToggleCollapse, onActiveRowChanged = props.onActiveRowChanged, onBlur = props.onBlur, eventsToRegister = props.rowElementEventMap, onRenderMissingItem = props.onRenderMissingItem, onRenderItemColumn = props.onRenderItemColumn, getCellValueKey = props.getCellValueKey, getRowAriaLabel = props.getRowAriaLabel, getRowAriaDescribedBy = props.getRowAriaDescribedBy, checkButtonAriaLabel = props.checkButtonAriaLabel, checkButtonGroupAriaLabel = props.checkButtonGroupAriaLabel, checkboxCellClassName = props.checkboxCellClassName, useReducedRowRenderer = props.useReducedRowRenderer, enableUpdateAnimations = props.enableUpdateAnimations, enterModalSelectionOnTouch = props.enterModalSelectionOnTouch, onRenderDefaultRow = props.onRenderDefaultRow, selectionZoneRef = props.selectionZoneRef;
32948
33238
  var defaultRole = 'grid';
32949
33239
  var role = props.role ? props.role : defaultRole;
32950
33240
  var rowId = utilities_1.getId('row');
@@ -33077,9 +33367,7 @@ var DetailsListInner = function (props) {
33077
33367
  var ariaPosInSet = groupHeaderProps.ariaPosInSet, ariaSetSize = groupHeaderProps.ariaSetSize;
33078
33368
  return onRenderDetailsGroupHeader(tslib_1.__assign(tslib_1.__assign({}, groupHeaderProps), { columns: adjustedColumns, groupNestingDepth: groupNestingDepth,
33079
33369
  indentWidth: indentWidth,
33080
- selection: selection,
33081
- selectionMode: selectionMode,
33082
- viewport: viewport,
33370
+ selection: selection, selectionMode: checkboxVisibility !== DetailsList_types_1.CheckboxVisibility.hidden ? selectionMode : index_1.SelectionMode.none, viewport: viewport,
33083
33371
  checkboxVisibility: checkboxVisibility,
33084
33372
  cellStyleProps: cellStyleProps, ariaColSpan: adjustedColumns.length, ariaPosInSet: undefined, ariaSetSize: undefined, ariaRowCount: ariaSetSize ? ariaSetSize + (isHeaderVisible ? 1 : 0) : undefined, ariaRowIndex: ariaPosInSet ? ariaPosInSet + (isHeaderVisible ? 1 : 0) : undefined }), defaultRender);
33085
33373
  }
@@ -33100,8 +33388,11 @@ var DetailsListInner = function (props) {
33100
33388
  cellStyleProps,
33101
33389
  ]);
33102
33390
  var finalGroupProps = React.useMemo(function () {
33103
- return tslib_1.__assign(tslib_1.__assign({}, groupProps), { role: role === defaultRole ? 'rowgroup' : 'presentation', onRenderFooter: finalOnRenderDetailsGroupFooter, onRenderHeader: finalOnRenderDetailsGroupHeader });
33104
- }, [groupProps, finalOnRenderDetailsGroupFooter, finalOnRenderDetailsGroupHeader, role]);
33391
+ var _a, _b, _c;
33392
+ return tslib_1.__assign(tslib_1.__assign({}, groupProps), { role: role === defaultRole ? 'rowgroup' : 'presentation', onRenderFooter: finalOnRenderDetailsGroupFooter, onRenderHeader: finalOnRenderDetailsGroupHeader,
33393
+ // pass through custom group header checkbox label
33394
+ headerProps: tslib_1.__assign(tslib_1.__assign({}, (_a = groupProps) === null || _a === void 0 ? void 0 : _a.headerProps), { selectAllButtonProps: tslib_1.__assign({ 'aria-label': checkButtonGroupAriaLabel }, (_c = (_b = groupProps) === null || _b === void 0 ? void 0 : _b.headerProps) === null || _c === void 0 ? void 0 : _c.selectAllButtonProps) }) });
33395
+ }, [groupProps, finalOnRenderDetailsGroupFooter, finalOnRenderDetailsGroupHeader, checkButtonGroupAriaLabel, role]);
33105
33396
  var sumColumnWidths = react_hooks_1.useConst(function () {
33106
33397
  return Utilities_1.memoizeFunction(function (columns) {
33107
33398
  var totalWidth = 0;
@@ -33121,6 +33412,7 @@ var DetailsListInner = function (props) {
33121
33412
  var rowProps = {
33122
33413
  item: item,
33123
33414
  itemIndex: index,
33415
+ flatIndexOffset: isHeaderVisible ? 2 : 1,
33124
33416
  compact: compact,
33125
33417
  columns: adjustedColumns,
33126
33418
  groupNestingDepth: nestingDepth,
@@ -33175,6 +33467,7 @@ var DetailsListInner = function (props) {
33175
33467
  collapseAllVisibility,
33176
33468
  getRowAriaLabel,
33177
33469
  getRowAriaDescribedBy,
33470
+ isHeaderVisible,
33178
33471
  checkButtonAriaLabel,
33179
33472
  checkboxCellClassName,
33180
33473
  useReducedRowRenderer,
@@ -33950,8 +34243,8 @@ var DialogBase = /** @class */ (function (_super) {
33950
34243
  dialogDefaultMinWidth: minWidth,
33951
34244
  dialogDefaultMaxWidth: maxWidth,
33952
34245
  });
33953
- return (React.createElement(Modal_1.Modal, tslib_1.__assign({ elementToFocusOnDismiss: elementToFocusOnDismiss, firstFocusableSelector: firstFocusableSelector, forceFocusInsideTrap: forceFocusInsideTrap, ignoreExternalFocusing: ignoreExternalFocusing, isClickableOutsideFocusTrap: isClickableOutsideFocusTrap, onDismissed: mergedModalProps.onDismissed, responsiveMode: responsiveMode }, mergedModalProps, { isDarkOverlay: mergedModalProps.isDarkOverlay, isBlocking: mergedModalProps.isBlocking, isOpen: isOpen !== undefined ? isOpen : !hidden, className: classNames.root, containerClassName: classNames.main, onDismiss: onDismiss ? onDismiss : mergedModalProps.onDismiss, subtitleAriaId: this._getSubTextId(), titleAriaId: this._getTitleTextId() }),
33954
- React.createElement(DialogContent_1.DialogContent, tslib_1.__assign({ subTextId: this._defaultSubTextId, title: dialogContentProps.title, subText: dialogContentProps.subText, showCloseButton: mergedModalProps.isBlocking, topButtonsProps: dialogContentProps.topButtonsProps, type: dialogContentProps.type, onDismiss: onDismiss ? onDismiss : dialogContentProps.onDismiss, className: dialogContentProps.className }, dialogContentProps), this.props.children)));
34246
+ return (React.createElement(Modal_1.Modal, tslib_1.__assign({ elementToFocusOnDismiss: elementToFocusOnDismiss, firstFocusableSelector: firstFocusableSelector, forceFocusInsideTrap: forceFocusInsideTrap, ignoreExternalFocusing: ignoreExternalFocusing, isClickableOutsideFocusTrap: isClickableOutsideFocusTrap, responsiveMode: responsiveMode }, mergedModalProps, { isOpen: isOpen !== undefined ? isOpen : !hidden, className: classNames.root, containerClassName: classNames.main, onDismiss: onDismiss ? onDismiss : mergedModalProps.onDismiss, subtitleAriaId: this._getSubTextId(), titleAriaId: this._getTitleTextId() }),
34247
+ React.createElement(DialogContent_1.DialogContent, tslib_1.__assign({ subTextId: this._defaultSubTextId, showCloseButton: mergedModalProps.isBlocking, onDismiss: onDismiss }, dialogContentProps), this.props.children)));
33955
34248
  };
33956
34249
  DialogBase.defaultProps = {
33957
34250
  hidden: true,
@@ -34260,12 +34553,13 @@ var ModalBase = /** @class */ (function (_super) {
34260
34553
  ModalBase.prototype.render = function () {
34261
34554
  var _a = this.props, className = _a.className, containerClassName = _a.containerClassName, scrollableContentClassName = _a.scrollableContentClassName, elementToFocusOnDismiss = _a.elementToFocusOnDismiss, firstFocusableSelector = _a.firstFocusableSelector, forceFocusInsideTrap = _a.forceFocusInsideTrap, ignoreExternalFocusing = _a.ignoreExternalFocusing, isBlocking = _a.isBlocking, isClickableOutsideFocusTrap = _a.isClickableOutsideFocusTrap, isDarkOverlay = _a.isDarkOverlay, onDismiss = _a.onDismiss, layerProps = _a.layerProps, overlay = _a.overlay, responsiveMode = _a.responsiveMode, titleAriaId = _a.titleAriaId, styles = _a.styles, subtitleAriaId = _a.subtitleAriaId, theme = _a.theme, topOffsetFixed = _a.topOffsetFixed,
34262
34555
  // eslint-disable-next-line deprecation/deprecation
34263
- onLayerDidMount = _a.onLayerDidMount, isModeless = _a.isModeless, dragOptions = _a.dragOptions, enableAriaHiddenSiblings = _a.enableAriaHiddenSiblings;
34556
+ onLayerDidMount = _a.onLayerDidMount, isModeless = _a.isModeless, isAlert = _a.isAlert, dragOptions = _a.dragOptions, enableAriaHiddenSiblings = _a.enableAriaHiddenSiblings;
34264
34557
  var _b = this.state, isOpen = _b.isOpen, isVisible = _b.isVisible, hasBeenOpened = _b.hasBeenOpened, modalRectangleTop = _b.modalRectangleTop, x = _b.x, y = _b.y, isInKeyboardMoveMode = _b.isInKeyboardMoveMode;
34265
34558
  if (!isOpen) {
34266
34559
  return null;
34267
34560
  }
34268
34561
  var layerClassName = layerProps === undefined ? '' : layerProps.className;
34562
+ var isAlertRole = (isAlert !== null && isAlert !== void 0 ? isAlert : (isBlocking && !isModeless));
34269
34563
  var classNames = getClassNames(styles, {
34270
34564
  theme: theme,
34271
34565
  className: className,
@@ -34292,7 +34586,7 @@ var ModalBase = /** @class */ (function (_super) {
34292
34586
  // @temp tuatology - Will adjust this to be a panel at certain breakpoints
34293
34587
  if (responsiveMode >= withResponsiveMode_1.ResponsiveMode.small) {
34294
34588
  return (React.createElement(Layer_1.Layer, tslib_1.__assign({}, mergedLayerProps),
34295
- React.createElement(index_2.Popup, { role: isModeless || !isBlocking ? 'dialog' : 'alertdialog', "aria-modal": !isModeless, ariaLabelledBy: titleAriaId, ariaDescribedBy: subtitleAriaId, onDismiss: onDismiss, shouldRestoreFocus: !ignoreExternalFocusing },
34589
+ React.createElement(index_2.Popup, { role: isAlertRole ? 'alertdialog' : 'dialog', "aria-modal": !isModeless, ariaLabelledBy: titleAriaId, ariaDescribedBy: subtitleAriaId, onDismiss: onDismiss, shouldRestoreFocus: !ignoreExternalFocusing },
34296
34590
  React.createElement("div", { className: classNames.root, role: !isModeless ? 'document' : undefined },
34297
34591
  !isModeless && (React.createElement(Overlay_1.Overlay, tslib_1.__assign({ isDarkThemed: isDarkOverlay, onClick: isBlocking ? undefined : onDismiss, allowTouchBodyScroll: this._allowTouchBodyScroll }, overlay))),
34298
34592
  dragOptions ? (React.createElement(index_5.DraggableZone, { handleSelector: dragOptions.dragHandleSelector || "." + classNames.main.split(' ')[0], preventDragSelector: "button", onStart: this._onDragStart, onDragChange: this._onDrag, onStop: this._onDragStop, position: { x: x, y: y } }, modalContent)) : (modalContent)))));
@@ -34602,7 +34896,7 @@ var DialogContentBase = /** @class */ (function (_super) {
34602
34896
  React.createElement("div", tslib_1.__assign({ id: titleId, role: "heading", "aria-level": 1 }, titleProps, { className: Utilities_1.css(classNames.title, titleProps.className) }), title),
34603
34897
  React.createElement("div", { className: classNames.topButton },
34604
34898
  this.props.topButtonsProps.map(function (props, index) { return (React.createElement(Button_1.IconButton, tslib_1.__assign({ key: props.uniqueId || index }, props))); }),
34605
- (type === DialogContent_types_1.DialogType.close || (showCloseButton && type !== DialogContent_types_1.DialogType.largeHeader)) && (React.createElement(Button_1.IconButton, { className: classNames.button, iconProps: { iconName: 'Cancel' }, ariaLabel: closeButtonAriaLabel, onClick: onDismiss, title: closeButtonAriaLabel })))),
34899
+ (type === DialogContent_types_1.DialogType.close || (showCloseButton && type !== DialogContent_types_1.DialogType.largeHeader)) && (React.createElement(Button_1.IconButton, { className: classNames.button, iconProps: { iconName: 'Cancel' }, ariaLabel: closeButtonAriaLabel, onClick: onDismiss })))),
34606
34900
  React.createElement("div", { className: classNames.inner },
34607
34901
  React.createElement("div", { className: classNames.innerContent },
34608
34902
  subTextContent,
@@ -35179,13 +35473,10 @@ var DropdownBase = /** @class */ (function (_super) {
35179
35473
  // eslint-disable-next-line react/jsx-no-bind
35180
35474
  onMouseLeave: _this._onMouseItemLeave.bind(_this, item),
35181
35475
  // eslint-disable-next-line react/jsx-no-bind
35182
- onMouseMove: _this._onItemMouseMove.bind(_this, item), role: "option", "aria-selected": isItemSelected ? 'true' : 'false', ariaLabel: item.ariaLabel, title: title, "aria-posinset": _this._sizePosCache.positionInSet(item.index), "aria-setsize": _this._sizePosCache.optionSetSize }, onRenderOption(item, _this._onRenderOption))) : (React.createElement(Checkbox_1.Checkbox, { id: _this._listId + item.index, key: item.key, "data-index": item.index, "data-is-focusable": !item.disabled, disabled: item.disabled, onChange: _this._onItemClick(item), inputProps: {
35183
- 'aria-selected': isItemSelected,
35184
- onMouseEnter: _this._onItemMouseEnter.bind(_this, item),
35185
- onMouseLeave: _this._onMouseItemLeave.bind(_this, item),
35186
- onMouseMove: _this._onItemMouseMove.bind(_this, item),
35187
- role: 'option',
35188
- }, label: item.text, title: title,
35476
+ onMouseMove: _this._onItemMouseMove.bind(_this, item), role: "option", "aria-selected": isItemSelected ? 'true' : 'false', ariaLabel: item.ariaLabel, title: title, "aria-posinset": _this._sizePosCache.positionInSet(item.index), "aria-setsize": _this._sizePosCache.optionSetSize }, onRenderOption(item, _this._onRenderOption))) : (React.createElement(Checkbox_1.Checkbox, { id: _this._listId + item.index, key: item.key, disabled: item.disabled, onChange: _this._onItemClick(item), inputProps: tslib_1.__assign({ 'aria-selected': isItemSelected, onMouseEnter: _this._onItemMouseEnter.bind(_this, item), onMouseLeave: _this._onMouseItemLeave.bind(_this, item), onMouseMove: _this._onItemMouseMove.bind(_this, item), role: 'option' }, {
35477
+ 'data-index': item.index,
35478
+ 'data-is-focusable': !item.disabled,
35479
+ }), label: item.text, title: title,
35189
35480
  // eslint-disable-next-line react/jsx-no-bind
35190
35481
  onRenderLabel: _this._onRenderItemLabel.bind(_this, item), className: itemClassName, checked: isItemSelected, styles: multiSelectItemStyles, ariaPositionInSet: _this._sizePosCache.positionInSet(item.index), ariaSetSize: _this._sizePosCache.optionSetSize }));
35191
35482
  };
@@ -37681,7 +37972,7 @@ var Suggestions = /** @class */ (function (_super) {
37681
37972
  Suggestions.prototype.render = function () {
37682
37973
  var _a, _b;
37683
37974
  var _this = this;
37684
- var _c = this.props, forceResolveText = _c.forceResolveText, mostRecentlyUsedHeaderText = _c.mostRecentlyUsedHeaderText, searchForMoreText = _c.searchForMoreText, className = _c.className, moreSuggestionsAvailable = _c.moreSuggestionsAvailable, noResultsFoundText = _c.noResultsFoundText, suggestions = _c.suggestions, isLoading = _c.isLoading, isSearching = _c.isSearching, loadingText = _c.loadingText, onRenderNoResultFound = _c.onRenderNoResultFound, searchingText = _c.searchingText, isMostRecentlyUsedVisible = _c.isMostRecentlyUsedVisible, resultsMaximumNumber = _c.resultsMaximumNumber, resultsFooterFull = _c.resultsFooterFull, resultsFooter = _c.resultsFooter, _d = _c.isResultsFooterVisible, isResultsFooterVisible = _d === void 0 ? true : _d, suggestionsHeaderText = _c.suggestionsHeaderText, suggestionsClassName = _c.suggestionsClassName, theme = _c.theme, styles = _c.styles, suggestionsListId = _c.suggestionsListId;
37975
+ var _c = this.props, forceResolveText = _c.forceResolveText, mostRecentlyUsedHeaderText = _c.mostRecentlyUsedHeaderText, searchForMoreIcon = _c.searchForMoreIcon, searchForMoreText = _c.searchForMoreText, className = _c.className, moreSuggestionsAvailable = _c.moreSuggestionsAvailable, noResultsFoundText = _c.noResultsFoundText, suggestions = _c.suggestions, isLoading = _c.isLoading, isSearching = _c.isSearching, loadingText = _c.loadingText, onRenderNoResultFound = _c.onRenderNoResultFound, searchingText = _c.searchingText, isMostRecentlyUsedVisible = _c.isMostRecentlyUsedVisible, resultsMaximumNumber = _c.resultsMaximumNumber, resultsFooterFull = _c.resultsFooterFull, resultsFooter = _c.resultsFooter, _d = _c.isResultsFooterVisible, isResultsFooterVisible = _d === void 0 ? true : _d, suggestionsHeaderText = _c.suggestionsHeaderText, suggestionsClassName = _c.suggestionsClassName, theme = _c.theme, styles = _c.styles, suggestionsListId = _c.suggestionsListId;
37685
37976
  // TODO
37686
37977
  // Clean this up by leaving only the first part after removing support for SASS.
37687
37978
  // Currently we can not remove the SASS styles from Suggestions class because it
@@ -37747,7 +38038,7 @@ var Suggestions = /** @class */ (function (_super) {
37747
38038
  ? onRenderNoResultFound(undefined, noResults)
37748
38039
  : noResults()
37749
38040
  : this._renderSuggestions(),
37750
- searchForMoreText && moreSuggestionsAvailable && (React.createElement(Button_1.CommandButton, { componentRef: this._searchForMoreButton, className: this._classNames.searchForMoreButton, iconProps: { iconName: 'Search' }, id: searchForMoreId, onClick: this._getMoreResults, "data-automationid": 'sug-searchForMore' }, searchForMoreText)),
38041
+ searchForMoreText && moreSuggestionsAvailable && (React.createElement(Button_1.CommandButton, { componentRef: this._searchForMoreButton, className: this._classNames.searchForMoreButton, iconProps: searchForMoreIcon || { iconName: 'Search' }, id: searchForMoreId, onClick: this._getMoreResults, "data-automationid": 'sug-searchForMore' }, searchForMoreText)),
37751
38042
  isSearching ? React.createElement(Spinner_1.Spinner, tslib_1.__assign({}, spinnerClassNameOrStyles, { label: searchingText })) : null,
37752
38043
  footerTitle && !moreSuggestionsAvailable && !isMostRecentlyUsedVisible && !isSearching ? (React.createElement("div", { className: this._classNames.title }, footerTitle(this.props))) : null));
37753
38044
  };
@@ -38278,7 +38569,7 @@ var GlobalClassNames = {
38278
38569
  input: 'ms-BasePicker-input',
38279
38570
  };
38280
38571
  function getStyles(props) {
38281
- var _a;
38572
+ var _a, _b, _c;
38282
38573
  var className = props.className, theme = props.theme, isFocused = props.isFocused, inputClassName = props.inputClassName, disabled = props.disabled;
38283
38574
  if (!theme) {
38284
38575
  throw new Error('theme is undefined or null in base BasePicker getStyles function.');
@@ -38286,6 +38577,27 @@ function getStyles(props) {
38286
38577
  var semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts;
38287
38578
  var inputBorder = semanticColors.inputBorder, inputBorderHovered = semanticColors.inputBorderHovered, inputFocusBorderAlt = semanticColors.inputFocusBorderAlt;
38288
38579
  var classNames = Styling_1.getGlobalClassNames(GlobalClassNames, theme);
38580
+ // placeholder style constants
38581
+ var placeholderStyles = [
38582
+ fonts.medium,
38583
+ {
38584
+ color: semanticColors.inputPlaceholderText,
38585
+ opacity: 1,
38586
+ selectors: (_a = {},
38587
+ _a[Styling_1.HighContrastSelector] = {
38588
+ color: 'GrayText',
38589
+ },
38590
+ _a),
38591
+ },
38592
+ ];
38593
+ var disabledPlaceholderStyles = {
38594
+ color: semanticColors.disabledText,
38595
+ selectors: (_b = {},
38596
+ _b[Styling_1.HighContrastSelector] = {
38597
+ color: 'GrayText',
38598
+ },
38599
+ _b),
38600
+ };
38289
38601
  // The following lines are to create a semi-transparent color overlay for the disabled state with designer's approval.
38290
38602
  // @todo: investigate the performance cost of the calculation below and apply if negligible.
38291
38603
  // Replacing with a static color for now.
@@ -38318,7 +38630,7 @@ function getStyles(props) {
38318
38630
  isFocused && !disabled && Styling_1.getInputFocusStyle(inputFocusBorderAlt, effects.roundedCorner2),
38319
38631
  disabled && {
38320
38632
  borderColor: disabledOverlayColor,
38321
- selectors: (_a = {
38633
+ selectors: (_c = {
38322
38634
  ':after': {
38323
38635
  content: '""',
38324
38636
  position: 'absolute',
@@ -38329,7 +38641,7 @@ function getStyles(props) {
38329
38641
  background: disabledOverlayColor,
38330
38642
  }
38331
38643
  },
38332
- _a[Styling_1.HighContrastSelector] = {
38644
+ _c[Styling_1.HighContrastSelector] = {
38333
38645
  borderColor: 'GrayText',
38334
38646
  selectors: {
38335
38647
  ':after': {
@@ -38337,7 +38649,7 @@ function getStyles(props) {
38337
38649
  },
38338
38650
  },
38339
38651
  },
38340
- _a),
38652
+ _c),
38341
38653
  },
38342
38654
  ],
38343
38655
  itemsWrapper: [
@@ -38367,6 +38679,8 @@ function getStyles(props) {
38367
38679
  },
38368
38680
  },
38369
38681
  },
38682
+ Styling_1.getPlaceholderStyles(placeholderStyles),
38683
+ disabled && Styling_1.getPlaceholderStyles(disabledPlaceholderStyles),
38370
38684
  inputClassName,
38371
38685
  ],
38372
38686
  screenReaderText: Styling_1.hiddenContentStyle,
@@ -41495,9 +41809,13 @@ var SliderBase = /** @class */ (function (_super) {
41495
41809
  break;
41496
41810
  case Utilities_1.KeyCodes.home:
41497
41811
  value = min;
41812
+ _this._clearOnKeyDownTimer();
41813
+ _this._setOnKeyDownTimer(event);
41498
41814
  break;
41499
41815
  case Utilities_1.KeyCodes.end:
41500
41816
  value = max;
41817
+ _this._clearOnKeyDownTimer();
41818
+ _this._setOnKeyDownTimer(event);
41501
41819
  break;
41502
41820
  default:
41503
41821
  return;
@@ -42584,7 +42902,7 @@ var TeachingBubbleContentBase = /** @class */ (function (_super) {
42584
42902
  if (headline) {
42585
42903
  var HeaderWrapperAs = typeof headline === 'string' ? 'p' : 'div';
42586
42904
  headerContent = (React.createElement("div", { className: classNames.header },
42587
- React.createElement(HeaderWrapperAs, { role: "heading", className: classNames.headline, id: ariaLabelledBy }, headline)));
42905
+ React.createElement(HeaderWrapperAs, { role: "heading", "aria-level": 3, className: classNames.headline, id: ariaLabelledBy }, headline)));
42588
42906
  }
42589
42907
  if (children) {
42590
42908
  var BodyContentWrapperAs = typeof children === 'string' ? 'p' : 'div';
@@ -43011,7 +43329,7 @@ var ToggleBase = /** @class */ (function (_super) {
43011
43329
  _this.state = {
43012
43330
  checked: !!(props.checked || props.defaultChecked),
43013
43331
  };
43014
- _this._id = props.id || Utilities_1.getId('Toggle');
43332
+ _this._id = Utilities_1.getId('Toggle');
43015
43333
  return _this;
43016
43334
  }
43017
43335
  ToggleBase.getDerivedStateFromProps = function (nextProps, prevState) {
@@ -43034,7 +43352,7 @@ var ToggleBase = /** @class */ (function (_super) {
43034
43352
  });
43035
43353
  ToggleBase.prototype.render = function () {
43036
43354
  var _this = this;
43037
- var _a = this.props, _b = _a.as, RootType = _b === void 0 ? 'div' : _b, className = _a.className, theme = _a.theme, disabled = _a.disabled, keytipProps = _a.keytipProps, label = _a.label, ariaLabel = _a.ariaLabel,
43355
+ var _a = this.props, _b = _a.as, RootType = _b === void 0 ? 'div' : _b, className = _a.className, theme = _a.theme, disabled = _a.disabled, keytipProps = _a.keytipProps, id = _a.id, label = _a.label, ariaLabel = _a.ariaLabel,
43038
43356
  /* eslint-disable deprecation/deprecation */
43039
43357
  onAriaLabel = _a.onAriaLabel, offAriaLabel = _a.offAriaLabel,
43040
43358
  /* eslint-enable deprecation/deprecation */
@@ -43051,8 +43369,9 @@ var ToggleBase = /** @class */ (function (_super) {
43051
43369
  inlineLabel: inlineLabel,
43052
43370
  onOffMissing: !onText && !offText,
43053
43371
  });
43054
- var labelId = this._id + "-label";
43055
- var stateTextId = this._id + "-stateText";
43372
+ var toggleId = id || this._id;
43373
+ var labelId = toggleId + "-label";
43374
+ var stateTextId = toggleId + "-stateText";
43056
43375
  // The following properties take priority for what Narrator should read:
43057
43376
  // 1. ariaLabel
43058
43377
  // 2. onAriaLabel (if checked) or offAriaLabel (if not checked)
@@ -43069,18 +43388,18 @@ var ToggleBase = /** @class */ (function (_super) {
43069
43388
  var ariaRole = this.props.role ? this.props.role : 'switch';
43070
43389
  var renderPill = function (keytipAttributes) {
43071
43390
  if (keytipAttributes === void 0) { keytipAttributes = {}; }
43072
- return (React.createElement("button", tslib_1.__assign({}, toggleNativeProps, keytipAttributes, { className: classNames.pill, disabled: disabled, id: _this._id, type: "button", role: ariaRole, ref: _this._toggleButton, "aria-disabled": disabled, "aria-checked": checked, "aria-label": ariaLabel ? ariaLabel : badAriaLabel, "data-is-focusable": true, onChange: _this._noop, onClick: _this._onClick, "aria-labelledby": labelledById }),
43391
+ return (React.createElement("button", tslib_1.__assign({}, toggleNativeProps, keytipAttributes, { className: classNames.pill, disabled: disabled, id: toggleId, type: "button", role: ariaRole, ref: _this._toggleButton, "aria-disabled": disabled, "aria-checked": checked, "aria-label": ariaLabel ? ariaLabel : badAriaLabel, "data-is-focusable": true, onChange: _this._noop, onClick: _this._onClick, "aria-labelledby": labelledById }),
43073
43392
  React.createElement("span", { className: classNames.thumb })));
43074
43393
  };
43075
43394
  var pillContent = keytipProps ? (React.createElement(KeytipData_1.KeytipData, { keytipProps: keytipProps, ariaDescribedBy: toggleNativeProps['aria-describedby'], disabled: disabled }, function (keytipAttributes) { return renderPill(keytipAttributes); })) : (renderPill());
43076
43395
  return (React.createElement(RootType, { className: classNames.root, hidden: toggleNativeProps.hidden },
43077
- label && (React.createElement(Label_1.Label, { htmlFor: this._id, className: classNames.label, id: labelId }, label)),
43396
+ label && (React.createElement(Label_1.Label, { htmlFor: toggleId, className: classNames.label, id: labelId }, label)),
43078
43397
  React.createElement("div", { className: classNames.container },
43079
43398
  pillContent,
43080
43399
  stateText && (
43081
43400
  // This second "htmlFor" property is needed to allow the
43082
43401
  // toggle's stateText to also trigger a state change when clicked.
43083
- React.createElement(Label_1.Label, { htmlFor: this._id, className: classNames.text, id: stateTextId }, stateText))),
43402
+ React.createElement(Label_1.Label, { htmlFor: toggleId, className: classNames.text, id: stateTextId }, stateText))),
43084
43403
  React.createElement(Utilities_1.FocusRects, null)));
43085
43404
  };
43086
43405
  ToggleBase.prototype.focus = function () {
@@ -49008,7 +49327,7 @@ var Selection = /** @class */ (function () {
49008
49327
  ) {
49009
49328
  options[_i] = arguments[_i]; // Otherwise, arguments require options with `getKey`.
49010
49329
  }
49011
- var _a = options[0] || {}, onSelectionChanged = _a.onSelectionChanged, getKey = _a.getKey, _b = _a.canSelectItem, canSelectItem = _b === void 0 ? function () { return true; } : _b, items = _a.items, _c = _a.selectionMode, selectionMode = _c === void 0 ? Selection_types_1.SelectionMode.multiple : _c;
49330
+ var _a = options[0] || {}, onSelectionChanged = _a.onSelectionChanged, onItemsChanged = _a.onItemsChanged, getKey = _a.getKey, _b = _a.canSelectItem, canSelectItem = _b === void 0 ? function () { return true; } : _b, items = _a.items, _c = _a.selectionMode, selectionMode = _c === void 0 ? Selection_types_1.SelectionMode.multiple : _c;
49012
49331
  this.mode = selectionMode;
49013
49332
  this._getKey = getKey || defaultGetKey;
49014
49333
  this._changeEventSuppressionCount = 0;
@@ -49016,7 +49335,9 @@ var Selection = /** @class */ (function () {
49016
49335
  this._anchoredIndex = 0;
49017
49336
  this._unselectableCount = 0;
49018
49337
  this._onSelectionChanged = onSelectionChanged;
49338
+ this._onItemsChanged = onItemsChanged;
49019
49339
  this._canSelectItem = canSelectItem;
49340
+ this._keyToIndexMap = {};
49020
49341
  this._isModal = false;
49021
49342
  this.setItems(items || [], true);
49022
49343
  this.count = this.getSelectedCount();
@@ -49068,12 +49389,16 @@ var Selection = /** @class */ (function () {
49068
49389
  this.setChangeEvents(false);
49069
49390
  // Reset the unselectable count.
49070
49391
  this._unselectableCount = 0;
49392
+ var haveItemsChanged = false;
49071
49393
  // Build lookup table for quick selection evaluation.
49072
49394
  for (var i = 0; i < items.length; i++) {
49073
49395
  var item = items[i];
49074
49396
  if (item) {
49075
49397
  var key = this.getKey(item, i);
49076
49398
  if (key) {
49399
+ if (!haveItemsChanged && (!(key in this._keyToIndexMap) || this._keyToIndexMap[key] !== i)) {
49400
+ haveItemsChanged = true;
49401
+ }
49077
49402
  newKeyToIndexMap[key] = i;
49078
49403
  }
49079
49404
  }
@@ -49110,6 +49435,15 @@ var Selection = /** @class */ (function () {
49110
49435
  // If everything was selected but the number of items has changed, selection has changed.
49111
49436
  hasSelectionChanged = true;
49112
49437
  }
49438
+ if (!haveItemsChanged) {
49439
+ for (var _i = 0, _a = Object.keys(this._keyToIndexMap); _i < _a.length; _i++) {
49440
+ var key = _a[_i];
49441
+ if (!(key in newKeyToIndexMap)) {
49442
+ haveItemsChanged = true;
49443
+ break;
49444
+ }
49445
+ }
49446
+ }
49113
49447
  this._exemptedIndices = newExemptedIndicies;
49114
49448
  this._exemptedCount = newExemptedCount;
49115
49449
  this._keyToIndexMap = newKeyToIndexMap;
@@ -49118,6 +49452,14 @@ var Selection = /** @class */ (function () {
49118
49452
  this._selectedItems = null;
49119
49453
  if (hasSelectionChanged) {
49120
49454
  this._updateCount();
49455
+ }
49456
+ if (haveItemsChanged) {
49457
+ EventGroup_1.EventGroup.raise(this, Selection_types_1.SELECTION_ITEMS_CHANGE);
49458
+ if (this._onItemsChanged) {
49459
+ this._onItemsChanged();
49460
+ }
49461
+ }
49462
+ if (hasSelectionChanged) {
49121
49463
  this._change();
49122
49464
  }
49123
49465
  this.setChangeEvents(true);
@@ -49158,6 +49500,10 @@ var Selection = /** @class */ (function () {
49158
49500
  }
49159
49501
  return this._selectedIndices;
49160
49502
  };
49503
+ Selection.prototype.getItemIndex = function (key) {
49504
+ var index = this._keyToIndexMap[key];
49505
+ return (index !== null && index !== void 0 ? index : -1);
49506
+ };
49161
49507
  Selection.prototype.isRangeSelected = function (fromIndex, count) {
49162
49508
  if (count === 0) {
49163
49509
  return false;
@@ -49630,7 +49976,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
49630
49976
  // Do not modify this file; it is generated as part of publish.
49631
49977
  // The checked in version is a placeholder only and will not be updated.
49632
49978
  var set_version_1 = __webpack_require__(57);
49633
- set_version_1.setVersion('@uifabric/utilities', '7.33.5');
49979
+ set_version_1.setVersion('@uifabric/utilities', '7.34.0');
49634
49980
 
49635
49981
 
49636
49982
  /***/ }),
@@ -51307,7 +51653,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
51307
51653
  // Do not modify this file; it is generated as part of publish.
51308
51654
  // The checked in version is a placeholder only and will not be updated.
51309
51655
  var set_version_1 = __webpack_require__(57);
51310
- set_version_1.setVersion('@uifabric/styling', '7.19.0');
51656
+ set_version_1.setVersion('@uifabric/styling', '7.20.1');
51311
51657
 
51312
51658
 
51313
51659
  /***/ }),
@@ -51589,20 +51935,31 @@ var Utilities_1 = __webpack_require__(3);
51589
51935
  var Layer_notification_1 = __webpack_require__(685);
51590
51936
  var LayerHost = /** @class */ (function (_super) {
51591
51937
  tslib_1.__extends(LayerHost, _super);
51592
- function LayerHost() {
51593
- return _super !== null && _super.apply(this, arguments) || this;
51938
+ function LayerHost(props) {
51939
+ var _this = _super.call(this, props) || this;
51940
+ var layerHostId = Utilities_1.getId();
51941
+ var _a = _this.props.id, hostId = _a === void 0 ? layerHostId : _a;
51942
+ _this.hostId = hostId;
51943
+ _this.rootRef = React.createRef();
51944
+ Utilities_1.initializeComponentRef(_this);
51945
+ return _this;
51594
51946
  }
51947
+ LayerHost.prototype.notifyLayersChanged = function () {
51948
+ // Nothing, since the default implementation of Layer Host does not need to react to layer changes.
51949
+ };
51595
51950
  LayerHost.prototype.shouldComponentUpdate = function () {
51596
51951
  return false;
51597
51952
  };
51598
51953
  LayerHost.prototype.componentDidMount = function () {
51954
+ Layer_notification_1.registerLayerHost(this.hostId, this);
51599
51955
  Layer_notification_1.notifyHostChanged(this.props.id);
51600
51956
  };
51601
51957
  LayerHost.prototype.componentWillUnmount = function () {
51958
+ Layer_notification_1.unregisterLayerHost(this.hostId, this);
51602
51959
  Layer_notification_1.notifyHostChanged(this.props.id);
51603
51960
  };
51604
51961
  LayerHost.prototype.render = function () {
51605
- return React.createElement("div", tslib_1.__assign({}, this.props, { className: Utilities_1.css('ms-LayerHost', this.props.className) }));
51962
+ return React.createElement("div", tslib_1.__assign({}, this.props, { className: Utilities_1.css('ms-LayerHost', this.props.className), ref: this.rootRef }));
51606
51963
  };
51607
51964
  return LayerHost;
51608
51965
  }(React.Component));
@@ -51630,7 +51987,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
51630
51987
  // Do not modify this file; it is generated as part of publish.
51631
51988
  // The checked in version is a placeholder only and will not be updated.
51632
51989
  var set_version_1 = __webpack_require__(57);
51633
- set_version_1.setVersion('@uifabric/react-hooks', '7.14.0');
51990
+ set_version_1.setVersion('@uifabric/react-hooks', '7.14.1');
51634
51991
 
51635
51992
 
51636
51993
  /***/ }),
@@ -52505,7 +52862,11 @@ function onRenderSubMenu(subMenuProps) {
52505
52862
  return React.createElement(LocalContextualMenu, tslib_1.__assign({}, subMenuProps));
52506
52863
  }
52507
52864
  // This is to prevent cyclic import with ContextualMenu.base.tsx.
52508
- var LocalContextualMenu = Utilities_1.styled(ContextualMenu_base_1.ContextualMenuBase, ContextualMenu_styles_1.getStyles, function () { return ({ onRenderSubMenu: onRenderSubMenu }); }, { scope: 'ContextualMenu' });
52865
+ var LocalContextualMenu = Utilities_1.styled(ContextualMenu_base_1.ContextualMenuBase, ContextualMenu_styles_1.getStyles, function (props) { return ({
52866
+ onRenderSubMenu: props.onRenderSubMenu
52867
+ ? Utilities_1.composeRenderFunction(props.onRenderSubMenu, onRenderSubMenu)
52868
+ : onRenderSubMenu,
52869
+ }); }, { scope: 'ContextualMenu' });
52509
52870
  /**
52510
52871
  * ContextualMenu description
52511
52872
  */
@@ -52533,7 +52894,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
52533
52894
  // Do not modify this file; it is generated as part of publish.
52534
52895
  // The checked in version is a placeholder only and will not be updated.
52535
52896
  var set_version_1 = __webpack_require__(57);
52536
- set_version_1.setVersion('@fluentui/react-focus', '7.17.6');
52897
+ set_version_1.setVersion('@fluentui/react-focus', '7.18.3');
52537
52898
 
52538
52899
 
52539
52900
  /***/ }),
@@ -52571,6 +52932,35 @@ var LARGE_DISTANCE_FROM_CENTER = 999999999;
52571
52932
  var LARGE_NEGATIVE_DISTANCE_FROM_CENTER = -999999999;
52572
52933
  var focusZoneStyles;
52573
52934
  var focusZoneClass = 'ms-FocusZone';
52935
+ /**
52936
+ * Raises a click on a target element based on a keyboard event.
52937
+ */
52938
+ function raiseClickFromKeyboardEvent(target, ev) {
52939
+ var _a, _b, _c, _d, _e, _f;
52940
+ var event;
52941
+ if (typeof MouseEvent === 'function') {
52942
+ event = new MouseEvent('click', {
52943
+ ctrlKey: (_a = ev) === null || _a === void 0 ? void 0 : _a.ctrlKey,
52944
+ metaKey: (_b = ev) === null || _b === void 0 ? void 0 : _b.metaKey,
52945
+ shiftKey: (_c = ev) === null || _c === void 0 ? void 0 : _c.shiftKey,
52946
+ altKey: (_d = ev) === null || _d === void 0 ? void 0 : _d.altKey,
52947
+ bubbles: (_e = ev) === null || _e === void 0 ? void 0 : _e.bubbles,
52948
+ cancelable: (_f = ev) === null || _f === void 0 ? void 0 : _f.cancelable,
52949
+ });
52950
+ }
52951
+ else {
52952
+ event = document.createEvent('MouseEvents');
52953
+ event.initMouseEvent('click', ev ? ev.bubbles : false, ev ? ev.cancelable : false, window, // not using getWindow() since this can only be run client side
52954
+ 0, // detail
52955
+ 0, // screen x
52956
+ 0, // screen y
52957
+ 0, // client x
52958
+ 0, // client y
52959
+ ev ? ev.ctrlKey : false, ev ? ev.altKey : false, ev ? ev.shiftKey : false, ev ? ev.metaKey : false, 0, // button
52960
+ null);
52961
+ }
52962
+ target.dispatchEvent(event);
52963
+ }
52574
52964
  // Helper function that will return a class for when the root is focused
52575
52965
  function getRootClass() {
52576
52966
  if (!focusZoneStyles) {
@@ -52742,7 +53132,7 @@ var FocusZone = /** @class */ (function (_super) {
52742
53132
  // eslint-disable-next-line @fluentui/deprecated-keyboard-event-props
52743
53133
  switch (ev.which) {
52744
53134
  case utilities_1.KeyCodes.space:
52745
- if (_this._tryInvokeClickForFocusable(ev.target)) {
53135
+ if (_this._tryInvokeClickForFocusable(ev.target, ev)) {
52746
53136
  break;
52747
53137
  }
52748
53138
  return;
@@ -52840,7 +53230,7 @@ var FocusZone = /** @class */ (function (_super) {
52840
53230
  }
52841
53231
  return;
52842
53232
  case utilities_1.KeyCodes.enter:
52843
- if (_this._tryInvokeClickForFocusable(ev.target)) {
53233
+ if (_this._tryInvokeClickForFocusable(ev.target, ev)) {
52844
53234
  break;
52845
53235
  }
52846
53236
  return;
@@ -53143,7 +53533,8 @@ var FocusZone = /** @class */ (function (_super) {
53143
53533
  /**
53144
53534
  * Walk up the dom try to find a focusable element.
53145
53535
  */
53146
- FocusZone.prototype._tryInvokeClickForFocusable = function (target) {
53536
+ FocusZone.prototype._tryInvokeClickForFocusable = function (targetElement, ev) {
53537
+ var target = targetElement;
53147
53538
  if (target === this._root.current || !this.props.shouldRaiseClicks) {
53148
53539
  return false;
53149
53540
  }
@@ -53157,7 +53548,7 @@ var FocusZone = /** @class */ (function (_super) {
53157
53548
  if (this._isImmediateDescendantOfZone(target) &&
53158
53549
  target.getAttribute(IS_FOCUSABLE_ATTRIBUTE) === 'true' &&
53159
53550
  target.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE) !== 'true') {
53160
- utilities_1.raiseClick(target);
53551
+ raiseClickFromKeyboardEvent(target, ev);
53161
53552
  return true;
53162
53553
  }
53163
53554
  target = utilities_1.getParent(target, ALLOW_VIRTUAL_ELEMENTS);
@@ -53632,6 +54023,7 @@ function getIsChecked(item) {
53632
54023
  }
53633
54024
  exports.getIsChecked = getIsChecked;
53634
54025
  function hasSubmenu(item) {
54026
+ // eslint-disable-next-line deprecation/deprecation
53635
54027
  return !!(item.subMenuProps || item.items);
53636
54028
  }
53637
54029
  exports.hasSubmenu = hasSubmenu;
@@ -55013,7 +55405,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
55013
55405
  // Do not modify this file; it is generated as part of publish.
55014
55406
  // The checked in version is a placeholder only and will not be updated.
55015
55407
  var set_version_1 = __webpack_require__(57);
55016
- set_version_1.setVersion('@fluentui/react-theme-provider', '0.18.7');
55408
+ set_version_1.setVersion('@fluentui/react-theme-provider', '0.19.2');
55017
55409
 
55018
55410
 
55019
55411
  /***/ }),
@@ -55982,7 +56374,7 @@ exports.AzureCustomizationsHighContrastDark = {
55982
56374
 
55983
56375
  Object.defineProperty(exports, "__esModule", { value: true });
55984
56376
  var tslib_1 = __webpack_require__(2);
55985
- var StyleConstants = __webpack_require__(31);
56377
+ var StyleConstants = __webpack_require__(30);
55986
56378
  exports.ActionButtonStyles = function (theme) {
55987
56379
  var semanticColors = theme.semanticColors;
55988
56380
  var extendedSemanticColors = semanticColors;
@@ -56129,7 +56521,7 @@ exports.CalloutContentStyles = function (props) {
56129
56521
 
56130
56522
  Object.defineProperty(exports, "__esModule", { value: true });
56131
56523
  var AzureColors_1 = __webpack_require__(86);
56132
- var StyleConstants = __webpack_require__(31);
56524
+ var StyleConstants = __webpack_require__(30);
56133
56525
  exports.CheckboxStyles = function (props) {
56134
56526
  var _a;
56135
56527
  var disabled = props.disabled, checked = props.checked, theme = props.theme, indeterminate = props.indeterminate;
@@ -56249,7 +56641,7 @@ exports.CheckboxStyles = function (props) {
56249
56641
 
56250
56642
  Object.defineProperty(exports, "__esModule", { value: true });
56251
56643
  var AzureType_1 = __webpack_require__(115);
56252
- var StyleConstants = __webpack_require__(31);
56644
+ var StyleConstants = __webpack_require__(30);
56253
56645
  exports.CheckStyles = function (props) {
56254
56646
  var theme = props.theme, checked = props.checked;
56255
56647
  var semanticColors = theme.semanticColors;
@@ -56430,7 +56822,7 @@ exports.DetailsRowStyles = function (props) {
56430
56822
  "use strict";
56431
56823
 
56432
56824
  Object.defineProperty(exports, "__esModule", { value: true });
56433
- var StyleConstants = __webpack_require__(31);
56825
+ var StyleConstants = __webpack_require__(30);
56434
56826
  exports.ChoiceGroupOptionStyles = function (props) {
56435
56827
  var checked = props.checked, disabled = props.disabled, theme = props.theme, hasIcon = props.hasIcon, hasImage = props.hasImage;
56436
56828
  var semanticColors = theme.semanticColors;
@@ -56464,6 +56856,8 @@ exports.ChoiceGroupOptionStyles = function (props) {
56464
56856
  // The circle
56465
56857
  ':before': [
56466
56858
  {
56859
+ width: StyleConstants.choiceGroupDimensions,
56860
+ height: StyleConstants.choiceGroupDimensions,
56467
56861
  borderColor: semanticColors.bodyText,
56468
56862
  },
56469
56863
  checked && {
@@ -56484,6 +56878,8 @@ exports.ChoiceGroupOptionStyles = function (props) {
56484
56878
  ':after': [
56485
56879
  {
56486
56880
  borderColor: extendedSemanticColors.checkboxBorderChecked,
56881
+ top: 4,
56882
+ left: 4,
56487
56883
  },
56488
56884
  checked &&
56489
56885
  disabled && {
@@ -56505,6 +56901,8 @@ exports.ChoiceGroupOptionStyles = function (props) {
56505
56901
  ':after': {
56506
56902
  borderColor: extendedSemanticColors.checkboxBorderChecked,
56507
56903
  backgroundColor: extendedSemanticColors.choiceGroupUncheckedDotHover,
56904
+ top: 4,
56905
+ left: 4,
56508
56906
  },
56509
56907
  },
56510
56908
  },
@@ -56665,7 +57063,7 @@ exports.ColorSliderStyles = function (props) {
56665
57063
 
56666
57064
  Object.defineProperty(exports, "__esModule", { value: true });
56667
57065
  var AzureDepths_1 = __webpack_require__(116);
56668
- var StyleConstants = __webpack_require__(31);
57066
+ var StyleConstants = __webpack_require__(30);
56669
57067
  exports.ComboBoxStyles = function (theme) {
56670
57068
  var semanticColors = theme.semanticColors;
56671
57069
  var extendedSemanticColors = semanticColors;
@@ -56944,7 +57342,7 @@ exports.CommandBarButtonStyles = function (theme) {
56944
57342
 
56945
57343
  Object.defineProperty(exports, "__esModule", { value: true });
56946
57344
  var tslib_1 = __webpack_require__(2);
56947
- var StyleConstants = __webpack_require__(31);
57345
+ var StyleConstants = __webpack_require__(30);
56948
57346
  exports.CompoundButtonStyles = function (theme) {
56949
57347
  var semanticColors = theme.semanticColors;
56950
57348
  var extendedSemanticColors = semanticColors;
@@ -57064,7 +57462,7 @@ exports.CompoundButtonStyles = function (theme) {
57064
57462
 
57065
57463
  Object.defineProperty(exports, "__esModule", { value: true });
57066
57464
  var AzureDepths_1 = __webpack_require__(116);
57067
- var StyleConstants = __webpack_require__(31);
57465
+ var StyleConstants = __webpack_require__(30);
57068
57466
  exports.ContextualMenuStyles = function (props) {
57069
57467
  var theme = props.theme;
57070
57468
  var semanticColors = theme.semanticColors;
@@ -57138,7 +57536,7 @@ exports.ContextualMenuStyles = function (props) {
57138
57536
 
57139
57537
  Object.defineProperty(exports, "__esModule", { value: true });
57140
57538
  var tslib_1 = __webpack_require__(2);
57141
- var StyleConstants = __webpack_require__(31);
57539
+ var StyleConstants = __webpack_require__(30);
57142
57540
  var AzureColors_1 = __webpack_require__(86);
57143
57541
  exports.DatePickerStyles = function (props) {
57144
57542
  var disabled = props.disabled, theme = props.theme;
@@ -57279,7 +57677,7 @@ exports.DatePickerStyles = function (props) {
57279
57677
  "use strict";
57280
57678
 
57281
57679
  Object.defineProperty(exports, "__esModule", { value: true });
57282
- var StyleConstants = __webpack_require__(31);
57680
+ var StyleConstants = __webpack_require__(30);
57283
57681
  exports.DefaultButtonStyles = function (theme) {
57284
57682
  var semanticColors = theme.semanticColors;
57285
57683
  var extendedSemanticColors = semanticColors;
@@ -57290,6 +57688,10 @@ exports.DefaultButtonStyles = function (theme) {
57290
57688
  padding: '0px 16px',
57291
57689
  border: StyleConstants.borderWidth + " solid " + semanticColors.inputBorder,
57292
57690
  selectors: {
57691
+ // fix for azure portal bug, text-alignment is off.
57692
+ '.ms-Button-label': {
57693
+ lineHeight: '20px',
57694
+ },
57293
57695
  // standard button
57294
57696
  '&.is-expanded': {
57295
57697
  color: semanticColors.buttonTextHovered,
@@ -57714,7 +58116,7 @@ exports.DocumentCardStyles = function (props) {
57714
58116
 
57715
58117
  Object.defineProperty(exports, "__esModule", { value: true });
57716
58118
  var AzureDepths_1 = __webpack_require__(116);
57717
- var StyleConstants = __webpack_require__(31);
58119
+ var StyleConstants = __webpack_require__(30);
57718
58120
  exports.DropdownStyles = function (props) {
57719
58121
  var _a, _b, _c, _d;
57720
58122
  var disabled = props.disabled, theme = props.theme, hasError = props.hasError, isOpen = props.isOpen;
@@ -57785,7 +58187,7 @@ exports.DropdownStyles = function (props) {
57785
58187
  selectors: (_c = {},
57786
58188
  _c['.ms-Dropdown-title'] = {
57787
58189
  color: semanticColors.bodyText,
57788
- borderColor: semanticColors.inputPlaceholderText,
58190
+ borderColor: semanticColors.inputBorder,
57789
58191
  backgroundColor: extendedSemanticColors.controlBackground,
57790
58192
  },
57791
58193
  _c['.ms-Dropdown-titleIsPlaceHolder.ms-Dropdown-title'] = {
@@ -57913,7 +58315,7 @@ exports.DropdownStyles = function (props) {
57913
58315
  "use strict";
57914
58316
 
57915
58317
  Object.defineProperty(exports, "__esModule", { value: true });
57916
- var StyleConstants = __webpack_require__(31);
58318
+ var StyleConstants = __webpack_require__(30);
57917
58319
  exports.IconButtonStyles = function (theme) {
57918
58320
  var semanticColors = theme.semanticColors;
57919
58321
  var extendedSemanticColors = semanticColors;
@@ -59029,7 +59431,7 @@ exports.getStyles = function (props) {
59029
59431
 
59030
59432
  Object.defineProperty(exports, "__esModule", { value: true });
59031
59433
  var AzureDepths_1 = __webpack_require__(116);
59032
- var StyleConstants = __webpack_require__(31);
59434
+ var StyleConstants = __webpack_require__(30);
59033
59435
  exports.ModalStyles = function (props) {
59034
59436
  var theme = props.theme;
59035
59437
  var semanticColors = theme.semanticColors;
@@ -59078,7 +59480,7 @@ exports.OverlayStyles = function (props) {
59078
59480
  "use strict";
59079
59481
 
59080
59482
  Object.defineProperty(exports, "__esModule", { value: true });
59081
- var Constants_1 = __webpack_require__(31);
59483
+ var Constants_1 = __webpack_require__(30);
59082
59484
  exports.NavStyles = function (props) {
59083
59485
  var theme = props.theme;
59084
59486
  var semanticColors = theme.semanticColors;
@@ -59152,7 +59554,7 @@ exports.PanelStyles = function (props) {
59152
59554
  "use strict";
59153
59555
 
59154
59556
  Object.defineProperty(exports, "__esModule", { value: true });
59155
- var StyleConstants = __webpack_require__(31);
59557
+ var StyleConstants = __webpack_require__(30);
59156
59558
  exports.PivotStyles = function (props) {
59157
59559
  var theme = props.theme, rootIsTabs = props.rootIsTabs, rootIsLarge = props.rootIsLarge;
59158
59560
  var semanticColors = theme.semanticColors;
@@ -59307,7 +59709,7 @@ exports.PivotStyles = function (props) {
59307
59709
  "use strict";
59308
59710
 
59309
59711
  Object.defineProperty(exports, "__esModule", { value: true });
59310
- var StyleConstants = __webpack_require__(31);
59712
+ var StyleConstants = __webpack_require__(30);
59311
59713
  exports.ExpandingCardStyles = function (props) {
59312
59714
  var theme = props.theme;
59313
59715
  var semanticColors = theme.semanticColors;
@@ -59347,7 +59749,7 @@ exports.PlainCardStyles = function (props) {
59347
59749
  "use strict";
59348
59750
 
59349
59751
  Object.defineProperty(exports, "__esModule", { value: true });
59350
- var StyleConstants = __webpack_require__(31);
59752
+ var StyleConstants = __webpack_require__(30);
59351
59753
  exports.PrimaryButtonStyles = function (theme) {
59352
59754
  var semanticColors = theme.semanticColors;
59353
59755
  var extendedSemanticColors = semanticColors;
@@ -59471,7 +59873,7 @@ exports.RatingStyles = function (props) {
59471
59873
  "use strict";
59472
59874
 
59473
59875
  Object.defineProperty(exports, "__esModule", { value: true });
59474
- var StyleConstants = __webpack_require__(31);
59876
+ var StyleConstants = __webpack_require__(30);
59475
59877
  exports.SearchBoxStyles = function (props) {
59476
59878
  var theme = props.theme, hasFocus = props.hasFocus;
59477
59879
  var semanticColors = theme.semanticColors;
@@ -59532,63 +59934,71 @@ exports.SearchBoxStyles = function (props) {
59532
59934
  "use strict";
59533
59935
 
59534
59936
  Object.defineProperty(exports, "__esModule", { value: true });
59535
- var StyleConstants = __webpack_require__(31);
59937
+ var StyleConstants = __webpack_require__(30);
59536
59938
  var SLIDER_BOX_DIMENSION = 8;
59537
59939
  var SLIDER_DIAMETER = 16;
59538
- var SLIDER_OFFSET = 2;
59539
- var SLIDER_BORDER_RADIUS = 0;
59940
+ var SLIDER_BORDER_RADIUS = 10;
59540
59941
  exports.SliderStyles = function (props) {
59541
59942
  var disabled = props.disabled, theme = props.theme, vertical = props.vertical;
59542
59943
  var semanticColors = theme.semanticColors;
59944
+ var extendedSemanticColors = semanticColors;
59543
59945
  return {
59946
+ root: {
59947
+ selectors: {
59948
+ ':not(.ms-Slider-disabled) .ms-Slider-container:hover .ms-Slider-inactive': {
59949
+ backgroundColor: extendedSemanticColors.sliderInActiveHover,
59950
+ },
59951
+ ':not(.ms-Slider-disabled) .ms-Slider-container:hover .ms-Slider-active': {
59952
+ backgroundColor: extendedSemanticColors.sliderActiveHover,
59953
+ },
59954
+ ':not(.ms-Slider-disabled) .ms-Slider-container:hover .ms-Slider-thumb': {
59955
+ borderColor: extendedSemanticColors.sliderActiveHover,
59956
+ },
59957
+ ':not(.ms-Slider-disabled) .ms-Slider-container:active .ms-Slider-inactive': {
59958
+ backgroundColor: extendedSemanticColors.sliderInActiveHover,
59959
+ },
59960
+ ':not(.ms-Slider-disabled) .ms-Slider-container:active .ms-Slider-active': {
59961
+ backgroundColor: extendedSemanticColors.sliderActivePressed,
59962
+ },
59963
+ ':not(.ms-Slider-disabled) .ms-Slider-container:active .ms-Slider-thumb': {
59964
+ borderColor: extendedSemanticColors.sliderActivePressed,
59965
+ },
59966
+ },
59967
+ },
59968
+ // left side of bar
59544
59969
  activeSection: [
59545
59970
  !disabled && {
59546
- backgroundColor: semanticColors.controlAccent,
59971
+ backgroundColor: extendedSemanticColors.sliderActiveBackground,
59547
59972
  },
59548
59973
  disabled && {
59549
- background: semanticColors.disabledBodyText,
59974
+ background: extendedSemanticColors.sliderDisabledActiveBackground,
59550
59975
  },
59551
59976
  ],
59977
+ // right side of bar
59552
59978
  inactiveSection: [
59553
59979
  !disabled && {
59554
- background: semanticColors.controlOutlineDisabled,
59980
+ background: extendedSemanticColors.controlOutlineDisabled,
59555
59981
  },
59556
59982
  disabled && {
59557
- background: semanticColors.disabledBodyText,
59983
+ background: extendedSemanticColors.sliderDisabledInActiveBackground,
59558
59984
  },
59559
59985
  ],
59560
59986
  slideBox: [
59561
59987
  !disabled && {
59562
59988
  selectors: {
59563
- '.ms-Slider-thumb': [
59564
- {
59565
- borderColor: semanticColors.controlAccent,
59566
- height: SLIDER_DIAMETER,
59567
- width: SLIDER_DIAMETER,
59568
- },
59569
- vertical && {
59570
- marginLeft: SLIDER_OFFSET,
59571
- },
59572
- !vertical && {
59573
- marginTop: SLIDER_OFFSET,
59574
- },
59575
- ],
59989
+ '.ms-Slider-thumb': {
59990
+ borderColor: extendedSemanticColors.sliderActiveBackground,
59991
+ width: SLIDER_DIAMETER,
59992
+ },
59576
59993
  },
59577
59994
  },
59578
59995
  disabled && {
59579
59996
  selectors: {
59580
59997
  '.ms-Slider-thumb': [
59581
59998
  {
59582
- borderColor: semanticColors.disabledBodyText,
59583
- height: SLIDER_DIAMETER,
59999
+ borderColor: extendedSemanticColors.sliderDisabledActiveBackground,
59584
60000
  width: SLIDER_DIAMETER,
59585
60001
  },
59586
- vertical && {
59587
- marginLeft: SLIDER_OFFSET,
59588
- },
59589
- !vertical && {
59590
- marginTop: SLIDER_OFFSET,
59591
- },
59592
60002
  ],
59593
60003
  },
59594
60004
  },
@@ -59597,11 +60007,9 @@ exports.SliderStyles = function (props) {
59597
60007
  !vertical && {
59598
60008
  selectors: {
59599
60009
  '.ms-Slider-active': {
59600
- height: SLIDER_BOX_DIMENSION,
59601
60010
  borderRadius: SLIDER_BORDER_RADIUS,
59602
60011
  },
59603
60012
  '.ms-Slider-inactive': {
59604
- height: SLIDER_BOX_DIMENSION,
59605
60013
  borderRadius: SLIDER_BORDER_RADIUS,
59606
60014
  },
59607
60015
  },
@@ -59628,18 +60036,19 @@ exports.SliderStyles = function (props) {
59628
60036
  selectors: {
59629
60037
  '&.ms-Slider-value': {
59630
60038
  color: semanticColors.bodyText,
60039
+ borderRadius: StyleConstants.borderRadius,
59631
60040
  },
59632
60041
  },
59633
60042
  },
59634
60043
  disabled && {
59635
- borderColor: semanticColors.inputBorder,
60044
+ borderColor: extendedSemanticColors.controlOutlineDisabled,
59636
60045
  borderStyle: StyleConstants.borderSolid,
59637
60046
  borderWidth: StyleConstants.borderWidth,
59638
- color: semanticColors.disabledText,
59639
60047
  textAlign: StyleConstants.textAlignCenter,
59640
60048
  selectors: {
59641
60049
  '&.ms-Slider-value': {
59642
- color: semanticColors.disabledBodyText,
60050
+ color: extendedSemanticColors.sliderDisabledActiveBackground,
60051
+ borderRadius: StyleConstants.borderRadius,
59643
60052
  },
59644
60053
  },
59645
60054
  },
@@ -59751,7 +60160,7 @@ exports.SuggestionsStyles = function (props) {
59751
60160
  "use strict";
59752
60161
 
59753
60162
  Object.defineProperty(exports, "__esModule", { value: true });
59754
- var Constants_1 = __webpack_require__(31);
60163
+ var Constants_1 = __webpack_require__(30);
59755
60164
  exports.TagItemStyles = function (props) {
59756
60165
  var theme = props.theme, selected = props.selected;
59757
60166
  if (!theme) {
@@ -59803,7 +60212,7 @@ exports.TagItemStyles = function (props) {
59803
60212
  "use strict";
59804
60213
 
59805
60214
  Object.defineProperty(exports, "__esModule", { value: true });
59806
- var StyleConstants = __webpack_require__(31);
60215
+ var StyleConstants = __webpack_require__(30);
59807
60216
  exports.TagPickerStyles = function (props) {
59808
60217
  var theme = props.theme;
59809
60218
  if (!theme) {
@@ -59965,7 +60374,7 @@ exports.TeachingBubbleStyles = function (props) {
59965
60374
  "use strict";
59966
60375
 
59967
60376
  Object.defineProperty(exports, "__esModule", { value: true });
59968
- var StyleConstants = __webpack_require__(31);
60377
+ var StyleConstants = __webpack_require__(30);
59969
60378
  exports.TextFieldStyles = function (props) {
59970
60379
  var focused = props.focused, disabled = props.disabled, hasErrorMessage = props.hasErrorMessage, multiline = props.multiline, theme = props.theme;
59971
60380
  var semanticColors = theme.semanticColors;
@@ -59976,7 +60385,7 @@ exports.TextFieldStyles = function (props) {
59976
60385
  height: StyleConstants.inputControlHeight,
59977
60386
  },
59978
60387
  !hasErrorMessage && {
59979
- borderColor: semanticColors.inputPlaceholderText,
60388
+ borderColor: semanticColors.inputBorder,
59980
60389
  selectors: {
59981
60390
  '::after': {
59982
60391
  borderColor: extendedSemanticColors.controlFocus,
@@ -60057,7 +60466,7 @@ exports.TextFieldStyles = function (props) {
60057
60466
  "use strict";
60058
60467
 
60059
60468
  Object.defineProperty(exports, "__esModule", { value: true });
60060
- var StyleConstants = __webpack_require__(31);
60469
+ var StyleConstants = __webpack_require__(30);
60061
60470
  exports.ToggleStyles = function (props) {
60062
60471
  var theme = props.theme, disabled = props.disabled, checked = props.checked;
60063
60472
  var semanticColors = theme.semanticColors;
@@ -60183,10 +60592,19 @@ exports.ToggleStyles = function (props) {
60183
60592
  "use strict";
60184
60593
 
60185
60594
  Object.defineProperty(exports, "__esModule", { value: true });
60595
+ var StyleConstants = __webpack_require__(30);
60186
60596
  exports.TooltipStyles = function (props) {
60597
+ var theme = props.theme;
60598
+ var semanticColors = theme.semanticColors;
60599
+ var extendedSemanticColors = semanticColors;
60187
60600
  return {
60188
60601
  root: {
60189
60602
  maxWidth: '480px',
60603
+ padding: 0,
60604
+ },
60605
+ content: {
60606
+ backgroundColor: extendedSemanticColors.controlBackground,
60607
+ padding: StyleConstants.inputControlPadding,
60190
60608
  },
60191
60609
  };
60192
60610
  };
@@ -62547,7 +62965,7 @@ var CalendarDay = /** @class */ (function (_super) {
62547
62965
  _a[styles.daySelection] = dateRangeType === DateValues_1.DateRangeType.Day,
62548
62966
  _a[styles.weekSelection] = dateRangeType === DateValues_1.DateRangeType.Week || dateRangeType === DateValues_1.DateRangeType.WorkWeek,
62549
62967
  _a[styles.monthSelection] = dateRangeType === DateValues_1.DateRangeType.Month,
62550
- _a)), ref: function (element) { return _this._setDayCellRef(element, day, isNavigatedDate); }, onMouseOver: dateRangeType !== DateValues_1.DateRangeType.Day && day.isInBounds
62968
+ _a)), ref: function (element) { return _this._setDayCellRef(element, day, isNavigatedDate); }, onKeyDown: _this._onDayKeyDown(day.originalDate, weekIndex, dayIndex), onMouseOver: dateRangeType !== DateValues_1.DateRangeType.Day && day.isInBounds
62551
62969
  ? _this._onDayMouseOver(day.originalDate, weekIndex, dayIndex, dateRangeType)
62552
62970
  : undefined, onMouseLeave: dateRangeType !== DateValues_1.DateRangeType.Day && day.isInBounds
62553
62971
  ? _this._onDayMouseLeave(day.originalDate, weekIndex, dayIndex, dateRangeType)
@@ -62555,11 +62973,11 @@ var CalendarDay = /** @class */ (function (_super) {
62555
62973
  ? _this._onDayMouseDown(day.originalDate, weekIndex, dayIndex, dateRangeType)
62556
62974
  : undefined, onMouseUp: dateRangeType !== DateValues_1.DateRangeType.Day && day.isInBounds
62557
62975
  ? _this._onDayMouseUp(day.originalDate, weekIndex, dayIndex, dateRangeType)
62558
- : undefined, role: 'presentation' },
62976
+ : undefined, role: 'gridcell', "data-is-focusable": allFocusable || (day.isInBounds ? true : undefined), "aria-disabled": !day.isInBounds, "aria-current": day.isToday ? 'date' : undefined, "aria-selected": day.isInBounds ? day.isSelected : undefined },
62559
62977
  React.createElement("button", { key: day.key + 'button', onClick: day.isInBounds ? day.onSelected : undefined, className: Utilities_1.css(styles.day, 'ms-DatePicker-day-button', (_b = {},
62560
62978
  _b['ms-DatePicker-day--disabled ' + styles.dayIsDisabled] = !day.isInBounds,
62561
62979
  _b['ms-DatePicker-day--today ' + styles.dayIsToday] = day.isToday,
62562
- _b)), onKeyDown: _this._onDayKeyDown(day.originalDate, weekIndex, dayIndex), "aria-label": dateTimeFormatter.formatMonthDayYear(day.originalDate, strings), id: isNavigatedDate ? activeDescendantId : undefined, "aria-readonly": true, "aria-current": day.isToday ? 'date' : undefined, "aria-selected": day.isInBounds ? day.isSelected : undefined, "data-is-focusable": allFocusable || (day.isInBounds ? true : undefined), ref: function (element) { return _this._setDayRef(element, day, isNavigatedDate); }, disabled: !allFocusable && !day.isInBounds, "aria-disabled": !day.isInBounds, type: "button", role: 'gridcell' },
62980
+ _b)), "aria-label": dateTimeFormatter.formatMonthDayYear(day.originalDate, strings), id: isNavigatedDate ? activeDescendantId : undefined, "data-is-focusable": false, disabled: !allFocusable && !day.isInBounds, "aria-disabled": !day.isInBounds, tabIndex: -1, type: "button" },
62563
62981
  React.createElement("span", { "aria-hidden": "true" }, dateTimeFormatter.formatDay(day.originalDate)))));
62564
62982
  })));
62565
62983
  }))))));
@@ -62570,14 +62988,12 @@ var CalendarDay = /** @class */ (function (_super) {
62570
62988
  this.navigatedDay.focus();
62571
62989
  }
62572
62990
  };
62573
- CalendarDay.prototype._setDayRef = function (element, day, isNavigatedDate) {
62991
+ CalendarDay.prototype._setDayCellRef = function (element, day, isNavigatedDate) {
62992
+ this.days[day.key] = element;
62574
62993
  if (isNavigatedDate) {
62575
62994
  this.navigatedDay = element;
62576
62995
  }
62577
62996
  };
62578
- CalendarDay.prototype._setDayCellRef = function (element, day, isNavigatedDate) {
62579
- this.days[day.key] = element;
62580
- };
62581
62997
  CalendarDay.prototype._getWeekCornerStyles = function (weeks, dateRangeType) {
62582
62998
  var _this = this;
62583
62999
  var weekCornersStyled = {};
@@ -68287,8 +68703,10 @@ var GlobalClassNames = {
68287
68703
  withoutLabel: 'ms-DatePicker-event--without-label',
68288
68704
  disabled: 'msDatePickerDisabled ',
68289
68705
  };
68706
+ var TEXTFIELD_HEIGHT = 32;
68290
68707
  exports.styles = function (props) {
68291
- var className = props.className, theme = props.theme, disabled = props.disabled, label = props.label, isDatePickerShown = props.isDatePickerShown;
68708
+ var _a, _b;
68709
+ var className = props.className, theme = props.theme, disabled = props.disabled, underlined = props.underlined, label = props.label, isDatePickerShown = props.isDatePickerShown;
68292
68710
  var palette = theme.palette, semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts;
68293
68711
  var classNames = Styling_1.getGlobalClassNames(GlobalClassNames, theme);
68294
68712
  var DatePickerIcon = {
@@ -68343,6 +68761,28 @@ exports.styles = function (props) {
68343
68761
  cursor: 'default',
68344
68762
  },
68345
68763
  ],
68764
+ readOnlyTextField: [
68765
+ {
68766
+ cursor: 'pointer',
68767
+ height: TEXTFIELD_HEIGHT,
68768
+ lineHeight: TEXTFIELD_HEIGHT - 2,
68769
+ overflow: 'hidden',
68770
+ textOverflow: 'ellipsis',
68771
+ selectors: (_a = {},
68772
+ _a['&:focus'] = Styling_1.getInputFocusStyle(semanticColors.inputFocusBorderAlt, effects.roundedCorner2),
68773
+ _a),
68774
+ },
68775
+ underlined && {
68776
+ lineHeight: TEXTFIELD_HEIGHT + 2,
68777
+ },
68778
+ ],
68779
+ readOnlyPlaceholder: (_b = {
68780
+ color: semanticColors.inputPlaceholderText
68781
+ },
68782
+ _b[Styling_1.HighContrastSelector] = {
68783
+ color: 'GrayText',
68784
+ },
68785
+ _b),
68346
68786
  };
68347
68787
  };
68348
68788
 
@@ -68887,9 +69327,9 @@ var SelectionZone = /** @class */ (function (_super) {
68887
69327
  }
68888
69328
  };
68889
69329
  SelectionZone.prototype._clearAndSelectIndex = function (index) {
68890
- var selection = this.props.selection;
69330
+ var _a = this.props, selection = _a.selection, _b = _a.selectionClearedOnSurfaceClick, selectionClearedOnSurfaceClick = _b === void 0 ? true : _b;
68891
69331
  var isAlreadySingleSelected = selection.getSelectedCount() === 1 && selection.isIndexSelected(index);
68892
- if (!isAlreadySingleSelected) {
69332
+ if (!isAlreadySingleSelected && selectionClearedOnSurfaceClick) {
68893
69333
  var isModal = selection.isModal && selection.isModal();
68894
69334
  selection.setChangeEvents(false);
68895
69335
  selection.setAllSelected(false);
@@ -69457,7 +69897,7 @@ var GroupHeaderBase = /** @class */ (function (_super) {
69457
69897
  return (React.createElement("div", { className: this._classNames.root, style: viewport ? { minWidth: viewport.width } : {}, onClick: this._onHeaderClick, role: "row", "aria-setsize": ariaSetSize, "aria-posinset": ariaPosInSet, "data-is-focusable": true, onKeyUp: this._onKeyUp, "aria-label": group.ariaLabel, "aria-labelledby": group.ariaLabel ? undefined : this._id, "aria-expanded": !this.state.isCollapsed, "aria-selected": canSelectGroup ? currentlySelected : undefined, "aria-level": groupLevel + 1 },
69458
69898
  React.createElement("div", { className: this._classNames.groupHeaderContainer, role: "presentation" },
69459
69899
  isSelectionCheckVisible ? (React.createElement("div", { role: "gridcell" },
69460
- React.createElement("button", tslib_1.__assign({ "data-is-focusable": false, type: "button", className: this._classNames.check, role: "checkbox", "aria-checked": currentlySelected, "data-selection-toggle": true, onClick: this._onToggleSelectGroupClick }, selectAllButtonProps), onRenderCheckbox({ checked: currentlySelected, theme: theme }, onRenderCheckbox)))) : (selectionMode !== Selection_1.SelectionMode.none && React.createElement(GroupSpacer_1.GroupSpacer, { indentWidth: indentWidth, count: 1 })),
69900
+ React.createElement("button", tslib_1.__assign({ "data-is-focusable": false, type: "button", className: this._classNames.check, role: "checkbox", id: this._id + "-check", "aria-checked": currentlySelected, "aria-labelledby": this._id + "-check " + this._id, "data-selection-toggle": true, onClick: this._onToggleSelectGroupClick }, selectAllButtonProps), onRenderCheckbox({ checked: currentlySelected, theme: theme }, onRenderCheckbox)))) : (selectionMode !== Selection_1.SelectionMode.none && React.createElement(GroupSpacer_1.GroupSpacer, { indentWidth: indentWidth, count: 1 })),
69461
69901
  React.createElement(GroupSpacer_1.GroupSpacer, { indentWidth: indentWidth, count: groupLevel }),
69462
69902
  React.createElement("div", { className: this._classNames.dropIcon, role: "presentation" },
69463
69903
  React.createElement(Icon_1.Icon, { iconName: "Tag" })),
@@ -73641,7 +74081,7 @@ var GlobalClassNames = {
73641
74081
  };
73642
74082
  var REMOVE_BUTTON_SIZE = 24;
73643
74083
  function getStyles(props) {
73644
- var _a, _b, _c, _d, _e, _f, _g;
74084
+ var _a, _b, _c, _d, _e, _f, _g, _h;
73645
74085
  var className = props.className, theme = props.theme, selected = props.selected, invalid = props.invalid, disabled = props.disabled;
73646
74086
  var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts;
73647
74087
  var classNames = Styling_1.getGlobalClassNames(GlobalClassNames, theme);
@@ -73684,6 +74124,22 @@ function getStyles(props) {
73684
74124
  _c),
73685
74125
  },
73686
74126
  ];
74127
+ var personaSecondaryTextStyles = [
74128
+ selected &&
74129
+ !invalid &&
74130
+ !disabled && {
74131
+ color: palette.white,
74132
+ selectors: (_d = {
74133
+ ':hover': {
74134
+ color: palette.white,
74135
+ }
74136
+ },
74137
+ _d[Styling_1.HighContrastSelector] = {
74138
+ color: 'HighlightText',
74139
+ },
74140
+ _d),
74141
+ },
74142
+ ];
73687
74143
  var personaCoinInitialsStyles = [
73688
74144
  invalid && {
73689
74145
  fontSize: fonts.xLarge.fontSize,
@@ -73704,22 +74160,22 @@ function getStyles(props) {
73704
74160
  maxWidth: 300,
73705
74161
  verticalAlign: 'middle',
73706
74162
  minWidth: 0,
73707
- selectors: (_d = {
74163
+ selectors: (_e = {
73708
74164
  ':hover': {
73709
74165
  background: !selected && !disabled ? palette.neutralLight : '',
73710
74166
  }
73711
74167
  },
73712
- _d[Styling_1.HighContrastSelector] = [{ border: '1px solid WindowText' }, disabled && { borderColor: 'GrayText' }],
73713
- _d),
74168
+ _e[Styling_1.HighContrastSelector] = [{ border: '1px solid WindowText' }, disabled && { borderColor: 'GrayText' }],
74169
+ _e),
73714
74170
  },
73715
74171
  selected &&
73716
74172
  !disabled && [
73717
74173
  classNames.isSelected,
73718
74174
  {
73719
74175
  background: palette.themePrimary,
73720
- selectors: (_e = {},
73721
- _e[Styling_1.HighContrastSelector] = tslib_1.__assign({ borderColor: 'HighLight', background: 'Highlight' }, Styling_1.getHighContrastNoAdjustStyle()),
73722
- _e),
74176
+ selectors: (_f = {},
74177
+ _f[Styling_1.HighContrastSelector] = tslib_1.__assign({ borderColor: 'HighLight', background: 'Highlight' }, Styling_1.getHighContrastNoAdjustStyle()),
74178
+ _f),
73723
74179
  },
73724
74180
  ],
73725
74181
  invalid && [classNames.isInvalid],
@@ -73759,7 +74215,7 @@ function getStyles(props) {
73759
74215
  selected && [
73760
74216
  {
73761
74217
  color: palette.white,
73762
- selectors: (_f = {
74218
+ selectors: (_g = {
73763
74219
  ':hover': {
73764
74220
  color: palette.white,
73765
74221
  background: palette.themeDark,
@@ -73769,10 +74225,10 @@ function getStyles(props) {
73769
74225
  background: palette.themeDarker,
73770
74226
  }
73771
74227
  },
73772
- _f[Styling_1.HighContrastSelector] = {
74228
+ _g[Styling_1.HighContrastSelector] = {
73773
74229
  color: 'HighlightText',
73774
74230
  },
73775
- _f),
74231
+ _g),
73776
74232
  },
73777
74233
  invalid && {
73778
74234
  selectors: {
@@ -73786,16 +74242,17 @@ function getStyles(props) {
73786
74242
  },
73787
74243
  ],
73788
74244
  disabled && {
73789
- selectors: (_g = {},
73790
- _g["." + BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon] = {
74245
+ selectors: (_h = {},
74246
+ _h["." + BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon] = {
73791
74247
  color: semanticColors.buttonText,
73792
74248
  },
73793
- _g),
74249
+ _h),
73794
74250
  },
73795
74251
  ],
73796
74252
  subComponentStyles: {
73797
74253
  persona: {
73798
74254
  primaryText: personaPrimaryTextStyles,
74255
+ secondaryText: personaSecondaryTextStyles,
73799
74256
  },
73800
74257
  personaCoin: {
73801
74258
  initials: personaCoinInitialsStyles,
@@ -78767,7 +79224,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
78767
79224
  // Do not modify this file; it is generated as part of publish.
78768
79225
  // The checked in version is a placeholder only and will not be updated.
78769
79226
  var set_version_1 = __webpack_require__(57);
78770
- set_version_1.setVersion('@uifabric/icons', '7.5.23');
79227
+ set_version_1.setVersion('@uifabric/icons', '7.7.0');
78771
79228
 
78772
79229
 
78773
79230
  /***/ }),
@@ -80203,6 +80660,7 @@ function getStyles(props) {
80203
80660
  },
80204
80661
  _c[":hover ." + classNames.icon] = {
80205
80662
  opacity: 0,
80663
+ pointerEvents: 'none',
80206
80664
  },
80207
80665
  _c),
80208
80666
  },
@@ -80273,6 +80731,7 @@ function getStyles(props) {
80273
80731
  },
80274
80732
  hasFocus && {
80275
80733
  opacity: 0,
80734
+ pointerEvents: 'none',
80276
80735
  },
80277
80736
  !disableAnimation && {
80278
80737
  transition: "opacity " + Styling_1.AnimationVariables.durationValue1 + " 0s",
@@ -82730,7 +83189,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
82730
83189
  // Do not modify this file; it is generated as part of publish.
82731
83190
  // The checked in version is a placeholder only and will not be updated.
82732
83191
  var set_version_1 = __webpack_require__(57);
82733
- set_version_1.setVersion('@uifabric/foundation', '7.9.26');
83192
+ set_version_1.setVersion('@uifabric/foundation', '7.10.2');
82734
83193
 
82735
83194
 
82736
83195
  /***/ }),
@@ -84563,7 +85022,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
84563
85022
  // Do not modify this file; it is generated as part of publish.
84564
85023
  // The checked in version is a placeholder only and will not be updated.
84565
85024
  var set_version_1 = __webpack_require__(57);
84566
- set_version_1.setVersion('@uifabric/variants', '7.2.35');
85025
+ set_version_1.setVersion('@uifabric/variants', '7.2.36');
84567
85026
 
84568
85027
 
84569
85028
  /***/ }),
@@ -86472,7 +86931,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
86472
86931
  // Do not modify this file; it is generated as part of publish.
86473
86932
  // The checked in version is a placeholder only and will not be updated.
86474
86933
  var set_version_1 = __webpack_require__(57);
86475
- set_version_1.setVersion('@fluentui/react-button', '0.19.8');
86934
+ set_version_1.setVersion('@fluentui/react-button', '0.20.2');
86476
86935
 
86477
86936
 
86478
86937
  /***/ }),
@@ -86646,7 +87105,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
86646
87105
  // Do not modify this file; it is generated as part of publish.
86647
87106
  // The checked in version is a placeholder only and will not be updated.
86648
87107
  var set_version_1 = __webpack_require__(57);
86649
- set_version_1.setVersion('@fluentui/react-icons', '0.4.2');
87108
+ set_version_1.setVersion('@fluentui/react-icons', '0.4.3');
86650
87109
 
86651
87110
 
86652
87111
  /***/ }),
@@ -126949,4 +127408,4 @@ exports.ToggleButtons = function () { return (React.createElement(office_ui_fabr
126949
127408
 
126950
127409
  /***/ })
126951
127410
  ],[[929,1,2]]]);
126952
- //# sourceMappingURL=main.58c37029a4231428e662.bundle.js.map
127411
+ //# sourceMappingURL=main.87dadd1789d336577e59.bundle.js.map