@splunk/react-ui 4.11.0 → 4.12.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 +2 -2
- package/Anchor.js +2 -2
- package/Animation.js +4 -4
- package/Box.js +2 -2
- package/Button.js +23 -23
- package/ButtonGroup.js +2 -2
- package/CHANGELOG.md +35 -0
- package/Calendar.js +20 -20
- package/Card.js +17 -17
- package/CardLayout.js +2 -2
- package/Chip.js +17 -17
- package/Clickable.js +7 -7
- package/CloseButton.js +15 -15
- package/Code.js +4 -4
- package/CollapsiblePanel.js +4 -4
- package/Color.js +17 -17
- package/ColumnLayout.js +7 -7
- package/ComboBox.js +12 -11
- package/Concertina.js +11 -11
- package/ControlGroup.js +4 -4
- package/Date.js +8 -8
- package/DefinitionList.js +2 -2
- package/Dropdown.js +4 -4
- package/EventListener.js +4 -4
- package/File.js +25 -25
- package/FormRows.js +10 -10
- package/Heading.js +3 -3
- package/Image.js +19 -19
- package/Layer.js +8 -8
- package/Link.js +9 -9
- package/List.js +2 -2
- package/Markdown.js +22 -22
- package/Menu.js +34 -34
- package/Message.js +35 -35
- package/MessageBar.js +32 -32
- package/Modal.js +8 -8
- package/ModalLayer.js +6 -6
- package/Monogram.js +2 -2
- package/Multiselect.js +96 -92
- package/Number.js +4 -4
- package/Paginator.js +20 -20
- package/Paragraph.js +2 -2
- package/Popover.js +8 -8
- package/Progress.js +8 -8
- package/RadioBar.js +4 -4
- package/RadioList.js +2 -2
- package/Resize.js +2 -2
- package/ResultsMenu.js +60 -39
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +17 -16
- package/Select.js +89 -87
- package/SidePanel.js +4 -4
- package/Slider.js +8 -8
- package/SlidingPanels.js +4 -4
- package/StaticContent.js +2 -2
- package/StepBar.js +8 -8
- package/Switch.js +6 -6
- package/TabBar.js +6 -6
- package/TabLayout.js +4 -4
- package/Table.js +115 -83
- package/Text.js +132 -263
- package/TextArea.js +1447 -0
- package/Tooltip.js +4 -4
- package/TransitionOpen.js +10 -9
- package/Typography.js +225 -0
- package/WaitSpinner.js +4 -4
- package/cypress.json +1 -0
- package/package.json +14 -3
- package/test-runner-jest.config.js +38 -0
- package/types/src/ComboBox/ComboBox.d.ts +13 -4
- 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/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/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 +21 -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/TransitionOpen/TransitionOpen.d.ts +1 -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/usePrevious.js +2 -2
- package/types/src/Text/docs/examples/prisma/Multiline.d.ts +0 -10
- package/types/src/Text/docs/examples/prisma/Search.d.ts +0 -10
package/TabLayout.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 = 144);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 144:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -134,7 +134,7 @@ var external_lodash_ = __webpack_require__(4);
|
|
|
134
134
|
var id_ = __webpack_require__(10);
|
|
135
135
|
|
|
136
136
|
// EXTERNAL MODULE: external "@splunk/react-ui/TabBar"
|
|
137
|
-
var TabBar_ = __webpack_require__(
|
|
137
|
+
var TabBar_ = __webpack_require__(82);
|
|
138
138
|
var TabBar_default = /*#__PURE__*/__webpack_require__.n(TabBar_);
|
|
139
139
|
|
|
140
140
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -405,7 +405,7 @@ module.exports = require("lodash");
|
|
|
405
405
|
|
|
406
406
|
/***/ }),
|
|
407
407
|
|
|
408
|
-
/***/
|
|
408
|
+
/***/ 82:
|
|
409
409
|
/***/ (function(module, exports) {
|
|
410
410
|
|
|
411
411
|
module.exports = require("@splunk/react-ui/TabBar");
|
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
|
/******/ ([
|
|
@@ -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__(33);
|
|
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 */,
|
|
399
|
+
/* 33 */
|
|
398
400
|
/***/ (function(module, exports) {
|
|
399
401
|
|
|
400
402
|
module.exports = require("@splunk/react-icons/ChevronRight");
|
|
401
403
|
|
|
402
404
|
/***/ }),
|
|
403
|
-
/* 32 */,
|
|
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 */,
|
|
@@ -502,14 +502,15 @@ function assertDefined(val, msg) {
|
|
|
502
502
|
/* 58 */,
|
|
503
503
|
/* 59 */,
|
|
504
504
|
/* 60 */,
|
|
505
|
-
/* 61
|
|
505
|
+
/* 61 */,
|
|
506
|
+
/* 62 */
|
|
506
507
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
507
508
|
|
|
508
509
|
"use strict";
|
|
509
510
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MoreVertical; });
|
|
510
511
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
511
512
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
512
|
-
/* 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);
|
|
513
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__);
|
|
514
515
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
515
516
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -539,20 +540,20 @@ function MoreVertical(props) {
|
|
|
539
540
|
}
|
|
540
541
|
|
|
541
542
|
/***/ }),
|
|
542
|
-
/*
|
|
543
|
+
/* 63 */
|
|
543
544
|
/***/ (function(module, exports) {
|
|
544
545
|
|
|
545
546
|
module.exports = require("@splunk/react-icons/MoreVertical");
|
|
546
547
|
|
|
547
548
|
/***/ }),
|
|
548
|
-
/*
|
|
549
|
+
/* 64 */
|
|
549
550
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
550
551
|
|
|
551
552
|
"use strict";
|
|
552
553
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronDown; });
|
|
553
554
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
554
555
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
555
|
-
/* 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);
|
|
556
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__);
|
|
557
558
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
558
559
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -594,23 +595,22 @@ function ChevronDown(props) {
|
|
|
594
595
|
}
|
|
595
596
|
|
|
596
597
|
/***/ }),
|
|
597
|
-
/*
|
|
598
|
+
/* 65 */
|
|
598
599
|
/***/ (function(module, exports) {
|
|
599
600
|
|
|
600
601
|
module.exports = require("@splunk/react-icons/ChevronDown");
|
|
601
602
|
|
|
602
603
|
/***/ }),
|
|
603
|
-
/* 65 */,
|
|
604
604
|
/* 66 */,
|
|
605
605
|
/* 67 */,
|
|
606
606
|
/* 68 */,
|
|
607
|
-
/* 69
|
|
607
|
+
/* 69 */,
|
|
608
|
+
/* 70 */
|
|
608
609
|
/***/ (function(module, exports) {
|
|
609
610
|
|
|
610
611
|
module.exports = require("@splunk/react-ui/Switch");
|
|
611
612
|
|
|
612
613
|
/***/ }),
|
|
613
|
-
/* 70 */,
|
|
614
614
|
/* 71 */,
|
|
615
615
|
/* 72 */,
|
|
616
616
|
/* 73 */,
|
|
@@ -642,39 +642,40 @@ module.exports = require("@splunk/react-ui/Switch");
|
|
|
642
642
|
/* 99 */,
|
|
643
643
|
/* 100 */,
|
|
644
644
|
/* 101 */,
|
|
645
|
-
/* 102
|
|
645
|
+
/* 102 */,
|
|
646
|
+
/* 103 */
|
|
646
647
|
/***/ (function(module, exports) {
|
|
647
648
|
|
|
648
649
|
module.exports = require("react-resize-detector");
|
|
649
650
|
|
|
650
651
|
/***/ }),
|
|
651
|
-
/*
|
|
652
|
+
/* 104 */
|
|
652
653
|
/***/ (function(module, exports) {
|
|
653
654
|
|
|
654
655
|
module.exports = require("@splunk/react-icons/SortedDown");
|
|
655
656
|
|
|
656
657
|
/***/ }),
|
|
657
|
-
/*
|
|
658
|
+
/* 105 */
|
|
658
659
|
/***/ (function(module, exports) {
|
|
659
660
|
|
|
660
661
|
module.exports = require("@splunk/react-icons/SortedUp");
|
|
661
662
|
|
|
662
663
|
/***/ }),
|
|
663
|
-
/*
|
|
664
|
+
/* 106 */
|
|
664
665
|
/***/ (function(module, exports) {
|
|
665
666
|
|
|
666
667
|
module.exports = require("@splunk/react-icons/Sort");
|
|
667
668
|
|
|
668
669
|
/***/ }),
|
|
669
|
-
/*
|
|
670
|
+
/* 107 */
|
|
670
671
|
/***/ (function(module, exports) {
|
|
671
672
|
|
|
672
673
|
module.exports = require("@splunk/react-icons/Info");
|
|
673
674
|
|
|
674
675
|
/***/ }),
|
|
675
|
-
/* 107 */,
|
|
676
676
|
/* 108 */,
|
|
677
|
-
/* 109
|
|
677
|
+
/* 109 */,
|
|
678
|
+
/* 110 */
|
|
678
679
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
679
680
|
|
|
680
681
|
"use strict";
|
|
@@ -703,7 +704,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
703
704
|
var external_lodash_ = __webpack_require__(4);
|
|
704
705
|
|
|
705
706
|
// EXTERNAL MODULE: external "react-resize-detector"
|
|
706
|
-
var external_react_resize_detector_ = __webpack_require__(
|
|
707
|
+
var external_react_resize_detector_ = __webpack_require__(103);
|
|
707
708
|
var external_react_resize_detector_default = /*#__PURE__*/__webpack_require__.n(external_react_resize_detector_);
|
|
708
709
|
|
|
709
710
|
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
@@ -714,7 +715,7 @@ var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
|
714
715
|
var keyboard_ = __webpack_require__(9);
|
|
715
716
|
|
|
716
717
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
717
|
-
var ScrollContainerContext_ = __webpack_require__(
|
|
718
|
+
var ScrollContainerContext_ = __webpack_require__(37);
|
|
718
719
|
|
|
719
720
|
// EXTERNAL MODULE: external "styled-components"
|
|
720
721
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -729,7 +730,7 @@ var themes_ = __webpack_require__(0);
|
|
|
729
730
|
var Styled = external_styled_components_default.a.tbody.withConfig({
|
|
730
731
|
displayName: "BodyStyles__Styled",
|
|
731
732
|
componentId: "sc-1k5p6pq-0"
|
|
732
|
-
})(["", ""], themes_["mixins"].reset('table-row-group'));
|
|
733
|
+
})(["", " z-index:0;"], themes_["mixins"].reset('table-row-group'));
|
|
733
734
|
|
|
734
735
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
735
736
|
var updateReactRef = __webpack_require__(11);
|
|
@@ -1115,15 +1116,15 @@ _defineProperty(Body_Body, "defaultProps", defaultProps);
|
|
|
1115
1116
|
var TableStyles_Styled = external_styled_components_default.a.div.withConfig({
|
|
1116
1117
|
displayName: "TableStyles__Styled",
|
|
1117
1118
|
componentId: "sc-1cmfss7-0"
|
|
1118
|
-
})(["", ";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'));
|
|
1119
1120
|
var StyledTableContainer = external_styled_components_default.a.div.withConfig({
|
|
1120
1121
|
displayName: "TableStyles__StyledTableContainer",
|
|
1121
1122
|
componentId: "sc-1cmfss7-1"
|
|
1122
|
-
})(["overflow:auto;"]);
|
|
1123
|
+
})(["overflow:auto;&::before{content:'';width:100%;height:0;top:0;position:absolute;}"]);
|
|
1123
1124
|
var StyledTable = external_styled_components_default.a.table.withConfig({
|
|
1124
1125
|
displayName: "TableStyles__StyledTable",
|
|
1125
1126
|
componentId: "sc-1cmfss7-2"
|
|
1126
|
-
})(["", ";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) {
|
|
1127
1128
|
var $resizableFillLayout = _ref.$resizableFillLayout;
|
|
1128
1129
|
return $resizableFillLayout && Object(external_styled_components_["css"])(["width:100%;min-width:100%;table-layout:fixed;"]);
|
|
1129
1130
|
});
|
|
@@ -1407,7 +1408,7 @@ Cell_defineProperty(Cell_Cell, "defaultProps", Cell_defaultProps);
|
|
|
1407
1408
|
var i18n_ = __webpack_require__(5);
|
|
1408
1409
|
|
|
1409
1410
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedDown"
|
|
1410
|
-
var SortedDown_ = __webpack_require__(
|
|
1411
|
+
var SortedDown_ = __webpack_require__(104);
|
|
1411
1412
|
var SortedDown_default = /*#__PURE__*/__webpack_require__.n(SortedDown_);
|
|
1412
1413
|
|
|
1413
1414
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -1454,7 +1455,7 @@ function SortedDown(props) {
|
|
|
1454
1455
|
}, props));
|
|
1455
1456
|
}
|
|
1456
1457
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedUp"
|
|
1457
|
-
var SortedUp_ = __webpack_require__(
|
|
1458
|
+
var SortedUp_ = __webpack_require__(105);
|
|
1458
1459
|
var SortedUp_default = /*#__PURE__*/__webpack_require__.n(SortedUp_);
|
|
1459
1460
|
|
|
1460
1461
|
// CONCATENATED MODULE: ./src/icons/SortedUp.tsx
|
|
@@ -1495,7 +1496,7 @@ function SortedUp(props) {
|
|
|
1495
1496
|
}, props));
|
|
1496
1497
|
}
|
|
1497
1498
|
// EXTERNAL MODULE: external "@splunk/react-icons/Sort"
|
|
1498
|
-
var Sort_ = __webpack_require__(
|
|
1499
|
+
var Sort_ = __webpack_require__(106);
|
|
1499
1500
|
var Sort_default = /*#__PURE__*/__webpack_require__.n(Sort_);
|
|
1500
1501
|
|
|
1501
1502
|
// CONCATENATED MODULE: ./src/icons/Sort.tsx
|
|
@@ -1536,7 +1537,7 @@ function CaretDown(props) {
|
|
|
1536
1537
|
}, props));
|
|
1537
1538
|
}
|
|
1538
1539
|
// EXTERNAL MODULE: ./src/icons/CaretDown.tsx
|
|
1539
|
-
var icons_CaretDown = __webpack_require__(
|
|
1540
|
+
var icons_CaretDown = __webpack_require__(38);
|
|
1540
1541
|
|
|
1541
1542
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
1542
1543
|
var ScreenReaderContent_ = __webpack_require__(14);
|
|
@@ -1670,7 +1671,7 @@ HeadInnerStyles_Styled, themes_["variables"].focusColor, themes_["variables"].fo
|
|
|
1670
1671
|
var HeadCellStyles_Styled = external_styled_components_default.a.th.withConfig({
|
|
1671
1672
|
displayName: "HeadCellStyles__Styled",
|
|
1672
1673
|
componentId: "sc-1hj81sa-0"
|
|
1673
|
-
})(["", ";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"])({
|
|
1674
1675
|
enterprise: {
|
|
1675
1676
|
light: themes_["variables"].gray92,
|
|
1676
1677
|
dark: themes_["variables"].black
|
|
@@ -1683,7 +1684,17 @@ var HeadCellStyles_Styled = external_styled_components_default.a.th.withConfig({
|
|
|
1683
1684
|
enterprise: themes_["variables"].backgroundColor,
|
|
1684
1685
|
prisma: themes_["variables"].backgroundColorPage
|
|
1685
1686
|
}), function (_ref2) {
|
|
1686
|
-
var $
|
|
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;
|
|
1687
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,
|
|
1688
1699
|
/* sc-sel */
|
|
1689
1700
|
HeadInnerStyles_Styled, Object(themes_["pick"])({
|
|
@@ -1707,8 +1718,8 @@ var HeadCellStyles_Styled = external_styled_components_default.a.th.withConfig({
|
|
|
1707
1718
|
HeadInnerStyles_Styled, Object(themes_["pick"])({
|
|
1708
1719
|
prisma: themes_["variables"].interactiveColorOverlayActive
|
|
1709
1720
|
}));
|
|
1710
|
-
}, function (
|
|
1711
|
-
var $dragging =
|
|
1721
|
+
}, function (_ref4) {
|
|
1722
|
+
var $dragging = _ref4.$dragging;
|
|
1712
1723
|
return $dragging && Object(external_styled_components_["css"])(["background-color:", ";&:focus{box-shadow:none;}"], Object(themes_["pick"])({
|
|
1713
1724
|
enterprise: {
|
|
1714
1725
|
light: themes_["variables"].gray80,
|
|
@@ -2163,6 +2174,11 @@ function HeadInner(_ref) {
|
|
|
2163
2174
|
|
|
2164
2175
|
HeadInner.propTypes = HeadInner_propTypes;
|
|
2165
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);
|
|
2166
2182
|
// CONCATENATED MODULE: ./src/Table/HeadCell.tsx
|
|
2167
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); }
|
|
2168
2184
|
|
|
@@ -2208,6 +2224,7 @@ function HeadCell_defineProperty(obj, key, value) { if (key in obj) { Object.def
|
|
|
2208
2224
|
|
|
2209
2225
|
|
|
2210
2226
|
|
|
2227
|
+
|
|
2211
2228
|
var HeadCell_propTypes = {
|
|
2212
2229
|
align: external_prop_types_default.a.oneOf(['left', 'center', 'right']),
|
|
2213
2230
|
children: external_prop_types_default.a.node,
|
|
@@ -2257,7 +2274,8 @@ var HeadCell_propTypes = {
|
|
|
2257
2274
|
width: external_prop_types_default.a.oneOfType([external_prop_types_default.a.number, external_prop_types_default.a.oneOf(['auto'])]),
|
|
2258
2275
|
|
|
2259
2276
|
/** @private. */
|
|
2260
|
-
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
|
|
2261
2279
|
};
|
|
2262
2280
|
var HeadCell_defaultProps = {
|
|
2263
2281
|
align: 'left',
|
|
@@ -2265,7 +2283,8 @@ var HeadCell_defaultProps = {
|
|
|
2265
2283
|
showGuideline: 'none',
|
|
2266
2284
|
sortDir: 'none',
|
|
2267
2285
|
truncate: true,
|
|
2268
|
-
visible: true
|
|
2286
|
+
visible: true,
|
|
2287
|
+
zIndex: 1
|
|
2269
2288
|
};
|
|
2270
2289
|
|
|
2271
2290
|
var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
@@ -2389,7 +2408,8 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2389
2408
|
variant = _this$props5.variant,
|
|
2390
2409
|
truncateProp = _this$props5.truncate,
|
|
2391
2410
|
visible = _this$props5.visible,
|
|
2392
|
-
width = _this$props5.width
|
|
2411
|
+
width = _this$props5.width,
|
|
2412
|
+
zIndex = _this$props5.zIndex;
|
|
2393
2413
|
var draggable = !!onDragStart;
|
|
2394
2414
|
var sortable = !!onSort && !!sortDir;
|
|
2395
2415
|
var hasOnClick = onClick !== undefined;
|
|
@@ -2397,6 +2417,7 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2397
2417
|
width: width
|
|
2398
2418
|
});
|
|
2399
2419
|
var truncate = hasActionsHead ? false : truncateProp;
|
|
2420
|
+
var headType = this.context.headType;
|
|
2400
2421
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
2401
2422
|
|
|
2402
2423
|
return /*#__PURE__*/external_react_default.a.createElement(HeadCellStyles_Styled, HeadCell_extends({
|
|
@@ -2411,7 +2432,9 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2411
2432
|
tabIndex: visible && (draggable || onSort || hasOnClick) ? 0 : undefined,
|
|
2412
2433
|
$dragging: this.state.isDragging || undefined,
|
|
2413
2434
|
$clickable: draggable || sortable || hasOnClick,
|
|
2414
|
-
$variant: variant
|
|
2435
|
+
$variant: variant,
|
|
2436
|
+
$zIndex: zIndex,
|
|
2437
|
+
$isFixed: headType === 'fixed'
|
|
2415
2438
|
}, Object(external_lodash_["omit"])(this.props, [].concat(HeadCell_toConsumableArray(Object.keys(HeadCell.propTypes)), ['id', 'style'])), {
|
|
2416
2439
|
onKeyDown: draggable || onSort || hasOnClick ? this.handleKeyDown : undefined
|
|
2417
2440
|
}), /*#__PURE__*/external_react_default.a.createElement(Table_HeadInner, {
|
|
@@ -2445,9 +2468,11 @@ HeadCell_defineProperty(HeadCell_HeadCell, "propTypes", HeadCell_propTypes);
|
|
|
2445
2468
|
|
|
2446
2469
|
HeadCell_defineProperty(HeadCell_HeadCell, "defaultProps", HeadCell_defaultProps);
|
|
2447
2470
|
|
|
2471
|
+
HeadCell_defineProperty(HeadCell_HeadCell, "contextType", Table_TableContext);
|
|
2472
|
+
|
|
2448
2473
|
/* harmony default export */ var Table_HeadCell = (HeadCell_HeadCell);
|
|
2449
2474
|
// EXTERNAL MODULE: external "@splunk/react-icons/Info"
|
|
2450
|
-
var Info_ = __webpack_require__(
|
|
2475
|
+
var Info_ = __webpack_require__(107);
|
|
2451
2476
|
var Info_default = /*#__PURE__*/__webpack_require__.n(Info_);
|
|
2452
2477
|
|
|
2453
2478
|
// EXTERNAL MODULE: ./src/icons/ChevronRight.tsx
|
|
@@ -2475,22 +2500,22 @@ function HeadExpandRowsIcon() {
|
|
|
2475
2500
|
});
|
|
2476
2501
|
}
|
|
2477
2502
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
2478
|
-
var Button_ = __webpack_require__(
|
|
2503
|
+
var Button_ = __webpack_require__(16);
|
|
2479
2504
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
2480
2505
|
|
|
2481
2506
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
2482
|
-
var Dropdown_ = __webpack_require__(
|
|
2507
|
+
var Dropdown_ = __webpack_require__(20);
|
|
2483
2508
|
var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
|
|
2484
2509
|
|
|
2485
2510
|
// EXTERNAL MODULE: external "@splunk/react-ui/Tooltip"
|
|
2486
|
-
var Tooltip_ = __webpack_require__(
|
|
2511
|
+
var Tooltip_ = __webpack_require__(49);
|
|
2487
2512
|
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_);
|
|
2488
2513
|
|
|
2489
2514
|
// EXTERNAL MODULE: ./src/icons/ChevronDown.tsx
|
|
2490
|
-
var ChevronDown = __webpack_require__(
|
|
2515
|
+
var ChevronDown = __webpack_require__(64);
|
|
2491
2516
|
|
|
2492
2517
|
// EXTERNAL MODULE: ./src/icons/MoreVertical.tsx
|
|
2493
|
-
var MoreVertical = __webpack_require__(
|
|
2518
|
+
var MoreVertical = __webpack_require__(62);
|
|
2494
2519
|
|
|
2495
2520
|
// CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
|
|
2496
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); }
|
|
@@ -2772,7 +2797,7 @@ var StyledCellExpansionDisabled = external_styled_components_default()(Table_Cel
|
|
|
2772
2797
|
}));
|
|
2773
2798
|
|
|
2774
2799
|
// EXTERNAL MODULE: external "@splunk/react-ui/Switch"
|
|
2775
|
-
var Switch_ = __webpack_require__(
|
|
2800
|
+
var Switch_ = __webpack_require__(70);
|
|
2776
2801
|
var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch_);
|
|
2777
2802
|
|
|
2778
2803
|
// CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
|
|
@@ -3320,6 +3345,9 @@ var Head_propTypes = {
|
|
|
3320
3345
|
var Head_defaultProps = {
|
|
3321
3346
|
actions: []
|
|
3322
3347
|
};
|
|
3348
|
+
var columnOneIndexOffset = 3;
|
|
3349
|
+
var columnTwoIndexOffset = 2;
|
|
3350
|
+
var columnThreeIndexOffset = 1;
|
|
3323
3351
|
|
|
3324
3352
|
var Head_Head = /*#__PURE__*/function (_Component) {
|
|
3325
3353
|
Head_inherits(Head, _Component);
|
|
@@ -3496,7 +3524,9 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3496
3524
|
onRequestToggleAllRows = _this$props5.onRequestToggleAllRows,
|
|
3497
3525
|
rowSelection = _this$props5.rowSelection;
|
|
3498
3526
|
var guidelineIndex = this.calculateGuideIndex();
|
|
3499
|
-
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) {
|
|
3500
3530
|
var showGuideline = 'none';
|
|
3501
3531
|
|
|
3502
3532
|
if (guidelineIndex === original.length && index + 1 === original.length) {
|
|
@@ -3512,7 +3542,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3512
3542
|
onDragStart: onRequestMoveColumn ? _this2.handleDragStart : undefined,
|
|
3513
3543
|
onRequestMoveColumn: onRequestMoveColumn ? _this2.onRequestMoveColumn : undefined,
|
|
3514
3544
|
onAutosizeColumn: onAutosizeColumn,
|
|
3515
|
-
key: child.key || child.props.columnId || index
|
|
3545
|
+
key: child.key || child.props.columnId || index,
|
|
3546
|
+
zIndex: minimumIndex - index
|
|
3516
3547
|
});
|
|
3517
3548
|
});
|
|
3518
3549
|
var toggleStateMap = {
|
|
@@ -3530,7 +3561,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3530
3561
|
key: "drag_rows_head_cell",
|
|
3531
3562
|
"data-test": "drag-rows-head-cell",
|
|
3532
3563
|
align: "center",
|
|
3533
|
-
resizable: false
|
|
3564
|
+
resizable: false,
|
|
3565
|
+
zIndex: minimumIndex + columnOneIndexOffset
|
|
3534
3566
|
}), onRequestToggleAllRows && /*#__PURE__*/external_react_default.a.createElement(StyledToggleAll, {
|
|
3535
3567
|
key: "toggle_all",
|
|
3536
3568
|
"data-test": "toggle-all",
|
|
@@ -3540,7 +3572,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3540
3572
|
variant: "toggleAll",
|
|
3541
3573
|
truncate: false,
|
|
3542
3574
|
role: "checkbox",
|
|
3543
|
-
"aria-checked": ariaChecked
|
|
3575
|
+
"aria-checked": ariaChecked,
|
|
3576
|
+
zIndex: minimumIndex + columnTwoIndexOffset
|
|
3544
3577
|
}, /*#__PURE__*/external_react_default.a.createElement(Table_Toggle, {
|
|
3545
3578
|
selected: toggleState,
|
|
3546
3579
|
allRows: true
|
|
@@ -3549,7 +3582,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3549
3582
|
"data-test": "more-info-head-cell",
|
|
3550
3583
|
align: "center",
|
|
3551
3584
|
resizable: false,
|
|
3552
|
-
variant: "info"
|
|
3585
|
+
variant: "info",
|
|
3586
|
+
zIndex: minimumIndex + columnThreeIndexOffset
|
|
3553
3587
|
}, /*#__PURE__*/external_react_default.a.createElement(HeadExpandRowsIcon, null)), clonedChildren, actions.length > 0 && /*#__PURE__*/external_react_default.a.createElement(Table_HeadCell, {
|
|
3554
3588
|
hasActionsHead: true,
|
|
3555
3589
|
key: "actions_head_cell",
|
|
@@ -3560,7 +3594,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3560
3594
|
style: {
|
|
3561
3595
|
minWidth: defaultActionsColumnWidth
|
|
3562
3596
|
},
|
|
3563
|
-
variant: "actions"
|
|
3597
|
+
variant: "actions",
|
|
3598
|
+
zIndex: 1
|
|
3564
3599
|
}, actions), actions.length === 0 && actionsColumnWidth && /*#__PURE__*/external_react_default.a.createElement(Table_HeadCell, {
|
|
3565
3600
|
key: "actions_head_cell",
|
|
3566
3601
|
"data-test": "actions-head-cell",
|
|
@@ -3570,7 +3605,8 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3570
3605
|
style: {
|
|
3571
3606
|
minWidth: actionsColumnWidth
|
|
3572
3607
|
},
|
|
3573
|
-
variant: "actions"
|
|
3608
|
+
variant: "actions",
|
|
3609
|
+
zIndex: 1
|
|
3574
3610
|
}, ' ')));
|
|
3575
3611
|
}
|
|
3576
3612
|
}], [{
|
|
@@ -3594,7 +3630,7 @@ Head_defineProperty(Head_Head, "defaultProps", Head_defaultProps);
|
|
|
3594
3630
|
var id_ = __webpack_require__(10);
|
|
3595
3631
|
|
|
3596
3632
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
3597
|
-
var Popover_ = __webpack_require__(
|
|
3633
|
+
var Popover_ = __webpack_require__(17);
|
|
3598
3634
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
3599
3635
|
|
|
3600
3636
|
// CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
|
|
@@ -4283,6 +4319,7 @@ function Table_defineProperty(obj, key, value) { if (key in obj) { Object.define
|
|
|
4283
4319
|
|
|
4284
4320
|
|
|
4285
4321
|
|
|
4322
|
+
|
|
4286
4323
|
/** @public */
|
|
4287
4324
|
|
|
4288
4325
|
var Table_propTypes = {
|
|
@@ -4739,11 +4776,6 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4739
4776
|
var rect = this.tableContainer.getBoundingClientRect();
|
|
4740
4777
|
return rect.bottom > window.innerHeight && rect.top < window.innerHeight;
|
|
4741
4778
|
}
|
|
4742
|
-
}, {
|
|
4743
|
-
key: "showFixed",
|
|
4744
|
-
value: function showFixed() {
|
|
4745
|
-
return this.head && this.isFixed();
|
|
4746
|
-
}
|
|
4747
4779
|
}, {
|
|
4748
4780
|
key: "updateDragPositionImpl",
|
|
4749
4781
|
value: function updateDragPositionImpl(dragPosition) {
|
|
@@ -4763,16 +4795,11 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4763
4795
|
}, {
|
|
4764
4796
|
key: "renderHeadTable",
|
|
4765
4797
|
value: function renderHeadTable(tHead, isFixedColumn) {
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
if ((this.showFixed() || showDockedHeader) && this.props.headType !== 'inline') {
|
|
4798
|
+
if (this.showDockedHeader()) {
|
|
4769
4799
|
// FIXME: handle inline
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
this.headFocusState = Table.getHeadFocusState(this.head);
|
|
4774
|
-
}
|
|
4775
|
-
|
|
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);
|
|
4776
4803
|
var _this$state = this.state,
|
|
4777
4804
|
cellWidths = _this$state.cellWidths,
|
|
4778
4805
|
dragIndex = _this$state.dragIndex,
|
|
@@ -4786,7 +4813,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4786
4813
|
}
|
|
4787
4814
|
|
|
4788
4815
|
return /*#__PURE__*/external_react_default.a.createElement(Table_HeadTable, {
|
|
4789
|
-
headType:
|
|
4816
|
+
headType: "docked",
|
|
4790
4817
|
tHead: tHead,
|
|
4791
4818
|
cellWidths: cellWidths,
|
|
4792
4819
|
dragIndex: dragIndex,
|
|
@@ -4850,6 +4877,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4850
4877
|
var _this$props4 = this.props,
|
|
4851
4878
|
children = _this$props4.children,
|
|
4852
4879
|
elementRef = _this$props4.elementRef,
|
|
4880
|
+
headType = _this$props4.headType,
|
|
4853
4881
|
innerStyle = _this$props4.innerStyle,
|
|
4854
4882
|
onRequestResizeColumn = _this$props4.onRequestResizeColumn,
|
|
4855
4883
|
onRequestToggleAllRows = _this$props4.onRequestToggleAllRows,
|
|
@@ -4920,7 +4948,11 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4920
4948
|
}), /*#__PURE__*/external_react_default.a.createElement(external_react_resize_detector_default.a, {
|
|
4921
4949
|
handleWidth: true,
|
|
4922
4950
|
onResize: this.handleResize
|
|
4923
|
-
}),
|
|
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, {
|
|
4924
4956
|
onScroll: this.handleContainerScroll,
|
|
4925
4957
|
ref: function ref(el) {
|
|
4926
4958
|
_this3.tableContainer = el;
|
|
@@ -4936,7 +4968,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4936
4968
|
style: tableStyle,
|
|
4937
4969
|
"data-fixed-column": isFixedColumn ? 'true' : undefined,
|
|
4938
4970
|
$resizableFillLayout: resizableFillLayout
|
|
4939
|
-
}, tCaption, tHead, tBody))), this.renderDockedScrollbar());
|
|
4971
|
+
}, tCaption, tHead, tBody))), this.renderDockedScrollbar()));
|
|
4940
4972
|
}
|
|
4941
4973
|
}]);
|
|
4942
4974
|
|