@fluentui/react-button 0.20.4 → 0.20.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +24 -1
- package/CHANGELOG.md +11 -2
- package/dist/demo-app.js +5 -5
- package/dist-storybook/iframe.html +1 -1
- package/dist-storybook/{main.b62d8e661c9c65ff8e37.bundle.js → main.b0307caa89b2f44e62f4.bundle.js} +46 -36
- package/dist-storybook/{main.b62d8e661c9c65ff8e37.bundle.js.map → main.b0307caa89b2f44e62f4.bundle.js.map} +1 -1
- package/dist-storybook/{runtime~main.b62d8e661c9c65ff8e37.bundle.js → runtime~main.b0307caa89b2f44e62f4.bundle.js} +1 -1
- package/dist-storybook/{runtime~main.b62d8e661c9c65ff8e37.bundle.js.map → runtime~main.b0307caa89b2f44e62f4.bundle.js.map} +1 -1
- package/dist-storybook/{vendors~main.b62d8e661c9c65ff8e37.bundle.js → vendors~main.b0307caa89b2f44e62f4.bundle.js} +1 -1
- package/dist-storybook/{vendors~main.b62d8e661c9c65ff8e37.bundle.js.map → vendors~main.b0307caa89b2f44e62f4.bundle.js.map} +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,30 @@
|
|
2
2
|
"name": "@fluentui/react-button",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Wed, 27 Jul 2022 12:25:50 GMT",
|
6
|
+
"tag": "@fluentui/react-button_v0.20.5",
|
7
|
+
"version": "0.20.5",
|
8
|
+
"comments": {
|
9
|
+
"none": [
|
10
|
+
{
|
11
|
+
"comment": "update snaps",
|
12
|
+
"author": "mgodbolt@microsoft.com",
|
13
|
+
"commit": "44b414628d8160cf6fd7803a3f769ef2553008d2",
|
14
|
+
"package": "@fluentui/react-button"
|
15
|
+
}
|
16
|
+
],
|
17
|
+
"patch": [
|
18
|
+
{
|
19
|
+
"comment": "Bump @uifabric/styling to v7.21.1",
|
20
|
+
"author": "mgodbolt@microsoft.com",
|
21
|
+
"commit": "44b414628d8160cf6fd7803a3f769ef2553008d2",
|
22
|
+
"package": "@fluentui/react-button"
|
23
|
+
}
|
24
|
+
]
|
25
|
+
}
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"date": "Fri, 08 Jul 2022 12:23:25 GMT",
|
6
29
|
"tag": "@fluentui/react-button_v0.20.4",
|
7
30
|
"version": "0.20.4",
|
8
31
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,21 @@
|
|
1
1
|
# Change Log - @fluentui/react-button
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 27 Jul 2022 12:25:50 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [0.20.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.20.5)
|
8
|
+
|
9
|
+
Wed, 27 Jul 2022 12:25:50 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v0.20.4..@fluentui/react-button_v0.20.5)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- Bump @uifabric/styling to v7.21.1 ([PR #24022](https://github.com/microsoft/fluentui/pull/24022) by mgodbolt@microsoft.com)
|
15
|
+
|
7
16
|
## [0.20.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.20.4)
|
8
17
|
|
9
|
-
Fri, 08 Jul 2022 12:
|
18
|
+
Fri, 08 Jul 2022 12:23:25 GMT
|
10
19
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v0.20.3..@fluentui/react-button_v0.20.4)
|
11
20
|
|
12
21
|
### Patches
|
package/dist/demo-app.js
CHANGED
@@ -944,7 +944,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ts
|
|
944
944
|
/***/ (function(module, exports, __webpack_require__) {
|
945
945
|
|
946
946
|
"use strict";
|
947
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@uifabric/react-hooks', '7.
|
947
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@uifabric/react-hooks', '7.15.0');\n\n\n//# sourceURL=webpack:///../react-hooks/src/version.ts?");
|
948
948
|
|
949
949
|
/***/ }),
|
950
950
|
|
@@ -25219,7 +25219,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar th
|
|
25219
25219
|
/***/ (function(module, exports, __webpack_require__) {
|
25220
25220
|
|
25221
25221
|
"use strict";
|
25222
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@fluentui/react-theme-provider', '0.19.
|
25222
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@fluentui/react-theme-provider', '0.19.4');\n\n\n//# sourceURL=webpack:///../react-theme-provider/src/version.ts?");
|
25223
25223
|
|
25224
25224
|
/***/ }),
|
25225
25225
|
|
@@ -25411,7 +25411,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ts
|
|
25411
25411
|
/***/ (function(module, exports, __webpack_require__) {
|
25412
25412
|
|
25413
25413
|
"use strict";
|
25414
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HighContrastSelector = '@media screen and (-ms-high-contrast: active),
|
25414
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HighContrastSelector = '@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)';\nexports.HighContrastSelectorWhite = \n// eslint-disable-next-line @fluentui/max-len\n'@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)';\nexports.HighContrastSelectorBlack = \n// eslint-disable-next-line @fluentui/max-len\n'@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)';\n/**\n * @deprecated Use `HighContrastSelector`\n */\nexports.EdgeChromiumHighContrastSelector = '@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)';\nexports.ScreenWidthMinSmall = 320;\nexports.ScreenWidthMinMedium = 480;\nexports.ScreenWidthMinLarge = 640;\nexports.ScreenWidthMinXLarge = 1024;\nexports.ScreenWidthMinXXLarge = 1366;\nexports.ScreenWidthMinXXXLarge = 1920;\nexports.ScreenWidthMaxSmall = exports.ScreenWidthMinMedium - 1;\nexports.ScreenWidthMaxMedium = exports.ScreenWidthMinLarge - 1;\nexports.ScreenWidthMaxLarge = exports.ScreenWidthMinXLarge - 1;\nexports.ScreenWidthMaxXLarge = exports.ScreenWidthMinXXLarge - 1;\nexports.ScreenWidthMaxXXLarge = exports.ScreenWidthMinXXXLarge - 1;\nexports.ScreenWidthMinUhfMobile = 768;\nfunction getScreenSelector(min, max) {\n var minSelector = typeof min === 'number' ? \" and (min-width: \" + min + \"px)\" : '';\n var maxSelector = typeof max === 'number' ? \" and (max-width: \" + max + \"px)\" : '';\n return \"@media only screen\" + minSelector + maxSelector;\n}\nexports.getScreenSelector = getScreenSelector;\n/**\n * The style which turns off high contrast adjustment in browsers.\n */\nfunction getHighContrastNoAdjustStyle() {\n return {\n forcedColorAdjust: 'none',\n MsHighContrastAdjust: 'none',\n };\n}\nexports.getHighContrastNoAdjustStyle = getHighContrastNoAdjustStyle;\n/**\n * The style which turns off high contrast adjustment in (only) Edge Chromium browser.\n * @deprecated Use `getHighContrastNoAdjustStyle`\n */\n// eslint-disable-next-line deprecation/deprecation\nfunction getEdgeChromiumNoHighContrastAdjustSelector() {\n var _a;\n return _a = {},\n // eslint-disable-next-line deprecation/deprecation\n _a[exports.EdgeChromiumHighContrastSelector] = {\n forcedColorAdjust: 'none',\n MsHighContrastAdjust: 'none',\n },\n _a;\n}\nexports.getEdgeChromiumNoHighContrastAdjustSelector = getEdgeChromiumNoHighContrastAdjustSelector;\n\n\n//# sourceURL=webpack:///../styling/src/styles/CommonStyles.ts?");
|
25415
25415
|
|
25416
25416
|
/***/ }),
|
25417
25417
|
|
@@ -25651,7 +25651,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar bu
|
|
25651
25651
|
/***/ (function(module, exports, __webpack_require__) {
|
25652
25652
|
|
25653
25653
|
"use strict";
|
25654
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@uifabric/styling', '7.
|
25654
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@uifabric/styling', '7.21.0');\n\n\n//# sourceURL=webpack:///../styling/src/version.ts?");
|
25655
25655
|
|
25656
25656
|
/***/ }),
|
25657
25657
|
|
@@ -27727,7 +27727,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar ts
|
|
27727
27727
|
/***/ (function(module, exports, __webpack_require__) {
|
27728
27728
|
|
27729
27729
|
"use strict";
|
27730
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@fluentui/react-button', '0.20.
|
27730
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Do not modify this file; it is generated as part of publish.\n// The checked in version is a placeholder only and will not be updated.\nvar set_version_1 = __webpack_require__(/*! @uifabric/set-version */ \"../set-version/src/index.ts\");\nset_version_1.setVersion('@fluentui/react-button', '0.20.4');\n\n\n//# sourceURL=webpack:///./src/version.ts?");
|
27731
27731
|
|
27732
27732
|
/***/ }),
|
27733
27733
|
|
@@ -71,4 +71,4 @@
|
|
71
71
|
}</script><style>#root[hidden],
|
72
72
|
#docs-root[hidden] {
|
73
73
|
display: none !important;
|
74
|
-
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.
|
74
|
+
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.b0307caa89b2f44e62f4.bundle.js"></script><script src="vendors~main.b0307caa89b2f44e62f4.bundle.js"></script><script src="main.b0307caa89b2f44e62f4.bundle.js"></script></body></html>
|
package/dist-storybook/{main.b62d8e661c9c65ff8e37.bundle.js → main.b0307caa89b2f44e62f4.bundle.js}
RENAMED
@@ -3825,7 +3825,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3825
3825
|
// Do not modify this file; it is generated as part of publish.
|
3826
3826
|
// The checked in version is a placeholder only and will not be updated.
|
3827
3827
|
var set_version_1 = __webpack_require__(57);
|
3828
|
-
set_version_1.setVersion('office-ui-fabric-react', '7.
|
3828
|
+
set_version_1.setVersion('office-ui-fabric-react', '7.190.2');
|
3829
3829
|
|
3830
3830
|
|
3831
3831
|
/***/ }),
|
@@ -18443,17 +18443,17 @@ exports.createFontStyles = createFontStyles;
|
|
18443
18443
|
"use strict";
|
18444
18444
|
|
18445
18445
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18446
|
-
exports.HighContrastSelector = '@media screen and (-ms-high-contrast: active),
|
18446
|
+
exports.HighContrastSelector = '@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)';
|
18447
18447
|
exports.HighContrastSelectorWhite =
|
18448
18448
|
// eslint-disable-next-line @fluentui/max-len
|
18449
|
-
'@media screen and (-ms-high-contrast: black-on-white),
|
18449
|
+
'@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)';
|
18450
18450
|
exports.HighContrastSelectorBlack =
|
18451
18451
|
// eslint-disable-next-line @fluentui/max-len
|
18452
|
-
'@media screen and (-ms-high-contrast: white-on-black),
|
18452
|
+
'@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)';
|
18453
18453
|
/**
|
18454
18454
|
* @deprecated Use `HighContrastSelector`
|
18455
18455
|
*/
|
18456
|
-
exports.EdgeChromiumHighContrastSelector = '@media screen and (-ms-high-contrast: active),
|
18456
|
+
exports.EdgeChromiumHighContrastSelector = '@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)';
|
18457
18457
|
exports.ScreenWidthMinSmall = 320;
|
18458
18458
|
exports.ScreenWidthMinMedium = 480;
|
18459
18459
|
exports.ScreenWidthMinLarge = 640;
|
@@ -33586,7 +33586,7 @@ var DetailsListInner = function (props) {
|
|
33586
33586
|
rowWidth: sumColumnWidths(adjustedColumns),
|
33587
33587
|
useFastIcons: useFastIcons,
|
33588
33588
|
}, onRenderDetailsHeader)),
|
33589
|
-
React.createElement("div", { onKeyDown: onContentKeyDown, role: "presentation", className: classNames.contentWrapper }, !disableSelectionZone ? (React.createElement(index_1.SelectionZone, tslib_1.__assign({ ref: selectionZoneRef, selection: selection, selectionPreservedOnEmptyClick: selectionPreservedOnEmptyClick, selectionMode: selectionMode, isSelectedOnFocus: isSelectedOnFocus, onItemInvoked: onItemInvoked, onItemContextMenu: onItemContextMenu, enterModalOnTouch: enterModalSelectionOnTouch }, (selectionZoneProps || {})), list)) : (list)),
|
33589
|
+
React.createElement("div", { onKeyDown: onContentKeyDown, role: "presentation", className: classNames.contentWrapper }, !disableSelectionZone ? (React.createElement(index_1.SelectionZone, tslib_1.__assign({ ref: selectionZoneRef, selection: selection, selectionPreservedOnEmptyClick: selectionPreservedOnEmptyClick, selectionMode: selectionMode, isSelectedOnFocus: isSelectedOnFocus, selectionClearedOnEscapePress: isSelectedOnFocus, toggleWithoutModifierPressed: !isSelectedOnFocus, onItemInvoked: onItemInvoked, onItemContextMenu: onItemContextMenu, enterModalOnTouch: enterModalSelectionOnTouch }, (selectionZoneProps || {})), list)) : (list)),
|
33590
33590
|
onRenderDetailsFooter(tslib_1.__assign({}, detailsFooterProps)))));
|
33591
33591
|
};
|
33592
33592
|
var DetailsListBase = /** @class */ (function (_super) {
|
@@ -51692,7 +51692,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
51692
51692
|
// Do not modify this file; it is generated as part of publish.
|
51693
51693
|
// The checked in version is a placeholder only and will not be updated.
|
51694
51694
|
var set_version_1 = __webpack_require__(57);
|
51695
|
-
set_version_1.setVersion('@uifabric/styling', '7.
|
51695
|
+
set_version_1.setVersion('@uifabric/styling', '7.21.0');
|
51696
51696
|
|
51697
51697
|
|
51698
51698
|
/***/ }),
|
@@ -52026,7 +52026,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
52026
52026
|
// Do not modify this file; it is generated as part of publish.
|
52027
52027
|
// The checked in version is a placeholder only and will not be updated.
|
52028
52028
|
var set_version_1 = __webpack_require__(57);
|
52029
|
-
set_version_1.setVersion('@uifabric/react-hooks', '7.
|
52029
|
+
set_version_1.setVersion('@uifabric/react-hooks', '7.15.0');
|
52030
52030
|
|
52031
52031
|
|
52032
52032
|
/***/ }),
|
@@ -52695,20 +52695,6 @@ var FocusTrapZone = /** @class */ (function (_super) {
|
|
52695
52695
|
if (FocusTrapZone._focusStack.length && _this === FocusTrapZone._focusStack[FocusTrapZone._focusStack.length - 1]) {
|
52696
52696
|
var focusedElement = _this._getDocument().activeElement;
|
52697
52697
|
if (!Utilities_1.elementContains(_this._root.current, focusedElement)) {
|
52698
|
-
_this.focus();
|
52699
|
-
_this._hasFocus = true; // set focus here since we stop event propagation
|
52700
|
-
ev.preventDefault();
|
52701
|
-
ev.stopPropagation();
|
52702
|
-
}
|
52703
|
-
}
|
52704
|
-
};
|
52705
|
-
_this._forceClickInTrap = function (ev) {
|
52706
|
-
if (_this.props.disabled) {
|
52707
|
-
return;
|
52708
|
-
}
|
52709
|
-
if (FocusTrapZone._focusStack.length && _this === FocusTrapZone._focusStack[FocusTrapZone._focusStack.length - 1]) {
|
52710
|
-
var clickedElement = ev.target;
|
52711
|
-
if (clickedElement && !Utilities_1.elementContains(_this._root.current, clickedElement)) {
|
52712
52698
|
var doc_1 = _this._getDocument();
|
52713
52699
|
if (doc_1 && doc_1.activeElement === doc_1.body) {
|
52714
52700
|
setTimeout(function () {
|
@@ -52727,6 +52713,20 @@ var FocusTrapZone = /** @class */ (function (_super) {
|
|
52727
52713
|
}
|
52728
52714
|
}
|
52729
52715
|
};
|
52716
|
+
_this._forceClickInTrap = function (ev) {
|
52717
|
+
if (_this.props.disabled) {
|
52718
|
+
return;
|
52719
|
+
}
|
52720
|
+
if (FocusTrapZone._focusStack.length && _this === FocusTrapZone._focusStack[FocusTrapZone._focusStack.length - 1]) {
|
52721
|
+
var clickedElement = ev.target;
|
52722
|
+
if (clickedElement && !Utilities_1.elementContains(_this._root.current, clickedElement)) {
|
52723
|
+
_this.focus();
|
52724
|
+
_this._hasFocus = true; // set focus here since we stop event propagation
|
52725
|
+
ev.preventDefault();
|
52726
|
+
ev.stopPropagation();
|
52727
|
+
}
|
52728
|
+
}
|
52729
|
+
};
|
52730
52730
|
Utilities_1.initializeComponentRef(_this);
|
52731
52731
|
return _this;
|
52732
52732
|
}
|
@@ -52989,7 +52989,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
52989
52989
|
// Do not modify this file; it is generated as part of publish.
|
52990
52990
|
// The checked in version is a placeholder only and will not be updated.
|
52991
52991
|
var set_version_1 = __webpack_require__(57);
|
52992
|
-
set_version_1.setVersion('@fluentui/react-focus', '7.18.
|
52992
|
+
set_version_1.setVersion('@fluentui/react-focus', '7.18.5');
|
52993
52993
|
|
52994
52994
|
|
52995
52995
|
/***/ }),
|
@@ -55500,7 +55500,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
55500
55500
|
// Do not modify this file; it is generated as part of publish.
|
55501
55501
|
// The checked in version is a placeholder only and will not be updated.
|
55502
55502
|
var set_version_1 = __webpack_require__(57);
|
55503
|
-
set_version_1.setVersion('@fluentui/react-theme-provider', '0.19.
|
55503
|
+
set_version_1.setVersion('@fluentui/react-theme-provider', '0.19.4');
|
55504
55504
|
|
55505
55505
|
|
55506
55506
|
/***/ }),
|
@@ -63601,7 +63601,7 @@ var CalendarMonth = /** @class */ (function (_super) {
|
|
63601
63601
|
: undefined, role: "button", type: "button" },
|
63602
63602
|
React.createElement(Icon_1.Icon, { iconName: Utilities_1.getRTL() ? leftNavigationIcon : rightNavigationIcon }))))),
|
63603
63603
|
React.createElement(FocusZone_1.FocusZone, null,
|
63604
|
-
React.createElement("div", { className: Utilities_1.css('ms-DatePicker-optionGrid', styles.optionGrid), role: "grid"
|
63604
|
+
React.createElement("div", { className: Utilities_1.css('ms-DatePicker-optionGrid', styles.optionGrid), role: "grid" }, rowIndexes.map(function (rowNum) {
|
63605
63605
|
var monthsForRow = strings.shortMonths.slice(rowNum * MONTHS_PER_ROW, (rowNum + 1) * MONTHS_PER_ROW);
|
63606
63606
|
return (React.createElement("div", { key: 'monthRow_' + rowNum, role: "row" }, monthsForRow.map(function (month, index) {
|
63607
63607
|
var _a;
|
@@ -69085,7 +69085,8 @@ var SelectionZone = /** @class */ (function (_super) {
|
|
69085
69085
|
else if ((target === itemRoot || _this._shouldAutoSelect(target)) &&
|
69086
69086
|
!_this._isShiftPressed &&
|
69087
69087
|
!_this._isCtrlPressed &&
|
69088
|
-
!_this._isMetaPressed
|
69088
|
+
!_this._isMetaPressed &&
|
69089
|
+
!_this.props.toggleWithoutModifierPressed) {
|
69089
69090
|
_this._onInvokeMouseDown(ev, _this._getItemIndex(itemRoot));
|
69090
69091
|
break;
|
69091
69092
|
}
|
@@ -69197,7 +69198,8 @@ var SelectionZone = /** @class */ (function (_super) {
|
|
69197
69198
|
_this._updateModifiers(ev);
|
69198
69199
|
var target = ev.target;
|
69199
69200
|
var isSelectionDisabled = _this._isSelectionDisabled(target);
|
69200
|
-
var
|
69201
|
+
var _a = _this.props, selection = _a.selection, selectionClearedOnEscapePress = _a.selectionClearedOnEscapePress;
|
69202
|
+
// eslint-disable-next-line deprecation/deprecation
|
69201
69203
|
var isSelectAllKey = ev.which === Utilities_1.KeyCodes.a && (_this._isCtrlPressed || _this._isMetaPressed);
|
69202
69204
|
var isClearSelectionKey = ev.which === Utilities_1.KeyCodes.escape;
|
69203
69205
|
// Ignore key downs from input elements.
|
@@ -69215,8 +69217,9 @@ var SelectionZone = /** @class */ (function (_super) {
|
|
69215
69217
|
ev.preventDefault();
|
69216
69218
|
return;
|
69217
69219
|
}
|
69218
|
-
// If escape is pressed
|
69219
|
-
|
69220
|
+
// If escape is pressed and the component is configured to clear on escape press,
|
69221
|
+
// clear selection (if any are selected.)
|
69222
|
+
if (selectionClearedOnEscapePress && isClearSelectionKey && selection.getSelectedCount() > 0) {
|
69220
69223
|
if (!isSelectionDisabled) {
|
69221
69224
|
selection.setAllSelected(false);
|
69222
69225
|
}
|
@@ -69373,14 +69376,14 @@ var SelectionZone = /** @class */ (function (_super) {
|
|
69373
69376
|
}
|
69374
69377
|
};
|
69375
69378
|
SelectionZone.prototype._onItemSurfaceClick = function (ev, index) {
|
69376
|
-
var
|
69379
|
+
var _a = this.props, selection = _a.selection, toggleWithoutModifierPressed = _a.toggleWithoutModifierPressed;
|
69377
69380
|
var isToggleModifierPressed = this._isCtrlPressed || this._isMetaPressed;
|
69378
69381
|
var selectionMode = this._getSelectionMode();
|
69379
69382
|
if (selectionMode === interfaces_1.SelectionMode.multiple) {
|
69380
69383
|
if (this._isShiftPressed && !this._isTabPressed) {
|
69381
69384
|
selection.selectToIndex(index, !isToggleModifierPressed);
|
69382
69385
|
}
|
69383
|
-
else if (isToggleModifierPressed) {
|
69386
|
+
else if (isToggleModifierPressed || toggleWithoutModifierPressed) {
|
69384
69387
|
selection.toggleIndexSelected(index);
|
69385
69388
|
}
|
69386
69389
|
else {
|
@@ -69475,7 +69478,12 @@ var SelectionZone = /** @class */ (function (_super) {
|
|
69475
69478
|
SelectionZone.prototype._hasAttribute = function (element, attributeName) {
|
69476
69479
|
var isToggle = false;
|
69477
69480
|
while (!isToggle && element !== this._root.current) {
|
69478
|
-
|
69481
|
+
var value = element.getAttribute(attributeName);
|
69482
|
+
if (value === 'false') {
|
69483
|
+
isToggle = false;
|
69484
|
+
break;
|
69485
|
+
}
|
69486
|
+
isToggle = value === 'true';
|
69479
69487
|
element = Utilities_1.getParent(element);
|
69480
69488
|
}
|
69481
69489
|
return isToggle;
|
@@ -69528,7 +69536,9 @@ var SelectionZone = /** @class */ (function (_super) {
|
|
69528
69536
|
};
|
69529
69537
|
SelectionZone.defaultProps = {
|
69530
69538
|
isSelectedOnFocus: true,
|
69539
|
+
toggleWithoutModifierPressed: false,
|
69531
69540
|
selectionMode: interfaces_1.SelectionMode.multiple,
|
69541
|
+
selectionClearedOnEscapePress: true,
|
69532
69542
|
};
|
69533
69543
|
return SelectionZone;
|
69534
69544
|
}(React.Component));
|
@@ -79319,7 +79329,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
79319
79329
|
// Do not modify this file; it is generated as part of publish.
|
79320
79330
|
// The checked in version is a placeholder only and will not be updated.
|
79321
79331
|
var set_version_1 = __webpack_require__(57);
|
79322
|
-
set_version_1.setVersion('@uifabric/icons', '7.7.
|
79332
|
+
set_version_1.setVersion('@uifabric/icons', '7.7.3');
|
79323
79333
|
|
79324
79334
|
|
79325
79335
|
/***/ }),
|
@@ -83284,7 +83294,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
83284
83294
|
// Do not modify this file; it is generated as part of publish.
|
83285
83295
|
// The checked in version is a placeholder only and will not be updated.
|
83286
83296
|
var set_version_1 = __webpack_require__(57);
|
83287
|
-
set_version_1.setVersion('@uifabric/foundation', '7.10.
|
83297
|
+
set_version_1.setVersion('@uifabric/foundation', '7.10.4');
|
83288
83298
|
|
83289
83299
|
|
83290
83300
|
/***/ }),
|
@@ -87026,7 +87036,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
87026
87036
|
// Do not modify this file; it is generated as part of publish.
|
87027
87037
|
// The checked in version is a placeholder only and will not be updated.
|
87028
87038
|
var set_version_1 = __webpack_require__(57);
|
87029
|
-
set_version_1.setVersion('@fluentui/react-button', '0.20.
|
87039
|
+
set_version_1.setVersion('@fluentui/react-button', '0.20.4');
|
87030
87040
|
|
87031
87041
|
|
87032
87042
|
/***/ }),
|
@@ -127503,4 +127513,4 @@ exports.ToggleButtons = function () { return (React.createElement(office_ui_fabr
|
|
127503
127513
|
|
127504
127514
|
/***/ })
|
127505
127515
|
],[[929,1,2]]]);
|
127506
|
-
//# sourceMappingURL=main.
|
127516
|
+
//# sourceMappingURL=main.b0307caa89b2f44e62f4.bundle.js.map
|