@splunk/react-ui 4.4.1 → 4.5.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 +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 +41 -1
- package/Calendar.js +14 -14
- package/Card.js +49 -23
- package/CardLayout.js +31 -10
- package/Chip.js +75 -51
- 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 +22 -17
- package/Concertina.js +73 -68
- package/ControlGroup.js +70 -22
- package/Date.js +9 -9
- package/DefinitionList.js +2 -2
- 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/Heading.js +2 -2
- 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 +45 -38
- 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 +190 -139
- package/Text.js +69 -63
- package/Tooltip.js +11 -11
- package/TransitionOpen.js +9 -9
- package/WaitSpinner.js +3 -4
- package/package.json +4 -5
- 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 +1 -15
- 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 = 108);
|
|
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,45 @@ 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 */,
|
|
642
|
+
/* 99 */
|
|
639
643
|
/***/ (function(module, exports) {
|
|
640
644
|
|
|
641
645
|
module.exports = require("react-resize-detector");
|
|
642
646
|
|
|
643
647
|
/***/ }),
|
|
644
|
-
/*
|
|
648
|
+
/* 100 */
|
|
645
649
|
/***/ (function(module, exports) {
|
|
646
650
|
|
|
647
|
-
module.exports = require("@splunk/react-icons/
|
|
651
|
+
module.exports = require("@splunk/react-icons/SortedDown");
|
|
648
652
|
|
|
649
653
|
/***/ }),
|
|
650
|
-
/*
|
|
654
|
+
/* 101 */
|
|
651
655
|
/***/ (function(module, exports) {
|
|
652
656
|
|
|
653
|
-
module.exports = require("@splunk/react-icons/
|
|
657
|
+
module.exports = require("@splunk/react-icons/SortedUp");
|
|
654
658
|
|
|
655
659
|
/***/ }),
|
|
656
|
-
/*
|
|
660
|
+
/* 102 */
|
|
657
661
|
/***/ (function(module, exports) {
|
|
658
662
|
|
|
659
|
-
module.exports = require("@splunk/react-icons/
|
|
663
|
+
module.exports = require("@splunk/react-icons/Sort");
|
|
660
664
|
|
|
661
665
|
/***/ }),
|
|
662
|
-
/*
|
|
666
|
+
/* 103 */
|
|
663
667
|
/***/ (function(module, exports) {
|
|
664
668
|
|
|
665
669
|
module.exports = require("@splunk/react-icons/Info");
|
|
666
670
|
|
|
667
671
|
/***/ }),
|
|
668
|
-
/*
|
|
669
|
-
/*
|
|
670
|
-
/*
|
|
671
|
-
/*
|
|
672
|
-
/*
|
|
672
|
+
/* 104 */,
|
|
673
|
+
/* 105 */,
|
|
674
|
+
/* 106 */,
|
|
675
|
+
/* 107 */,
|
|
676
|
+
/* 108 */
|
|
673
677
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
674
678
|
|
|
675
679
|
"use strict";
|
|
@@ -697,14 +701,14 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
697
701
|
// EXTERNAL MODULE: external "lodash"
|
|
698
702
|
var external_lodash_ = __webpack_require__(4);
|
|
699
703
|
|
|
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
704
|
// EXTERNAL MODULE: external "react-resize-detector"
|
|
705
|
-
var external_react_resize_detector_ = __webpack_require__(
|
|
705
|
+
var external_react_resize_detector_ = __webpack_require__(99);
|
|
706
706
|
var external_react_resize_detector_default = /*#__PURE__*/__webpack_require__.n(external_react_resize_detector_);
|
|
707
707
|
|
|
708
|
+
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
709
|
+
var EventListener_ = __webpack_require__(14);
|
|
710
|
+
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
711
|
+
|
|
708
712
|
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
709
713
|
var keyboard_ = __webpack_require__(9);
|
|
710
714
|
|
|
@@ -727,7 +731,7 @@ var Styled = external_styled_components_default.a.tbody.withConfig({
|
|
|
727
731
|
})(["", ""], themes_["mixins"].reset('table-row-group'));
|
|
728
732
|
|
|
729
733
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
730
|
-
var updateReactRef = __webpack_require__(
|
|
734
|
+
var updateReactRef = __webpack_require__(11);
|
|
731
735
|
|
|
732
736
|
// CONCATENATED MODULE: ./src/Table/Body.tsx
|
|
733
737
|
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 +779,7 @@ var propTypes = {
|
|
|
775
779
|
movableColumns: external_prop_types_default.a.bool,
|
|
776
780
|
|
|
777
781
|
/** @private. Generally passed by Table rather than added directly. */
|
|
778
|
-
rowExpansion: external_prop_types_default.a.oneOf(['single', 'multi', 'none']),
|
|
782
|
+
rowExpansion: external_prop_types_default.a.oneOf(['single', 'multi', 'none', 'controlled']),
|
|
779
783
|
|
|
780
784
|
/** @private. Generally passed by Table rather than added directly. */
|
|
781
785
|
onRequestMoveRow: external_prop_types_default.a.func,
|
|
@@ -926,7 +930,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
926
930
|
}
|
|
927
931
|
}, {
|
|
928
932
|
key: "handleRowExpansion",
|
|
929
|
-
value: function handleRowExpansion(key) {
|
|
933
|
+
value: function handleRowExpansion(event, key, onExpansion) {
|
|
930
934
|
var current = this.state.expanded;
|
|
931
935
|
|
|
932
936
|
if (this.props.rowExpansion === 'single') {
|
|
@@ -950,6 +954,8 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
950
954
|
});
|
|
951
955
|
}
|
|
952
956
|
}
|
|
957
|
+
|
|
958
|
+
onExpansion === null || onExpansion === void 0 ? void 0 : onExpansion(event);
|
|
953
959
|
}
|
|
954
960
|
}, {
|
|
955
961
|
key: "calculateGuideIndex",
|
|
@@ -1043,7 +1049,12 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1043
1049
|
var key = child.key;
|
|
1044
1050
|
var oddOrEven = i % 2 ? 'even' : 'odd';
|
|
1045
1051
|
var stripe = stripeRows ? oddOrEven : 'none';
|
|
1046
|
-
var expanded = Object(external_lodash_["includes"])(_this2.state.expanded, key);
|
|
1052
|
+
var expanded = rowExpansion === 'controlled' ? child.props.expanded : Object(external_lodash_["includes"])(_this2.state.expanded, key);
|
|
1053
|
+
|
|
1054
|
+
var onExpansion = function onExpansion(e) {
|
|
1055
|
+
_this2.handleRowExpansion(e, key, child.props.onExpansion);
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1047
1058
|
rows.push( /*#__PURE__*/Object(external_react_["cloneElement"])(child, {
|
|
1048
1059
|
index: i,
|
|
1049
1060
|
showRowGuideline: showRowGuideline,
|
|
@@ -1053,9 +1064,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1053
1064
|
expandable: rowExpansion !== 'none',
|
|
1054
1065
|
draggable: !!onRequestMoveRow,
|
|
1055
1066
|
movableColumns: movableColumns,
|
|
1056
|
-
onExpansion:
|
|
1057
|
-
return _this2.handleRowExpansion(key);
|
|
1058
|
-
},
|
|
1067
|
+
onExpansion: onExpansion,
|
|
1059
1068
|
onRequestMoveRow: onRequestMoveRow ? _this2.onRequestMoveRow : undefined,
|
|
1060
1069
|
onDragStart: onRequestMoveRow ? _this2.handleDragStart : undefined,
|
|
1061
1070
|
key: child.key || child.props.dataId || i,
|
|
@@ -1396,12 +1405,8 @@ Cell_defineProperty(Cell_Cell, "defaultProps", Cell_defaultProps);
|
|
|
1396
1405
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
1397
1406
|
var i18n_ = __webpack_require__(5);
|
|
1398
1407
|
|
|
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
1408
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedDown"
|
|
1404
|
-
var SortedDown_ = __webpack_require__(
|
|
1409
|
+
var SortedDown_ = __webpack_require__(100);
|
|
1405
1410
|
var SortedDown_default = /*#__PURE__*/__webpack_require__.n(SortedDown_);
|
|
1406
1411
|
|
|
1407
1412
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -1424,7 +1429,7 @@ function Prisma24(_ref) {
|
|
|
1424
1429
|
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], SortedDown_extends({
|
|
1425
1430
|
viewBox: "0 0 24 24"
|
|
1426
1431
|
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1427
|
-
d: "M6.55086 12.
|
|
1432
|
+
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
1433
|
fill: "currentColor"
|
|
1429
1434
|
}));
|
|
1430
1435
|
}
|
|
@@ -1435,7 +1440,7 @@ function Prisma16(_ref2) {
|
|
|
1435
1440
|
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], SortedDown_extends({
|
|
1436
1441
|
viewBox: "0 0 16 16"
|
|
1437
1442
|
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1438
|
-
d: "M8.
|
|
1443
|
+
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
1444
|
fill: "currentColor"
|
|
1440
1445
|
}));
|
|
1441
1446
|
}
|
|
@@ -1448,7 +1453,7 @@ function SortedDown(props) {
|
|
|
1448
1453
|
}, props));
|
|
1449
1454
|
}
|
|
1450
1455
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedUp"
|
|
1451
|
-
var SortedUp_ = __webpack_require__(
|
|
1456
|
+
var SortedUp_ = __webpack_require__(101);
|
|
1452
1457
|
var SortedUp_default = /*#__PURE__*/__webpack_require__.n(SortedUp_);
|
|
1453
1458
|
|
|
1454
1459
|
// CONCATENATED MODULE: ./src/icons/SortedUp.tsx
|
|
@@ -1465,7 +1470,7 @@ function SortedUp_Prisma24(_ref) {
|
|
|
1465
1470
|
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], SortedUp_extends({
|
|
1466
1471
|
viewBox: "0 0 24 24"
|
|
1467
1472
|
}, 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.
|
|
1473
|
+
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
1474
|
fill: "currentColor"
|
|
1470
1475
|
}));
|
|
1471
1476
|
}
|
|
@@ -1476,7 +1481,7 @@ function SortedUp_Prisma16(_ref2) {
|
|
|
1476
1481
|
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], SortedUp_extends({
|
|
1477
1482
|
viewBox: "0 0 16 16"
|
|
1478
1483
|
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1479
|
-
d: "
|
|
1484
|
+
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
1485
|
fill: "currentColor"
|
|
1481
1486
|
}));
|
|
1482
1487
|
}
|
|
@@ -1488,11 +1493,52 @@ function SortedUp(props) {
|
|
|
1488
1493
|
Prisma24: SortedUp_Prisma24
|
|
1489
1494
|
}, props));
|
|
1490
1495
|
}
|
|
1496
|
+
// EXTERNAL MODULE: external "@splunk/react-icons/Sort"
|
|
1497
|
+
var Sort_ = __webpack_require__(102);
|
|
1498
|
+
var Sort_default = /*#__PURE__*/__webpack_require__.n(Sort_);
|
|
1499
|
+
|
|
1500
|
+
// CONCATENATED MODULE: ./src/icons/Sort.tsx
|
|
1501
|
+
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); }
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
function Sort_Prisma24(_ref) {
|
|
1509
|
+
var otherProps = Sort_extends({}, _ref);
|
|
1510
|
+
|
|
1511
|
+
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], Sort_extends({
|
|
1512
|
+
viewBox: "0 0 24 24"
|
|
1513
|
+
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1514
|
+
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",
|
|
1515
|
+
fill: "currentColor"
|
|
1516
|
+
}));
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
function Sort_Prisma16(_ref2) {
|
|
1520
|
+
var otherProps = Sort_extends({}, _ref2);
|
|
1521
|
+
|
|
1522
|
+
return /*#__PURE__*/external_react_default.a.createElement(SVG["a" /* default */], Sort_extends({
|
|
1523
|
+
viewBox: "0 0 16 16"
|
|
1524
|
+
}, otherProps), /*#__PURE__*/external_react_default.a.createElement("path", {
|
|
1525
|
+
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",
|
|
1526
|
+
fill: "currentColor"
|
|
1527
|
+
}));
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
function CaretDown(props) {
|
|
1531
|
+
return /*#__PURE__*/external_react_default.a.createElement(ThemedIcon["a" /* default */], Sort_extends({
|
|
1532
|
+
Enterprise: Sort_default.a,
|
|
1533
|
+
Prisma16: Sort_Prisma16,
|
|
1534
|
+
Prisma24: Sort_Prisma24
|
|
1535
|
+
}, props));
|
|
1536
|
+
}
|
|
1491
1537
|
// EXTERNAL MODULE: ./src/icons/CaretDown.tsx
|
|
1492
|
-
var
|
|
1538
|
+
var icons_CaretDown = __webpack_require__(36);
|
|
1493
1539
|
|
|
1494
1540
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
1495
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
1541
|
+
var ScreenReaderContent_ = __webpack_require__(15);
|
|
1496
1542
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
1497
1543
|
|
|
1498
1544
|
// CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
|
|
@@ -1525,10 +1571,7 @@ var StyledMenuIcon = external_styled_components_default.a.span.withConfig({
|
|
|
1525
1571
|
var StyledLabel = external_styled_components_default.a.span.withConfig({
|
|
1526
1572
|
displayName: "HeadInnerStyles__StyledLabel",
|
|
1527
1573
|
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"])({
|
|
1574
|
+
})(["flex:0 1 auto;position:relative;word-wrap:break-word;word-break:break-word;", " ", " ", " ", " ", " + &{margin-left:", ";}"], Object(themes_["pick"])({
|
|
1532
1575
|
enterprise: function enterprise(_ref) {
|
|
1533
1576
|
var $align = _ref.$align;
|
|
1534
1577
|
return $align !== 'right' && Object(external_styled_components_["css"])(["display:flex;justify-content:space-between;"]);
|
|
@@ -1594,10 +1637,7 @@ var HeadInnerStyles_Styled = external_styled_components_default.a.div.withConfig
|
|
|
1594
1637
|
var StyledSortIcon = external_styled_components_default.a.span.withConfig({
|
|
1595
1638
|
displayName: "HeadInnerStyles__StyledSortIcon",
|
|
1596
1639
|
componentId: "sc-1sa0wng-4"
|
|
1597
|
-
})(["flex:0 0 auto;
|
|
1598
|
-
enterprise: 2,
|
|
1599
|
-
prisma: 1
|
|
1600
|
-
}), Object(themes_["pick"])({
|
|
1640
|
+
})(["flex:0 0 auto;", ";margin-top:-1px;", " color:", ";", ""], Object(themes_["pick"])({
|
|
1601
1641
|
enterprise: Object(external_styled_components_["css"])(["right:0;"]),
|
|
1602
1642
|
prisma: Object(external_styled_components_["css"])(["left:0;"])
|
|
1603
1643
|
}), Object(themes_["pick"])({
|
|
@@ -1614,11 +1654,6 @@ var StyledSortIcon = external_styled_components_default.a.span.withConfig({
|
|
|
1614
1654
|
enterprise: themes_["variables"].accentColor,
|
|
1615
1655
|
prisma: themes_["variables"].contentColorDefault
|
|
1616
1656
|
}));
|
|
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
1657
|
});
|
|
1623
1658
|
var StyledResize = external_styled_components_default.a.button.withConfig({
|
|
1624
1659
|
displayName: "HeadInnerStyles__StyledResize",
|
|
@@ -1857,7 +1892,6 @@ function HeadInner_objectWithoutPropertiesLoose(source, excluded) { if (source =
|
|
|
1857
1892
|
|
|
1858
1893
|
|
|
1859
1894
|
|
|
1860
|
-
|
|
1861
1895
|
var HeadInner_propTypes = {
|
|
1862
1896
|
align: external_prop_types_default.a.oneOf(['left', 'center', 'right']),
|
|
1863
1897
|
columnId: external_prop_types_default.a.any,
|
|
@@ -1934,11 +1968,6 @@ function HeadInner(_ref) {
|
|
|
1934
1968
|
return cloneEl === null || cloneEl === void 0 ? void 0 : cloneEl.remove();
|
|
1935
1969
|
};
|
|
1936
1970
|
}, [cloneEl]);
|
|
1937
|
-
|
|
1938
|
-
var _useSplunkTheme = Object(themes_["useSplunkTheme"])(),
|
|
1939
|
-
family = _useSplunkTheme.family;
|
|
1940
|
-
|
|
1941
|
-
var isPrisma = family === 'prisma';
|
|
1942
1971
|
var width;
|
|
1943
1972
|
|
|
1944
1973
|
if (widthProp === 'auto') {
|
|
@@ -2091,11 +2120,15 @@ function HeadInner(_ref) {
|
|
|
2091
2120
|
$align: align,
|
|
2092
2121
|
$draggable: draggable,
|
|
2093
2122
|
$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
|
-
}),
|
|
2123
|
+
}, 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, {
|
|
2124
|
+
target: window,
|
|
2125
|
+
eventType: "mouseup",
|
|
2126
|
+
listener: handleEndResize
|
|
2127
|
+
}), /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
2128
|
+
target: window,
|
|
2129
|
+
eventType: "mousemove",
|
|
2130
|
+
listener: handleResize
|
|
2131
|
+
})), onRequestResize && resizable && /*#__PURE__*/external_react_default.a.createElement(StyledResize, {
|
|
2099
2132
|
onMouseDown: handleStartResize,
|
|
2100
2133
|
onDoubleClick: handleDoubleClick,
|
|
2101
2134
|
onKeyDown: handleResizeKeyDown,
|
|
@@ -2103,23 +2136,18 @@ function HeadInner(_ref) {
|
|
|
2103
2136
|
}), draggable && /*#__PURE__*/external_react_default.a.createElement(StyledDragContainer, null, /*#__PURE__*/external_react_default.a.createElement(Table_DragHandle, {
|
|
2104
2137
|
screenReaderContent: Object(i18n_["_"])('Press left or right arrow key to reorder the columns.')
|
|
2105
2138
|
})), /*#__PURE__*/external_react_default.a.createElement(StyledLabel, {
|
|
2106
|
-
$sorted: !!sortDir && sortDir !== 'none',
|
|
2107
2139
|
$align: align,
|
|
2108
2140
|
$truncate: truncate,
|
|
2109
2141
|
$fill: isMenu
|
|
2110
|
-
}, label,
|
|
2142
|
+
}, label, isMenu && /*#__PURE__*/external_react_default.a.createElement(StyledMenuIcon, null, /*#__PURE__*/external_react_default.a.createElement(icons_CaretDown["a" /* default */], {
|
|
2111
2143
|
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
|
|
2144
|
+
prismaSize: "small" // this icon indicates "has a menu" in all themes
|
|
2114
2145
|
,
|
|
2115
|
-
screenReaderText:
|
|
2146
|
+
screenReaderText: Object(i18n_["_"])('Click to open menu')
|
|
2116
2147
|
}))), sortDir && /*#__PURE__*/external_react_default.a.createElement(StyledSortIcon, {
|
|
2117
2148
|
$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,
|
|
2149
|
+
}, sortDir === 'none' && /*#__PURE__*/external_react_default.a.createElement(CaretDown, {
|
|
2150
|
+
prismaSize: "small",
|
|
2123
2151
|
screenReaderText: Object(i18n_["_"])('Click to sort')
|
|
2124
2152
|
}), sortDir === 'asc' && /*#__PURE__*/external_react_default.a.createElement(SortedUp, {
|
|
2125
2153
|
prismaSize: "small",
|
|
@@ -2418,7 +2446,7 @@ HeadCell_defineProperty(HeadCell_HeadCell, "defaultProps", HeadCell_defaultProps
|
|
|
2418
2446
|
|
|
2419
2447
|
/* harmony default export */ var Table_HeadCell = (HeadCell_HeadCell);
|
|
2420
2448
|
// EXTERNAL MODULE: external "@splunk/react-icons/Info"
|
|
2421
|
-
var Info_ = __webpack_require__(
|
|
2449
|
+
var Info_ = __webpack_require__(103);
|
|
2422
2450
|
var Info_default = /*#__PURE__*/__webpack_require__.n(Info_);
|
|
2423
2451
|
|
|
2424
2452
|
// EXTERNAL MODULE: ./src/icons/ChevronRight.tsx
|
|
@@ -2446,7 +2474,7 @@ function HeadExpandRowsIcon() {
|
|
|
2446
2474
|
});
|
|
2447
2475
|
}
|
|
2448
2476
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
2449
|
-
var Button_ = __webpack_require__(
|
|
2477
|
+
var Button_ = __webpack_require__(17);
|
|
2450
2478
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
2451
2479
|
|
|
2452
2480
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
@@ -2454,14 +2482,14 @@ var Dropdown_ = __webpack_require__(19);
|
|
|
2454
2482
|
var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
|
|
2455
2483
|
|
|
2456
2484
|
// EXTERNAL MODULE: external "@splunk/react-ui/Tooltip"
|
|
2457
|
-
var Tooltip_ = __webpack_require__(
|
|
2485
|
+
var Tooltip_ = __webpack_require__(46);
|
|
2458
2486
|
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_);
|
|
2459
2487
|
|
|
2460
2488
|
// EXTERNAL MODULE: ./src/icons/ChevronDown.tsx
|
|
2461
|
-
var ChevronDown = __webpack_require__(
|
|
2489
|
+
var ChevronDown = __webpack_require__(59);
|
|
2462
2490
|
|
|
2463
2491
|
// EXTERNAL MODULE: ./src/icons/MoreVertical.tsx
|
|
2464
|
-
var MoreVertical = __webpack_require__(
|
|
2492
|
+
var MoreVertical = __webpack_require__(56);
|
|
2465
2493
|
|
|
2466
2494
|
// CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
|
|
2467
2495
|
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 +2771,7 @@ var StyledCellExpansionDisabled = external_styled_components_default()(Table_Cel
|
|
|
2743
2771
|
}));
|
|
2744
2772
|
|
|
2745
2773
|
// EXTERNAL MODULE: external "@splunk/react-ui/Switch"
|
|
2746
|
-
var Switch_ = __webpack_require__(
|
|
2774
|
+
var Switch_ = __webpack_require__(65);
|
|
2747
2775
|
var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch_);
|
|
2748
2776
|
|
|
2749
2777
|
// CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
|
|
@@ -2856,6 +2884,7 @@ function Row_extends() { Row_extends = Object.assign || function (target) { for
|
|
|
2856
2884
|
|
|
2857
2885
|
|
|
2858
2886
|
|
|
2887
|
+
|
|
2859
2888
|
var StyledStripeComponents = {
|
|
2860
2889
|
odd: StyledStripeOdd,
|
|
2861
2890
|
even: StyledStripeEven,
|
|
@@ -2881,8 +2910,6 @@ var Row_propTypes = {
|
|
|
2881
2910
|
|
|
2882
2911
|
/** @private. */
|
|
2883
2912
|
expandable: external_prop_types_default.a.bool,
|
|
2884
|
-
|
|
2885
|
-
/** @private. */
|
|
2886
2913
|
expanded: external_prop_types_default.a.bool,
|
|
2887
2914
|
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
2915
|
|
|
@@ -2898,8 +2925,6 @@ var Row_propTypes = {
|
|
|
2898
2925
|
|
|
2899
2926
|
/** @private. Generally passed by `Table` rather than added directly. */
|
|
2900
2927
|
onDragStart: external_prop_types_default.a.func,
|
|
2901
|
-
|
|
2902
|
-
/** @private. */
|
|
2903
2928
|
onExpansion: external_prop_types_default.a.func,
|
|
2904
2929
|
|
|
2905
2930
|
/** @private. This is passed through and works as expected. */
|
|
@@ -2947,6 +2972,8 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
2947
2972
|
|
|
2948
2973
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2949
2974
|
|
|
2975
|
+
Row_defineProperty(Row_assertThisInitialized(_this), "elementRef", null);
|
|
2976
|
+
|
|
2950
2977
|
Row_defineProperty(Row_assertThisInitialized(_this), "handleClick", function (e) {
|
|
2951
2978
|
var _this$props = _this.props,
|
|
2952
2979
|
data = _this$props.data,
|
|
@@ -2954,7 +2981,11 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
2954
2981
|
var el = e.target;
|
|
2955
2982
|
|
|
2956
2983
|
while (el) {
|
|
2957
|
-
|
|
2984
|
+
if (_this.elementRef === el) {
|
|
2985
|
+
break;
|
|
2986
|
+
} // Ignore clicks on row-actions
|
|
2987
|
+
|
|
2988
|
+
|
|
2958
2989
|
if (el.tagName === 'BUTTON' || el.tagName === 'A') {
|
|
2959
2990
|
return;
|
|
2960
2991
|
}
|
|
@@ -2992,6 +3023,14 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
2992
3023
|
}
|
|
2993
3024
|
});
|
|
2994
3025
|
|
|
3026
|
+
Row_defineProperty(Row_assertThisInitialized(_this), "handleExpansion", function (e) {
|
|
3027
|
+
var _this$props4 = _this.props,
|
|
3028
|
+
data = _this$props4.data,
|
|
3029
|
+
onExpansion = _this$props4.onExpansion;
|
|
3030
|
+
e.preventDefault();
|
|
3031
|
+
onExpansion === null || onExpansion === void 0 ? void 0 : onExpansion(e, data);
|
|
3032
|
+
});
|
|
3033
|
+
|
|
2995
3034
|
Row_defineProperty(Row_assertThisInitialized(_this), "renderActionPrimary", function () {
|
|
2996
3035
|
var actionPrimary = _this.props.actionPrimary;
|
|
2997
3036
|
|
|
@@ -3000,6 +3039,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3000
3039
|
onClick: function onClick(e) {
|
|
3001
3040
|
var _actionPrimary$props$, _actionPrimary$props;
|
|
3002
3041
|
|
|
3042
|
+
e.preventDefault();
|
|
3003
3043
|
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
3044
|
}
|
|
3005
3045
|
});
|
|
@@ -3019,6 +3059,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3019
3059
|
onClick: function onClick(e) {
|
|
3020
3060
|
var _action$props$onClick, _action$props;
|
|
3021
3061
|
|
|
3062
|
+
e.preventDefault();
|
|
3022
3063
|
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
3064
|
}
|
|
3024
3065
|
});
|
|
@@ -3034,36 +3075,41 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3034
3075
|
return actionsSecondary;
|
|
3035
3076
|
});
|
|
3036
3077
|
|
|
3078
|
+
Row_defineProperty(Row_assertThisInitialized(_this), "handleMount", function (el) {
|
|
3079
|
+
Object(updateReactRef["a" /* updateReactRef */])(_this.props.elementRef, el);
|
|
3080
|
+
_this.elementRef = el;
|
|
3081
|
+
});
|
|
3082
|
+
|
|
3037
3083
|
return _this;
|
|
3038
3084
|
}
|
|
3039
3085
|
|
|
3040
3086
|
Row_createClass(Row, [{
|
|
3041
3087
|
key: "render",
|
|
3042
3088
|
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$
|
|
3089
|
+
var _this$props5 = this.props,
|
|
3090
|
+
actions = _this$props5.actions,
|
|
3091
|
+
actionPrimary = _this$props5.actionPrimary,
|
|
3092
|
+
actionsSecondary = _this$props5.actionsSecondary,
|
|
3093
|
+
activeElementId = _this$props5.activeElementId,
|
|
3094
|
+
children = _this$props5.children,
|
|
3095
|
+
dataId = _this$props5.dataId,
|
|
3096
|
+
disabled = _this$props5.disabled,
|
|
3097
|
+
draggable = _this$props5.draggable,
|
|
3098
|
+
elementRef = _this$props5.elementRef,
|
|
3099
|
+
expandable = _this$props5.expandable,
|
|
3100
|
+
expanded = _this$props5.expanded,
|
|
3101
|
+
expansionRow = _this$props5.expansionRow,
|
|
3102
|
+
index = _this$props5.index,
|
|
3103
|
+
movableColumns = _this$props5.movableColumns,
|
|
3104
|
+
onClick = _this$props5.onClick,
|
|
3105
|
+
onDragStart = _this$props5.onDragStart,
|
|
3106
|
+
onExpansion = _this$props5.onExpansion,
|
|
3107
|
+
onRequestMoveRow = _this$props5.onRequestMoveRow,
|
|
3108
|
+
onRequestToggle = _this$props5.onRequestToggle,
|
|
3109
|
+
selected = _this$props5.selected,
|
|
3110
|
+
showRowGuideline = _this$props5.showRowGuideline,
|
|
3111
|
+
stripe = _this$props5.stripe,
|
|
3112
|
+
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
3113
|
|
|
3068
3114
|
var childrenCloned = !onClick ? external_react_["Children"].toArray(children).map(function (child) {
|
|
3069
3115
|
return /*#__PURE__*/Object(external_react_["cloneElement"])(child, {
|
|
@@ -3088,7 +3134,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3088
3134
|
"data-has-movable-columns": movableColumns ? 'true' : undefined,
|
|
3089
3135
|
disabled: !!disabled,
|
|
3090
3136
|
$expandable: !!expandable,
|
|
3091
|
-
ref:
|
|
3137
|
+
ref: this.handleMount,
|
|
3092
3138
|
tabIndex: onClick ? 0 : undefined
|
|
3093
3139
|
}, otherProps, {
|
|
3094
3140
|
onClick: onClick ? this.handleClick : undefined,
|
|
@@ -3123,7 +3169,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3123
3169
|
"data-movable-column": dataMovableColumn,
|
|
3124
3170
|
"data-test": "expand",
|
|
3125
3171
|
expand: expanded,
|
|
3126
|
-
onClick:
|
|
3172
|
+
onClick: this.handleExpansion,
|
|
3127
3173
|
rowSpan: rowSpan,
|
|
3128
3174
|
variant: "expand"
|
|
3129
3175
|
}, /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
@@ -3546,7 +3592,7 @@ Head_defineProperty(Head_Head, "defaultProps", Head_defaultProps);
|
|
|
3546
3592
|
var id_ = __webpack_require__(10);
|
|
3547
3593
|
|
|
3548
3594
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
3549
|
-
var Popover_ = __webpack_require__(
|
|
3595
|
+
var Popover_ = __webpack_require__(16);
|
|
3550
3596
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
3551
3597
|
|
|
3552
3598
|
// CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
|
|
@@ -4175,7 +4221,7 @@ HeadTable_defineProperty(HeadTable_HeadTable, "defaultProps", HeadTable_defaultP
|
|
|
4175
4221
|
|
|
4176
4222
|
/* harmony default export */ var Table_HeadTable = (HeadTable_HeadTable);
|
|
4177
4223
|
// EXTERNAL MODULE: ./src/utils/types.ts
|
|
4178
|
-
var types = __webpack_require__(
|
|
4224
|
+
var types = __webpack_require__(49);
|
|
4179
4225
|
|
|
4180
4226
|
// CONCATENATED MODULE: ./src/Table/Table.tsx
|
|
4181
4227
|
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 +4295,7 @@ var Table_propTypes = {
|
|
|
4249
4295
|
onRequestToggleAllRows: external_prop_types_default.a.func,
|
|
4250
4296
|
onScroll: external_prop_types_default.a.func,
|
|
4251
4297
|
outerStyle: external_prop_types_default.a.object,
|
|
4252
|
-
rowExpansion: external_prop_types_default.a.oneOf(['single', 'multi', 'none']),
|
|
4298
|
+
rowExpansion: external_prop_types_default.a.oneOf(['single', 'multi', 'controlled', 'none']),
|
|
4253
4299
|
rowSelection: external_prop_types_default.a.oneOf(['all', 'some', 'none']),
|
|
4254
4300
|
stripeRows: external_prop_types_default.a.bool,
|
|
4255
4301
|
tableStyle: external_prop_types_default.a.object,
|
|
@@ -4849,7 +4895,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4849
4895
|
);
|
|
4850
4896
|
});
|
|
4851
4897
|
tHead = /*#__PURE__*/Object(external_react_["cloneElement"])(tHead, {}, headCells);
|
|
4852
|
-
var defaultScrollContainer = this.context ||
|
|
4898
|
+
var defaultScrollContainer = this.context || window;
|
|
4853
4899
|
var scrollContainer = this.isFixed() ? this.tableContainer : defaultScrollContainer;
|
|
4854
4900
|
|
|
4855
4901
|
if (resizableFillLayout) {
|
|
@@ -4861,9 +4907,14 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4861
4907
|
ref: elementRef,
|
|
4862
4908
|
style: outerStyle,
|
|
4863
4909
|
"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
|
-
|
|
4910
|
+
}, Object(external_lodash_["omit"])(this.props, [].concat(Table_toConsumableArray(Object.keys(Table.propTypes)), ['style']))), /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
4911
|
+
target: window,
|
|
4912
|
+
eventType: "scroll",
|
|
4913
|
+
listener: this.handleScroll,
|
|
4914
|
+
options: {
|
|
4915
|
+
passive: false,
|
|
4916
|
+
capture: true
|
|
4917
|
+
}
|
|
4867
4918
|
}), /*#__PURE__*/external_react_default.a.createElement(external_react_resize_detector_default.a, {
|
|
4868
4919
|
handleWidth: true,
|
|
4869
4920
|
onResize: this.handleResize
|