@splunk/react-ui 4.9.0 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.js +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +4 -4
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +24 -48
- package/ButtonGroup.js +6 -27
- package/ButtonSimple.js +4 -4
- package/CHANGELOG.md +63 -6
- package/Calendar.js +39 -39
- package/Card.js +54 -68
- package/CardLayout.js +14 -35
- package/Chip.js +19 -19
- package/Clickable.js +28 -13
- package/CloseButton.js +15 -15
- package/Code.js +8 -5
- package/CollapsiblePanel.js +6 -6
- package/Color.js +21 -21
- package/ColumnLayout.js +7 -7
- package/ComboBox.js +19 -14
- package/Concertina.js +13 -13
- package/ControlGroup.js +28 -18
- package/Date.js +10 -10
- package/DefinitionList.js +2 -2
- package/Dropdown.js +6 -6
- package/EventListener.js +4 -4
- package/File.js +31 -31
- package/FormRows.js +11 -11
- package/Heading.js +2 -2
- package/Image.js +21 -21
- package/JSONTree.js +40 -22
- package/Layer.js +72 -22
- package/Link.js +9 -9
- package/List.js +2 -2
- package/Markdown.js +26 -29
- package/Menu.js +53 -53
- package/Message.js +33 -33
- package/MessageBar.js +46 -39
- package/Modal.js +8 -8
- package/ModalLayer.js +16 -7
- package/Monogram.js +27 -15
- package/Multiselect.js +101 -97
- package/Number.js +6 -6
- package/Paginator.js +46 -49
- package/Paragraph.js +2 -2
- package/Popover.js +18 -13
- package/Progress.js +8 -8
- package/RadioBar.js +145 -41
- package/RadioList.js +2 -2
- package/Resize.js +4 -4
- package/ResultsMenu.js +62 -41
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +19 -18
- package/Select.js +81 -79
- package/SidePanel.js +4 -4
- package/Slider.js +8 -8
- package/SlidingPanels.js +16 -7
- package/StaticContent.js +2 -2
- package/StepBar.js +8 -8
- package/Switch.js +8 -8
- package/TabBar.js +15 -15
- package/TabLayout.js +4 -4
- package/Table.js +119 -92
- package/Text.js +121 -241
- package/TextArea.js +1444 -0
- package/Tooltip.js +17 -6
- package/TransitionOpen.js +20 -10
- package/Typography.js +225 -0
- package/WaitSpinner.js +4 -4
- package/cypress.json +1 -0
- package/package.json +21 -8
- package/stubs-splunkui.d.ts +13 -0
- package/test-runner-jest.config.js +38 -0
- package/types/src/Accordion/AccordionContext.d.ts +0 -1
- package/types/src/Button/Button.d.ts +0 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
- package/types/src/Card/Body.d.ts +6 -1
- package/types/src/Card/Card.d.ts +0 -2
- package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
- package/types/src/Clickable/Clickable.d.ts +5 -0
- package/types/src/ComboBox/ComboBox.d.ts +15 -5
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +9 -2
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/File/FileContext.d.ts +0 -1
- package/types/src/FormRows/FormRows.d.ts +1 -1
- package/types/src/FormRows/FormRowsContext.d.ts +0 -1
- package/types/src/FormRows/Row.d.ts +1 -1
- package/types/src/JSONTree/JSONTree.d.ts +2 -2
- package/types/src/JSONTree/TreeNode.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +1 -0
- package/types/src/Layer/LayerStack.d.ts +8 -2
- package/types/src/Markdown/Markdown.d.ts +2 -3
- package/types/src/Menu/MenuContext.d.ts +0 -1
- package/types/src/Modal/ModalContext.d.ts +0 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +2 -0
- package/types/src/Monogram/Monogram.d.ts +2 -2
- package/types/src/Multiselect/Compact.d.ts +11 -4
- package/types/src/Multiselect/Multiselect.d.ts +14 -5
- package/types/src/Multiselect/Normal.d.ts +11 -4
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Popover/Popover.d.ts +1 -0
- package/types/src/Popover/PopoverContext.d.ts +0 -1
- package/types/src/RadioBar/Option.d.ts +10 -2
- package/types/src/RadioBar/RadioBar.d.ts +4 -1
- package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
- package/types/src/RadioList/RadioListContext.d.ts +0 -1
- package/types/src/ResultsMenu/ResultsMenu.d.ts +8 -2
- package/types/src/Search/Search.d.ts +4 -0
- package/types/src/Select/Select.d.ts +13 -4
- package/types/src/Select/SelectBase.d.ts +12 -4
- package/types/src/SidePanel/SidePanel.d.ts +2 -1
- package/types/src/Slider/Slider.d.ts +3 -3
- package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -0
- package/types/src/StepBar/StepBarContext.d.ts +0 -1
- package/types/src/TabBar/TabBarContext.d.ts +0 -1
- package/types/src/Table/HeadCell.d.ts +7 -3
- package/types/src/Table/Table.d.ts +2 -3
- package/types/src/Table/TableContext.d.ts +5 -0
- package/types/src/Text/Text.d.ts +22 -12
- package/types/src/TextArea/TextArea.d.ts +190 -0
- package/types/src/TextArea/docs/examples/Basic.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Error.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Inline.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/TextArea/index.d.ts +2 -0
- package/types/src/{Text → TextArea}/syncHeightWithShadow.d.ts +1 -2
- package/types/src/Tooltip/Tooltip.d.ts +8 -5
- package/types/src/TransitionOpen/TransitionOpen.d.ts +3 -0
- package/types/src/TransitionOpen/index.d.ts +1 -0
- package/types/src/Typography/Typography.d.ts +78 -0
- package/types/src/Typography/docs/examples/Basic.d.ts +2 -0
- package/types/src/Typography/docs/examples/Variants.d.ts +2 -0
- package/types/src/Typography/index.d.ts +2 -0
- package/types/src/Typography/test/Typography.unit.d.ts +1 -0
- package/types/src/fixtures/FetchOptions.d.ts +82 -2
- package/usePrevious.js +2 -2
- package/FetchOptions.js +0 -359
- package/types/src/FetchOptions/FetchOptions.d.ts +0 -82
- package/types/src/FetchOptions/index.d.ts +0 -2
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 = 110);
|
|
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,6 +302,7 @@ function updateReactRef(ref, current) {
|
|
|
303
302
|
|
|
304
303
|
|
|
305
304
|
/***/ }),
|
|
305
|
+
/* 12 */,
|
|
306
306
|
/* 13 */,
|
|
307
307
|
/* 14 */
|
|
308
308
|
/***/ (function(module, exports) {
|
|
@@ -319,23 +319,23 @@ module.exports = require("@splunk/react-ui/EventListener");
|
|
|
319
319
|
/* 16 */
|
|
320
320
|
/***/ (function(module, exports) {
|
|
321
321
|
|
|
322
|
-
module.exports = require("@splunk/react-ui/
|
|
322
|
+
module.exports = require("@splunk/react-ui/Button");
|
|
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/Popover");
|
|
329
329
|
|
|
330
330
|
/***/ }),
|
|
331
331
|
/* 18 */,
|
|
332
|
-
/* 19
|
|
332
|
+
/* 19 */,
|
|
333
|
+
/* 20 */
|
|
333
334
|
/***/ (function(module, exports) {
|
|
334
335
|
|
|
335
336
|
module.exports = require("@splunk/react-ui/Dropdown");
|
|
336
337
|
|
|
337
338
|
/***/ }),
|
|
338
|
-
/* 20 */,
|
|
339
339
|
/* 21 */,
|
|
340
340
|
/* 22 */,
|
|
341
341
|
/* 23 */,
|
|
@@ -349,7 +349,7 @@ module.exports = require("@splunk/react-ui/Dropdown");
|
|
|
349
349
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronRight; });
|
|
350
350
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
351
351
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
352
|
-
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
352
|
+
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32);
|
|
353
353
|
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__);
|
|
354
354
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
355
355
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -394,29 +394,31 @@ function ChevronRight(props) {
|
|
|
394
394
|
/* 28 */,
|
|
395
395
|
/* 29 */,
|
|
396
396
|
/* 30 */,
|
|
397
|
-
/* 31
|
|
397
|
+
/* 31 */,
|
|
398
|
+
/* 32 */
|
|
398
399
|
/***/ (function(module, exports) {
|
|
399
400
|
|
|
400
401
|
module.exports = require("@splunk/react-icons/ChevronRight");
|
|
401
402
|
|
|
402
403
|
/***/ }),
|
|
403
|
-
/* 32 */,
|
|
404
404
|
/* 33 */,
|
|
405
405
|
/* 34 */,
|
|
406
|
-
/* 35
|
|
406
|
+
/* 35 */,
|
|
407
|
+
/* 36 */,
|
|
408
|
+
/* 37 */
|
|
407
409
|
/***/ (function(module, exports) {
|
|
408
410
|
|
|
409
411
|
module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
410
412
|
|
|
411
413
|
/***/ }),
|
|
412
|
-
/*
|
|
414
|
+
/* 38 */
|
|
413
415
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
414
416
|
|
|
415
417
|
"use strict";
|
|
416
418
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CaretDown; });
|
|
417
419
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
418
420
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
419
|
-
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
421
|
+
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
|
|
420
422
|
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__);
|
|
421
423
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
422
424
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -446,14 +448,12 @@ function CaretDown(props) {
|
|
|
446
448
|
}
|
|
447
449
|
|
|
448
450
|
/***/ }),
|
|
449
|
-
/*
|
|
451
|
+
/* 39 */
|
|
450
452
|
/***/ (function(module, exports) {
|
|
451
453
|
|
|
452
454
|
module.exports = require("@splunk/react-icons/Caret");
|
|
453
455
|
|
|
454
456
|
/***/ }),
|
|
455
|
-
/* 38 */,
|
|
456
|
-
/* 39 */,
|
|
457
457
|
/* 40 */,
|
|
458
458
|
/* 41 */,
|
|
459
459
|
/* 42 */,
|
|
@@ -462,13 +462,13 @@ module.exports = require("@splunk/react-icons/Caret");
|
|
|
462
462
|
/* 45 */,
|
|
463
463
|
/* 46 */,
|
|
464
464
|
/* 47 */,
|
|
465
|
-
/* 48
|
|
465
|
+
/* 48 */,
|
|
466
|
+
/* 49 */
|
|
466
467
|
/***/ (function(module, exports) {
|
|
467
468
|
|
|
468
469
|
module.exports = require("@splunk/react-ui/Tooltip");
|
|
469
470
|
|
|
470
471
|
/***/ }),
|
|
471
|
-
/* 49 */,
|
|
472
472
|
/* 50 */,
|
|
473
473
|
/* 51 */,
|
|
474
474
|
/* 52 */,
|
|
@@ -503,15 +503,14 @@ function assertDefined(val, msg) {
|
|
|
503
503
|
/* 59 */,
|
|
504
504
|
/* 60 */,
|
|
505
505
|
/* 61 */,
|
|
506
|
-
/* 62
|
|
507
|
-
/* 63 */
|
|
506
|
+
/* 62 */
|
|
508
507
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
509
508
|
|
|
510
509
|
"use strict";
|
|
511
510
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MoreVertical; });
|
|
512
511
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
513
512
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
514
|
-
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
513
|
+
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(63);
|
|
515
514
|
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__);
|
|
516
515
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
517
516
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -541,21 +540,20 @@ function MoreVertical(props) {
|
|
|
541
540
|
}
|
|
542
541
|
|
|
543
542
|
/***/ }),
|
|
544
|
-
/*
|
|
543
|
+
/* 63 */
|
|
545
544
|
/***/ (function(module, exports) {
|
|
546
545
|
|
|
547
546
|
module.exports = require("@splunk/react-icons/MoreVertical");
|
|
548
547
|
|
|
549
548
|
/***/ }),
|
|
550
|
-
/*
|
|
551
|
-
/* 66 */
|
|
549
|
+
/* 64 */
|
|
552
550
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
553
551
|
|
|
554
552
|
"use strict";
|
|
555
553
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronDown; });
|
|
556
554
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
557
555
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
558
|
-
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
556
|
+
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65);
|
|
559
557
|
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__);
|
|
560
558
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
561
559
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -597,21 +595,23 @@ function ChevronDown(props) {
|
|
|
597
595
|
}
|
|
598
596
|
|
|
599
597
|
/***/ }),
|
|
600
|
-
/*
|
|
598
|
+
/* 65 */
|
|
601
599
|
/***/ (function(module, exports) {
|
|
602
600
|
|
|
603
601
|
module.exports = require("@splunk/react-icons/ChevronDown");
|
|
604
602
|
|
|
605
603
|
/***/ }),
|
|
604
|
+
/* 66 */,
|
|
605
|
+
/* 67 */,
|
|
606
606
|
/* 68 */,
|
|
607
607
|
/* 69 */,
|
|
608
|
-
/* 70
|
|
609
|
-
/* 71 */
|
|
608
|
+
/* 70 */
|
|
610
609
|
/***/ (function(module, exports) {
|
|
611
610
|
|
|
612
611
|
module.exports = require("@splunk/react-ui/Switch");
|
|
613
612
|
|
|
614
613
|
/***/ }),
|
|
614
|
+
/* 71 */,
|
|
615
615
|
/* 72 */,
|
|
616
616
|
/* 73 */,
|
|
617
617
|
/* 74 */,
|
|
@@ -643,43 +643,39 @@ module.exports = require("@splunk/react-ui/Switch");
|
|
|
643
643
|
/* 100 */,
|
|
644
644
|
/* 101 */,
|
|
645
645
|
/* 102 */,
|
|
646
|
-
/* 103
|
|
647
|
-
/* 104 */,
|
|
648
|
-
/* 105 */,
|
|
649
|
-
/* 106 */
|
|
646
|
+
/* 103 */
|
|
650
647
|
/***/ (function(module, exports) {
|
|
651
648
|
|
|
652
649
|
module.exports = require("react-resize-detector");
|
|
653
650
|
|
|
654
651
|
/***/ }),
|
|
655
|
-
/*
|
|
652
|
+
/* 104 */
|
|
656
653
|
/***/ (function(module, exports) {
|
|
657
654
|
|
|
658
655
|
module.exports = require("@splunk/react-icons/SortedDown");
|
|
659
656
|
|
|
660
657
|
/***/ }),
|
|
661
|
-
/*
|
|
658
|
+
/* 105 */
|
|
662
659
|
/***/ (function(module, exports) {
|
|
663
660
|
|
|
664
661
|
module.exports = require("@splunk/react-icons/SortedUp");
|
|
665
662
|
|
|
666
663
|
/***/ }),
|
|
667
|
-
/*
|
|
664
|
+
/* 106 */
|
|
668
665
|
/***/ (function(module, exports) {
|
|
669
666
|
|
|
670
667
|
module.exports = require("@splunk/react-icons/Sort");
|
|
671
668
|
|
|
672
669
|
/***/ }),
|
|
673
|
-
/*
|
|
670
|
+
/* 107 */
|
|
674
671
|
/***/ (function(module, exports) {
|
|
675
672
|
|
|
676
673
|
module.exports = require("@splunk/react-icons/Info");
|
|
677
674
|
|
|
678
675
|
/***/ }),
|
|
679
|
-
/*
|
|
680
|
-
/*
|
|
681
|
-
/*
|
|
682
|
-
/* 114 */
|
|
676
|
+
/* 108 */,
|
|
677
|
+
/* 109 */,
|
|
678
|
+
/* 110 */
|
|
683
679
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
684
680
|
|
|
685
681
|
"use strict";
|
|
@@ -708,7 +704,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
708
704
|
var external_lodash_ = __webpack_require__(4);
|
|
709
705
|
|
|
710
706
|
// EXTERNAL MODULE: external "react-resize-detector"
|
|
711
|
-
var external_react_resize_detector_ = __webpack_require__(
|
|
707
|
+
var external_react_resize_detector_ = __webpack_require__(103);
|
|
712
708
|
var external_react_resize_detector_default = /*#__PURE__*/__webpack_require__.n(external_react_resize_detector_);
|
|
713
709
|
|
|
714
710
|
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
@@ -719,7 +715,7 @@ var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
|
719
715
|
var keyboard_ = __webpack_require__(9);
|
|
720
716
|
|
|
721
717
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
722
|
-
var ScrollContainerContext_ = __webpack_require__(
|
|
718
|
+
var ScrollContainerContext_ = __webpack_require__(37);
|
|
723
719
|
|
|
724
720
|
// EXTERNAL MODULE: external "styled-components"
|
|
725
721
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -734,10 +730,10 @@ var themes_ = __webpack_require__(0);
|
|
|
734
730
|
var Styled = external_styled_components_default.a.tbody.withConfig({
|
|
735
731
|
displayName: "BodyStyles__Styled",
|
|
736
732
|
componentId: "sc-1k5p6pq-0"
|
|
737
|
-
})(["", ""], themes_["mixins"].reset('table-row-group'));
|
|
733
|
+
})(["", " z-index:0;"], themes_["mixins"].reset('table-row-group'));
|
|
738
734
|
|
|
739
735
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
740
|
-
var updateReactRef = __webpack_require__(
|
|
736
|
+
var updateReactRef = __webpack_require__(11);
|
|
741
737
|
|
|
742
738
|
// CONCATENATED MODULE: ./src/Table/Body.tsx
|
|
743
739
|
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); }
|
|
@@ -1120,15 +1116,15 @@ _defineProperty(Body_Body, "defaultProps", defaultProps);
|
|
|
1120
1116
|
var TableStyles_Styled = external_styled_components_default.a.div.withConfig({
|
|
1121
1117
|
displayName: "TableStyles__Styled",
|
|
1122
1118
|
componentId: "sc-1cmfss7-0"
|
|
1123
|
-
})(["", ";max-width:100%;position:relative;@media print{max-height:none !important;}"], themes_["mixins"].reset('block'));
|
|
1119
|
+
})(["", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}"], themes_["mixins"].reset('block'));
|
|
1124
1120
|
var StyledTableContainer = external_styled_components_default.a.div.withConfig({
|
|
1125
1121
|
displayName: "TableStyles__StyledTableContainer",
|
|
1126
1122
|
componentId: "sc-1cmfss7-1"
|
|
1127
|
-
})(["overflow:auto;"]);
|
|
1123
|
+
})(["overflow:auto;&::before{content:'';width:100%;height:0;top:0;position:absolute;}"]);
|
|
1128
1124
|
var StyledTable = external_styled_components_default.a.table.withConfig({
|
|
1129
1125
|
displayName: "TableStyles__StyledTable",
|
|
1130
1126
|
componentId: "sc-1cmfss7-2"
|
|
1131
|
-
})(["", ";position:relative;border-collapse:collapse;border-spacing:0;min-width:100
|
|
1127
|
+
})(["", ";position:relative;border-collapse:collapse;border-spacing:0;min-width:100%;z-index:0;&[data-fixed-column='true']{table-layout:fixed;min-width:0;width:0;}", " @media print{width:100%;max-width:100%;table-layout:auto;}"], themes_["mixins"].reset('table'), function (_ref) {
|
|
1132
1128
|
var $resizableFillLayout = _ref.$resizableFillLayout;
|
|
1133
1129
|
return $resizableFillLayout && Object(external_styled_components_["css"])(["width:100%;min-width:100%;table-layout:fixed;"]);
|
|
1134
1130
|
});
|
|
@@ -1412,7 +1408,7 @@ Cell_defineProperty(Cell_Cell, "defaultProps", Cell_defaultProps);
|
|
|
1412
1408
|
var i18n_ = __webpack_require__(5);
|
|
1413
1409
|
|
|
1414
1410
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedDown"
|
|
1415
|
-
var SortedDown_ = __webpack_require__(
|
|
1411
|
+
var SortedDown_ = __webpack_require__(104);
|
|
1416
1412
|
var SortedDown_default = /*#__PURE__*/__webpack_require__.n(SortedDown_);
|
|
1417
1413
|
|
|
1418
1414
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -1459,7 +1455,7 @@ function SortedDown(props) {
|
|
|
1459
1455
|
}, props));
|
|
1460
1456
|
}
|
|
1461
1457
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedUp"
|
|
1462
|
-
var SortedUp_ = __webpack_require__(
|
|
1458
|
+
var SortedUp_ = __webpack_require__(105);
|
|
1463
1459
|
var SortedUp_default = /*#__PURE__*/__webpack_require__.n(SortedUp_);
|
|
1464
1460
|
|
|
1465
1461
|
// CONCATENATED MODULE: ./src/icons/SortedUp.tsx
|
|
@@ -1500,7 +1496,7 @@ function SortedUp(props) {
|
|
|
1500
1496
|
}, props));
|
|
1501
1497
|
}
|
|
1502
1498
|
// EXTERNAL MODULE: external "@splunk/react-icons/Sort"
|
|
1503
|
-
var Sort_ = __webpack_require__(
|
|
1499
|
+
var Sort_ = __webpack_require__(106);
|
|
1504
1500
|
var Sort_default = /*#__PURE__*/__webpack_require__.n(Sort_);
|
|
1505
1501
|
|
|
1506
1502
|
// CONCATENATED MODULE: ./src/icons/Sort.tsx
|
|
@@ -1541,7 +1537,7 @@ function CaretDown(props) {
|
|
|
1541
1537
|
}, props));
|
|
1542
1538
|
}
|
|
1543
1539
|
// EXTERNAL MODULE: ./src/icons/CaretDown.tsx
|
|
1544
|
-
var icons_CaretDown = __webpack_require__(
|
|
1540
|
+
var icons_CaretDown = __webpack_require__(38);
|
|
1545
1541
|
|
|
1546
1542
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
1547
1543
|
var ScreenReaderContent_ = __webpack_require__(14);
|
|
@@ -1675,7 +1671,7 @@ HeadInnerStyles_Styled, themes_["variables"].focusColor, themes_["variables"].fo
|
|
|
1675
1671
|
var HeadCellStyles_Styled = external_styled_components_default.a.th.withConfig({
|
|
1676
1672
|
displayName: "HeadCellStyles__Styled",
|
|
1677
1673
|
componentId: "sc-1hj81sa-0"
|
|
1678
|
-
})(["", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";& + &{border-left:1px solid ", ";}", " ", " ", ""], themes_["mixins"].reset('table-cell'), Object(themes_["pick"])({
|
|
1674
|
+
})(["", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";& + &{border-left:1px solid ", ";}", " ", " ", " ", ""], themes_["mixins"].reset('table-cell'), Object(themes_["pick"])({
|
|
1679
1675
|
enterprise: {
|
|
1680
1676
|
light: themes_["variables"].gray92,
|
|
1681
1677
|
dark: themes_["variables"].black
|
|
@@ -1688,8 +1684,18 @@ var HeadCellStyles_Styled = external_styled_components_default.a.th.withConfig({
|
|
|
1688
1684
|
enterprise: themes_["variables"].backgroundColor,
|
|
1689
1685
|
prisma: themes_["variables"].backgroundColorPage
|
|
1690
1686
|
}), function (_ref2) {
|
|
1691
|
-
var $
|
|
1692
|
-
|
|
1687
|
+
var $isFixed = _ref2.$isFixed,
|
|
1688
|
+
$zIndex = _ref2.$zIndex;
|
|
1689
|
+
return $isFixed && Object(external_styled_components_["css"])(["position:sticky;top:0;z-index:", ";&:not(:first-child)::before{content:'';height:100%;position:absolute;top:0;bottom:0;box-shadow:-1px 0 0 0 ", ";width:2px;border:0;left:0;margin-right:-2px;color:transparent;}&:not(:last-child)::after{content:'';height:100%;position:absolute;top:0;bottom:0;box-shadow:1px 0 0 0 ", ";width:2px;border:0;right:0;margin-left:-2px;color:transparent;}"], $zIndex, Object(themes_["pick"])({
|
|
1690
|
+
enterprise: themes_["variables"].backgroundColor,
|
|
1691
|
+
prisma: themes_["variables"].backgroundColorPage
|
|
1692
|
+
}), Object(themes_["pick"])({
|
|
1693
|
+
enterprise: themes_["variables"].backgroundColor,
|
|
1694
|
+
prisma: themes_["variables"].backgroundColorPage
|
|
1695
|
+
}));
|
|
1696
|
+
}, function (_ref3) {
|
|
1697
|
+
var $clickable = _ref3.$clickable;
|
|
1698
|
+
return $clickable && Object(external_styled_components_["css"])(["cursor:pointer;&:focus{box-shadow:", ";outline:none;& > ", "{color:", ";background-color:", ";}}&:hover{outline:none;& > ", "{color:", ";background-color:", ";}}&:active{& > ", "{background-color:", ";}}"], themes_["variables"].focusShadowInset,
|
|
1693
1699
|
/* sc-sel */
|
|
1694
1700
|
HeadInnerStyles_Styled, Object(themes_["pick"])({
|
|
1695
1701
|
enterprise: {
|
|
@@ -1712,8 +1718,8 @@ var HeadCellStyles_Styled = external_styled_components_default.a.th.withConfig({
|
|
|
1712
1718
|
HeadInnerStyles_Styled, Object(themes_["pick"])({
|
|
1713
1719
|
prisma: themes_["variables"].interactiveColorOverlayActive
|
|
1714
1720
|
}));
|
|
1715
|
-
}, function (
|
|
1716
|
-
var $dragging =
|
|
1721
|
+
}, function (_ref4) {
|
|
1722
|
+
var $dragging = _ref4.$dragging;
|
|
1717
1723
|
return $dragging && Object(external_styled_components_["css"])(["background-color:", ";&:focus{box-shadow:none;}"], Object(themes_["pick"])({
|
|
1718
1724
|
enterprise: {
|
|
1719
1725
|
light: themes_["variables"].gray80,
|
|
@@ -2168,6 +2174,11 @@ function HeadInner(_ref) {
|
|
|
2168
2174
|
|
|
2169
2175
|
HeadInner.propTypes = HeadInner_propTypes;
|
|
2170
2176
|
/* harmony default export */ var Table_HeadInner = (HeadInner);
|
|
2177
|
+
// CONCATENATED MODULE: ./src/Table/TableContext.ts
|
|
2178
|
+
|
|
2179
|
+
var TableContext = /*#__PURE__*/Object(external_react_["createContext"])({});
|
|
2180
|
+
TableContext.displayName = 'Table';
|
|
2181
|
+
/* harmony default export */ var Table_TableContext = (TableContext);
|
|
2171
2182
|
// CONCATENATED MODULE: ./src/Table/HeadCell.tsx
|
|
2172
2183
|
function HeadCell_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { HeadCell_typeof = function _typeof(obj) { return typeof obj; }; } else { HeadCell_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return HeadCell_typeof(obj); }
|
|
2173
2184
|
|
|
@@ -2213,6 +2224,7 @@ function HeadCell_defineProperty(obj, key, value) { if (key in obj) { Object.def
|
|
|
2213
2224
|
|
|
2214
2225
|
|
|
2215
2226
|
|
|
2227
|
+
|
|
2216
2228
|
var HeadCell_propTypes = {
|
|
2217
2229
|
align: external_prop_types_default.a.oneOf(['left', 'center', 'right']),
|
|
2218
2230
|
children: external_prop_types_default.a.node,
|
|
@@ -2262,7 +2274,8 @@ var HeadCell_propTypes = {
|
|
|
2262
2274
|
width: external_prop_types_default.a.oneOfType([external_prop_types_default.a.number, external_prop_types_default.a.oneOf(['auto'])]),
|
|
2263
2275
|
|
|
2264
2276
|
/** @private. */
|
|
2265
|
-
variant: external_prop_types_default.a.oneOf(['toggleAll', 'info', 'actions'])
|
|
2277
|
+
variant: external_prop_types_default.a.oneOf(['toggleAll', 'info', 'actions']),
|
|
2278
|
+
zIndex: external_prop_types_default.a.number
|
|
2266
2279
|
};
|
|
2267
2280
|
var HeadCell_defaultProps = {
|
|
2268
2281
|
align: 'left',
|
|
@@ -2270,7 +2283,8 @@ var HeadCell_defaultProps = {
|
|
|
2270
2283
|
showGuideline: 'none',
|
|
2271
2284
|
sortDir: 'none',
|
|
2272
2285
|
truncate: true,
|
|
2273
|
-
visible: true
|
|
2286
|
+
visible: true,
|
|
2287
|
+
zIndex: 1
|
|
2274
2288
|
};
|
|
2275
2289
|
|
|
2276
2290
|
var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
@@ -2394,7 +2408,8 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2394
2408
|
variant = _this$props5.variant,
|
|
2395
2409
|
truncateProp = _this$props5.truncate,
|
|
2396
2410
|
visible = _this$props5.visible,
|
|
2397
|
-
width = _this$props5.width
|
|
2411
|
+
width = _this$props5.width,
|
|
2412
|
+
zIndex = _this$props5.zIndex;
|
|
2398
2413
|
var draggable = !!onDragStart;
|
|
2399
2414
|
var sortable = !!onSort && !!sortDir;
|
|
2400
2415
|
var hasOnClick = onClick !== undefined;
|
|
@@ -2402,6 +2417,7 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2402
2417
|
width: width
|
|
2403
2418
|
});
|
|
2404
2419
|
var truncate = hasActionsHead ? false : truncateProp;
|
|
2420
|
+
var headType = this.context.headType;
|
|
2405
2421
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
2406
2422
|
|
|
2407
2423
|
return /*#__PURE__*/external_react_default.a.createElement(HeadCellStyles_Styled, HeadCell_extends({
|
|
@@ -2416,7 +2432,9 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2416
2432
|
tabIndex: visible && (draggable || onSort || hasOnClick) ? 0 : undefined,
|
|
2417
2433
|
$dragging: this.state.isDragging || undefined,
|
|
2418
2434
|
$clickable: draggable || sortable || hasOnClick,
|
|
2419
|
-
$variant: variant
|
|
2435
|
+
$variant: variant,
|
|
2436
|
+
$zIndex: zIndex,
|
|
2437
|
+
$isFixed: headType === 'fixed'
|
|
2420
2438
|
}, Object(external_lodash_["omit"])(this.props, [].concat(HeadCell_toConsumableArray(Object.keys(HeadCell.propTypes)), ['id', 'style'])), {
|
|
2421
2439
|
onKeyDown: draggable || onSort || hasOnClick ? this.handleKeyDown : undefined
|
|
2422
2440
|
}), /*#__PURE__*/external_react_default.a.createElement(Table_HeadInner, {
|
|
@@ -2450,9 +2468,11 @@ HeadCell_defineProperty(HeadCell_HeadCell, "propTypes", HeadCell_propTypes);
|
|
|
2450
2468
|
|
|
2451
2469
|
HeadCell_defineProperty(HeadCell_HeadCell, "defaultProps", HeadCell_defaultProps);
|
|
2452
2470
|
|
|
2471
|
+
HeadCell_defineProperty(HeadCell_HeadCell, "contextType", Table_TableContext);
|
|
2472
|
+
|
|
2453
2473
|
/* harmony default export */ var Table_HeadCell = (HeadCell_HeadCell);
|
|
2454
2474
|
// EXTERNAL MODULE: external "@splunk/react-icons/Info"
|
|
2455
|
-
var Info_ = __webpack_require__(
|
|
2475
|
+
var Info_ = __webpack_require__(107);
|
|
2456
2476
|
var Info_default = /*#__PURE__*/__webpack_require__.n(Info_);
|
|
2457
2477
|
|
|
2458
2478
|
// EXTERNAL MODULE: ./src/icons/ChevronRight.tsx
|
|
@@ -2480,22 +2500,22 @@ function HeadExpandRowsIcon() {
|
|
|
2480
2500
|
});
|
|
2481
2501
|
}
|
|
2482
2502
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
2483
|
-
var Button_ = __webpack_require__(
|
|
2503
|
+
var Button_ = __webpack_require__(16);
|
|
2484
2504
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
2485
2505
|
|
|
2486
2506
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
2487
|
-
var Dropdown_ = __webpack_require__(
|
|
2507
|
+
var Dropdown_ = __webpack_require__(20);
|
|
2488
2508
|
var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
|
|
2489
2509
|
|
|
2490
2510
|
// EXTERNAL MODULE: external "@splunk/react-ui/Tooltip"
|
|
2491
|
-
var Tooltip_ = __webpack_require__(
|
|
2511
|
+
var Tooltip_ = __webpack_require__(49);
|
|
2492
2512
|
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_);
|
|
2493
2513
|
|
|
2494
2514
|
// EXTERNAL MODULE: ./src/icons/ChevronDown.tsx
|
|
2495
|
-
var ChevronDown = __webpack_require__(
|
|
2515
|
+
var ChevronDown = __webpack_require__(64);
|
|
2496
2516
|
|
|
2497
2517
|
// EXTERNAL MODULE: ./src/icons/MoreVertical.tsx
|
|
2498
|
-
var MoreVertical = __webpack_require__(
|
|
2518
|
+
var MoreVertical = __webpack_require__(62);
|
|
2499
2519
|
|
|
2500
2520
|
// CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
|
|
2501
2521
|
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); }
|
|
@@ -2777,7 +2797,7 @@ var StyledCellExpansionDisabled = external_styled_components_default()(Table_Cel
|
|
|
2777
2797
|
}));
|
|
2778
2798
|
|
|
2779
2799
|
// EXTERNAL MODULE: external "@splunk/react-ui/Switch"
|
|
2780
|
-
var Switch_ = __webpack_require__(
|
|
2800
|
+
var Switch_ = __webpack_require__(70);
|
|
2781
2801
|
var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch_);
|
|
2782
2802
|
|
|
2783
2803
|
// CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
|
|
@@ -3325,6 +3345,9 @@ var Head_propTypes = {
|
|
|
3325
3345
|
var Head_defaultProps = {
|
|
3326
3346
|
actions: []
|
|
3327
3347
|
};
|
|
3348
|
+
var columnOneIndexOffset = 3;
|
|
3349
|
+
var columnTwoIndexOffset = 2;
|
|
3350
|
+
var columnThreeIndexOffset = 1;
|
|
3328
3351
|
|
|
3329
3352
|
var Head_Head = /*#__PURE__*/function (_Component) {
|
|
3330
3353
|
Head_inherits(Head, _Component);
|
|
@@ -3501,7 +3524,9 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3501
3524
|
onRequestToggleAllRows = _this$props5.onRequestToggleAllRows,
|
|
3502
3525
|
rowSelection = _this$props5.rowSelection;
|
|
3503
3526
|
var guidelineIndex = this.calculateGuideIndex();
|
|
3504
|
-
var
|
|
3527
|
+
var validChildren = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]);
|
|
3528
|
+
var minimumIndex = validChildren.length + (actions.length || actionsColumnWidth ? 1 : 0);
|
|
3529
|
+
var clonedChildren = validChildren.map(function (child, index, original) {
|
|
3505
3530
|
var showGuideline = 'none';
|
|
3506
3531
|
|
|
3507
3532
|
if (guidelineIndex === original.length && index + 1 === original.length) {
|
|
@@ -3517,7 +3542,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3517
3542
|
onDragStart: onRequestMoveColumn ? _this2.handleDragStart : undefined,
|
|
3518
3543
|
onRequestMoveColumn: onRequestMoveColumn ? _this2.onRequestMoveColumn : undefined,
|
|
3519
3544
|
onAutosizeColumn: onAutosizeColumn,
|
|
3520
|
-
key: child.key || child.props.columnId || index
|
|
3545
|
+
key: child.key || child.props.columnId || index,
|
|
3546
|
+
zIndex: minimumIndex - index
|
|
3521
3547
|
});
|
|
3522
3548
|
});
|
|
3523
3549
|
var toggleStateMap = {
|
|
@@ -3535,7 +3561,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3535
3561
|
key: "drag_rows_head_cell",
|
|
3536
3562
|
"data-test": "drag-rows-head-cell",
|
|
3537
3563
|
align: "center",
|
|
3538
|
-
resizable: false
|
|
3564
|
+
resizable: false,
|
|
3565
|
+
zIndex: minimumIndex + columnOneIndexOffset
|
|
3539
3566
|
}), onRequestToggleAllRows && /*#__PURE__*/external_react_default.a.createElement(StyledToggleAll, {
|
|
3540
3567
|
key: "toggle_all",
|
|
3541
3568
|
"data-test": "toggle-all",
|
|
@@ -3545,7 +3572,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3545
3572
|
variant: "toggleAll",
|
|
3546
3573
|
truncate: false,
|
|
3547
3574
|
role: "checkbox",
|
|
3548
|
-
"aria-checked": ariaChecked
|
|
3575
|
+
"aria-checked": ariaChecked,
|
|
3576
|
+
zIndex: minimumIndex + columnTwoIndexOffset
|
|
3549
3577
|
}, /*#__PURE__*/external_react_default.a.createElement(Table_Toggle, {
|
|
3550
3578
|
selected: toggleState,
|
|
3551
3579
|
allRows: true
|
|
@@ -3554,7 +3582,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3554
3582
|
"data-test": "more-info-head-cell",
|
|
3555
3583
|
align: "center",
|
|
3556
3584
|
resizable: false,
|
|
3557
|
-
variant: "info"
|
|
3585
|
+
variant: "info",
|
|
3586
|
+
zIndex: minimumIndex + columnThreeIndexOffset
|
|
3558
3587
|
}, /*#__PURE__*/external_react_default.a.createElement(HeadExpandRowsIcon, null)), clonedChildren, actions.length > 0 && /*#__PURE__*/external_react_default.a.createElement(Table_HeadCell, {
|
|
3559
3588
|
hasActionsHead: true,
|
|
3560
3589
|
key: "actions_head_cell",
|
|
@@ -3565,7 +3594,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3565
3594
|
style: {
|
|
3566
3595
|
minWidth: defaultActionsColumnWidth
|
|
3567
3596
|
},
|
|
3568
|
-
variant: "actions"
|
|
3597
|
+
variant: "actions",
|
|
3598
|
+
zIndex: 1
|
|
3569
3599
|
}, actions), actions.length === 0 && actionsColumnWidth && /*#__PURE__*/external_react_default.a.createElement(Table_HeadCell, {
|
|
3570
3600
|
key: "actions_head_cell",
|
|
3571
3601
|
"data-test": "actions-head-cell",
|
|
@@ -3575,7 +3605,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3575
3605
|
style: {
|
|
3576
3606
|
minWidth: actionsColumnWidth
|
|
3577
3607
|
},
|
|
3578
|
-
variant: "actions"
|
|
3608
|
+
variant: "actions",
|
|
3609
|
+
zIndex: 1
|
|
3579
3610
|
}, ' ')));
|
|
3580
3611
|
}
|
|
3581
3612
|
}], [{
|
|
@@ -3599,7 +3630,7 @@ Head_defineProperty(Head_Head, "defaultProps", Head_defaultProps);
|
|
|
3599
3630
|
var id_ = __webpack_require__(10);
|
|
3600
3631
|
|
|
3601
3632
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
3602
|
-
var Popover_ = __webpack_require__(
|
|
3633
|
+
var Popover_ = __webpack_require__(17);
|
|
3603
3634
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
3604
3635
|
|
|
3605
3636
|
// CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
|
|
@@ -4288,6 +4319,7 @@ function Table_defineProperty(obj, key, value) { if (key in obj) { Object.define
|
|
|
4288
4319
|
|
|
4289
4320
|
|
|
4290
4321
|
|
|
4322
|
+
|
|
4291
4323
|
/** @public */
|
|
4292
4324
|
|
|
4293
4325
|
var Table_propTypes = {
|
|
@@ -4744,11 +4776,6 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4744
4776
|
var rect = this.tableContainer.getBoundingClientRect();
|
|
4745
4777
|
return rect.bottom > window.innerHeight && rect.top < window.innerHeight;
|
|
4746
4778
|
}
|
|
4747
|
-
}, {
|
|
4748
|
-
key: "showFixed",
|
|
4749
|
-
value: function showFixed() {
|
|
4750
|
-
return this.head && this.isFixed();
|
|
4751
|
-
}
|
|
4752
4779
|
}, {
|
|
4753
4780
|
key: "updateDragPositionImpl",
|
|
4754
4781
|
value: function updateDragPositionImpl(dragPosition) {
|
|
@@ -4768,16 +4795,11 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4768
4795
|
}, {
|
|
4769
4796
|
key: "renderHeadTable",
|
|
4770
4797
|
value: function renderHeadTable(tHead, isFixedColumn) {
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
if ((this.showFixed() || showDockedHeader) && this.props.headType !== 'inline') {
|
|
4798
|
+
if (this.showDockedHeader()) {
|
|
4774
4799
|
// FIXME: handle inline
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
this.headFocusState = Table.getHeadFocusState(this.head);
|
|
4779
|
-
}
|
|
4780
|
-
|
|
4800
|
+
// Save the current head focus state so that it can be applied to the docked version
|
|
4801
|
+
// after the `HeadTable` mounts.
|
|
4802
|
+
this.headFocusState = Table.getHeadFocusState(this.head);
|
|
4781
4803
|
var _this$state = this.state,
|
|
4782
4804
|
cellWidths = _this$state.cellWidths,
|
|
4783
4805
|
dragIndex = _this$state.dragIndex,
|
|
@@ -4791,7 +4813,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4791
4813
|
}
|
|
4792
4814
|
|
|
4793
4815
|
return /*#__PURE__*/external_react_default.a.createElement(Table_HeadTable, {
|
|
4794
|
-
headType:
|
|
4816
|
+
headType: "docked",
|
|
4795
4817
|
tHead: tHead,
|
|
4796
4818
|
cellWidths: cellWidths,
|
|
4797
4819
|
dragIndex: dragIndex,
|
|
@@ -4855,6 +4877,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4855
4877
|
var _this$props4 = this.props,
|
|
4856
4878
|
children = _this$props4.children,
|
|
4857
4879
|
elementRef = _this$props4.elementRef,
|
|
4880
|
+
headType = _this$props4.headType,
|
|
4858
4881
|
innerStyle = _this$props4.innerStyle,
|
|
4859
4882
|
onRequestResizeColumn = _this$props4.onRequestResizeColumn,
|
|
4860
4883
|
onRequestToggleAllRows = _this$props4.onRequestToggleAllRows,
|
|
@@ -4925,7 +4948,11 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4925
4948
|
}), /*#__PURE__*/external_react_default.a.createElement(external_react_resize_detector_default.a, {
|
|
4926
4949
|
handleWidth: true,
|
|
4927
4950
|
onResize: this.handleResize
|
|
4928
|
-
}),
|
|
4951
|
+
}), /*#__PURE__*/external_react_default.a.createElement(Table_TableContext.Provider, {
|
|
4952
|
+
value: {
|
|
4953
|
+
headType: headType
|
|
4954
|
+
}
|
|
4955
|
+
}, headTable, /*#__PURE__*/external_react_default.a.createElement(StyledTableContainer, {
|
|
4929
4956
|
onScroll: this.handleContainerScroll,
|
|
4930
4957
|
ref: function ref(el) {
|
|
4931
4958
|
_this3.tableContainer = el;
|
|
@@ -4941,7 +4968,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4941
4968
|
style: tableStyle,
|
|
4942
4969
|
"data-fixed-column": isFixedColumn ? 'true' : undefined,
|
|
4943
4970
|
$resizableFillLayout: resizableFillLayout
|
|
4944
|
-
}, tCaption, tHead, tBody))), this.renderDockedScrollbar());
|
|
4971
|
+
}, tCaption, tHead, tBody))), this.renderDockedScrollbar()));
|
|
4945
4972
|
}
|
|
4946
4973
|
}]);
|
|
4947
4974
|
|