@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/Multiselect.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 = 126);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -135,7 +135,7 @@ function updateReactRef(ref, current) {
|
|
|
135
135
|
|
|
136
136
|
/***/ }),
|
|
137
137
|
|
|
138
|
-
/***/
|
|
138
|
+
/***/ 126:
|
|
139
139
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
140
140
|
|
|
141
141
|
"use strict";
|
|
@@ -472,11 +472,11 @@ var id_ = __webpack_require__(10);
|
|
|
472
472
|
var keyboard_ = __webpack_require__(9);
|
|
473
473
|
|
|
474
474
|
// EXTERNAL MODULE: external "@splunk/react-ui/Chip"
|
|
475
|
-
var Chip_ = __webpack_require__(
|
|
475
|
+
var Chip_ = __webpack_require__(99);
|
|
476
476
|
var Chip_default = /*#__PURE__*/__webpack_require__.n(Chip_);
|
|
477
477
|
|
|
478
478
|
// EXTERNAL MODULE: external "@splunk/react-ui/ResultsMenu"
|
|
479
|
-
var ResultsMenu_ = __webpack_require__(
|
|
479
|
+
var ResultsMenu_ = __webpack_require__(34);
|
|
480
480
|
var ResultsMenu_default = /*#__PURE__*/__webpack_require__.n(ResultsMenu_);
|
|
481
481
|
|
|
482
482
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
@@ -1471,17 +1471,17 @@ module.exports = require("@splunk/react-ui/Popover");
|
|
|
1471
1471
|
|
|
1472
1472
|
/***/ }),
|
|
1473
1473
|
|
|
1474
|
-
/***/
|
|
1474
|
+
/***/ 18:
|
|
1475
1475
|
/***/ (function(module, exports) {
|
|
1476
1476
|
|
|
1477
|
-
module.exports = require("react");
|
|
1477
|
+
module.exports = require("@splunk/react-ui/Dropdown");
|
|
1478
1478
|
|
|
1479
1479
|
/***/ }),
|
|
1480
1480
|
|
|
1481
|
-
/***/
|
|
1481
|
+
/***/ 2:
|
|
1482
1482
|
/***/ (function(module, exports) {
|
|
1483
1483
|
|
|
1484
|
-
module.exports = require("
|
|
1484
|
+
module.exports = require("react");
|
|
1485
1485
|
|
|
1486
1486
|
/***/ }),
|
|
1487
1487
|
|
|
@@ -1676,27 +1676,6 @@ _defineProperty(Option, "defaultProps", defaultProps);
|
|
|
1676
1676
|
/***/ }),
|
|
1677
1677
|
|
|
1678
1678
|
/***/ 29:
|
|
1679
|
-
/***/ (function(module, exports) {
|
|
1680
|
-
|
|
1681
|
-
module.exports = require("@splunk/react-ui/Link");
|
|
1682
|
-
|
|
1683
|
-
/***/ }),
|
|
1684
|
-
|
|
1685
|
-
/***/ 3:
|
|
1686
|
-
/***/ (function(module, exports) {
|
|
1687
|
-
|
|
1688
|
-
module.exports = require("styled-components");
|
|
1689
|
-
|
|
1690
|
-
/***/ }),
|
|
1691
|
-
|
|
1692
|
-
/***/ 33:
|
|
1693
|
-
/***/ (function(module, exports) {
|
|
1694
|
-
|
|
1695
|
-
module.exports = require("@splunk/react-ui/ResultsMenu");
|
|
1696
|
-
|
|
1697
|
-
/***/ }),
|
|
1698
|
-
|
|
1699
|
-
/***/ 34:
|
|
1700
1679
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1701
1680
|
|
|
1702
1681
|
"use strict";
|
|
@@ -1746,6 +1725,27 @@ function Search(props) {
|
|
|
1746
1725
|
|
|
1747
1726
|
/***/ }),
|
|
1748
1727
|
|
|
1728
|
+
/***/ 3:
|
|
1729
|
+
/***/ (function(module, exports) {
|
|
1730
|
+
|
|
1731
|
+
module.exports = require("styled-components");
|
|
1732
|
+
|
|
1733
|
+
/***/ }),
|
|
1734
|
+
|
|
1735
|
+
/***/ 30:
|
|
1736
|
+
/***/ (function(module, exports) {
|
|
1737
|
+
|
|
1738
|
+
module.exports = require("@splunk/react-ui/Link");
|
|
1739
|
+
|
|
1740
|
+
/***/ }),
|
|
1741
|
+
|
|
1742
|
+
/***/ 34:
|
|
1743
|
+
/***/ (function(module, exports) {
|
|
1744
|
+
|
|
1745
|
+
module.exports = require("@splunk/react-ui/ResultsMenu");
|
|
1746
|
+
|
|
1747
|
+
/***/ }),
|
|
1748
|
+
|
|
1749
1749
|
/***/ 38:
|
|
1750
1750
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1751
1751
|
|
|
@@ -1841,18 +1841,18 @@ var i18n_ = __webpack_require__(5);
|
|
|
1841
1841
|
var keyboard_ = __webpack_require__(9);
|
|
1842
1842
|
|
|
1843
1843
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
1844
|
-
var Dropdown_ = __webpack_require__(
|
|
1844
|
+
var Dropdown_ = __webpack_require__(18);
|
|
1845
1845
|
var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
|
|
1846
1846
|
|
|
1847
1847
|
// EXTERNAL MODULE: external "@splunk/react-ui/Link"
|
|
1848
|
-
var Link_ = __webpack_require__(
|
|
1848
|
+
var Link_ = __webpack_require__(30);
|
|
1849
1849
|
var Link_default = /*#__PURE__*/__webpack_require__.n(Link_);
|
|
1850
1850
|
|
|
1851
1851
|
// EXTERNAL MODULE: external "@splunk/react-ui/Menu"
|
|
1852
1852
|
var Menu_ = __webpack_require__(13);
|
|
1853
1853
|
|
|
1854
1854
|
// EXTERNAL MODULE: external "@splunk/react-ui/ResultsMenu"
|
|
1855
|
-
var ResultsMenu_ = __webpack_require__(
|
|
1855
|
+
var ResultsMenu_ = __webpack_require__(34);
|
|
1856
1856
|
var ResultsMenu_default = /*#__PURE__*/__webpack_require__.n(ResultsMenu_);
|
|
1857
1857
|
|
|
1858
1858
|
// EXTERNAL MODULE: external "@splunk/react-ui/Text"
|
|
@@ -1863,7 +1863,7 @@ var Text_default = /*#__PURE__*/__webpack_require__.n(Text_);
|
|
|
1863
1863
|
var CaretDown = __webpack_require__(38);
|
|
1864
1864
|
|
|
1865
1865
|
// EXTERNAL MODULE: ./src/icons/Search.tsx
|
|
1866
|
-
var Search = __webpack_require__(
|
|
1866
|
+
var Search = __webpack_require__(29);
|
|
1867
1867
|
|
|
1868
1868
|
// EXTERNAL MODULE: ./src/Select/OptionBase.tsx
|
|
1869
1869
|
var OptionBase = __webpack_require__(28);
|
|
@@ -2203,15 +2203,15 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2203
2203
|
return;
|
|
2204
2204
|
}
|
|
2205
2205
|
|
|
2206
|
-
var
|
|
2206
|
+
var currentValues = (_this$getCurrentValue = _this.getCurrentValues()) !== null && _this$getCurrentValue !== void 0 ? _this$getCurrentValue : [];
|
|
2207
|
+
var values = Object(external_lodash_["uniq"])(currentValues.concat(_this.displayedValues));
|
|
2208
|
+
values = external_react_default.a.Children.toArray(children).filter(function (child) {
|
|
2209
|
+
return isOption(child) && Object(external_lodash_["includes"])(values, child.props.value) && (!child.props.disabled || Object(external_lodash_["includes"])(currentValues, child.props.value));
|
|
2210
|
+
}).map(function (child) {
|
|
2211
|
+
return child.props.value;
|
|
2212
|
+
});
|
|
2207
2213
|
|
|
2208
2214
|
if (!_this.isControlled()) {
|
|
2209
|
-
values = external_react_default.a.Children.toArray(children).filter(function (child) {
|
|
2210
|
-
return isOption(child) && Object(external_lodash_["includes"])(values, child.props.value) && !child.props.disabled;
|
|
2211
|
-
}).map(function (child) {
|
|
2212
|
-
return child.props.value;
|
|
2213
|
-
});
|
|
2214
|
-
|
|
2215
2215
|
_this.setState({
|
|
2216
2216
|
values: values
|
|
2217
2217
|
});
|
|
@@ -2224,16 +2224,25 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2224
2224
|
});
|
|
2225
2225
|
|
|
2226
2226
|
_defineProperty(_assertThisInitialized(_this), "handleClearAll", function (e) {
|
|
2227
|
-
var _this$props$onChange2, _this$
|
|
2227
|
+
var _this$getCurrentValue2, _this$props$onChange2, _this$props4;
|
|
2228
2228
|
|
|
2229
|
-
|
|
2230
|
-
|
|
2229
|
+
var _this$props3 = _this.props,
|
|
2230
|
+
name = _this$props3.name,
|
|
2231
|
+
children = _this$props3.children,
|
|
2232
|
+
multiple = _this$props3.multiple; // this doesn't make sense if we can't select multiple values
|
|
2233
|
+
|
|
2234
|
+
if (!multiple) {
|
|
2231
2235
|
return;
|
|
2232
|
-
}
|
|
2236
|
+
}
|
|
2233
2237
|
|
|
2238
|
+
var currentValues = (_this$getCurrentValue2 = _this.getCurrentValues()) !== null && _this$getCurrentValue2 !== void 0 ? _this$getCurrentValue2 : [];
|
|
2239
|
+
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
|
|
2234
2240
|
|
|
2235
|
-
var values =
|
|
2236
|
-
|
|
2241
|
+
var values = external_react_default.a.Children.toArray(children).filter(function (child) {
|
|
2242
|
+
return isOption(child) && (Object(external_lodash_["includes"])(currentValues, child.props.value) && child.props.disabled || Object(external_lodash_["includes"])(hiddenCurrentValues, child.props.value));
|
|
2243
|
+
}).map(function (child) {
|
|
2244
|
+
return child.props.value;
|
|
2245
|
+
});
|
|
2237
2246
|
|
|
2238
2247
|
if (!_this.isControlled()) {
|
|
2239
2248
|
_this.setState({
|
|
@@ -2241,17 +2250,17 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2241
2250
|
});
|
|
2242
2251
|
}
|
|
2243
2252
|
|
|
2244
|
-
(_this$props$onChange2 = (_this$
|
|
2253
|
+
(_this$props$onChange2 = (_this$props4 = _this.props).onChange) === null || _this$props$onChange2 === void 0 ? void 0 : _this$props$onChange2.call(_this$props4, e, {
|
|
2245
2254
|
values: values,
|
|
2246
2255
|
name: name
|
|
2247
2256
|
});
|
|
2248
2257
|
});
|
|
2249
2258
|
|
|
2250
2259
|
_defineProperty(_assertThisInitialized(_this), "handleTextKeyDown", function (e) {
|
|
2251
|
-
var _this$
|
|
2252
|
-
children = _this$
|
|
2253
|
-
onScrollBottom = _this$
|
|
2254
|
-
tabConfirmsNewValue = _this$
|
|
2260
|
+
var _this$props5 = _this.props,
|
|
2261
|
+
children = _this$props5.children,
|
|
2262
|
+
onScrollBottom = _this$props5.onScrollBottom,
|
|
2263
|
+
tabConfirmsNewValue = _this$props5.tabConfirmsNewValue;
|
|
2255
2264
|
var eventKeyCode = Object(keyboard_["keycode"])(e.nativeEvent);
|
|
2256
2265
|
|
|
2257
2266
|
if (eventKeyCode === 'tab') {
|
|
@@ -2276,9 +2285,9 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2276
2285
|
});
|
|
2277
2286
|
|
|
2278
2287
|
if (children && onScrollBottom) {
|
|
2279
|
-
var _this$
|
|
2288
|
+
var _this$getCurrentValue3;
|
|
2280
2289
|
|
|
2281
|
-
var beforeLastChild = external_react_["Children"].toArray(children).length - (2 + ((_this$
|
|
2290
|
+
var beforeLastChild = external_react_["Children"].toArray(children).length - (2 + ((_this$getCurrentValue3 = _this.getCurrentValues()) !== null && _this$getCurrentValue3 !== void 0 ? _this$getCurrentValue3 : []).length);
|
|
2282
2291
|
|
|
2283
2292
|
if (_this.state.activeIndex === beforeLastChild) {
|
|
2284
2293
|
_this.handleScrollBottom(e);
|
|
@@ -2371,7 +2380,7 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2371
2380
|
});
|
|
2372
2381
|
|
|
2373
2382
|
_defineProperty(_assertThisInitialized(_this), "handleTextChange", function (e, _ref2) {
|
|
2374
|
-
var _this$props$onFilterC, _this$
|
|
2383
|
+
var _this$props$onFilterC, _this$props6;
|
|
2375
2384
|
|
|
2376
2385
|
var value = _ref2.value;
|
|
2377
2386
|
|
|
@@ -2381,7 +2390,7 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2381
2390
|
activeIndex: 0
|
|
2382
2391
|
});
|
|
2383
2392
|
|
|
2384
|
-
(_this$props$onFilterC = (_this$
|
|
2393
|
+
(_this$props$onFilterC = (_this$props6 = _this.props).onFilterChange) === null || _this$props$onFilterC === void 0 ? void 0 : _this$props$onFilterC.call(_this$props6, e, {
|
|
2385
2394
|
keyword: value
|
|
2386
2395
|
});
|
|
2387
2396
|
});
|
|
@@ -2411,9 +2420,9 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2411
2420
|
var oldFilterKeyword = _this.state.filterKeyword;
|
|
2412
2421
|
|
|
2413
2422
|
_this.setState(newState, function () {
|
|
2414
|
-
var _this$props$onOpen, _this$
|
|
2423
|
+
var _this$props$onOpen, _this$props7;
|
|
2415
2424
|
|
|
2416
|
-
(_this$props$onOpen = (_this$
|
|
2425
|
+
(_this$props$onOpen = (_this$props7 = _this.props).onOpen) === null || _this$props$onOpen === void 0 ? void 0 : _this$props$onOpen.call(_this$props7);
|
|
2417
2426
|
|
|
2418
2427
|
if (_this.firstSelectedEnabledOption && !_this.hasFilter()) {
|
|
2419
2428
|
_this.firstSelectedEnabledOption.focus();
|
|
@@ -2426,9 +2435,9 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2426
2435
|
}
|
|
2427
2436
|
|
|
2428
2437
|
if (oldFilterKeyword !== _this.state.filterKeyword) {
|
|
2429
|
-
var _this$props$onFilterC2, _this$
|
|
2438
|
+
var _this$props$onFilterC2, _this$props8;
|
|
2430
2439
|
|
|
2431
|
-
(_this$props$onFilterC2 = (_this$
|
|
2440
|
+
(_this$props$onFilterC2 = (_this$props8 = _this.props).onFilterChange) === null || _this$props$onFilterC2 === void 0 ? void 0 : _this$props$onFilterC2.call(_this$props8, e, {
|
|
2432
2441
|
keyword: _this.state.filterKeyword
|
|
2433
2442
|
});
|
|
2434
2443
|
}
|
|
@@ -2440,18 +2449,18 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2440
2449
|
open: false,
|
|
2441
2450
|
activeIndex: 0
|
|
2442
2451
|
}, function () {
|
|
2443
|
-
var _this$props$onClose, _this$
|
|
2452
|
+
var _this$props$onClose, _this$props9;
|
|
2444
2453
|
|
|
2445
2454
|
_this.previousActiveIndex = null;
|
|
2446
|
-
(_this$props$onClose = (_this$
|
|
2455
|
+
(_this$props$onClose = (_this$props9 = _this.props).onClose) === null || _this$props$onClose === void 0 ? void 0 : _this$props$onClose.call(_this$props9);
|
|
2447
2456
|
});
|
|
2448
2457
|
});
|
|
2449
2458
|
|
|
2450
2459
|
_defineProperty(_assertThisInitialized(_this), "handleScrollBottom", function (e) {
|
|
2451
2460
|
if (_this.state.open && !_this.props.isLoadingOptions) {
|
|
2452
|
-
var _this$props$onScrollB, _this$
|
|
2461
|
+
var _this$props$onScrollB, _this$props10;
|
|
2453
2462
|
|
|
2454
|
-
(_this$props$onScrollB = (_this$
|
|
2463
|
+
(_this$props$onScrollB = (_this$props10 = _this.props).onScrollBottom) === null || _this$props$onScrollB === void 0 ? void 0 : _this$props$onScrollB.call(_this$props10, e);
|
|
2455
2464
|
}
|
|
2456
2465
|
});
|
|
2457
2466
|
|
|
@@ -2478,14 +2487,14 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2478
2487
|
filterKeyword = _this$state.filterKeyword,
|
|
2479
2488
|
textHasFocus = _this$state.textHasFocus,
|
|
2480
2489
|
topValuesState = _this$state.topValues;
|
|
2481
|
-
var _this$
|
|
2482
|
-
allowKeyMatching = _this$
|
|
2483
|
-
allowNewValues = _this$
|
|
2484
|
-
filter = _this$
|
|
2485
|
-
multiple = _this$
|
|
2486
|
-
showSelectedValuesFirst = _this$
|
|
2487
|
-
isLoadingOptions = _this$
|
|
2488
|
-
onScrollBottom = _this$
|
|
2490
|
+
var _this$props11 = _this.props,
|
|
2491
|
+
allowKeyMatching = _this$props11.allowKeyMatching,
|
|
2492
|
+
allowNewValues = _this$props11.allowNewValues,
|
|
2493
|
+
filter = _this$props11.filter,
|
|
2494
|
+
multiple = _this$props11.multiple,
|
|
2495
|
+
showSelectedValuesFirst = _this$props11.showSelectedValuesFirst,
|
|
2496
|
+
isLoadingOptions = _this$props11.isLoadingOptions,
|
|
2497
|
+
onScrollBottom = _this$props11.onScrollBottom;
|
|
2489
2498
|
|
|
2490
2499
|
var currentValues = _this.getCurrentValues();
|
|
2491
2500
|
|
|
@@ -2748,10 +2757,10 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2748
2757
|
}, {
|
|
2749
2758
|
key: "getTopValues",
|
|
2750
2759
|
value: function getTopValues() {
|
|
2751
|
-
var _this$
|
|
2760
|
+
var _this$getCurrentValue4;
|
|
2752
2761
|
|
|
2753
2762
|
// in non-multiple mode, don't move values to the top of the list
|
|
2754
|
-
return this.props.multiple && this.props.showSelectedValuesFirst !== 'never' ? (_this$
|
|
2763
|
+
return this.props.multiple && this.props.showSelectedValuesFirst !== 'never' ? (_this$getCurrentValue4 = this.getCurrentValues()) !== null && _this$getCurrentValue4 !== void 0 ? _this$getCurrentValue4 : [] : [];
|
|
2755
2764
|
}
|
|
2756
2765
|
}, {
|
|
2757
2766
|
key: "isControlled",
|
|
@@ -2766,13 +2775,13 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2766
2775
|
}, {
|
|
2767
2776
|
key: "toggleValue",
|
|
2768
2777
|
value: function toggleValue(e, value) {
|
|
2769
|
-
var _this$
|
|
2778
|
+
var _this$getCurrentValue5, _this$props$onChange3, _this$props13;
|
|
2770
2779
|
|
|
2771
|
-
var values = (_this$
|
|
2780
|
+
var values = (_this$getCurrentValue5 = this.getCurrentValues()) !== null && _this$getCurrentValue5 !== void 0 ? _this$getCurrentValue5 : [];
|
|
2772
2781
|
var currentIndex = values.indexOf(value);
|
|
2773
|
-
var _this$
|
|
2774
|
-
name = _this$
|
|
2775
|
-
multiple = _this$
|
|
2782
|
+
var _this$props12 = this.props,
|
|
2783
|
+
name = _this$props12.name,
|
|
2784
|
+
multiple = _this$props12.multiple;
|
|
2776
2785
|
var newValues;
|
|
2777
2786
|
|
|
2778
2787
|
if (multiple) {
|
|
@@ -2810,7 +2819,7 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2810
2819
|
this.focus();
|
|
2811
2820
|
}
|
|
2812
2821
|
|
|
2813
|
-
(_this$props$onChange3 = (_this$
|
|
2822
|
+
(_this$props$onChange3 = (_this$props13 = this.props).onChange) === null || _this$props$onChange3 === void 0 ? void 0 : _this$props$onChange3.call(_this$props13, e, {
|
|
2814
2823
|
values: newValues,
|
|
2815
2824
|
name: name
|
|
2816
2825
|
});
|
|
@@ -2832,10 +2841,10 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2832
2841
|
var hasChildren = _ref4.hasChildren,
|
|
2833
2842
|
placement = _ref4.placement;
|
|
2834
2843
|
var filterKeyword = this.state.filterKeyword;
|
|
2835
|
-
var _this$
|
|
2836
|
-
inputId = _this$
|
|
2837
|
-
inputRef = _this$
|
|
2838
|
-
multiple = _this$
|
|
2844
|
+
var _this$props14 = this.props,
|
|
2845
|
+
inputId = _this$props14.inputId,
|
|
2846
|
+
inputRef = _this$props14.inputRef,
|
|
2847
|
+
multiple = _this$props14.multiple; // only visually disable these as opposed to fully disabling to avoid losing keyboard focus - see SUI-2731
|
|
2839
2848
|
|
|
2840
2849
|
var selectControls = /*#__PURE__*/external_react_default.a.createElement(StyledToggleAllControls, {
|
|
2841
2850
|
$placement: placement,
|
|
@@ -2887,33 +2896,33 @@ var SelectBase_SelectBase = /*#__PURE__*/function (_Component) {
|
|
|
2887
2896
|
}, {
|
|
2888
2897
|
key: "render",
|
|
2889
2898
|
value: function render() {
|
|
2890
|
-
var _this$
|
|
2899
|
+
var _this$getCurrentValue6,
|
|
2891
2900
|
_this2 = this;
|
|
2892
2901
|
|
|
2893
|
-
var _this$
|
|
2894
|
-
appearance = _this$
|
|
2895
|
-
children = _this$
|
|
2896
|
-
defaultPlacement = _this$
|
|
2897
|
-
describedBy = _this$
|
|
2898
|
-
disabled = _this$
|
|
2899
|
-
elementRef = _this$
|
|
2900
|
-
error = _this$
|
|
2901
|
-
inline = _this$
|
|
2902
|
-
inputId = _this$
|
|
2903
|
-
labelledBy = _this$
|
|
2904
|
-
labelText = _this$
|
|
2905
|
-
multiple = _this$
|
|
2906
|
-
placeholder = _this$
|
|
2907
|
-
prefixLabel = _this$
|
|
2908
|
-
repositionMode = _this$
|
|
2909
|
-
suffixLabel = _this$
|
|
2902
|
+
var _this$props15 = this.props,
|
|
2903
|
+
appearance = _this$props15.appearance,
|
|
2904
|
+
children = _this$props15.children,
|
|
2905
|
+
defaultPlacement = _this$props15.defaultPlacement,
|
|
2906
|
+
describedBy = _this$props15.describedBy,
|
|
2907
|
+
disabled = _this$props15.disabled,
|
|
2908
|
+
elementRef = _this$props15.elementRef,
|
|
2909
|
+
error = _this$props15.error,
|
|
2910
|
+
inline = _this$props15.inline,
|
|
2911
|
+
inputId = _this$props15.inputId,
|
|
2912
|
+
labelledBy = _this$props15.labelledBy,
|
|
2913
|
+
labelText = _this$props15.labelText,
|
|
2914
|
+
multiple = _this$props15.multiple,
|
|
2915
|
+
placeholder = _this$props15.placeholder,
|
|
2916
|
+
prefixLabel = _this$props15.prefixLabel,
|
|
2917
|
+
repositionMode = _this$props15.repositionMode,
|
|
2918
|
+
suffixLabel = _this$props15.suffixLabel;
|
|
2910
2919
|
var icon;
|
|
2911
2920
|
var label;
|
|
2912
2921
|
var filterEnabled = this.hasFilter();
|
|
2913
2922
|
var isAnyValueSelected = false; // Generate buttonLabels
|
|
2914
2923
|
|
|
2915
2924
|
var childrenArray = external_react_["Children"].toArray(children);
|
|
2916
|
-
var currentValues = (_this$
|
|
2925
|
+
var currentValues = (_this$getCurrentValue6 = this.getCurrentValues()) !== null && _this$getCurrentValue6 !== void 0 ? _this$getCurrentValue6 : [];
|
|
2917
2926
|
var valuesLabel = currentValues.reduce(function (acc, value, index, orig) {
|
|
2918
2927
|
var matchedItem = Object(external_lodash_["find"])(childrenArray, function (item) {
|
|
2919
2928
|
return isOption(item) && item.props.value === value;
|
|
@@ -3246,7 +3255,7 @@ module.exports = require("@splunk/ui-utils/keyboard");
|
|
|
3246
3255
|
|
|
3247
3256
|
/***/ }),
|
|
3248
3257
|
|
|
3249
|
-
/***/
|
|
3258
|
+
/***/ 99:
|
|
3250
3259
|
/***/ (function(module, exports) {
|
|
3251
3260
|
|
|
3252
3261
|
module.exports = require("@splunk/react-ui/Chip");
|
package/Number.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 = 142);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 142:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
package/Paginator.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 = 119);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 100:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("@splunk/react-icons/More");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 119:
|
|
105
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
113
|
|
|
107
114
|
"use strict";
|
|
@@ -133,7 +140,7 @@ var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
|
133
140
|
var themes_ = __webpack_require__(0);
|
|
134
141
|
|
|
135
142
|
// EXTERNAL MODULE: external "@splunk/react-icons/More"
|
|
136
|
-
var More_ = __webpack_require__(
|
|
143
|
+
var More_ = __webpack_require__(100);
|
|
137
144
|
var More_default = /*#__PURE__*/__webpack_require__.n(More_);
|
|
138
145
|
|
|
139
146
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -338,7 +345,7 @@ _defineProperty(Button_PaginatorButton, "defaultProps", defaultProps);
|
|
|
338
345
|
|
|
339
346
|
/* harmony default export */ var Button = (Button_PaginatorButton);
|
|
340
347
|
// EXTERNAL MODULE: ./src/icons/ChevronLeft.tsx
|
|
341
|
-
var ChevronLeft = __webpack_require__(
|
|
348
|
+
var ChevronLeft = __webpack_require__(60);
|
|
342
349
|
|
|
343
350
|
// EXTERNAL MODULE: ./src/icons/ChevronRight.tsx
|
|
344
351
|
var ChevronRight = __webpack_require__(27);
|
|
@@ -536,7 +543,7 @@ module.exports = require("react");
|
|
|
536
543
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronRight; });
|
|
537
544
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
538
545
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
539
|
-
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
546
|
+
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33);
|
|
540
547
|
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__);
|
|
541
548
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
542
549
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -586,7 +593,7 @@ module.exports = require("styled-components");
|
|
|
586
593
|
|
|
587
594
|
/***/ }),
|
|
588
595
|
|
|
589
|
-
/***/
|
|
596
|
+
/***/ 33:
|
|
590
597
|
/***/ (function(module, exports) {
|
|
591
598
|
|
|
592
599
|
module.exports = require("@splunk/react-icons/ChevronRight");
|
|
@@ -621,14 +628,39 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
621
628
|
|
|
622
629
|
/***/ }),
|
|
623
630
|
|
|
624
|
-
/***/
|
|
631
|
+
/***/ 6:
|
|
632
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
633
|
+
|
|
634
|
+
"use strict";
|
|
635
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SVG; });
|
|
636
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
637
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
638
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
639
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
|
640
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
var Styled = styled_components__WEBPACK_IMPORTED_MODULE_1___default.a.svg.withConfig({
|
|
645
|
+
displayName: "SVG__Styled",
|
|
646
|
+
componentId: "sc-1bz0ryh-0"
|
|
647
|
+
})(["flex:0 0 auto;"]);
|
|
648
|
+
function SVG(props) {
|
|
649
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Styled, _extends({
|
|
650
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
651
|
+
}, props));
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/***/ }),
|
|
655
|
+
|
|
656
|
+
/***/ 60:
|
|
625
657
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
626
658
|
|
|
627
659
|
"use strict";
|
|
628
660
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronLeft; });
|
|
629
661
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
630
662
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
631
|
-
/* harmony import */ var _splunk_react_icons_ChevronLeft__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
663
|
+
/* harmony import */ var _splunk_react_icons_ChevronLeft__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61);
|
|
632
664
|
/* harmony import */ var _splunk_react_icons_ChevronLeft__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronLeft__WEBPACK_IMPORTED_MODULE_1__);
|
|
633
665
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
634
666
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -671,32 +703,7 @@ function ChevronLeft(props) {
|
|
|
671
703
|
|
|
672
704
|
/***/ }),
|
|
673
705
|
|
|
674
|
-
/***/
|
|
675
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
676
|
-
|
|
677
|
-
"use strict";
|
|
678
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SVG; });
|
|
679
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
680
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
681
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
682
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
|
683
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
var Styled = styled_components__WEBPACK_IMPORTED_MODULE_1___default.a.svg.withConfig({
|
|
688
|
-
displayName: "SVG__Styled",
|
|
689
|
-
componentId: "sc-1bz0ryh-0"
|
|
690
|
-
})(["flex:0 0 auto;"]);
|
|
691
|
-
function SVG(props) {
|
|
692
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Styled, _extends({
|
|
693
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
694
|
-
}, props));
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
/***/ }),
|
|
698
|
-
|
|
699
|
-
/***/ 60:
|
|
706
|
+
/***/ 61:
|
|
700
707
|
/***/ (function(module, exports) {
|
|
701
708
|
|
|
702
709
|
module.exports = require("@splunk/react-icons/ChevronLeft");
|
|
@@ -826,13 +833,6 @@ Icon.defaultProps = defaultProps;
|
|
|
826
833
|
|
|
827
834
|
module.exports = require("@splunk/react-ui/Box");
|
|
828
835
|
|
|
829
|
-
/***/ }),
|
|
830
|
-
|
|
831
|
-
/***/ 98:
|
|
832
|
-
/***/ (function(module, exports) {
|
|
833
|
-
|
|
834
|
-
module.exports = require("@splunk/react-icons/More");
|
|
835
|
-
|
|
836
836
|
/***/ })
|
|
837
837
|
|
|
838
838
|
/******/ });
|
package/Paragraph.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 = 166);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 166:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|