@splunk/react-ui 4.12.0 → 4.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.js +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +4 -4
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +11 -11
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +7 -7
- package/CHANGELOG.md +25 -0
- package/Calendar.js +33 -33
- package/Card.js +13 -13
- package/CardLayout.js +2 -2
- package/Chip.js +11 -11
- package/Clickable.js +7 -7
- package/CloseButton.js +11 -11
- package/Code.js +4 -4
- package/CollapsiblePanel.js +6 -6
- package/Color.js +21 -21
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +4 -4
- package/Concertina.js +2 -2
- package/ControlGroup.js +4 -4
- package/Date.js +4 -4
- package/DefinitionList.js +2 -2
- package/Dropdown.js +6 -2
- package/EventListener.js +4 -4
- package/File.js +15 -15
- package/FormRows.js +4 -4
- package/Heading.js +3 -3
- package/Image.js +15 -15
- package/JSONTree.js +2 -2
- package/Layer.js +4 -4
- package/Link.js +9 -9
- package/List.js +2 -2
- package/Markdown.js +21 -21
- package/Menu.js +32 -33
- package/Message.js +22 -22
- package/MessageBar.js +15 -15
- package/Modal.js +4 -4
- package/ModalLayer.js +8 -8
- package/Monogram.js +2 -2
- package/Multiselect.js +112 -103
- package/Number.js +2 -2
- package/Paginator.js +41 -41
- package/Paragraph.js +2 -2
- package/Popover.js +18 -9
- package/Progress.js +4 -4
- package/RadioBar.js +2 -2
- package/RadioList.js +2 -2
- package/Resize.js +2 -2
- package/ResultsMenu.js +12 -12
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +13 -13
- package/Select.js +109 -100
- package/SidePanel.js +4 -4
- package/Slider.js +4 -4
- package/SlidingPanels.js +6 -6
- package/SplitButton.js +511 -0
- package/StaticContent.js +2 -2
- package/StepBar.js +6 -6
- package/Switch.js +2 -2
- package/TabBar.js +2 -2
- package/TabLayout.js +4 -4
- package/Table.js +60 -43
- package/Text.js +105 -101
- package/TextArea.js +83 -72
- package/Tooltip.js +2 -2
- package/TransitionOpen.js +8 -8
- package/Typography.js +4 -4
- package/WaitSpinner.js +68 -2
- package/package.json +4 -3
- package/types/src/Button/Button.d.ts +1 -1
- package/types/src/Dropdown/Dropdown.d.ts +11 -3
- package/types/src/Popover/Popover.d.ts +5 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/SplitButton/Item.d.ts +45 -0
- package/types/src/SplitButton/SplitButton.d.ts +41 -0
- package/types/src/SplitButton/docs/examples/Basic.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/prisma/Basic.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +1 -0
- package/types/src/SplitButton/index.d.ts +2 -0
- package/types/src/Table/HeadCell.d.ts +4 -1
- package/types/src/Table/HeadDropdownCell.d.ts +10 -3
- package/types/src/Text/Text.d.ts +5 -1
- package/types/src/TextArea/TextArea.d.ts +5 -1
- package/types/src/WaitSpinner/WaitSpinner.d.ts +1 -1
- package/types/src/useForceUpdate/index.d.ts +2 -0
- package/types/src/useForceUpdate/useForceUpdate.d.ts +9 -0
- package/types/src/useIsSsr/index.d.ts +2 -0
- package/types/src/useIsSsr/useIsSsr.d.ts +8 -0
- package/useForceUpdate.js +151 -0
- package/useIsSsr.js +153 -0
- package/usePrevious.js +2 -2
- package/types/src/Text/docs/examples/prisma/Multiline.d.ts +0 -10
- package/types/src/Text/docs/examples/prisma/Search.d.ts +0 -10
package/Select.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 172);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -122,7 +122,7 @@ module.exports = require("@splunk/react-ui/Button");
|
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
124
|
|
|
125
|
-
/***/
|
|
125
|
+
/***/ 172:
|
|
126
126
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
127
127
|
|
|
128
128
|
"use strict";
|
|
@@ -467,17 +467,17 @@ Select_defineProperty(Select_Select, "Divider", SelectBase["a" /* Divider */]);
|
|
|
467
467
|
|
|
468
468
|
/***/ }),
|
|
469
469
|
|
|
470
|
-
/***/
|
|
470
|
+
/***/ 18:
|
|
471
471
|
/***/ (function(module, exports) {
|
|
472
472
|
|
|
473
|
-
module.exports = require("react");
|
|
473
|
+
module.exports = require("@splunk/react-ui/Dropdown");
|
|
474
474
|
|
|
475
475
|
/***/ }),
|
|
476
476
|
|
|
477
|
-
/***/
|
|
477
|
+
/***/ 2:
|
|
478
478
|
/***/ (function(module, exports) {
|
|
479
479
|
|
|
480
|
-
module.exports = require("
|
|
480
|
+
module.exports = require("react");
|
|
481
481
|
|
|
482
482
|
/***/ }),
|
|
483
483
|
|
|
@@ -672,27 +672,6 @@ _defineProperty(Option, "defaultProps", defaultProps);
|
|
|
672
672
|
/***/ }),
|
|
673
673
|
|
|
674
674
|
/***/ 29:
|
|
675
|
-
/***/ (function(module, exports) {
|
|
676
|
-
|
|
677
|
-
module.exports = require("@splunk/react-ui/Link");
|
|
678
|
-
|
|
679
|
-
/***/ }),
|
|
680
|
-
|
|
681
|
-
/***/ 3:
|
|
682
|
-
/***/ (function(module, exports) {
|
|
683
|
-
|
|
684
|
-
module.exports = require("styled-components");
|
|
685
|
-
|
|
686
|
-
/***/ }),
|
|
687
|
-
|
|
688
|
-
/***/ 33:
|
|
689
|
-
/***/ (function(module, exports) {
|
|
690
|
-
|
|
691
|
-
module.exports = require("@splunk/react-ui/ResultsMenu");
|
|
692
|
-
|
|
693
|
-
/***/ }),
|
|
694
|
-
|
|
695
|
-
/***/ 34:
|
|
696
675
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
697
676
|
|
|
698
677
|
"use strict";
|
|
@@ -742,6 +721,27 @@ function Search(props) {
|
|
|
742
721
|
|
|
743
722
|
/***/ }),
|
|
744
723
|
|
|
724
|
+
/***/ 3:
|
|
725
|
+
/***/ (function(module, exports) {
|
|
726
|
+
|
|
727
|
+
module.exports = require("styled-components");
|
|
728
|
+
|
|
729
|
+
/***/ }),
|
|
730
|
+
|
|
731
|
+
/***/ 30:
|
|
732
|
+
/***/ (function(module, exports) {
|
|
733
|
+
|
|
734
|
+
module.exports = require("@splunk/react-ui/Link");
|
|
735
|
+
|
|
736
|
+
/***/ }),
|
|
737
|
+
|
|
738
|
+
/***/ 34:
|
|
739
|
+
/***/ (function(module, exports) {
|
|
740
|
+
|
|
741
|
+
module.exports = require("@splunk/react-ui/ResultsMenu");
|
|
742
|
+
|
|
743
|
+
/***/ }),
|
|
744
|
+
|
|
745
745
|
/***/ 38:
|
|
746
746
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
747
747
|
|
|
@@ -837,18 +837,18 @@ var i18n_ = __webpack_require__(5);
|
|
|
837
837
|
var keyboard_ = __webpack_require__(9);
|
|
838
838
|
|
|
839
839
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
840
|
-
var Dropdown_ = __webpack_require__(
|
|
840
|
+
var Dropdown_ = __webpack_require__(18);
|
|
841
841
|
var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
|
|
842
842
|
|
|
843
843
|
// EXTERNAL MODULE: external "@splunk/react-ui/Link"
|
|
844
|
-
var Link_ = __webpack_require__(
|
|
844
|
+
var Link_ = __webpack_require__(30);
|
|
845
845
|
var Link_default = /*#__PURE__*/__webpack_require__.n(Link_);
|
|
846
846
|
|
|
847
847
|
// EXTERNAL MODULE: external "@splunk/react-ui/Menu"
|
|
848
848
|
var Menu_ = __webpack_require__(13);
|
|
849
849
|
|
|
850
850
|
// EXTERNAL MODULE: external "@splunk/react-ui/ResultsMenu"
|
|
851
|
-
var ResultsMenu_ = __webpack_require__(
|
|
851
|
+
var ResultsMenu_ = __webpack_require__(34);
|
|
852
852
|
var ResultsMenu_default = /*#__PURE__*/__webpack_require__.n(ResultsMenu_);
|
|
853
853
|
|
|
854
854
|
// EXTERNAL MODULE: external "@splunk/react-ui/Text"
|
|
@@ -859,7 +859,7 @@ var Text_default = /*#__PURE__*/__webpack_require__.n(Text_);
|
|
|
859
859
|
var CaretDown = __webpack_require__(38);
|
|
860
860
|
|
|
861
861
|
// EXTERNAL MODULE: ./src/icons/Search.tsx
|
|
862
|
-
var Search = __webpack_require__(
|
|
862
|
+
var Search = __webpack_require__(29);
|
|
863
863
|
|
|
864
864
|
// EXTERNAL MODULE: ./src/Select/OptionBase.tsx
|
|
865
865
|
var OptionBase = __webpack_require__(28);
|
|
@@ -1199,15 +1199,15 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1199
1199
|
return;
|
|
1200
1200
|
}
|
|
1201
1201
|
|
|
1202
|
-
var
|
|
1202
|
+
var currentValues = (_this$getCurrentValue = _this.getCurrentValues()) !== null && _this$getCurrentValue !== void 0 ? _this$getCurrentValue : [];
|
|
1203
|
+
var values = Object(external_lodash_["uniq"])(currentValues.concat(_this.displayedValues));
|
|
1204
|
+
values = external_react_default.a.Children.toArray(children).filter(function (child) {
|
|
1205
|
+
return isOption(child) && Object(external_lodash_["includes"])(values, child.props.value) && (!child.props.disabled || Object(external_lodash_["includes"])(currentValues, child.props.value));
|
|
1206
|
+
}).map(function (child) {
|
|
1207
|
+
return child.props.value;
|
|
1208
|
+
});
|
|
1203
1209
|
|
|
1204
1210
|
if (!_this.isControlled()) {
|
|
1205
|
-
values = external_react_default.a.Children.toArray(children).filter(function (child) {
|
|
1206
|
-
return isOption(child) && Object(external_lodash_["includes"])(values, child.props.value) && !child.props.disabled;
|
|
1207
|
-
}).map(function (child) {
|
|
1208
|
-
return child.props.value;
|
|
1209
|
-
});
|
|
1210
|
-
|
|
1211
1211
|
_this.setState({
|
|
1212
1212
|
values: values
|
|
1213
1213
|
});
|
|
@@ -1220,16 +1220,25 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1220
1220
|
});
|
|
1221
1221
|
|
|
1222
1222
|
_defineProperty(_assertThisInitialized(_this), "handleClearAll", function (e) {
|
|
1223
|
-
var _this$props$onChange2, _this$
|
|
1223
|
+
var _this$getCurrentValue2, _this$props$onChange2, _this$props4;
|
|
1224
|
+
|
|
1225
|
+
var _this$props3 = _this.props,
|
|
1226
|
+
name = _this$props3.name,
|
|
1227
|
+
children = _this$props3.children,
|
|
1228
|
+
multiple = _this$props3.multiple; // this doesn't make sense if we can't select multiple values
|
|
1224
1229
|
|
|
1225
|
-
|
|
1226
|
-
if (!_this.props.multiple) {
|
|
1230
|
+
if (!multiple) {
|
|
1227
1231
|
return;
|
|
1228
|
-
}
|
|
1232
|
+
}
|
|
1229
1233
|
|
|
1234
|
+
var currentValues = (_this$getCurrentValue2 = _this.getCurrentValues()) !== null && _this$getCurrentValue2 !== void 0 ? _this$getCurrentValue2 : [];
|
|
1235
|
+
var hiddenCurrentValues = external_lodash_["without"].apply(void 0, [currentValues].concat(_toConsumableArray(_this.displayedValues))); // this will unselect all selected values unless those values are disabled or hidden by the filter
|
|
1230
1236
|
|
|
1231
|
-
var values =
|
|
1232
|
-
|
|
1237
|
+
var values = external_react_default.a.Children.toArray(children).filter(function (child) {
|
|
1238
|
+
return isOption(child) && (Object(external_lodash_["includes"])(currentValues, child.props.value) && child.props.disabled || Object(external_lodash_["includes"])(hiddenCurrentValues, child.props.value));
|
|
1239
|
+
}).map(function (child) {
|
|
1240
|
+
return child.props.value;
|
|
1241
|
+
});
|
|
1233
1242
|
|
|
1234
1243
|
if (!_this.isControlled()) {
|
|
1235
1244
|
_this.setState({
|
|
@@ -1237,17 +1246,17 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1237
1246
|
});
|
|
1238
1247
|
}
|
|
1239
1248
|
|
|
1240
|
-
(_this$props$onChange2 = (_this$
|
|
1249
|
+
(_this$props$onChange2 = (_this$props4 = _this.props).onChange) === null || _this$props$onChange2 === void 0 ? void 0 : _this$props$onChange2.call(_this$props4, e, {
|
|
1241
1250
|
values: values,
|
|
1242
1251
|
name: name
|
|
1243
1252
|
});
|
|
1244
1253
|
});
|
|
1245
1254
|
|
|
1246
1255
|
_defineProperty(_assertThisInitialized(_this), "handleTextKeyDown", function (e) {
|
|
1247
|
-
var _this$
|
|
1248
|
-
children = _this$
|
|
1249
|
-
onScrollBottom = _this$
|
|
1250
|
-
tabConfirmsNewValue = _this$
|
|
1256
|
+
var _this$props5 = _this.props,
|
|
1257
|
+
children = _this$props5.children,
|
|
1258
|
+
onScrollBottom = _this$props5.onScrollBottom,
|
|
1259
|
+
tabConfirmsNewValue = _this$props5.tabConfirmsNewValue;
|
|
1251
1260
|
var eventKeyCode = Object(keyboard_["keycode"])(e.nativeEvent);
|
|
1252
1261
|
|
|
1253
1262
|
if (eventKeyCode === 'tab') {
|
|
@@ -1272,9 +1281,9 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1272
1281
|
});
|
|
1273
1282
|
|
|
1274
1283
|
if (children && onScrollBottom) {
|
|
1275
|
-
var _this$
|
|
1284
|
+
var _this$getCurrentValue3;
|
|
1276
1285
|
|
|
1277
|
-
var beforeLastChild = external_react_["Children"].toArray(children).length - (2 + ((_this$
|
|
1286
|
+
var beforeLastChild = external_react_["Children"].toArray(children).length - (2 + ((_this$getCurrentValue3 = _this.getCurrentValues()) !== null && _this$getCurrentValue3 !== void 0 ? _this$getCurrentValue3 : []).length);
|
|
1278
1287
|
|
|
1279
1288
|
if (_this.state.activeIndex === beforeLastChild) {
|
|
1280
1289
|
_this.handleScrollBottom(e);
|
|
@@ -1367,7 +1376,7 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1367
1376
|
});
|
|
1368
1377
|
|
|
1369
1378
|
_defineProperty(_assertThisInitialized(_this), "handleTextChange", function (e, _ref2) {
|
|
1370
|
-
var _this$props$onFilterC, _this$
|
|
1379
|
+
var _this$props$onFilterC, _this$props6;
|
|
1371
1380
|
|
|
1372
1381
|
var value = _ref2.value;
|
|
1373
1382
|
|
|
@@ -1377,7 +1386,7 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1377
1386
|
activeIndex: 0
|
|
1378
1387
|
});
|
|
1379
1388
|
|
|
1380
|
-
(_this$props$onFilterC = (_this$
|
|
1389
|
+
(_this$props$onFilterC = (_this$props6 = _this.props).onFilterChange) === null || _this$props$onFilterC === void 0 ? void 0 : _this$props$onFilterC.call(_this$props6, e, {
|
|
1381
1390
|
keyword: value
|
|
1382
1391
|
});
|
|
1383
1392
|
});
|
|
@@ -1407,9 +1416,9 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1407
1416
|
var oldFilterKeyword = _this.state.filterKeyword;
|
|
1408
1417
|
|
|
1409
1418
|
_this.setState(newState, function () {
|
|
1410
|
-
var _this$props$onOpen, _this$
|
|
1419
|
+
var _this$props$onOpen, _this$props7;
|
|
1411
1420
|
|
|
1412
|
-
(_this$props$onOpen = (_this$
|
|
1421
|
+
(_this$props$onOpen = (_this$props7 = _this.props).onOpen) === null || _this$props$onOpen === void 0 ? void 0 : _this$props$onOpen.call(_this$props7);
|
|
1413
1422
|
|
|
1414
1423
|
if (_this.firstSelectedEnabledOption && !_this.hasFilter()) {
|
|
1415
1424
|
_this.firstSelectedEnabledOption.focus();
|
|
@@ -1422,9 +1431,9 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1422
1431
|
}
|
|
1423
1432
|
|
|
1424
1433
|
if (oldFilterKeyword !== _this.state.filterKeyword) {
|
|
1425
|
-
var _this$props$onFilterC2, _this$
|
|
1434
|
+
var _this$props$onFilterC2, _this$props8;
|
|
1426
1435
|
|
|
1427
|
-
(_this$props$onFilterC2 = (_this$
|
|
1436
|
+
(_this$props$onFilterC2 = (_this$props8 = _this.props).onFilterChange) === null || _this$props$onFilterC2 === void 0 ? void 0 : _this$props$onFilterC2.call(_this$props8, e, {
|
|
1428
1437
|
keyword: _this.state.filterKeyword
|
|
1429
1438
|
});
|
|
1430
1439
|
}
|
|
@@ -1436,18 +1445,18 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1436
1445
|
open: false,
|
|
1437
1446
|
activeIndex: 0
|
|
1438
1447
|
}, function () {
|
|
1439
|
-
var _this$props$onClose, _this$
|
|
1448
|
+
var _this$props$onClose, _this$props9;
|
|
1440
1449
|
|
|
1441
1450
|
_this.previousActiveIndex = null;
|
|
1442
|
-
(_this$props$onClose = (_this$
|
|
1451
|
+
(_this$props$onClose = (_this$props9 = _this.props).onClose) === null || _this$props$onClose === void 0 ? void 0 : _this$props$onClose.call(_this$props9);
|
|
1443
1452
|
});
|
|
1444
1453
|
});
|
|
1445
1454
|
|
|
1446
1455
|
_defineProperty(_assertThisInitialized(_this), "handleScrollBottom", function (e) {
|
|
1447
1456
|
if (_this.state.open && !_this.props.isLoadingOptions) {
|
|
1448
|
-
var _this$props$onScrollB, _this$
|
|
1457
|
+
var _this$props$onScrollB, _this$props10;
|
|
1449
1458
|
|
|
1450
|
-
(_this$props$onScrollB = (_this$
|
|
1459
|
+
(_this$props$onScrollB = (_this$props10 = _this.props).onScrollBottom) === null || _this$props$onScrollB === void 0 ? void 0 : _this$props$onScrollB.call(_this$props10, e);
|
|
1451
1460
|
}
|
|
1452
1461
|
});
|
|
1453
1462
|
|
|
@@ -1474,14 +1483,14 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1474
1483
|
filterKeyword = _this$state.filterKeyword,
|
|
1475
1484
|
textHasFocus = _this$state.textHasFocus,
|
|
1476
1485
|
topValuesState = _this$state.topValues;
|
|
1477
|
-
var _this$
|
|
1478
|
-
allowKeyMatching = _this$
|
|
1479
|
-
allowNewValues = _this$
|
|
1480
|
-
filter = _this$
|
|
1481
|
-
multiple = _this$
|
|
1482
|
-
showSelectedValuesFirst = _this$
|
|
1483
|
-
isLoadingOptions = _this$
|
|
1484
|
-
onScrollBottom = _this$
|
|
1486
|
+
var _this$props11 = _this.props,
|
|
1487
|
+
allowKeyMatching = _this$props11.allowKeyMatching,
|
|
1488
|
+
allowNewValues = _this$props11.allowNewValues,
|
|
1489
|
+
filter = _this$props11.filter,
|
|
1490
|
+
multiple = _this$props11.multiple,
|
|
1491
|
+
showSelectedValuesFirst = _this$props11.showSelectedValuesFirst,
|
|
1492
|
+
isLoadingOptions = _this$props11.isLoadingOptions,
|
|
1493
|
+
onScrollBottom = _this$props11.onScrollBottom;
|
|
1485
1494
|
|
|
1486
1495
|
var currentValues = _this.getCurrentValues();
|
|
1487
1496
|
|
|
@@ -1744,10 +1753,10 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1744
1753
|
}, {
|
|
1745
1754
|
key: "getTopValues",
|
|
1746
1755
|
value: function getTopValues() {
|
|
1747
|
-
var _this$
|
|
1756
|
+
var _this$getCurrentValue4;
|
|
1748
1757
|
|
|
1749
1758
|
// in non-multiple mode, don't move values to the top of the list
|
|
1750
|
-
return this.props.multiple && this.props.showSelectedValuesFirst !== 'never' ? (_this$
|
|
1759
|
+
return this.props.multiple && this.props.showSelectedValuesFirst !== 'never' ? (_this$getCurrentValue4 = this.getCurrentValues()) !== null && _this$getCurrentValue4 !== void 0 ? _this$getCurrentValue4 : [] : [];
|
|
1751
1760
|
}
|
|
1752
1761
|
}, {
|
|
1753
1762
|
key: "isControlled",
|
|
@@ -1762,13 +1771,13 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1762
1771
|
}, {
|
|
1763
1772
|
key: "toggleValue",
|
|
1764
1773
|
value: function toggleValue(e, value) {
|
|
1765
|
-
var _this$
|
|
1774
|
+
var _this$getCurrentValue5, _this$props$onChange3, _this$props13;
|
|
1766
1775
|
|
|
1767
|
-
var values = (_this$
|
|
1776
|
+
var values = (_this$getCurrentValue5 = this.getCurrentValues()) !== null && _this$getCurrentValue5 !== void 0 ? _this$getCurrentValue5 : [];
|
|
1768
1777
|
var currentIndex = values.indexOf(value);
|
|
1769
|
-
var _this$
|
|
1770
|
-
name = _this$
|
|
1771
|
-
multiple = _this$
|
|
1778
|
+
var _this$props12 = this.props,
|
|
1779
|
+
name = _this$props12.name,
|
|
1780
|
+
multiple = _this$props12.multiple;
|
|
1772
1781
|
var newValues;
|
|
1773
1782
|
|
|
1774
1783
|
if (multiple) {
|
|
@@ -1806,7 +1815,7 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1806
1815
|
this.focus();
|
|
1807
1816
|
}
|
|
1808
1817
|
|
|
1809
|
-
(_this$props$onChange3 = (_this$
|
|
1818
|
+
(_this$props$onChange3 = (_this$props13 = this.props).onChange) === null || _this$props$onChange3 === void 0 ? void 0 : _this$props$onChange3.call(_this$props13, e, {
|
|
1810
1819
|
values: newValues,
|
|
1811
1820
|
name: name
|
|
1812
1821
|
});
|
|
@@ -1828,10 +1837,10 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1828
1837
|
var hasChildren = _ref4.hasChildren,
|
|
1829
1838
|
placement = _ref4.placement;
|
|
1830
1839
|
var filterKeyword = this.state.filterKeyword;
|
|
1831
|
-
var _this$
|
|
1832
|
-
inputId = _this$
|
|
1833
|
-
inputRef = _this$
|
|
1834
|
-
multiple = _this$
|
|
1840
|
+
var _this$props14 = this.props,
|
|
1841
|
+
inputId = _this$props14.inputId,
|
|
1842
|
+
inputRef = _this$props14.inputRef,
|
|
1843
|
+
multiple = _this$props14.multiple; // only visually disable these as opposed to fully disabling to avoid losing keyboard focus - see SUI-2731
|
|
1835
1844
|
|
|
1836
1845
|
var selectControls = /*#__PURE__*/external_react_default.a.createElement(StyledToggleAllControls, {
|
|
1837
1846
|
$placement: placement,
|
|
@@ -1883,33 +1892,33 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
1883
1892
|
}, {
|
|
1884
1893
|
key: "render",
|
|
1885
1894
|
value: function render() {
|
|
1886
|
-
var _this$
|
|
1895
|
+
var _this$getCurrentValue6,
|
|
1887
1896
|
_this2 = this;
|
|
1888
1897
|
|
|
1889
|
-
var _this$
|
|
1890
|
-
appearance = _this$
|
|
1891
|
-
children = _this$
|
|
1892
|
-
defaultPlacement = _this$
|
|
1893
|
-
describedBy = _this$
|
|
1894
|
-
disabled = _this$
|
|
1895
|
-
elementRef = _this$
|
|
1896
|
-
error = _this$
|
|
1897
|
-
inline = _this$
|
|
1898
|
-
inputId = _this$
|
|
1899
|
-
labelledBy = _this$
|
|
1900
|
-
labelText = _this$
|
|
1901
|
-
multiple = _this$
|
|
1902
|
-
placeholder = _this$
|
|
1903
|
-
prefixLabel = _this$
|
|
1904
|
-
repositionMode = _this$
|
|
1905
|
-
suffixLabel = _this$
|
|
1898
|
+
var _this$props15 = this.props,
|
|
1899
|
+
appearance = _this$props15.appearance,
|
|
1900
|
+
children = _this$props15.children,
|
|
1901
|
+
defaultPlacement = _this$props15.defaultPlacement,
|
|
1902
|
+
describedBy = _this$props15.describedBy,
|
|
1903
|
+
disabled = _this$props15.disabled,
|
|
1904
|
+
elementRef = _this$props15.elementRef,
|
|
1905
|
+
error = _this$props15.error,
|
|
1906
|
+
inline = _this$props15.inline,
|
|
1907
|
+
inputId = _this$props15.inputId,
|
|
1908
|
+
labelledBy = _this$props15.labelledBy,
|
|
1909
|
+
labelText = _this$props15.labelText,
|
|
1910
|
+
multiple = _this$props15.multiple,
|
|
1911
|
+
placeholder = _this$props15.placeholder,
|
|
1912
|
+
prefixLabel = _this$props15.prefixLabel,
|
|
1913
|
+
repositionMode = _this$props15.repositionMode,
|
|
1914
|
+
suffixLabel = _this$props15.suffixLabel;
|
|
1906
1915
|
var icon;
|
|
1907
1916
|
var label;
|
|
1908
1917
|
var filterEnabled = this.hasFilter();
|
|
1909
1918
|
var isAnyValueSelected = false; // Generate buttonLabels
|
|
1910
1919
|
|
|
1911
1920
|
var childrenArray = external_react_["Children"].toArray(children);
|
|
1912
|
-
var currentValues = (_this$
|
|
1921
|
+
var currentValues = (_this$getCurrentValue6 = this.getCurrentValues()) !== null && _this$getCurrentValue6 !== void 0 ? _this$getCurrentValue6 : [];
|
|
1913
1922
|
var valuesLabel = currentValues.reduce(function (acc, value, index, orig) {
|
|
1914
1923
|
var matchedItem = Object(external_lodash_["find"])(childrenArray, function (item) {
|
|
1915
1924
|
return isOption(item) && item.props.value === value;
|
package/SidePanel.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 173);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 173:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -131,7 +131,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
131
131
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
132
132
|
|
|
133
133
|
// EXTERNAL MODULE: external "@splunk/react-ui/TransitionOpen"
|
|
134
|
-
var TransitionOpen_ = __webpack_require__(
|
|
134
|
+
var TransitionOpen_ = __webpack_require__(53);
|
|
135
135
|
var TransitionOpen_default = /*#__PURE__*/__webpack_require__.n(TransitionOpen_);
|
|
136
136
|
|
|
137
137
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -365,7 +365,7 @@ module.exports = require("lodash");
|
|
|
365
365
|
|
|
366
366
|
/***/ }),
|
|
367
367
|
|
|
368
|
-
/***/
|
|
368
|
+
/***/ 53:
|
|
369
369
|
/***/ (function(module, exports) {
|
|
370
370
|
|
|
371
371
|
module.exports = require("@splunk/react-ui/TransitionOpen");
|
package/Slider.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 174);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 104:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("decimal.js-light");
|
|
@@ -122,7 +122,7 @@ module.exports = require("@splunk/react-ui/Popover");
|
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
124
|
|
|
125
|
-
/***/
|
|
125
|
+
/***/ 174:
|
|
126
126
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
127
127
|
|
|
128
128
|
"use strict";
|
|
@@ -141,7 +141,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
141
141
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
142
142
|
|
|
143
143
|
// EXTERNAL MODULE: external "decimal.js-light"
|
|
144
|
-
var external_decimal_js_light_ = __webpack_require__(
|
|
144
|
+
var external_decimal_js_light_ = __webpack_require__(104);
|
|
145
145
|
var external_decimal_js_light_default = /*#__PURE__*/__webpack_require__.n(external_decimal_js_light_);
|
|
146
146
|
|
|
147
147
|
// EXTERNAL MODULE: external "lodash"
|
package/SlidingPanels.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 144);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
|
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 144:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -151,10 +151,10 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
151
151
|
var external_lodash_ = __webpack_require__(4);
|
|
152
152
|
|
|
153
153
|
// EXTERNAL MODULE: external "react-spring"
|
|
154
|
-
var external_react_spring_ = __webpack_require__(
|
|
154
|
+
var external_react_spring_ = __webpack_require__(19);
|
|
155
155
|
|
|
156
156
|
// EXTERNAL MODULE: external "@splunk/react-ui/Animation"
|
|
157
|
-
var Animation_ = __webpack_require__(
|
|
157
|
+
var Animation_ = __webpack_require__(31);
|
|
158
158
|
|
|
159
159
|
// EXTERNAL MODULE: external "styled-components"
|
|
160
160
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -588,7 +588,7 @@ SlidingPanels_defineProperty(SlidingPanels_SlidingPanels, "getDerivedStateFromPr
|
|
|
588
588
|
|
|
589
589
|
/***/ }),
|
|
590
590
|
|
|
591
|
-
/***/
|
|
591
|
+
/***/ 19:
|
|
592
592
|
/***/ (function(module, exports) {
|
|
593
593
|
|
|
594
594
|
module.exports = require("react-spring");
|
|
@@ -609,7 +609,7 @@ module.exports = require("styled-components");
|
|
|
609
609
|
|
|
610
610
|
/***/ }),
|
|
611
611
|
|
|
612
|
-
/***/
|
|
612
|
+
/***/ 31:
|
|
613
613
|
/***/ (function(module, exports) {
|
|
614
614
|
|
|
615
615
|
module.exports = require("@splunk/react-ui/Animation");
|