@splunk/react-ui 4.1.0 → 4.4.1
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 +26 -35
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +22 -22
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +12 -6
- package/CHANGELOG.md +69 -2
- package/Calendar.js +23 -23
- package/Card.js +15 -15
- package/CardLayout.js +2 -2
- package/Chip.js +13 -13
- package/Clickable.js +4 -4
- package/CloseButton.js +8 -8
- package/Code.js +1279 -1120
- package/CollapsiblePanel.js +11 -11
- package/Color.js +111 -172
- package/ColumnLayout.js +6 -6
- package/ComboBox.js +63 -30
- package/Concertina.js +2 -2
- package/ControlGroup.js +61 -20
- package/Date.js +66 -29
- package/DefinitionList.js +2 -2
- package/Dropdown.js +6 -6
- package/FetchOptions.js +8 -8
- package/File.js +87 -72
- package/FormRows.js +219 -331
- package/Heading.js +2 -2
- package/Image.js +15 -15
- package/JSONTree.js +63 -20
- package/Layer.js +8 -8
- package/Link.js +13 -13
- package/List.js +2 -2
- package/Markdown.js +19 -19
- package/Menu.js +315 -230
- package/Message.js +19 -19
- package/Modal.js +22 -11
- package/ModalLayer.js +25 -11
- package/Monogram.js +7 -7
- package/Multiselect.js +1931 -1057
- package/Number.js +40 -27
- package/Paginator.js +67 -49
- package/Paragraph.js +2 -2
- package/Popover.js +62 -35
- package/Progress.js +9 -21
- package/RadioBar.js +6 -6
- package/RadioList.js +2 -2
- package/ResultsMenu.js +18 -10
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +37 -19
- package/ScrollContainerContext.js +2 -2
- package/Select.js +1309 -562
- package/SidePanel.js +22 -17
- package/Slider.js +8 -8
- package/SlidingPanels.js +63 -47
- package/StaticContent.js +2 -2
- package/StepBar.js +8 -8
- package/Switch.js +20 -11
- package/TabBar.js +54 -40
- package/TabLayout.js +4 -4
- package/Table.js +148 -85
- package/Text.js +474 -356
- package/Tooltip.js +6 -6
- package/TransitionOpen.js +26 -24
- package/WaitSpinner.js +4 -4
- package/package.json +8 -7
- package/stubs-splunkui.d.ts +1 -0
- package/types/src/Accordion/Accordion.d.ts +2 -2
- package/types/src/Animation/Animation.d.ts +6 -5
- package/types/src/Button/Button.d.ts +2 -2
- package/types/src/ButtonSimple/ButtonSimple.d.ts +5 -5
- package/types/src/Calendar/DateTable.d.ts +1 -0
- package/types/src/Calendar/MonthHeader.d.ts +2 -2
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -2
- package/types/src/Color/Color.d.ts +5 -4
- package/types/src/Color/Swatch.d.ts +4 -15
- package/types/src/ComboBox/ComboBox.d.ts +2 -2
- package/types/src/ControlGroup/ControlGroup.d.ts +7 -2
- package/types/src/ControlGroup/ControlGroupContext.d.ts +15 -0
- package/types/src/Date/Date.d.ts +7 -5
- package/types/src/Date/Icon.d.ts +1 -0
- package/types/src/Dropdown/Dropdown.d.ts +1 -1
- package/types/src/File/File.d.ts +2 -2
- package/types/src/File/FileContext.d.ts +9 -0
- package/types/src/File/Icon.d.ts +1 -0
- package/types/src/File/IconCloud.d.ts +1 -0
- package/types/src/File/Item.d.ts +5 -10
- package/types/src/File/PaperClip.d.ts +1 -0
- package/types/src/File/Retry.d.ts +1 -0
- package/types/src/File/Trash.d.ts +1 -0
- package/types/src/FormRows/FormRows.d.ts +11 -69
- package/types/src/FormRows/FormRowsContext.d.ts +9 -0
- package/types/src/FormRows/Row.d.ts +7 -20
- package/types/src/JSONTree/JSONTree.d.ts +14 -2
- package/types/src/JSONTree/TreeNode.d.ts +4 -1
- package/types/src/Menu/Divider.d.ts +1 -0
- package/types/src/Menu/Heading.d.ts +3 -1
- package/types/src/Menu/Item.d.ts +22 -6
- package/types/src/Menu/Menu.d.ts +17 -18
- package/types/src/Menu/MenuContext.d.ts +6 -0
- package/types/src/Menu/index.d.ts +1 -0
- package/types/src/Multiselect/Compact.d.ts +7 -26
- package/types/src/Multiselect/Multiselect.d.ts +7 -2
- package/types/src/Multiselect/Normal.d.ts +8 -2
- package/types/src/Multiselect/Option.d.ts +4 -1
- package/types/src/Number/IncrementIcon.d.ts +1 -0
- package/types/src/Number/Number.d.ts +4 -4
- package/types/src/Paginator/PageSeparator.d.ts +3 -0
- package/types/src/Popover/Popover.d.ts +5 -5
- package/types/src/Popover/PopoverContext.d.ts +6 -0
- package/types/src/Popover/index.d.ts +1 -0
- package/types/src/RadioBar/RadioBar.d.ts +5 -5
- package/types/src/RadioList/RadioListContext.d.ts +1 -0
- package/types/src/ResultsMenu/ResultsMenu.d.ts +4 -0
- package/types/src/Scroll/Inner.d.ts +4 -3
- package/types/src/Scroll/Scroll.d.ts +1 -1
- package/types/src/Select/Option.d.ts +2 -5
- package/types/src/Select/OptionBase.d.ts +94 -0
- package/types/src/Select/Select.d.ts +12 -37
- package/types/src/Select/SelectBase.d.ts +221 -0
- package/types/src/SidePanel/SidePanel.d.ts +4 -0
- package/types/src/Slider/Slider.d.ts +4 -4
- package/types/src/SlidingPanels/SlidingPanels.d.ts +0 -1
- package/types/src/Switch/CheckIcon.d.ts +1 -0
- package/types/src/Switch/Switch.d.ts +3 -7
- package/types/src/TabBar/Tab.d.ts +4 -1
- package/types/src/TabLayout/TabLayout.d.ts +2 -2
- package/types/src/Table/DragHandle.d.ts +1 -0
- package/types/src/Table/Head.d.ts +2 -0
- package/types/src/Table/HeadCell.d.ts +2 -2
- package/types/src/Table/HeadDropdownCell.d.ts +1 -1
- package/types/src/Table/HeadExpandRowsIcon.d.ts +1 -0
- package/types/src/Table/HeadInner.d.ts +3 -3
- package/types/src/Table/Table.d.ts +7 -3
- package/types/src/Table/Toggle.d.ts +1 -0
- package/types/src/Text/IconOutlinedHide.d.ts +1 -0
- package/types/src/Text/IconOutlinedView.d.ts +1 -0
- package/types/src/Text/Text.d.ts +28 -12
- package/types/src/Tooltip/InfoIcon.d.ts +1 -0
- package/types/src/Tooltip/Tooltip.d.ts +3 -3
- package/types/src/icons/Alert.d.ts +1 -0
- package/types/src/icons/AlertFilled.d.ts +1 -0
- package/types/src/icons/CaretDown.d.ts +1 -0
- package/types/src/icons/CaretRight.d.ts +1 -0
- package/types/src/icons/Check.d.ts +1 -0
- package/types/src/icons/ChevronDown.d.ts +1 -0
- package/types/src/icons/ChevronLeft.d.ts +1 -0
- package/types/src/icons/ChevronRight.d.ts +1 -0
- package/types/src/icons/CrossMark.d.ts +1 -0
- package/types/src/icons/External.d.ts +1 -0
- package/types/src/icons/InfoFilled.d.ts +1 -0
- package/types/src/icons/More.d.ts +1 -0
- package/types/src/icons/MoreVertical.d.ts +1 -0
- package/types/src/icons/Plus.d.ts +1 -0
- package/types/src/icons/SVG.d.ts +1 -0
- package/types/src/icons/Search.d.ts +1 -0
- package/types/src/icons/SortedDown.d.ts +1 -0
- package/types/src/icons/SortedUp.d.ts +1 -0
- package/types/src/icons/Success.d.ts +1 -0
- package/types/src/icons/SuccessFilled.d.ts +1 -0
- package/types/src/icons/WarningFilled.d.ts +1 -0
- package/types/src/utils/types.d.ts +1 -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 = 104);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ([
|
|
@@ -319,35 +319,37 @@ module.exports = require("react-event-listener");
|
|
|
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
|
-
/* 18
|
|
331
|
+
/* 18 */,
|
|
332
|
+
/* 19 */
|
|
332
333
|
/***/ (function(module, exports) {
|
|
333
334
|
|
|
334
|
-
module.exports = require("@splunk/react-ui/
|
|
335
|
+
module.exports = require("@splunk/react-ui/Dropdown");
|
|
335
336
|
|
|
336
337
|
/***/ }),
|
|
337
|
-
/* 19 */,
|
|
338
338
|
/* 20 */,
|
|
339
339
|
/* 21 */,
|
|
340
340
|
/* 22 */,
|
|
341
341
|
/* 23 */,
|
|
342
342
|
/* 24 */,
|
|
343
|
-
/* 25
|
|
343
|
+
/* 25 */,
|
|
344
|
+
/* 26 */,
|
|
345
|
+
/* 27 */
|
|
344
346
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
345
347
|
|
|
346
348
|
"use strict";
|
|
347
349
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronRight; });
|
|
348
350
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
349
351
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
350
|
-
/* 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__(31);
|
|
351
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__);
|
|
352
354
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
353
355
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -389,37 +391,32 @@ function ChevronRight(props) {
|
|
|
389
391
|
}
|
|
390
392
|
|
|
391
393
|
/***/ }),
|
|
392
|
-
/*
|
|
393
|
-
/*
|
|
394
|
-
/*
|
|
394
|
+
/* 28 */,
|
|
395
|
+
/* 29 */,
|
|
396
|
+
/* 30 */,
|
|
397
|
+
/* 31 */
|
|
395
398
|
/***/ (function(module, exports) {
|
|
396
399
|
|
|
397
400
|
module.exports = require("@splunk/react-icons/ChevronRight");
|
|
398
401
|
|
|
399
402
|
/***/ }),
|
|
400
|
-
/* 29 */,
|
|
401
|
-
/* 30 */,
|
|
402
|
-
/* 31 */,
|
|
403
403
|
/* 32 */,
|
|
404
|
-
/* 33
|
|
404
|
+
/* 33 */,
|
|
405
|
+
/* 34 */,
|
|
406
|
+
/* 35 */
|
|
405
407
|
/***/ (function(module, exports) {
|
|
406
408
|
|
|
407
409
|
module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
408
410
|
|
|
409
411
|
/***/ }),
|
|
410
|
-
/*
|
|
411
|
-
/* 35 */,
|
|
412
|
-
/* 36 */,
|
|
413
|
-
/* 37 */,
|
|
414
|
-
/* 38 */,
|
|
415
|
-
/* 39 */
|
|
412
|
+
/* 36 */
|
|
416
413
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
417
414
|
|
|
418
415
|
"use strict";
|
|
419
416
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CaretDown; });
|
|
420
417
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
421
418
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
422
|
-
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
419
|
+
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37);
|
|
423
420
|
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__);
|
|
424
421
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
425
422
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -449,23 +446,28 @@ function CaretDown(props) {
|
|
|
449
446
|
}
|
|
450
447
|
|
|
451
448
|
/***/ }),
|
|
452
|
-
/*
|
|
449
|
+
/* 37 */
|
|
453
450
|
/***/ (function(module, exports) {
|
|
454
451
|
|
|
455
452
|
module.exports = require("@splunk/react-icons/Caret");
|
|
456
453
|
|
|
457
454
|
/***/ }),
|
|
455
|
+
/* 38 */,
|
|
456
|
+
/* 39 */,
|
|
457
|
+
/* 40 */,
|
|
458
458
|
/* 41 */,
|
|
459
459
|
/* 42 */,
|
|
460
|
-
/* 43
|
|
460
|
+
/* 43 */,
|
|
461
|
+
/* 44 */,
|
|
462
|
+
/* 45 */
|
|
461
463
|
/***/ (function(module, exports) {
|
|
462
464
|
|
|
463
465
|
module.exports = require("@splunk/react-ui/Tooltip");
|
|
464
466
|
|
|
465
467
|
/***/ }),
|
|
466
|
-
/*
|
|
467
|
-
/*
|
|
468
|
-
/*
|
|
468
|
+
/* 46 */,
|
|
469
|
+
/* 47 */,
|
|
470
|
+
/* 48 */
|
|
469
471
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
470
472
|
|
|
471
473
|
"use strict";
|
|
@@ -488,19 +490,19 @@ function assertDefined(val, msg) {
|
|
|
488
490
|
|
|
489
491
|
|
|
490
492
|
/***/ }),
|
|
491
|
-
/* 47 */,
|
|
492
|
-
/* 48 */,
|
|
493
493
|
/* 49 */,
|
|
494
494
|
/* 50 */,
|
|
495
495
|
/* 51 */,
|
|
496
|
-
/* 52
|
|
496
|
+
/* 52 */,
|
|
497
|
+
/* 53 */,
|
|
498
|
+
/* 54 */
|
|
497
499
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
498
500
|
|
|
499
501
|
"use strict";
|
|
500
502
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MoreVertical; });
|
|
501
503
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
502
504
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
503
|
-
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
505
|
+
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55);
|
|
504
506
|
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__);
|
|
505
507
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
506
508
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -530,20 +532,20 @@ function MoreVertical(props) {
|
|
|
530
532
|
}
|
|
531
533
|
|
|
532
534
|
/***/ }),
|
|
533
|
-
/*
|
|
535
|
+
/* 55 */
|
|
534
536
|
/***/ (function(module, exports) {
|
|
535
537
|
|
|
536
538
|
module.exports = require("@splunk/react-icons/MoreVertical");
|
|
537
539
|
|
|
538
540
|
/***/ }),
|
|
539
|
-
/*
|
|
541
|
+
/* 56 */
|
|
540
542
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
541
543
|
|
|
542
544
|
"use strict";
|
|
543
545
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronDown; });
|
|
544
546
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
545
547
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
546
|
-
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
548
|
+
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57);
|
|
547
549
|
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__);
|
|
548
550
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
549
551
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -585,24 +587,22 @@ function ChevronDown(props) {
|
|
|
585
587
|
}
|
|
586
588
|
|
|
587
589
|
/***/ }),
|
|
588
|
-
/*
|
|
590
|
+
/* 57 */
|
|
589
591
|
/***/ (function(module, exports) {
|
|
590
592
|
|
|
591
593
|
module.exports = require("@splunk/react-icons/ChevronDown");
|
|
592
594
|
|
|
593
595
|
/***/ }),
|
|
594
|
-
/* 56 */,
|
|
595
|
-
/* 57 */,
|
|
596
596
|
/* 58 */,
|
|
597
597
|
/* 59 */,
|
|
598
|
-
/* 60
|
|
598
|
+
/* 60 */,
|
|
599
|
+
/* 61 */,
|
|
600
|
+
/* 62 */
|
|
599
601
|
/***/ (function(module, exports) {
|
|
600
602
|
|
|
601
603
|
module.exports = require("@splunk/react-ui/Switch");
|
|
602
604
|
|
|
603
605
|
/***/ }),
|
|
604
|
-
/* 61 */,
|
|
605
|
-
/* 62 */,
|
|
606
606
|
/* 63 */,
|
|
607
607
|
/* 64 */,
|
|
608
608
|
/* 65 */,
|
|
@@ -633,41 +633,43 @@ module.exports = require("@splunk/react-ui/Switch");
|
|
|
633
633
|
/* 90 */,
|
|
634
634
|
/* 91 */,
|
|
635
635
|
/* 92 */,
|
|
636
|
-
/* 93
|
|
636
|
+
/* 93 */,
|
|
637
|
+
/* 94 */,
|
|
638
|
+
/* 95 */
|
|
637
639
|
/***/ (function(module, exports) {
|
|
638
640
|
|
|
639
641
|
module.exports = require("react-resize-detector");
|
|
640
642
|
|
|
641
643
|
/***/ }),
|
|
642
|
-
/*
|
|
644
|
+
/* 96 */
|
|
643
645
|
/***/ (function(module, exports) {
|
|
644
646
|
|
|
645
647
|
module.exports = require("@splunk/react-icons/Sort");
|
|
646
648
|
|
|
647
649
|
/***/ }),
|
|
648
|
-
/*
|
|
650
|
+
/* 97 */
|
|
649
651
|
/***/ (function(module, exports) {
|
|
650
652
|
|
|
651
653
|
module.exports = require("@splunk/react-icons/SortedDown");
|
|
652
654
|
|
|
653
655
|
/***/ }),
|
|
654
|
-
/*
|
|
656
|
+
/* 98 */
|
|
655
657
|
/***/ (function(module, exports) {
|
|
656
658
|
|
|
657
659
|
module.exports = require("@splunk/react-icons/SortedUp");
|
|
658
660
|
|
|
659
661
|
/***/ }),
|
|
660
|
-
/*
|
|
662
|
+
/* 99 */
|
|
661
663
|
/***/ (function(module, exports) {
|
|
662
664
|
|
|
663
665
|
module.exports = require("@splunk/react-icons/Info");
|
|
664
666
|
|
|
665
667
|
/***/ }),
|
|
666
|
-
/* 98 */,
|
|
667
|
-
/* 99 */,
|
|
668
668
|
/* 100 */,
|
|
669
669
|
/* 101 */,
|
|
670
|
-
/* 102
|
|
670
|
+
/* 102 */,
|
|
671
|
+
/* 103 */,
|
|
672
|
+
/* 104 */
|
|
671
673
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
672
674
|
|
|
673
675
|
"use strict";
|
|
@@ -700,14 +702,14 @@ var external_react_event_listener_ = __webpack_require__(15);
|
|
|
700
702
|
var external_react_event_listener_default = /*#__PURE__*/__webpack_require__.n(external_react_event_listener_);
|
|
701
703
|
|
|
702
704
|
// EXTERNAL MODULE: external "react-resize-detector"
|
|
703
|
-
var external_react_resize_detector_ = __webpack_require__(
|
|
705
|
+
var external_react_resize_detector_ = __webpack_require__(95);
|
|
704
706
|
var external_react_resize_detector_default = /*#__PURE__*/__webpack_require__.n(external_react_resize_detector_);
|
|
705
707
|
|
|
706
708
|
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
707
709
|
var keyboard_ = __webpack_require__(9);
|
|
708
710
|
|
|
709
711
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
710
|
-
var ScrollContainerContext_ = __webpack_require__(
|
|
712
|
+
var ScrollContainerContext_ = __webpack_require__(35);
|
|
711
713
|
|
|
712
714
|
// EXTERNAL MODULE: external "styled-components"
|
|
713
715
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -1111,7 +1113,10 @@ var StyledTableContainer = external_styled_components_default.a.div.withConfig({
|
|
|
1111
1113
|
var StyledTable = external_styled_components_default.a.table.withConfig({
|
|
1112
1114
|
displayName: "TableStyles__StyledTable",
|
|
1113
1115
|
componentId: "sc-1cmfss7-2"
|
|
1114
|
-
})(["", ";position:relative;border-collapse:collapse;border-spacing:0;min-width:100%;&[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'))
|
|
1116
|
+
})(["", ";position:relative;border-collapse:collapse;border-spacing:0;min-width:100%;&[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) {
|
|
1117
|
+
var $resizableFillLayout = _ref.$resizableFillLayout;
|
|
1118
|
+
return $resizableFillLayout && Object(external_styled_components_["css"])(["width:100%;min-width:100%;table-layout:fixed;"]);
|
|
1119
|
+
});
|
|
1115
1120
|
var StyledDockedScrollbar = external_styled_components_default.a.div.withConfig({
|
|
1116
1121
|
displayName: "TableStyles__StyledDockedScrollbar",
|
|
1117
1122
|
componentId: "sc-1cmfss7-3"
|
|
@@ -1126,8 +1131,8 @@ var StyledTableCaption = external_styled_components_default.a.caption.withConfig
|
|
|
1126
1131
|
})(["padding:", ";font-size:", ";caption-side:", ";"], Object(themes_["pick"])({
|
|
1127
1132
|
enterprise: "".concat(themes_["variables"].spacingQuarter, " 0"),
|
|
1128
1133
|
prisma: "5px 0"
|
|
1129
|
-
}), themes_["variables"].fontSizeLarge, function (
|
|
1130
|
-
var side =
|
|
1134
|
+
}), themes_["variables"].fontSizeLarge, function (_ref2) {
|
|
1135
|
+
var side = _ref2.side;
|
|
1131
1136
|
return side;
|
|
1132
1137
|
});
|
|
1133
1138
|
|
|
@@ -1392,11 +1397,11 @@ Cell_defineProperty(Cell_Cell, "defaultProps", Cell_defaultProps);
|
|
|
1392
1397
|
var i18n_ = __webpack_require__(5);
|
|
1393
1398
|
|
|
1394
1399
|
// EXTERNAL MODULE: external "@splunk/react-icons/Sort"
|
|
1395
|
-
var Sort_ = __webpack_require__(
|
|
1400
|
+
var Sort_ = __webpack_require__(96);
|
|
1396
1401
|
var Sort_default = /*#__PURE__*/__webpack_require__.n(Sort_);
|
|
1397
1402
|
|
|
1398
1403
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedDown"
|
|
1399
|
-
var SortedDown_ = __webpack_require__(
|
|
1404
|
+
var SortedDown_ = __webpack_require__(97);
|
|
1400
1405
|
var SortedDown_default = /*#__PURE__*/__webpack_require__.n(SortedDown_);
|
|
1401
1406
|
|
|
1402
1407
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -1443,7 +1448,7 @@ function SortedDown(props) {
|
|
|
1443
1448
|
}, props));
|
|
1444
1449
|
}
|
|
1445
1450
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedUp"
|
|
1446
|
-
var SortedUp_ = __webpack_require__(
|
|
1451
|
+
var SortedUp_ = __webpack_require__(98);
|
|
1447
1452
|
var SortedUp_default = /*#__PURE__*/__webpack_require__.n(SortedUp_);
|
|
1448
1453
|
|
|
1449
1454
|
// CONCATENATED MODULE: ./src/icons/SortedUp.tsx
|
|
@@ -1484,7 +1489,7 @@ function SortedUp(props) {
|
|
|
1484
1489
|
}, props));
|
|
1485
1490
|
}
|
|
1486
1491
|
// EXTERNAL MODULE: ./src/icons/CaretDown.tsx
|
|
1487
|
-
var CaretDown = __webpack_require__(
|
|
1492
|
+
var CaretDown = __webpack_require__(36);
|
|
1488
1493
|
|
|
1489
1494
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
1490
1495
|
var ScreenReaderContent_ = __webpack_require__(14);
|
|
@@ -1684,8 +1689,8 @@ var HeadCellStyles_Styled = external_styled_components_default.a.th.withConfig({
|
|
|
1684
1689
|
HeadInnerStyles_Styled, Object(themes_["pick"])({
|
|
1685
1690
|
enterprise: Object(external_styled_components_["css"])(["padding-top:7px;"]),
|
|
1686
1691
|
prisma: {
|
|
1687
|
-
comfortable: Object(external_styled_components_["css"])(["padding
|
|
1688
|
-
compact: Object(external_styled_components_["css"])(["padding
|
|
1692
|
+
comfortable: Object(external_styled_components_["css"])(["padding:16px 12px;"]),
|
|
1693
|
+
compact: Object(external_styled_components_["css"])(["padding:6px 12px;"])
|
|
1689
1694
|
}
|
|
1690
1695
|
})),
|
|
1691
1696
|
toggleAll: Object(external_styled_components_["css"])(["& > ", "{padding-top:", ";}"],
|
|
@@ -1760,8 +1765,8 @@ var StyledDrag = external_styled_components_default.a.div.withConfig({
|
|
|
1760
1765
|
return $draggable && Object(external_styled_components_["css"])(["padding:", ";-webkit-user-drag:element;user-select:none;"], Object(themes_["pick"])({
|
|
1761
1766
|
enterprise: '9px 0',
|
|
1762
1767
|
prisma: {
|
|
1763
|
-
comfortable: '16px
|
|
1764
|
-
compact: '9px
|
|
1768
|
+
comfortable: '16px 17px 15px',
|
|
1769
|
+
compact: '9px 17px 6px'
|
|
1765
1770
|
}
|
|
1766
1771
|
}));
|
|
1767
1772
|
}, Object(themes_["pick"])({
|
|
@@ -1868,14 +1873,14 @@ var HeadInner_propTypes = {
|
|
|
1868
1873
|
resizable: external_prop_types_default.a.bool,
|
|
1869
1874
|
sortDir: external_prop_types_default.a.string,
|
|
1870
1875
|
truncate: external_prop_types_default.a.bool,
|
|
1871
|
-
width: external_prop_types_default.a.number
|
|
1876
|
+
width: external_prop_types_default.a.oneOfType([external_prop_types_default.a.number, external_prop_types_default.a.oneOf(['auto'])])
|
|
1872
1877
|
};
|
|
1873
1878
|
|
|
1874
1879
|
function HeadInner(_ref) {
|
|
1875
1880
|
var index = _ref.index,
|
|
1876
1881
|
columnId = _ref.columnId,
|
|
1877
1882
|
id = _ref.id,
|
|
1878
|
-
|
|
1883
|
+
widthProp = _ref.width,
|
|
1879
1884
|
onDragEnd = _ref.onDragEnd,
|
|
1880
1885
|
onAutosizeColumn = _ref.onAutosizeColumn,
|
|
1881
1886
|
_ref$align = _ref.align,
|
|
@@ -1934,15 +1939,44 @@ function HeadInner(_ref) {
|
|
|
1934
1939
|
family = _useSplunkTheme.family;
|
|
1935
1940
|
|
|
1936
1941
|
var isPrisma = family === 'prisma';
|
|
1942
|
+
var width;
|
|
1943
|
+
|
|
1944
|
+
if (widthProp === 'auto') {
|
|
1945
|
+
var _el$parentElement;
|
|
1946
|
+
|
|
1947
|
+
var el = ref.current;
|
|
1948
|
+
var rect = el === null || el === void 0 ? void 0 : (_el$parentElement = el.parentElement) === null || _el$parentElement === void 0 ? void 0 : _el$parentElement.getBoundingClientRect();
|
|
1949
|
+
width = rect === null || rect === void 0 ? void 0 : rect.width;
|
|
1950
|
+
} else {
|
|
1951
|
+
width = widthProp;
|
|
1952
|
+
}
|
|
1937
1953
|
|
|
1938
1954
|
var handleResizeKeyDown = function handleResizeKeyDown(e) {
|
|
1939
1955
|
var key = Object(keyboard_["keycode"])(e.nativeEvent);
|
|
1940
1956
|
|
|
1941
|
-
if (onRequestResize === undefined ||
|
|
1957
|
+
if (onRequestResize === undefined || index === undefined) {
|
|
1958
|
+
return;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
if (widthProp === 'auto') {
|
|
1962
|
+
var _el$parentElement2;
|
|
1963
|
+
|
|
1964
|
+
var _el = ref.current;
|
|
1965
|
+
|
|
1966
|
+
var _rect = _el === null || _el === void 0 ? void 0 : (_el$parentElement2 = _el.parentElement) === null || _el$parentElement2 === void 0 ? void 0 : _el$parentElement2.getBoundingClientRect();
|
|
1967
|
+
|
|
1968
|
+
width = _rect === null || _rect === void 0 ? void 0 : _rect.width;
|
|
1969
|
+
} else {
|
|
1970
|
+
width = widthProp;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
if (width === undefined) {
|
|
1942
1974
|
return;
|
|
1943
1975
|
}
|
|
1944
1976
|
|
|
1945
1977
|
if (key === 'left') {
|
|
1978
|
+
e.preventDefault(); // prevent text selection
|
|
1979
|
+
|
|
1946
1980
|
var newWidth = Math.max(width - 10, 20);
|
|
1947
1981
|
onRequestResize(e, {
|
|
1948
1982
|
index: index,
|
|
@@ -1953,6 +1987,8 @@ function HeadInner(_ref) {
|
|
|
1953
1987
|
}
|
|
1954
1988
|
|
|
1955
1989
|
if (key === 'right') {
|
|
1990
|
+
e.preventDefault(); // prevent text selection
|
|
1991
|
+
|
|
1956
1992
|
var _newWidth = width + 10;
|
|
1957
1993
|
|
|
1958
1994
|
onRequestResize(e, {
|
|
@@ -1965,6 +2001,22 @@ function HeadInner(_ref) {
|
|
|
1965
2001
|
};
|
|
1966
2002
|
|
|
1967
2003
|
var handleStartResize = function handleStartResize(e) {
|
|
2004
|
+
if (widthProp === 'auto') {
|
|
2005
|
+
var _el2$parentElement;
|
|
2006
|
+
|
|
2007
|
+
var _el2 = ref.current;
|
|
2008
|
+
|
|
2009
|
+
var _rect2 = _el2 === null || _el2 === void 0 ? void 0 : (_el2$parentElement = _el2.parentElement) === null || _el2$parentElement === void 0 ? void 0 : _el2$parentElement.getBoundingClientRect();
|
|
2010
|
+
|
|
2011
|
+
width = _rect2 === null || _rect2 === void 0 ? void 0 : _rect2.width;
|
|
2012
|
+
} else {
|
|
2013
|
+
width = widthProp;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
if (width === undefined) {
|
|
2017
|
+
return;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
1968
2020
|
e.preventDefault(); // prevent text selection
|
|
1969
2021
|
|
|
1970
2022
|
setStartClientX(e.clientX);
|
|
@@ -1996,13 +2048,14 @@ function HeadInner(_ref) {
|
|
|
1996
2048
|
var el = ref.current;
|
|
1997
2049
|
|
|
1998
2050
|
if (e.dataTransfer.setDragImage && (el === null || el === void 0 ? void 0 : el.parentElement)) {
|
|
1999
|
-
var
|
|
2051
|
+
var _rect3 = el.parentElement.getBoundingClientRect();
|
|
2052
|
+
|
|
2000
2053
|
var clone = el.cloneNode(true);
|
|
2001
|
-
clone.style.width = "".concat(
|
|
2002
|
-
clone.style.height = "".concat(
|
|
2054
|
+
clone.style.width = "".concat(_rect3.width, "px");
|
|
2055
|
+
clone.style.height = "".concat(_rect3.height, "px");
|
|
2003
2056
|
clone.setAttribute('data-helper', 'true');
|
|
2004
2057
|
document.body.appendChild(clone);
|
|
2005
|
-
e.dataTransfer.setDragImage(clone, e.clientX -
|
|
2058
|
+
e.dataTransfer.setDragImage(clone, e.clientX - _rect3.left, e.clientY - _rect3.top);
|
|
2006
2059
|
setIsDragging(true);
|
|
2007
2060
|
setCloneEl(clone);
|
|
2008
2061
|
}
|
|
@@ -2172,7 +2225,7 @@ var HeadCell_propTypes = {
|
|
|
2172
2225
|
* @private
|
|
2173
2226
|
*/
|
|
2174
2227
|
visible: external_prop_types_default.a.bool,
|
|
2175
|
-
width: external_prop_types_default.a.number,
|
|
2228
|
+
width: external_prop_types_default.a.oneOfType([external_prop_types_default.a.number, external_prop_types_default.a.oneOf(['auto'])]),
|
|
2176
2229
|
|
|
2177
2230
|
/** @private. */
|
|
2178
2231
|
variant: external_prop_types_default.a.oneOf(['toggleAll', 'info', 'actions'])
|
|
@@ -2365,11 +2418,11 @@ HeadCell_defineProperty(HeadCell_HeadCell, "defaultProps", HeadCell_defaultProps
|
|
|
2365
2418
|
|
|
2366
2419
|
/* harmony default export */ var Table_HeadCell = (HeadCell_HeadCell);
|
|
2367
2420
|
// EXTERNAL MODULE: external "@splunk/react-icons/Info"
|
|
2368
|
-
var Info_ = __webpack_require__(
|
|
2421
|
+
var Info_ = __webpack_require__(99);
|
|
2369
2422
|
var Info_default = /*#__PURE__*/__webpack_require__.n(Info_);
|
|
2370
2423
|
|
|
2371
2424
|
// EXTERNAL MODULE: ./src/icons/ChevronRight.tsx
|
|
2372
|
-
var ChevronRight = __webpack_require__(
|
|
2425
|
+
var ChevronRight = __webpack_require__(27);
|
|
2373
2426
|
|
|
2374
2427
|
// CONCATENATED MODULE: ./src/Table/HeadExpandRowsIcon.tsx
|
|
2375
2428
|
|
|
@@ -2393,22 +2446,22 @@ function HeadExpandRowsIcon() {
|
|
|
2393
2446
|
});
|
|
2394
2447
|
}
|
|
2395
2448
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
2396
|
-
var Button_ = __webpack_require__(
|
|
2449
|
+
var Button_ = __webpack_require__(16);
|
|
2397
2450
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
2398
2451
|
|
|
2399
2452
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
2400
|
-
var Dropdown_ = __webpack_require__(
|
|
2453
|
+
var Dropdown_ = __webpack_require__(19);
|
|
2401
2454
|
var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
|
|
2402
2455
|
|
|
2403
2456
|
// EXTERNAL MODULE: external "@splunk/react-ui/Tooltip"
|
|
2404
|
-
var Tooltip_ = __webpack_require__(
|
|
2457
|
+
var Tooltip_ = __webpack_require__(45);
|
|
2405
2458
|
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_);
|
|
2406
2459
|
|
|
2407
2460
|
// EXTERNAL MODULE: ./src/icons/ChevronDown.tsx
|
|
2408
|
-
var ChevronDown = __webpack_require__(
|
|
2461
|
+
var ChevronDown = __webpack_require__(56);
|
|
2409
2462
|
|
|
2410
2463
|
// EXTERNAL MODULE: ./src/icons/MoreVertical.tsx
|
|
2411
|
-
var MoreVertical = __webpack_require__(
|
|
2464
|
+
var MoreVertical = __webpack_require__(54);
|
|
2412
2465
|
|
|
2413
2466
|
// CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
|
|
2414
2467
|
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); }
|
|
@@ -2690,7 +2743,7 @@ var StyledCellExpansionDisabled = external_styled_components_default()(Table_Cel
|
|
|
2690
2743
|
}));
|
|
2691
2744
|
|
|
2692
2745
|
// EXTERNAL MODULE: external "@splunk/react-ui/Switch"
|
|
2693
|
-
var Switch_ = __webpack_require__(
|
|
2746
|
+
var Switch_ = __webpack_require__(62);
|
|
2694
2747
|
var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch_);
|
|
2695
2748
|
|
|
2696
2749
|
// CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
|
|
@@ -3320,10 +3373,11 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3320
3373
|
var _this$el$firstElement, _this$el, _this$el$firstElement2;
|
|
3321
3374
|
|
|
3322
3375
|
var headRowCells = Array.from((_this$el$firstElement = (_this$el = this.el) === null || _this$el === void 0 ? void 0 : (_this$el$firstElement2 = _this$el.firstElementChild) === null || _this$el$firstElement2 === void 0 ? void 0 : _this$el$firstElement2.children) !== null && _this$el$firstElement !== void 0 ? _this$el$firstElement : []);
|
|
3323
|
-
|
|
3376
|
+
var result = headRowCells.map(function (el) {
|
|
3324
3377
|
var computedStyle = window.getComputedStyle(el);
|
|
3325
3378
|
return el.clientWidth - parseFloat(computedStyle.getPropertyValue('padding-right')) - parseFloat(computedStyle.getPropertyValue('padding-left'));
|
|
3326
3379
|
});
|
|
3380
|
+
return result;
|
|
3327
3381
|
}
|
|
3328
3382
|
}, {
|
|
3329
3383
|
key: "getClientHeight",
|
|
@@ -3492,7 +3546,7 @@ Head_defineProperty(Head_Head, "defaultProps", Head_defaultProps);
|
|
|
3492
3546
|
var id_ = __webpack_require__(10);
|
|
3493
3547
|
|
|
3494
3548
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
3495
|
-
var Popover_ = __webpack_require__(
|
|
3549
|
+
var Popover_ = __webpack_require__(17);
|
|
3496
3550
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
3497
3551
|
|
|
3498
3552
|
// CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
|
|
@@ -3543,7 +3597,7 @@ function HeadDropdownCell_defineProperty(obj, key, value) { if (key in obj) { Ob
|
|
|
3543
3597
|
|
|
3544
3598
|
|
|
3545
3599
|
|
|
3546
|
-
var possibleCloseReasons = ['clickAway', 'contentClick', 'escapeKey', 'offScreen', 'toggleClick'];
|
|
3600
|
+
var possibleCloseReasons = ['clickAway', 'contentClick', 'escapeKey', 'offScreen', 'tabKey', 'toggleClick'];
|
|
3547
3601
|
var HeadDropdownCell_propTypes = {
|
|
3548
3602
|
align: external_prop_types_default.a.oneOf(['left', 'center', 'right']),
|
|
3549
3603
|
canCoverHead: external_prop_types_default.a.bool,
|
|
@@ -4103,11 +4157,11 @@ var HeadTable_HeadTable = /*#__PURE__*/function (_Component) {
|
|
|
4103
4157
|
ref: elementRef
|
|
4104
4158
|
}, /*#__PURE__*/external_react_default.a.createElement(HeadTableStyles_Styled, HeadTable_extends({
|
|
4105
4159
|
"data-test": "".concat(headType, "-head-table"),
|
|
4160
|
+
"data-fixed-column": isFixedColumn ? 'true' : undefined,
|
|
4106
4161
|
style: Object(external_lodash_["extend"])({}, tableStyle, {
|
|
4107
4162
|
marginLeft: horizontalOffset,
|
|
4108
4163
|
width: isFixedColumn ? undefined : tableWidth
|
|
4109
|
-
})
|
|
4110
|
-
"data-fixed-column": isFixedColumn ? 'true' : undefined
|
|
4164
|
+
})
|
|
4111
4165
|
}, Object(external_lodash_["omit"])(otherProps, 'dragIndex')), clonedTHead));
|
|
4112
4166
|
}
|
|
4113
4167
|
}]);
|
|
@@ -4121,7 +4175,7 @@ HeadTable_defineProperty(HeadTable_HeadTable, "defaultProps", HeadTable_defaultP
|
|
|
4121
4175
|
|
|
4122
4176
|
/* harmony default export */ var Table_HeadTable = (HeadTable_HeadTable);
|
|
4123
4177
|
// EXTERNAL MODULE: ./src/utils/types.ts
|
|
4124
|
-
var types = __webpack_require__(
|
|
4178
|
+
var types = __webpack_require__(48);
|
|
4125
4179
|
|
|
4126
4180
|
// CONCATENATED MODULE: ./src/Table/Table.tsx
|
|
4127
4181
|
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); }
|
|
@@ -4208,7 +4262,8 @@ var Table_defaultProps = {
|
|
|
4208
4262
|
dockOffset: 0,
|
|
4209
4263
|
headType: 'inline',
|
|
4210
4264
|
rowExpansion: 'none',
|
|
4211
|
-
rowSelection: 'none'
|
|
4265
|
+
rowSelection: 'none',
|
|
4266
|
+
resizableFillLayout: false
|
|
4212
4267
|
};
|
|
4213
4268
|
|
|
4214
4269
|
var Table_Table = /*#__PURE__*/function (_Component) {
|
|
@@ -4663,6 +4718,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4663
4718
|
var showDockedHeader = this.showDockedHeader();
|
|
4664
4719
|
|
|
4665
4720
|
if ((this.showFixed() || showDockedHeader) && this.props.headType !== 'inline') {
|
|
4721
|
+
// FIXME: handle inline
|
|
4666
4722
|
if (showDockedHeader) {
|
|
4667
4723
|
// Save the current head focus state so that it can be applied to the docked version
|
|
4668
4724
|
// after the `HeadTable` mounts.
|
|
@@ -4750,6 +4806,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4750
4806
|
onRequestResizeColumn = _this$props4.onRequestResizeColumn,
|
|
4751
4807
|
onRequestToggleAllRows = _this$props4.onRequestToggleAllRows,
|
|
4752
4808
|
outerStyle = _this$props4.outerStyle,
|
|
4809
|
+
resizableFillLayout = _this$props4.resizableFillLayout,
|
|
4753
4810
|
rowSelection = _this$props4.rowSelection,
|
|
4754
4811
|
tableStyle = _this$props4.tableStyle;
|
|
4755
4812
|
var tHead;
|
|
@@ -4794,6 +4851,11 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4794
4851
|
tHead = /*#__PURE__*/Object(external_react_["cloneElement"])(tHead, {}, headCells);
|
|
4795
4852
|
var defaultScrollContainer = this.context || 'window';
|
|
4796
4853
|
var scrollContainer = this.isFixed() ? this.tableContainer : defaultScrollContainer;
|
|
4854
|
+
|
|
4855
|
+
if (resizableFillLayout) {
|
|
4856
|
+
isFixedColumn = false;
|
|
4857
|
+
}
|
|
4858
|
+
|
|
4797
4859
|
return /*#__PURE__*/external_react_default.a.createElement(TableStyles_Styled, Table_extends({
|
|
4798
4860
|
"data-test": "table",
|
|
4799
4861
|
ref: elementRef,
|
|
@@ -4819,7 +4881,8 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4819
4881
|
},
|
|
4820
4882
|
"data-test": "main-table",
|
|
4821
4883
|
style: tableStyle,
|
|
4822
|
-
"data-fixed-column": isFixedColumn ? 'true' : undefined
|
|
4884
|
+
"data-fixed-column": isFixedColumn ? 'true' : undefined,
|
|
4885
|
+
$resizableFillLayout: resizableFillLayout
|
|
4823
4886
|
}, tCaption, tHead, tBody))), this.renderDockedScrollbar());
|
|
4824
4887
|
}
|
|
4825
4888
|
}]);
|