@splunk/react-ui 4.4.1 → 4.5.2
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 +37 -21
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +36 -12
- package/ButtonGroup.js +27 -6
- package/ButtonSimple.js +6 -6
- package/CHANGELOG.md +61 -1
- package/Calendar.js +14 -14
- package/Card.js +49 -23
- package/CardLayout.js +31 -10
- package/Chip.js +77 -53
- package/Clickable.js +4 -4
- package/CloseButton.js +6 -6
- package/Code.js +4 -4
- package/CollapsiblePanel.js +6 -6
- package/Color.js +103 -56
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +20 -15
- package/Concertina.js +73 -68
- package/ControlGroup.js +72 -24
- package/Date.js +11 -11
- package/DefinitionList.js +6 -6
- package/Dropdown.js +12 -12
- package/EventListener.js +168 -0
- package/FetchOptions.js +8 -8
- package/File.js +48 -37
- package/FormRows.js +340 -220
- package/Image.js +14 -14
- package/JSONTree.js +5 -5
- package/Layer.js +32 -20
- package/Link.js +6 -6
- package/List.js +2 -2
- package/Markdown.js +250 -88
- package/Menu.js +70 -64
- package/Message.js +18 -18
- package/Modal.js +68 -14
- package/ModalLayer.js +4 -4
- package/Monogram.js +12 -11
- package/Multiselect.js +122 -78
- package/Number.js +19 -16
- package/Paginator.js +10 -10
- package/Paragraph.js +2 -2
- package/Popover.js +52 -38
- package/Progress.js +8 -8
- package/RadioBar.js +56 -69
- package/RadioList.js +2 -2
- package/Resize.js +19 -15
- package/ResultsMenu.js +8 -8
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +16 -14
- package/ScrollContainerContext.js +5 -5
- package/Search.d.ts +2 -0
- package/Search.js +797 -0
- package/Select.js +63 -35
- package/SidePanel.js +6 -6
- package/Slider.js +29 -25
- package/SlidingPanels.js +4 -4
- package/StaticContent.js +2 -2
- package/StepBar.js +56 -52
- package/Switch.js +8 -8
- package/TabBar.js +126 -85
- package/TabLayout.js +4 -5
- package/Table.js +188 -138
- package/Text.js +69 -63
- package/Tooltip.js +11 -11
- package/TransitionOpen.js +9 -9
- package/WaitSpinner.js +3 -4
- package/package.json +6 -7
- package/types/src/Accordion/AccordionContext.d.ts +10 -0
- package/types/src/Accordion/Panel.d.ts +0 -9
- package/types/src/Button/Button.d.ts +4 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +7 -0
- package/types/src/ButtonSimple/ButtonSimple.d.ts +5 -5
- package/types/src/Card/Card.d.ts +2 -0
- package/types/src/CardLayout/CardLayoutContext.d.ts +8 -0
- package/types/src/Color/Color.d.ts +2 -2
- package/types/src/ComboBox/ComboBox.d.ts +4 -3
- package/types/src/Concertina/ConcertinaContext.d.ts +8 -0
- package/types/src/Concertina/Panel.d.ts +2 -4
- package/types/src/ControlGroup/ControlGroup.d.ts +6 -1
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/EventListener/EventListener.d.ts +18 -0
- package/types/src/EventListener/index.d.ts +2 -0
- package/types/src/File/File.d.ts +6 -4
- package/types/src/FormRows/FormRows.d.ts +70 -12
- package/types/src/FormRows/FormRowsContext.d.ts +1 -0
- package/types/src/FormRows/Row.d.ts +9 -7
- package/types/src/Markdown/Markdown.d.ts +2 -0
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +14 -0
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +15 -0
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +16 -0
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +15 -0
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +18 -0
- package/types/src/Markdown/renderers/MarkdownItem.d.ts +14 -0
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +18 -0
- package/types/src/Markdown/renderers/MarkdownList.d.ts +26 -0
- package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +14 -0
- package/types/src/Markdown/renderers/index.d.ts +10 -0
- package/types/src/Modal/Modal.d.ts +15 -3
- package/types/src/Monogram/Monogram.d.ts +5 -1
- package/types/src/Multiselect/Compact.d.ts +12 -4
- package/types/src/Multiselect/Multiselect.d.ts +14 -4
- package/types/src/Multiselect/Normal.d.ts +7 -2
- package/types/src/Number/Number.d.ts +11 -7
- package/types/src/Popover/Popover.d.ts +2 -2
- package/types/src/RadioBar/Option.d.ts +4 -14
- package/types/src/RadioBar/RadioBar.d.ts +2 -2
- package/types/src/RadioBar/RadioBarContext.d.ts +9 -0
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +4 -4
- package/types/src/Search/Option.d.ts +60 -0
- package/types/src/Search/Search.d.ts +97 -0
- package/types/src/Search/index.d.ts +2 -0
- package/types/src/Select/Select.d.ts +6 -2
- package/types/src/Select/SelectBase.d.ts +12 -5
- package/types/src/Slider/Slider.d.ts +2 -2
- package/types/src/StepBar/Step.d.ts +1 -13
- package/types/src/StepBar/StepBarContext.d.ts +8 -0
- package/types/src/TabBar/Tab.d.ts +5 -13
- package/types/src/TabBar/TabBarContext.d.ts +14 -0
- package/types/src/Table/Body.d.ts +1 -1
- package/types/src/Table/Head.d.ts +1 -1
- package/types/src/Table/Row.d.ts +10 -3
- package/types/src/Table/Table.d.ts +3 -2
- package/types/src/Text/Text.d.ts +11 -7
- package/types/src/icons/Sort.d.ts +3 -0
- package/types/src/usePrevious/index.d.ts +2 -0
- package/types/src/usePrevious/usePrevious.d.ts +12 -0
- package/usePrevious.js +137 -0
package/Table.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 = 107);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ([
|
|
@@ -276,8 +276,7 @@ module.exports = require("@splunk/ui-utils/keyboard");
|
|
|
276
276
|
module.exports = require("@splunk/ui-utils/id");
|
|
277
277
|
|
|
278
278
|
/***/ }),
|
|
279
|
-
/* 11
|
|
280
|
-
/* 12 */
|
|
279
|
+
/* 11 */
|
|
281
280
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
282
281
|
|
|
283
282
|
"use strict";
|
|
@@ -303,29 +302,30 @@ function updateReactRef(ref, current) {
|
|
|
303
302
|
|
|
304
303
|
|
|
305
304
|
/***/ }),
|
|
305
|
+
/* 12 */,
|
|
306
306
|
/* 13 */,
|
|
307
307
|
/* 14 */
|
|
308
308
|
/***/ (function(module, exports) {
|
|
309
309
|
|
|
310
|
-
module.exports = require("@splunk/react-ui/
|
|
310
|
+
module.exports = require("@splunk/react-ui/EventListener");
|
|
311
311
|
|
|
312
312
|
/***/ }),
|
|
313
313
|
/* 15 */
|
|
314
314
|
/***/ (function(module, exports) {
|
|
315
315
|
|
|
316
|
-
module.exports = require("react-
|
|
316
|
+
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
317
317
|
|
|
318
318
|
/***/ }),
|
|
319
319
|
/* 16 */
|
|
320
320
|
/***/ (function(module, exports) {
|
|
321
321
|
|
|
322
|
-
module.exports = require("@splunk/react-ui/
|
|
322
|
+
module.exports = require("@splunk/react-ui/Popover");
|
|
323
323
|
|
|
324
324
|
/***/ }),
|
|
325
325
|
/* 17 */
|
|
326
326
|
/***/ (function(module, exports) {
|
|
327
327
|
|
|
328
|
-
module.exports = require("@splunk/react-ui/
|
|
328
|
+
module.exports = require("@splunk/react-ui/Button");
|
|
329
329
|
|
|
330
330
|
/***/ }),
|
|
331
331
|
/* 18 */,
|
|
@@ -459,15 +459,16 @@ module.exports = require("@splunk/react-icons/Caret");
|
|
|
459
459
|
/* 42 */,
|
|
460
460
|
/* 43 */,
|
|
461
461
|
/* 44 */,
|
|
462
|
-
/* 45
|
|
462
|
+
/* 45 */,
|
|
463
|
+
/* 46 */
|
|
463
464
|
/***/ (function(module, exports) {
|
|
464
465
|
|
|
465
466
|
module.exports = require("@splunk/react-ui/Tooltip");
|
|
466
467
|
|
|
467
468
|
/***/ }),
|
|
468
|
-
/* 46 */,
|
|
469
469
|
/* 47 */,
|
|
470
|
-
/* 48
|
|
470
|
+
/* 48 */,
|
|
471
|
+
/* 49 */
|
|
471
472
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
472
473
|
|
|
473
474
|
"use strict";
|
|
@@ -490,19 +491,20 @@ function assertDefined(val, msg) {
|
|
|
490
491
|
|
|
491
492
|
|
|
492
493
|
/***/ }),
|
|
493
|
-
/* 49 */,
|
|
494
494
|
/* 50 */,
|
|
495
495
|
/* 51 */,
|
|
496
496
|
/* 52 */,
|
|
497
497
|
/* 53 */,
|
|
498
|
-
/* 54
|
|
498
|
+
/* 54 */,
|
|
499
|
+
/* 55 */,
|
|
500
|
+
/* 56 */
|
|
499
501
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
500
502
|
|
|
501
503
|
"use strict";
|
|
502
504
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MoreVertical; });
|
|
503
505
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
504
506
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
505
|
-
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
507
|
+
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57);
|
|
506
508
|
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__);
|
|
507
509
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
508
510
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -532,20 +534,21 @@ function MoreVertical(props) {
|
|
|
532
534
|
}
|
|
533
535
|
|
|
534
536
|
/***/ }),
|
|
535
|
-
/*
|
|
537
|
+
/* 57 */
|
|
536
538
|
/***/ (function(module, exports) {
|
|
537
539
|
|
|
538
540
|
module.exports = require("@splunk/react-icons/MoreVertical");
|
|
539
541
|
|
|
540
542
|
/***/ }),
|
|
541
|
-
/*
|
|
543
|
+
/* 58 */,
|
|
544
|
+
/* 59 */
|
|
542
545
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
543
546
|
|
|
544
547
|
"use strict";
|
|
545
548
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronDown; });
|
|
546
549
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
547
550
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
548
|
-
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
551
|
+
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60);
|
|
549
552
|
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__);
|
|
550
553
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
551
554
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -587,25 +590,22 @@ function ChevronDown(props) {
|
|
|
587
590
|
}
|
|
588
591
|
|
|
589
592
|
/***/ }),
|
|
590
|
-
/*
|
|
593
|
+
/* 60 */
|
|
591
594
|
/***/ (function(module, exports) {
|
|
592
595
|
|
|
593
596
|
module.exports = require("@splunk/react-icons/ChevronDown");
|
|
594
597
|
|
|
595
598
|
/***/ }),
|
|
596
|
-
/* 58 */,
|
|
597
|
-
/* 59 */,
|
|
598
|
-
/* 60 */,
|
|
599
599
|
/* 61 */,
|
|
600
|
-
/* 62
|
|
600
|
+
/* 62 */,
|
|
601
|
+
/* 63 */,
|
|
602
|
+
/* 64 */,
|
|
603
|
+
/* 65 */
|
|
601
604
|
/***/ (function(module, exports) {
|
|
602
605
|
|
|
603
606
|
module.exports = require("@splunk/react-ui/Switch");
|
|
604
607
|
|
|
605
608
|
/***/ }),
|
|
606
|
-
/* 63 */,
|
|
607
|
-
/* 64 */,
|
|
608
|
-
/* 65 */,
|
|
609
609
|
/* 66 */,
|
|
610
610
|
/* 67 */,
|
|
611
611
|
/* 68 */,
|
|
@@ -635,41 +635,44 @@ module.exports = require("@splunk/react-ui/Switch");
|
|
|
635
635
|
/* 92 */,
|
|
636
636
|
/* 93 */,
|
|
637
637
|
/* 94 */,
|
|
638
|
-
/* 95
|
|
638
|
+
/* 95 */,
|
|
639
|
+
/* 96 */,
|
|
640
|
+
/* 97 */,
|
|
641
|
+
/* 98 */
|
|
639
642
|
/***/ (function(module, exports) {
|
|
640
643
|
|
|
641
644
|
module.exports = require("react-resize-detector");
|
|
642
645
|
|
|
643
646
|
/***/ }),
|
|
644
|
-
/*
|
|
647
|
+
/* 99 */
|
|
645
648
|
/***/ (function(module, exports) {
|
|
646
649
|
|
|
647
|
-
module.exports = require("@splunk/react-icons/
|
|
650
|
+
module.exports = require("@splunk/react-icons/SortedDown");
|
|
648
651
|
|
|
649
652
|
/***/ }),
|
|
650
|
-
/*
|
|
653
|
+
/* 100 */
|
|
651
654
|
/***/ (function(module, exports) {
|
|
652
655
|
|
|
653
|
-
module.exports = require("@splunk/react-icons/
|
|
656
|
+
module.exports = require("@splunk/react-icons/SortedUp");
|
|
654
657
|
|
|
655
658
|
/***/ }),
|
|
656
|
-
/*
|
|
659
|
+
/* 101 */
|
|
657
660
|
/***/ (function(module, exports) {
|
|
658
661
|
|
|
659
|
-
module.exports = require("@splunk/react-icons/
|
|
662
|
+
module.exports = require("@splunk/react-icons/Sort");
|
|
660
663
|
|
|
661
664
|
/***/ }),
|
|
662
|
-
/*
|
|
665
|
+
/* 102 */
|
|
663
666
|
/***/ (function(module, exports) {
|
|
664
667
|
|
|
665
668
|
module.exports = require("@splunk/react-icons/Info");
|
|
666
669
|
|
|
667
670
|
/***/ }),
|
|
668
|
-
/* 100 */,
|
|
669
|
-
/* 101 */,
|
|
670
|
-
/* 102 */,
|
|
671
671
|
/* 103 */,
|
|
672
|
-
/* 104
|
|
672
|
+
/* 104 */,
|
|
673
|
+
/* 105 */,
|
|
674
|
+
/* 106 */,
|
|
675
|
+
/* 107 */
|
|
673
676
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
674
677
|
|
|
675
678
|
"use strict";
|
|
@@ -697,14 +700,14 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
697
700
|
// EXTERNAL MODULE: external "lodash"
|
|
698
701
|
var external_lodash_ = __webpack_require__(4);
|
|
699
702
|
|
|
700
|
-
// EXTERNAL MODULE: external "react-event-listener"
|
|
701
|
-
var external_react_event_listener_ = __webpack_require__(15);
|
|
702
|
-
var external_react_event_listener_default = /*#__PURE__*/__webpack_require__.n(external_react_event_listener_);
|
|
703
|
-
|
|
704
703
|
// EXTERNAL MODULE: external "react-resize-detector"
|
|
705
|
-
var external_react_resize_detector_ = __webpack_require__(
|
|
704
|
+
var external_react_resize_detector_ = __webpack_require__(98);
|
|
706
705
|
var external_react_resize_detector_default = /*#__PURE__*/__webpack_require__.n(external_react_resize_detector_);
|
|
707
706
|
|
|
707
|
+
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
708
|
+
var EventListener_ = __webpack_require__(14);
|
|
709
|
+
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
710
|
+
|
|
708
711
|
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
709
712
|
var keyboard_ = __webpack_require__(9);
|
|
710
713
|
|
|
@@ -727,7 +730,7 @@ var Styled = external_styled_components_default.a.tbody.withConfig({
|
|
|
727
730
|
})(["", ""], themes_["mixins"].reset('table-row-group'));
|
|
728
731
|
|
|
729
732
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
730
|
-
var updateReactRef = __webpack_require__(
|
|
733
|
+
var updateReactRef = __webpack_require__(11);
|
|
731
734
|
|
|
732
735
|
// CONCATENATED MODULE: ./src/Table/Body.tsx
|
|
733
736
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -775,7 +778,7 @@ var propTypes = {
|
|
|
775
778
|
movableColumns: external_prop_types_default.a.bool,
|
|
776
779
|
|
|
777
780
|
/** @private. Generally passed by Table rather than added directly. */
|
|
778
|
-
rowExpansion: external_prop_types_default.a.oneOf(['single', 'multi', 'none']),
|
|
781
|
+
rowExpansion: external_prop_types_default.a.oneOf(['single', 'multi', 'none', 'controlled']),
|
|
779
782
|
|
|
780
783
|
/** @private. Generally passed by Table rather than added directly. */
|
|
781
784
|
onRequestMoveRow: external_prop_types_default.a.func,
|
|
@@ -926,7 +929,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
926
929
|
}
|
|
927
930
|
}, {
|
|
928
931
|
key: "handleRowExpansion",
|
|
929
|
-
value: function handleRowExpansion(key) {
|
|
932
|
+
value: function handleRowExpansion(event, key, onExpansion) {
|
|
930
933
|
var current = this.state.expanded;
|
|
931
934
|
|
|
932
935
|
if (this.props.rowExpansion === 'single') {
|
|
@@ -950,6 +953,8 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
950
953
|
});
|
|
951
954
|
}
|
|
952
955
|
}
|
|
956
|
+
|
|
957
|
+
onExpansion === null || onExpansion === void 0 ? void 0 : onExpansion(event);
|
|
953
958
|
}
|
|
954
959
|
}, {
|
|
955
960
|
key: "calculateGuideIndex",
|
|
@@ -1043,7 +1048,12 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1043
1048
|
var key = child.key;
|
|
1044
1049
|
var oddOrEven = i % 2 ? 'even' : 'odd';
|
|
1045
1050
|
var stripe = stripeRows ? oddOrEven : 'none';
|
|
1046
|
-
var expanded = Object(external_lodash_["includes"])(_this2.state.expanded, key);
|
|
1051
|
+
var expanded = rowExpansion === 'controlled' ? child.props.expanded : Object(external_lodash_["includes"])(_this2.state.expanded, key);
|
|
1052
|
+
|
|
1053
|
+
var onExpansion = function onExpansion(e) {
|
|
1054
|
+
_this2.handleRowExpansion(e, key, child.props.onExpansion);
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1047
1057
|
rows.push( /*#__PURE__*/Object(external_react_["cloneElement"])(child, {
|
|
1048
1058
|
index: i,
|
|
1049
1059
|
showRowGuideline: showRowGuideline,
|
|
@@ -1053,9 +1063,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1053
1063
|
expandable: rowExpansion !== 'none',
|
|
1054
1064
|
draggable: !!onRequestMoveRow,
|
|
1055
1065
|
movableColumns: movableColumns,
|
|
1056
|
-
onExpansion:
|
|
1057
|
-
return _this2.handleRowExpansion(key);
|
|
1058
|
-
},
|
|
1066
|
+
onExpansion: onExpansion,
|
|
1059
1067
|
onRequestMoveRow: onRequestMoveRow ? _this2.onRequestMoveRow : undefined,
|
|
1060
1068
|
onDragStart: onRequestMoveRow ? _this2.handleDragStart : undefined,
|
|
1061
1069
|
key: child.key || child.props.dataId || i,
|
|
@@ -1396,12 +1404,8 @@ Cell_defineProperty(Cell_Cell, "defaultProps", Cell_defaultProps);
|
|
|
1396
1404
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
1397
1405
|
var i18n_ = __webpack_require__(5);
|
|
1398
1406
|
|
|
1399
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/Sort"
|
|
1400
|
-
var Sort_ = __webpack_require__(96);
|
|
1401
|
-
var Sort_default = /*#__PURE__*/__webpack_require__.n(Sort_);
|
|
1402
|
-
|
|
1403
1407
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedDown"
|
|
1404
|
-
var SortedDown_ = __webpack_require__(
|
|
1408
|
+
var SortedDown_ = __webpack_require__(99);
|
|
1405
1409
|
var SortedDown_default = /*#__PURE__*/__webpack_require__.n(SortedDown_);
|
|
1406
1410
|
|
|
1407
1411
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -1424,7 +1428,7 @@ function Prisma24(_ref) {
|
|
|
1424
1428
|
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], SortedDown_extends({
|
|
1425
1429
|
viewBox: "0 0 24 24"
|
|
1426
1430
|
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1427
|
-
d: "M6.55086 12.
|
|
1431
|
+
d: "M6.55086 12.337C6.16033 11.9465 5.52717 11.9465 5.13664 12.337C4.74612 12.7276 4.74612 13.3607 5.13664 13.7512L10.9391 19.5537C11.5249 20.1395 12.4746 20.1395 13.0604 19.5537L18.8628 13.7513C19.2534 13.3607 19.2534 12.7276 18.8628 12.337C18.4723 11.9465 17.8391 11.9465 17.4486 12.337L13 16.7856V5.00244C13 4.45016 12.5523 4.00244 12 4.00244C11.4477 4.00244 11 4.45016 11 5.00244V16.7862L6.55086 12.337Z",
|
|
1428
1432
|
fill: "currentColor"
|
|
1429
1433
|
}));
|
|
1430
1434
|
}
|
|
@@ -1435,7 +1439,7 @@ function Prisma16(_ref2) {
|
|
|
1435
1439
|
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], SortedDown_extends({
|
|
1436
1440
|
viewBox: "0 0 16 16"
|
|
1437
1441
|
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1438
|
-
d: "M8.
|
|
1442
|
+
d: "M8 2C8.55228 2 9 2.44772 9 3V10.0858L11.7929 7.29289C12.1834 6.90237 12.8166 6.90237 13.2071 7.29289C13.5976 7.68342 13.5976 8.31658 13.2071 8.70711L9.06066 12.8536C8.47487 13.4393 7.52513 13.4393 6.93934 12.8536L2.79289 8.70711C2.40237 8.31658 2.40237 7.68342 2.79289 7.29289C3.18342 6.90237 3.81658 6.90237 4.20711 7.29289L7 10.0858V3C7 2.44772 7.44772 2 8 2Z",
|
|
1439
1443
|
fill: "currentColor"
|
|
1440
1444
|
}));
|
|
1441
1445
|
}
|
|
@@ -1448,7 +1452,7 @@ function SortedDown(props) {
|
|
|
1448
1452
|
}, props));
|
|
1449
1453
|
}
|
|
1450
1454
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedUp"
|
|
1451
|
-
var SortedUp_ = __webpack_require__(
|
|
1455
|
+
var SortedUp_ = __webpack_require__(100);
|
|
1452
1456
|
var SortedUp_default = /*#__PURE__*/__webpack_require__.n(SortedUp_);
|
|
1453
1457
|
|
|
1454
1458
|
// CONCATENATED MODULE: ./src/icons/SortedUp.tsx
|
|
@@ -1465,7 +1469,7 @@ function SortedUp_Prisma24(_ref) {
|
|
|
1465
1469
|
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], SortedUp_extends({
|
|
1466
1470
|
viewBox: "0 0 24 24"
|
|
1467
1471
|
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1468
|
-
d: "M6.55135 11.6631C6.16082 12.0536 5.52766 12.0536 5.13713 11.6631C4.74661 11.2725 4.74661 10.6394 5.13713 10.2488L10.9396 4.44642C11.5253 3.86064 12.4751 3.86063 13.0609 4.44642L18.8633 10.2488C19.2538 10.6394 19.2538 11.2725 18.8633 11.6631C18.4728 12.0536 17.8396 12.0536 17.4491 11.6631L13 7.
|
|
1472
|
+
d: "M6.55135 11.6631C6.16082 12.0536 5.52766 12.0536 5.13713 11.6631C4.74661 11.2725 4.74661 10.6394 5.13713 10.2488L10.9396 4.44642C11.5253 3.86064 12.4751 3.86063 13.0609 4.44642L18.8633 10.2488C19.2538 10.6394 19.2538 11.2725 18.8633 11.6631C18.4728 12.0536 17.8396 12.0536 17.4491 11.6631L13 7.21397V19.0009C13 19.5532 12.5523 20.0009 12 20.0009C11.4477 20.0009 11 19.5532 11 19.0009V7.21441L6.55135 11.6631Z",
|
|
1469
1473
|
fill: "currentColor"
|
|
1470
1474
|
}));
|
|
1471
1475
|
}
|
|
@@ -1476,7 +1480,7 @@ function SortedUp_Prisma16(_ref2) {
|
|
|
1476
1480
|
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], SortedUp_extends({
|
|
1477
1481
|
viewBox: "0 0 16 16"
|
|
1478
1482
|
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1479
|
-
d: "
|
|
1483
|
+
d: "M9 5.91414L11.7929 8.70703C12.1834 9.09756 12.8166 9.09756 13.2071 8.70703C13.5976 8.31651 13.5976 7.68334 13.2071 7.29282L9.06066 3.14637C8.47487 2.56059 7.52513 2.56058 6.93934 3.14637L2.79289 7.29282C2.40237 7.68334 2.40237 8.31651 2.79289 8.70703C3.18342 9.09756 3.81658 9.09756 4.20711 8.70703L7 5.91414V12.9999C7 13.5522 7.44772 13.9999 8 13.9999C8.55228 13.9999 9 13.5522 9 12.9999V5.91414Z",
|
|
1480
1484
|
fill: "currentColor"
|
|
1481
1485
|
}));
|
|
1482
1486
|
}
|
|
@@ -1488,11 +1492,52 @@ function SortedUp(props) {
|
|
|
1488
1492
|
Prisma24: SortedUp_Prisma24
|
|
1489
1493
|
}, props));
|
|
1490
1494
|
}
|
|
1495
|
+
// EXTERNAL MODULE: external "@splunk/react-icons/Sort"
|
|
1496
|
+
var Sort_ = __webpack_require__(101);
|
|
1497
|
+
var Sort_default = /*#__PURE__*/__webpack_require__.n(Sort_);
|
|
1498
|
+
|
|
1499
|
+
// CONCATENATED MODULE: ./src/icons/Sort.tsx
|
|
1500
|
+
function Sort_extends() { Sort_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 Sort_extends.apply(this, arguments); }
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
function Sort_Prisma24(_ref) {
|
|
1508
|
+
var otherProps = Sort_extends({}, _ref);
|
|
1509
|
+
|
|
1510
|
+
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], Sort_extends({
|
|
1511
|
+
viewBox: "0 0 24 24"
|
|
1512
|
+
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1513
|
+
d: "M7.2788 9.00002C6.84609 9.00002 6.61768 9.51239 6.90691 9.83423L11.4078 14.8426C11.6065 15.0637 11.953 15.0636 12.1517 14.8425L16.6499 9.8341C16.939 9.51223 16.7106 9 16.2779 9L7.2788 9.00002Z",
|
|
1514
|
+
fill: "currentColor"
|
|
1515
|
+
}));
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
function Sort_Prisma16(_ref2) {
|
|
1519
|
+
var otherProps = Sort_extends({}, _ref2);
|
|
1520
|
+
|
|
1521
|
+
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], Sort_extends({
|
|
1522
|
+
viewBox: "0 0 16 16"
|
|
1523
|
+
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1524
|
+
d: "M6.93934 2.14662C7.52513 1.56083 8.47487 1.56083 9.06066 2.14662L11.7071 4.79306C12.0976 5.18359 12.0976 5.81675 11.7071 6.20728C11.3166 6.5978 10.6834 6.5978 10.2929 6.20728L9 4.91438V11.0859L10.2929 9.79297C10.6834 9.40244 11.3166 9.40244 11.7071 9.79297C12.0976 10.1835 12.0976 10.8167 11.7071 11.2072L9.06066 13.8536C8.47487 14.4394 7.52513 14.4394 6.93934 13.8536L4.29289 11.2072C3.90237 10.8167 3.90237 10.1835 4.29289 9.79297C4.68342 9.40244 5.31658 9.40244 5.70711 9.79297L7 11.0859V4.91438L5.70711 6.20728C5.31658 6.5978 4.68342 6.5978 4.29289 6.20728C3.90237 5.81675 3.90237 5.18359 4.29289 4.79306L6.93934 2.14662Z",
|
|
1525
|
+
fill: "currentColor"
|
|
1526
|
+
}));
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
function CaretDown(props) {
|
|
1530
|
+
return /*#__PURE__*/external_react_default.a.createElement(ThemedIcon["a" /* default */], Sort_extends({
|
|
1531
|
+
Enterprise: Sort_default.a,
|
|
1532
|
+
Prisma16: Sort_Prisma16,
|
|
1533
|
+
Prisma24: Sort_Prisma24
|
|
1534
|
+
}, props));
|
|
1535
|
+
}
|
|
1491
1536
|
// EXTERNAL MODULE: ./src/icons/CaretDown.tsx
|
|
1492
|
-
var
|
|
1537
|
+
var icons_CaretDown = __webpack_require__(36);
|
|
1493
1538
|
|
|
1494
1539
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
1495
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
1540
|
+
var ScreenReaderContent_ = __webpack_require__(15);
|
|
1496
1541
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
1497
1542
|
|
|
1498
1543
|
// CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
|
|
@@ -1525,10 +1570,7 @@ var StyledMenuIcon = external_styled_components_default.a.span.withConfig({
|
|
|
1525
1570
|
var StyledLabel = external_styled_components_default.a.span.withConfig({
|
|
1526
1571
|
displayName: "HeadInnerStyles__StyledLabel",
|
|
1527
1572
|
componentId: "sc-1sa0wng-2"
|
|
1528
|
-
})(["flex:0 1 auto;position:relative;word-wrap:break-word;word-break:break-word;
|
|
1529
|
-
enterprise: 1,
|
|
1530
|
-
prisma: 2
|
|
1531
|
-
}), Object(themes_["pick"])({
|
|
1573
|
+
})(["flex:0 1 auto;position:relative;word-wrap:break-word;word-break:break-word;", " ", " ", " ", " ", " + &{margin-left:", ";}"], Object(themes_["pick"])({
|
|
1532
1574
|
enterprise: function enterprise(_ref) {
|
|
1533
1575
|
var $align = _ref.$align;
|
|
1534
1576
|
return $align !== 'right' && Object(external_styled_components_["css"])(["display:flex;justify-content:space-between;"]);
|
|
@@ -1594,10 +1636,7 @@ var HeadInnerStyles_Styled = external_styled_components_default.a.div.withConfig
|
|
|
1594
1636
|
var StyledSortIcon = external_styled_components_default.a.span.withConfig({
|
|
1595
1637
|
displayName: "HeadInnerStyles__StyledSortIcon",
|
|
1596
1638
|
componentId: "sc-1sa0wng-4"
|
|
1597
|
-
})(["flex:0 0 auto;
|
|
1598
|
-
enterprise: 2,
|
|
1599
|
-
prisma: 1
|
|
1600
|
-
}), Object(themes_["pick"])({
|
|
1639
|
+
})(["flex:0 0 auto;", ";margin-top:-1px;", " color:", ";", ""], Object(themes_["pick"])({
|
|
1601
1640
|
enterprise: Object(external_styled_components_["css"])(["right:0;"]),
|
|
1602
1641
|
prisma: Object(external_styled_components_["css"])(["left:0;"])
|
|
1603
1642
|
}), Object(themes_["pick"])({
|
|
@@ -1614,11 +1653,6 @@ var StyledSortIcon = external_styled_components_default.a.span.withConfig({
|
|
|
1614
1653
|
enterprise: themes_["variables"].accentColor,
|
|
1615
1654
|
prisma: themes_["variables"].contentColorDefault
|
|
1616
1655
|
}));
|
|
1617
|
-
}, function (_ref6) {
|
|
1618
|
-
var $sorted = _ref6.$sorted;
|
|
1619
|
-
return !$sorted && Object(themes_["pick"])({
|
|
1620
|
-
prisma: Object(external_styled_components_["css"])(["display:none;"])
|
|
1621
|
-
});
|
|
1622
1656
|
});
|
|
1623
1657
|
var StyledResize = external_styled_components_default.a.button.withConfig({
|
|
1624
1658
|
displayName: "HeadInnerStyles__StyledResize",
|
|
@@ -1857,7 +1891,6 @@ function HeadInner_objectWithoutPropertiesLoose(source, excluded) { if (source =
|
|
|
1857
1891
|
|
|
1858
1892
|
|
|
1859
1893
|
|
|
1860
|
-
|
|
1861
1894
|
var HeadInner_propTypes = {
|
|
1862
1895
|
align: external_prop_types_default.a.oneOf(['left', 'center', 'right']),
|
|
1863
1896
|
columnId: external_prop_types_default.a.any,
|
|
@@ -1934,11 +1967,6 @@ function HeadInner(_ref) {
|
|
|
1934
1967
|
return cloneEl === null || cloneEl === void 0 ? void 0 : cloneEl.remove();
|
|
1935
1968
|
};
|
|
1936
1969
|
}, [cloneEl]);
|
|
1937
|
-
|
|
1938
|
-
var _useSplunkTheme = Object(themes_["useSplunkTheme"])(),
|
|
1939
|
-
family = _useSplunkTheme.family;
|
|
1940
|
-
|
|
1941
|
-
var isPrisma = family === 'prisma';
|
|
1942
1970
|
var width;
|
|
1943
1971
|
|
|
1944
1972
|
if (widthProp === 'auto') {
|
|
@@ -2091,11 +2119,15 @@ function HeadInner(_ref) {
|
|
|
2091
2119
|
$align: align,
|
|
2092
2120
|
$draggable: draggable,
|
|
2093
2121
|
$dragging: !!isDragging
|
|
2094
|
-
}, Object(external_lodash_["omit"])(otherProps, [].concat(_toConsumableArray(Object.keys(HeadInner.propTypes)), ['id']))), isResizing && /*#__PURE__*/external_react_default.a.createElement(
|
|
2095
|
-
target:
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
}),
|
|
2122
|
+
}, Object(external_lodash_["omit"])(otherProps, [].concat(_toConsumableArray(Object.keys(HeadInner.propTypes)), ['id']))), isResizing && /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
2123
|
+
target: window,
|
|
2124
|
+
eventType: "mouseup",
|
|
2125
|
+
listener: handleEndResize
|
|
2126
|
+
}), /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
2127
|
+
target: window,
|
|
2128
|
+
eventType: "mousemove",
|
|
2129
|
+
listener: handleResize
|
|
2130
|
+
})), onRequestResize && resizable && /*#__PURE__*/external_react_default.a.createElement(StyledResize, {
|
|
2099
2131
|
onMouseDown: handleStartResize,
|
|
2100
2132
|
onDoubleClick: handleDoubleClick,
|
|
2101
2133
|
onKeyDown: handleResizeKeyDown,
|
|
@@ -2103,23 +2135,18 @@ function HeadInner(_ref) {
|
|
|
2103
2135
|
}), draggable && /*#__PURE__*/external_react_default.a.createElement(StyledDragContainer, null, /*#__PURE__*/external_react_default.a.createElement(Table_DragHandle, {
|
|
2104
2136
|
screenReaderContent: Object(i18n_["_"])('Press left or right arrow key to reorder the columns.')
|
|
2105
2137
|
})), /*#__PURE__*/external_react_default.a.createElement(StyledLabel, {
|
|
2106
|
-
$sorted: !!sortDir && sortDir !== 'none',
|
|
2107
2138
|
$align: align,
|
|
2108
2139
|
$truncate: truncate,
|
|
2109
2140
|
$fill: isMenu
|
|
2110
|
-
}, label,
|
|
2141
|
+
}, label, isMenu && /*#__PURE__*/external_react_default.a.createElement(StyledMenuIcon, null, /*#__PURE__*/external_react_default.a.createElement(icons_CaretDown["a" /* default */], {
|
|
2111
2142
|
enterpriseSize: 0.5,
|
|
2112
|
-
prismaSize: "small" // this icon indicates
|
|
2113
|
-
// so we need to avoid having the wrong screenReaderText when the column isn't sortable
|
|
2143
|
+
prismaSize: "small" // this icon indicates "has a menu" in all themes
|
|
2114
2144
|
,
|
|
2115
|
-
screenReaderText:
|
|
2145
|
+
screenReaderText: Object(i18n_["_"])('Click to open menu')
|
|
2116
2146
|
}))), sortDir && /*#__PURE__*/external_react_default.a.createElement(StyledSortIcon, {
|
|
2117
2147
|
$sorted: sortDir !== 'none'
|
|
2118
|
-
}, sortDir === 'none' &&
|
|
2119
|
-
|
|
2120
|
-
// hideDefaultTooltip causes react-icons to use an aria-label here
|
|
2121
|
-
external_react_default.a.createElement(Sort_default.a, {
|
|
2122
|
-
hideDefaultTooltip: true,
|
|
2148
|
+
}, sortDir === 'none' && /*#__PURE__*/external_react_default.a.createElement(CaretDown, {
|
|
2149
|
+
prismaSize: "small",
|
|
2123
2150
|
screenReaderText: Object(i18n_["_"])('Click to sort')
|
|
2124
2151
|
}), sortDir === 'asc' && /*#__PURE__*/external_react_default.a.createElement(SortedUp, {
|
|
2125
2152
|
prismaSize: "small",
|
|
@@ -2418,7 +2445,7 @@ HeadCell_defineProperty(HeadCell_HeadCell, "defaultProps", HeadCell_defaultProps
|
|
|
2418
2445
|
|
|
2419
2446
|
/* harmony default export */ var Table_HeadCell = (HeadCell_HeadCell);
|
|
2420
2447
|
// EXTERNAL MODULE: external "@splunk/react-icons/Info"
|
|
2421
|
-
var Info_ = __webpack_require__(
|
|
2448
|
+
var Info_ = __webpack_require__(102);
|
|
2422
2449
|
var Info_default = /*#__PURE__*/__webpack_require__.n(Info_);
|
|
2423
2450
|
|
|
2424
2451
|
// EXTERNAL MODULE: ./src/icons/ChevronRight.tsx
|
|
@@ -2446,7 +2473,7 @@ function HeadExpandRowsIcon() {
|
|
|
2446
2473
|
});
|
|
2447
2474
|
}
|
|
2448
2475
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
2449
|
-
var Button_ = __webpack_require__(
|
|
2476
|
+
var Button_ = __webpack_require__(17);
|
|
2450
2477
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
2451
2478
|
|
|
2452
2479
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
@@ -2454,14 +2481,14 @@ var Dropdown_ = __webpack_require__(19);
|
|
|
2454
2481
|
var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
|
|
2455
2482
|
|
|
2456
2483
|
// EXTERNAL MODULE: external "@splunk/react-ui/Tooltip"
|
|
2457
|
-
var Tooltip_ = __webpack_require__(
|
|
2484
|
+
var Tooltip_ = __webpack_require__(46);
|
|
2458
2485
|
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_);
|
|
2459
2486
|
|
|
2460
2487
|
// EXTERNAL MODULE: ./src/icons/ChevronDown.tsx
|
|
2461
|
-
var ChevronDown = __webpack_require__(
|
|
2488
|
+
var ChevronDown = __webpack_require__(59);
|
|
2462
2489
|
|
|
2463
2490
|
// EXTERNAL MODULE: ./src/icons/MoreVertical.tsx
|
|
2464
|
-
var MoreVertical = __webpack_require__(
|
|
2491
|
+
var MoreVertical = __webpack_require__(56);
|
|
2465
2492
|
|
|
2466
2493
|
// CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
|
|
2467
2494
|
function RowDragCell_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { RowDragCell_typeof = function _typeof(obj) { return typeof obj; }; } else { RowDragCell_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return RowDragCell_typeof(obj); }
|
|
@@ -2743,7 +2770,7 @@ var StyledCellExpansionDisabled = external_styled_components_default()(Table_Cel
|
|
|
2743
2770
|
}));
|
|
2744
2771
|
|
|
2745
2772
|
// EXTERNAL MODULE: external "@splunk/react-ui/Switch"
|
|
2746
|
-
var Switch_ = __webpack_require__(
|
|
2773
|
+
var Switch_ = __webpack_require__(65);
|
|
2747
2774
|
var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch_);
|
|
2748
2775
|
|
|
2749
2776
|
// CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
|
|
@@ -2856,6 +2883,7 @@ function Row_extends() { Row_extends = Object.assign || function (target) { for
|
|
|
2856
2883
|
|
|
2857
2884
|
|
|
2858
2885
|
|
|
2886
|
+
|
|
2859
2887
|
var StyledStripeComponents = {
|
|
2860
2888
|
odd: StyledStripeOdd,
|
|
2861
2889
|
even: StyledStripeEven,
|
|
@@ -2881,8 +2909,6 @@ var Row_propTypes = {
|
|
|
2881
2909
|
|
|
2882
2910
|
/** @private. */
|
|
2883
2911
|
expandable: external_prop_types_default.a.bool,
|
|
2884
|
-
|
|
2885
|
-
/** @private. */
|
|
2886
2912
|
expanded: external_prop_types_default.a.bool,
|
|
2887
2913
|
expansionRow: external_prop_types_default.a.oneOfType([external_prop_types_default.a.element, external_prop_types_default.a.arrayOf(external_prop_types_default.a.element)]),
|
|
2888
2914
|
|
|
@@ -2898,8 +2924,6 @@ var Row_propTypes = {
|
|
|
2898
2924
|
|
|
2899
2925
|
/** @private. Generally passed by `Table` rather than added directly. */
|
|
2900
2926
|
onDragStart: external_prop_types_default.a.func,
|
|
2901
|
-
|
|
2902
|
-
/** @private. */
|
|
2903
2927
|
onExpansion: external_prop_types_default.a.func,
|
|
2904
2928
|
|
|
2905
2929
|
/** @private. This is passed through and works as expected. */
|
|
@@ -2947,6 +2971,8 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
2947
2971
|
|
|
2948
2972
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2949
2973
|
|
|
2974
|
+
Row_defineProperty(Row_assertThisInitialized(_this), "elementRef", null);
|
|
2975
|
+
|
|
2950
2976
|
Row_defineProperty(Row_assertThisInitialized(_this), "handleClick", function (e) {
|
|
2951
2977
|
var _this$props = _this.props,
|
|
2952
2978
|
data = _this$props.data,
|
|
@@ -2954,7 +2980,11 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
2954
2980
|
var el = e.target;
|
|
2955
2981
|
|
|
2956
2982
|
while (el) {
|
|
2957
|
-
|
|
2983
|
+
if (_this.elementRef === el) {
|
|
2984
|
+
break;
|
|
2985
|
+
} // Ignore clicks on row-actions
|
|
2986
|
+
|
|
2987
|
+
|
|
2958
2988
|
if (el.tagName === 'BUTTON' || el.tagName === 'A') {
|
|
2959
2989
|
return;
|
|
2960
2990
|
}
|
|
@@ -2992,6 +3022,14 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
2992
3022
|
}
|
|
2993
3023
|
});
|
|
2994
3024
|
|
|
3025
|
+
Row_defineProperty(Row_assertThisInitialized(_this), "handleExpansion", function (e) {
|
|
3026
|
+
var _this$props4 = _this.props,
|
|
3027
|
+
data = _this$props4.data,
|
|
3028
|
+
onExpansion = _this$props4.onExpansion;
|
|
3029
|
+
e.preventDefault();
|
|
3030
|
+
onExpansion === null || onExpansion === void 0 ? void 0 : onExpansion(e, data);
|
|
3031
|
+
});
|
|
3032
|
+
|
|
2995
3033
|
Row_defineProperty(Row_assertThisInitialized(_this), "renderActionPrimary", function () {
|
|
2996
3034
|
var actionPrimary = _this.props.actionPrimary;
|
|
2997
3035
|
|
|
@@ -3000,6 +3038,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3000
3038
|
onClick: function onClick(e) {
|
|
3001
3039
|
var _actionPrimary$props$, _actionPrimary$props;
|
|
3002
3040
|
|
|
3041
|
+
e.preventDefault();
|
|
3003
3042
|
return (_actionPrimary$props$ = (_actionPrimary$props = actionPrimary.props).onClick) === null || _actionPrimary$props$ === void 0 ? void 0 : _actionPrimary$props$.call(_actionPrimary$props, e, _this.props.data);
|
|
3004
3043
|
}
|
|
3005
3044
|
});
|
|
@@ -3019,6 +3058,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3019
3058
|
onClick: function onClick(e) {
|
|
3020
3059
|
var _action$props$onClick, _action$props;
|
|
3021
3060
|
|
|
3061
|
+
e.preventDefault();
|
|
3022
3062
|
return (_action$props$onClick = (_action$props = action.props).onClick) === null || _action$props$onClick === void 0 ? void 0 : _action$props$onClick.call(_action$props, e, _this.props.data);
|
|
3023
3063
|
}
|
|
3024
3064
|
});
|
|
@@ -3034,36 +3074,41 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3034
3074
|
return actionsSecondary;
|
|
3035
3075
|
});
|
|
3036
3076
|
|
|
3077
|
+
Row_defineProperty(Row_assertThisInitialized(_this), "handleMount", function (el) {
|
|
3078
|
+
Object(updateReactRef["a" /* updateReactRef */])(_this.props.elementRef, el);
|
|
3079
|
+
_this.elementRef = el;
|
|
3080
|
+
});
|
|
3081
|
+
|
|
3037
3082
|
return _this;
|
|
3038
3083
|
}
|
|
3039
3084
|
|
|
3040
3085
|
Row_createClass(Row, [{
|
|
3041
3086
|
key: "render",
|
|
3042
3087
|
value: function render() {
|
|
3043
|
-
var _this$
|
|
3044
|
-
actions = _this$
|
|
3045
|
-
actionPrimary = _this$
|
|
3046
|
-
actionsSecondary = _this$
|
|
3047
|
-
activeElementId = _this$
|
|
3048
|
-
children = _this$
|
|
3049
|
-
dataId = _this$
|
|
3050
|
-
disabled = _this$
|
|
3051
|
-
draggable = _this$
|
|
3052
|
-
elementRef = _this$
|
|
3053
|
-
expandable = _this$
|
|
3054
|
-
expanded = _this$
|
|
3055
|
-
expansionRow = _this$
|
|
3056
|
-
index = _this$
|
|
3057
|
-
movableColumns = _this$
|
|
3058
|
-
onClick = _this$
|
|
3059
|
-
onDragStart = _this$
|
|
3060
|
-
onExpansion = _this$
|
|
3061
|
-
onRequestMoveRow = _this$
|
|
3062
|
-
onRequestToggle = _this$
|
|
3063
|
-
selected = _this$
|
|
3064
|
-
showRowGuideline = _this$
|
|
3065
|
-
stripe = _this$
|
|
3066
|
-
otherProps = Row_objectWithoutProperties(_this$
|
|
3088
|
+
var _this$props5 = this.props,
|
|
3089
|
+
actions = _this$props5.actions,
|
|
3090
|
+
actionPrimary = _this$props5.actionPrimary,
|
|
3091
|
+
actionsSecondary = _this$props5.actionsSecondary,
|
|
3092
|
+
activeElementId = _this$props5.activeElementId,
|
|
3093
|
+
children = _this$props5.children,
|
|
3094
|
+
dataId = _this$props5.dataId,
|
|
3095
|
+
disabled = _this$props5.disabled,
|
|
3096
|
+
draggable = _this$props5.draggable,
|
|
3097
|
+
elementRef = _this$props5.elementRef,
|
|
3098
|
+
expandable = _this$props5.expandable,
|
|
3099
|
+
expanded = _this$props5.expanded,
|
|
3100
|
+
expansionRow = _this$props5.expansionRow,
|
|
3101
|
+
index = _this$props5.index,
|
|
3102
|
+
movableColumns = _this$props5.movableColumns,
|
|
3103
|
+
onClick = _this$props5.onClick,
|
|
3104
|
+
onDragStart = _this$props5.onDragStart,
|
|
3105
|
+
onExpansion = _this$props5.onExpansion,
|
|
3106
|
+
onRequestMoveRow = _this$props5.onRequestMoveRow,
|
|
3107
|
+
onRequestToggle = _this$props5.onRequestToggle,
|
|
3108
|
+
selected = _this$props5.selected,
|
|
3109
|
+
showRowGuideline = _this$props5.showRowGuideline,
|
|
3110
|
+
stripe = _this$props5.stripe,
|
|
3111
|
+
otherProps = Row_objectWithoutProperties(_this$props5, ["actions", "actionPrimary", "actionsSecondary", "activeElementId", "children", "dataId", "disabled", "draggable", "elementRef", "expandable", "expanded", "expansionRow", "index", "movableColumns", "onClick", "onDragStart", "onExpansion", "onRequestMoveRow", "onRequestToggle", "selected", "showRowGuideline", "stripe"]);
|
|
3067
3112
|
|
|
3068
3113
|
var childrenCloned = !onClick ? external_react_["Children"].toArray(children).map(function (child) {
|
|
3069
3114
|
return /*#__PURE__*/Object(external_react_["cloneElement"])(child, {
|
|
@@ -3088,7 +3133,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3088
3133
|
"data-has-movable-columns": movableColumns ? 'true' : undefined,
|
|
3089
3134
|
disabled: !!disabled,
|
|
3090
3135
|
$expandable: !!expandable,
|
|
3091
|
-
ref:
|
|
3136
|
+
ref: this.handleMount,
|
|
3092
3137
|
tabIndex: onClick ? 0 : undefined
|
|
3093
3138
|
}, otherProps, {
|
|
3094
3139
|
onClick: onClick ? this.handleClick : undefined,
|
|
@@ -3123,7 +3168,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3123
3168
|
"data-movable-column": dataMovableColumn,
|
|
3124
3169
|
"data-test": "expand",
|
|
3125
3170
|
expand: expanded,
|
|
3126
|
-
onClick:
|
|
3171
|
+
onClick: this.handleExpansion,
|
|
3127
3172
|
rowSpan: rowSpan,
|
|
3128
3173
|
variant: "expand"
|
|
3129
3174
|
}, /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
@@ -3546,7 +3591,7 @@ Head_defineProperty(Head_Head, "defaultProps", Head_defaultProps);
|
|
|
3546
3591
|
var id_ = __webpack_require__(10);
|
|
3547
3592
|
|
|
3548
3593
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
3549
|
-
var Popover_ = __webpack_require__(
|
|
3594
|
+
var Popover_ = __webpack_require__(16);
|
|
3550
3595
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
3551
3596
|
|
|
3552
3597
|
// CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
|
|
@@ -4175,7 +4220,7 @@ HeadTable_defineProperty(HeadTable_HeadTable, "defaultProps", HeadTable_defaultP
|
|
|
4175
4220
|
|
|
4176
4221
|
/* harmony default export */ var Table_HeadTable = (HeadTable_HeadTable);
|
|
4177
4222
|
// EXTERNAL MODULE: ./src/utils/types.ts
|
|
4178
|
-
var types = __webpack_require__(
|
|
4223
|
+
var types = __webpack_require__(49);
|
|
4179
4224
|
|
|
4180
4225
|
// CONCATENATED MODULE: ./src/Table/Table.tsx
|
|
4181
4226
|
function Table_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Table_typeof = function _typeof(obj) { return typeof obj; }; } else { Table_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Table_typeof(obj); }
|
|
@@ -4249,7 +4294,7 @@ var Table_propTypes = {
|
|
|
4249
4294
|
onRequestToggleAllRows: external_prop_types_default.a.func,
|
|
4250
4295
|
onScroll: external_prop_types_default.a.func,
|
|
4251
4296
|
outerStyle: external_prop_types_default.a.object,
|
|
4252
|
-
rowExpansion: external_prop_types_default.a.oneOf(['single', 'multi', 'none']),
|
|
4297
|
+
rowExpansion: external_prop_types_default.a.oneOf(['single', 'multi', 'controlled', 'none']),
|
|
4253
4298
|
rowSelection: external_prop_types_default.a.oneOf(['all', 'some', 'none']),
|
|
4254
4299
|
stripeRows: external_prop_types_default.a.bool,
|
|
4255
4300
|
tableStyle: external_prop_types_default.a.object,
|
|
@@ -4849,7 +4894,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4849
4894
|
);
|
|
4850
4895
|
});
|
|
4851
4896
|
tHead = /*#__PURE__*/Object(external_react_["cloneElement"])(tHead, {}, headCells);
|
|
4852
|
-
var defaultScrollContainer = this.context ||
|
|
4897
|
+
var defaultScrollContainer = this.context || window;
|
|
4853
4898
|
var scrollContainer = this.isFixed() ? this.tableContainer : defaultScrollContainer;
|
|
4854
4899
|
|
|
4855
4900
|
if (resizableFillLayout) {
|
|
@@ -4861,9 +4906,14 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4861
4906
|
ref: elementRef,
|
|
4862
4907
|
style: outerStyle,
|
|
4863
4908
|
"data-test-row-selection": onRequestToggleAllRows ? rowSelection : undefined
|
|
4864
|
-
}, Object(external_lodash_["omit"])(this.props, [].concat(Table_toConsumableArray(Object.keys(Table.propTypes)), ['style']))), /*#__PURE__*/external_react_default.a.createElement(
|
|
4865
|
-
target:
|
|
4866
|
-
|
|
4909
|
+
}, Object(external_lodash_["omit"])(this.props, [].concat(Table_toConsumableArray(Object.keys(Table.propTypes)), ['style']))), /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
4910
|
+
target: window,
|
|
4911
|
+
eventType: "scroll",
|
|
4912
|
+
listener: this.handleScroll,
|
|
4913
|
+
options: {
|
|
4914
|
+
passive: false,
|
|
4915
|
+
capture: true
|
|
4916
|
+
}
|
|
4867
4917
|
}), /*#__PURE__*/external_react_default.a.createElement(external_react_resize_detector_default.a, {
|
|
4868
4918
|
handleWidth: true,
|
|
4869
4919
|
onResize: this.handleResize
|