@splunk/react-ui 4.20.0 → 4.21.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 +114 -230
- package/Anchor.js +74 -150
- package/Animation.js +52 -124
- package/AnimationToggle.js +86 -146
- package/Box.js +77 -153
- package/Breadcrumbs.js +105 -197
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +21 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +128 -246
- package/CloseButton.js +92 -200
- package/Code.js +162 -250
- package/CollapsiblePanel.js +214 -370
- package/Color.js +267 -495
- package/ColumnLayout.js +152 -254
- package/ComboBox.js +197 -371
- package/Concertina.js +214 -374
- package/ControlGroup.js +164 -288
- package/Date.js +154 -304
- package/DefinitionList.js +104 -180
- package/Divider.js +80 -156
- package/Dropdown.js +121 -263
- package/DualListbox.js +408 -601
- package/EventListener.js +70 -138
- package/File.js +343 -547
- package/FormRows.js +232 -414
- package/Heading.js +94 -164
- package/Image.js +167 -323
- package/JSONTree.js +166 -314
- package/Layer.js +221 -388
- package/Link.js +133 -239
- package/List.js +85 -161
- package/Markdown.js +230 -354
- package/Menu.js +489 -760
- package/Message.js +248 -437
- package/MessageBar.js +220 -408
- package/Modal.js +201 -365
- package/ModalLayer.js +96 -196
- package/Monogram.js +112 -204
- package/Multiselect.js +1135 -1761
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +370 -620
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +161 -303
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1028 -1430
- package/SidePanel.js +106 -214
- package/Slider.js +198 -348
- package/SlidingPanels.js +138 -280
- package/SplitButton.js +141 -273
- package/StaticContent.js +84 -168
- package/StepBar.js +138 -246
- package/Switch.js +261 -385
- package/TabBar.js +261 -398
- package/TabLayout.js +122 -238
- package/Table.js +943 -1448
- package/Text.js +335 -549
- package/TextArea.js +315 -537
- package/Tooltip.js +152 -292
- package/TransitionOpen.js +118 -242
- package/Typography.js +81 -157
- package/WaitSpinner.js +117 -209
- package/package.json +14 -15
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/Concertina/Concertina.d.ts +4 -0
- package/types/src/Link/Link.d.ts +7 -3
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/OptionBase.d.ts +1 -1
- package/types/src/fixtures/FetchOptions.d.ts +2 -8
- package/useForceUpdate.js +46 -110
- package/useKeyPress.js +50 -107
- package/usePrevious.js +47 -111
- package/useRovingFocus.js +53 -133
- package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
- /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
- /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/Table.js
CHANGED
|
@@ -1,151 +1,125 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/ var
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ };
|
|
29
|
+
/******/ })();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ (() => {
|
|
33
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
34
|
+
/******/ })();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ (() => {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
18
44
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
-
/******/
|
|
23
|
-
/******/ // Flag the module as loaded
|
|
24
|
-
/******/ module.l = true;
|
|
25
|
-
/******/
|
|
26
|
-
/******/ // Return the exports of the module
|
|
27
|
-
/******/ return module.exports;
|
|
28
|
-
/******/ }
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
-
/******/ __webpack_require__.m = modules;
|
|
33
|
-
/******/
|
|
34
|
-
/******/ // expose the module cache
|
|
35
|
-
/******/ __webpack_require__.c = installedModules;
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 170);
|
|
86
|
-
/******/ })
|
|
45
|
+
/******/ })();
|
|
46
|
+
/******/
|
|
87
47
|
/************************************************************************/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
module.exports = require("@splunk/themes");
|
|
93
|
-
|
|
94
|
-
/***/ }),
|
|
95
|
-
/* 1 */
|
|
96
|
-
/***/ (function(module, exports) {
|
|
97
|
-
|
|
98
|
-
module.exports = require("prop-types");
|
|
99
|
-
|
|
100
|
-
/***/ }),
|
|
101
|
-
/* 2 */
|
|
102
|
-
/***/ (function(module, exports) {
|
|
103
|
-
|
|
104
|
-
module.exports = require("react");
|
|
105
|
-
|
|
106
|
-
/***/ }),
|
|
107
|
-
/* 3 */
|
|
108
|
-
/***/ (function(module, exports) {
|
|
109
|
-
|
|
110
|
-
module.exports = require("styled-components");
|
|
111
|
-
|
|
112
|
-
/***/ }),
|
|
113
|
-
/* 4 */
|
|
114
|
-
/***/ (function(module, exports) {
|
|
115
|
-
|
|
116
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
117
|
-
|
|
118
|
-
/***/ }),
|
|
119
|
-
/* 5 */
|
|
120
|
-
/***/ (function(module, exports) {
|
|
121
|
-
|
|
122
|
-
module.exports = require("lodash/omit");
|
|
123
|
-
|
|
124
|
-
/***/ }),
|
|
125
|
-
/* 6 */,
|
|
126
|
-
/* 7 */
|
|
127
|
-
/***/ (function(module, exports) {
|
|
128
|
-
|
|
129
|
-
module.exports = require("@splunk/ui-utils/keyboard");
|
|
130
|
-
|
|
131
|
-
/***/ }),
|
|
132
|
-
/* 8 */
|
|
133
|
-
/***/ (function(module, exports) {
|
|
134
|
-
|
|
135
|
-
module.exports = require("@splunk/ui-utils/id");
|
|
136
|
-
|
|
137
|
-
/***/ }),
|
|
138
|
-
/* 9 */
|
|
139
|
-
/***/ (function(module, exports) {
|
|
48
|
+
var __webpack_exports__ = {};
|
|
49
|
+
// ESM COMPAT FLAG
|
|
50
|
+
__webpack_require__.r(__webpack_exports__);
|
|
140
51
|
|
|
141
|
-
|
|
52
|
+
// EXPORTS
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
Body: () => (/* reexport */ Table_Body),
|
|
55
|
+
Caption: () => (/* reexport */ Table_Caption),
|
|
56
|
+
Cell: () => (/* reexport */ Table_Cell),
|
|
57
|
+
Head: () => (/* reexport */ Table_Head),
|
|
58
|
+
HeadCell: () => (/* reexport */ Table_HeadCell),
|
|
59
|
+
HeadDropdownCell: () => (/* reexport */ Table_HeadDropdownCell),
|
|
60
|
+
Row: () => (/* reexport */ Table_Row),
|
|
61
|
+
"default": () => (/* reexport */ Table_Table)
|
|
62
|
+
});
|
|
142
63
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
64
|
+
;// CONCATENATED MODULE: external "react"
|
|
65
|
+
const external_react_namespaceObject = require("react");
|
|
66
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
67
|
+
;// CONCATENATED MODULE: external "prop-types"
|
|
68
|
+
const external_prop_types_namespaceObject = require("prop-types");
|
|
69
|
+
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
|
|
70
|
+
;// CONCATENATED MODULE: external "lodash/forEach"
|
|
71
|
+
const forEach_namespaceObject = require("lodash/forEach");
|
|
72
|
+
var forEach_default = /*#__PURE__*/__webpack_require__.n(forEach_namespaceObject);
|
|
73
|
+
;// CONCATENATED MODULE: external "lodash/has"
|
|
74
|
+
const has_namespaceObject = require("lodash/has");
|
|
75
|
+
var has_default = /*#__PURE__*/__webpack_require__.n(has_namespaceObject);
|
|
76
|
+
;// CONCATENATED MODULE: external "lodash/indexOf"
|
|
77
|
+
const indexOf_namespaceObject = require("lodash/indexOf");
|
|
78
|
+
var indexOf_default = /*#__PURE__*/__webpack_require__.n(indexOf_namespaceObject);
|
|
79
|
+
;// CONCATENATED MODULE: external "lodash/isEqual"
|
|
80
|
+
const isEqual_namespaceObject = require("lodash/isEqual");
|
|
81
|
+
var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual_namespaceObject);
|
|
82
|
+
;// CONCATENATED MODULE: external "lodash/isNumber"
|
|
83
|
+
const isNumber_namespaceObject = require("lodash/isNumber");
|
|
84
|
+
;// CONCATENATED MODULE: external "lodash/omit"
|
|
85
|
+
const omit_namespaceObject = require("lodash/omit");
|
|
86
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_namespaceObject);
|
|
87
|
+
;// CONCATENATED MODULE: external "lodash/throttle"
|
|
88
|
+
const throttle_namespaceObject = require("lodash/throttle");
|
|
89
|
+
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_namespaceObject);
|
|
90
|
+
;// CONCATENATED MODULE: external "react-resize-detector"
|
|
91
|
+
const external_react_resize_detector_namespaceObject = require("react-resize-detector");
|
|
92
|
+
var external_react_resize_detector_default = /*#__PURE__*/__webpack_require__.n(external_react_resize_detector_namespaceObject);
|
|
93
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
|
|
94
|
+
const EventListener_namespaceObject = require("@splunk/react-ui/EventListener");
|
|
95
|
+
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_namespaceObject);
|
|
96
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
|
|
97
|
+
const keyboard_namespaceObject = require("@splunk/ui-utils/keyboard");
|
|
98
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
99
|
+
const ScrollContainerContext_namespaceObject = require("@splunk/react-ui/ScrollContainerContext");
|
|
100
|
+
;// CONCATENATED MODULE: external "lodash/findIndex"
|
|
101
|
+
const findIndex_namespaceObject = require("lodash/findIndex");
|
|
102
|
+
var findIndex_default = /*#__PURE__*/__webpack_require__.n(findIndex_namespaceObject);
|
|
103
|
+
;// CONCATENATED MODULE: external "lodash/includes"
|
|
104
|
+
const includes_namespaceObject = require("lodash/includes");
|
|
105
|
+
var includes_default = /*#__PURE__*/__webpack_require__.n(includes_namespaceObject);
|
|
106
|
+
;// CONCATENATED MODULE: external "lodash/without"
|
|
107
|
+
const without_namespaceObject = require("lodash/without");
|
|
108
|
+
var without_default = /*#__PURE__*/__webpack_require__.n(without_namespaceObject);
|
|
109
|
+
;// CONCATENATED MODULE: external "styled-components"
|
|
110
|
+
const external_styled_components_namespaceObject = require("styled-components");
|
|
111
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
112
|
+
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
113
|
+
const themes_namespaceObject = require("@splunk/themes");
|
|
114
|
+
;// CONCATENATED MODULE: ./src/Table/BodyStyles.ts
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
var Styled = external_styled_components_default().tbody.withConfig({
|
|
118
|
+
displayName: "BodyStyles__Styled",
|
|
119
|
+
componentId: "sc-1k5p6pq-0"
|
|
120
|
+
})(["", " z-index:0;"], themes_namespaceObject.mixins.reset('table-row-group'));
|
|
146
121
|
|
|
147
|
-
|
|
148
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateReactRef; });
|
|
122
|
+
;// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
|
149
123
|
/**
|
|
150
124
|
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
151
125
|
*
|
|
@@ -165,150 +139,7 @@ function updateReactRef(ref, current) {
|
|
|
165
139
|
}
|
|
166
140
|
|
|
167
141
|
|
|
168
|
-
|
|
169
|
-
/***/ }),
|
|
170
|
-
/* 11 */
|
|
171
|
-
/***/ (function(module, exports) {
|
|
172
|
-
|
|
173
|
-
module.exports = require("lodash/has");
|
|
174
|
-
|
|
175
|
-
/***/ }),
|
|
176
|
-
/* 12 */,
|
|
177
|
-
/* 13 */,
|
|
178
|
-
/* 14 */
|
|
179
|
-
/***/ (function(module, exports) {
|
|
180
|
-
|
|
181
|
-
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
182
|
-
|
|
183
|
-
/***/ }),
|
|
184
|
-
/* 15 */
|
|
185
|
-
/***/ (function(module, exports) {
|
|
186
|
-
|
|
187
|
-
module.exports = require("lodash/includes");
|
|
188
|
-
|
|
189
|
-
/***/ }),
|
|
190
|
-
/* 16 */
|
|
191
|
-
/***/ (function(module, exports) {
|
|
192
|
-
|
|
193
|
-
module.exports = require("@splunk/react-ui/EventListener");
|
|
194
|
-
|
|
195
|
-
/***/ }),
|
|
196
|
-
/* 17 */
|
|
197
|
-
/***/ (function(module, exports) {
|
|
198
|
-
|
|
199
|
-
module.exports = require("@splunk/react-ui/Button");
|
|
200
|
-
|
|
201
|
-
/***/ }),
|
|
202
|
-
/* 18 */
|
|
203
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
204
|
-
|
|
205
|
-
"use strict";
|
|
206
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getWindow; });
|
|
207
|
-
/* unused harmony export ssrWindow */
|
|
208
|
-
/* harmony import */ var _ssrDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
|
|
209
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
210
|
-
|
|
211
|
-
var ssrWindow = {
|
|
212
|
-
document: _ssrDocument__WEBPACK_IMPORTED_MODULE_0__[/* ssrDocument */ "b"],
|
|
213
|
-
navigator: {
|
|
214
|
-
userAgent: ''
|
|
215
|
-
},
|
|
216
|
-
location: {
|
|
217
|
-
hash: '',
|
|
218
|
-
host: '',
|
|
219
|
-
hostname: '',
|
|
220
|
-
href: '',
|
|
221
|
-
origin: '',
|
|
222
|
-
pathname: '',
|
|
223
|
-
protocol: '',
|
|
224
|
-
search: ''
|
|
225
|
-
},
|
|
226
|
-
history: {
|
|
227
|
-
replaceState: function replaceState() {},
|
|
228
|
-
pushState: function pushState() {},
|
|
229
|
-
go: function go() {},
|
|
230
|
-
back: function back() {}
|
|
231
|
-
},
|
|
232
|
-
CustomEvent: function CustomEvent() {
|
|
233
|
-
return this;
|
|
234
|
-
},
|
|
235
|
-
addEventListener: function addEventListener() {},
|
|
236
|
-
removeEventListener: function removeEventListener() {},
|
|
237
|
-
getComputedStyle: function getComputedStyle() {
|
|
238
|
-
return {
|
|
239
|
-
getPropertyValue: function getPropertyValue() {
|
|
240
|
-
return '';
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
},
|
|
244
|
-
Image: function Image() {},
|
|
245
|
-
Date: function Date() {},
|
|
246
|
-
screen: {},
|
|
247
|
-
setTimeout: function setTimeout() {},
|
|
248
|
-
clearTimeout: function clearTimeout() {},
|
|
249
|
-
matchMedia: function matchMedia() {
|
|
250
|
-
return {};
|
|
251
|
-
},
|
|
252
|
-
requestAnimationFrame: function requestAnimationFrame(callback) {
|
|
253
|
-
if (typeof setTimeout === 'undefined') {
|
|
254
|
-
callback();
|
|
255
|
-
return null;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
return setTimeout(callback, 0);
|
|
259
|
-
},
|
|
260
|
-
cancelAnimationFrame: function cancelAnimationFrame(id) {
|
|
261
|
-
if (typeof setTimeout === 'undefined') {
|
|
262
|
-
return;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
clearTimeout(id);
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
function getWindow() {
|
|
270
|
-
var win = typeof window !== 'undefined' ? window : ssrWindow;
|
|
271
|
-
return win;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
/***/ }),
|
|
277
|
-
/* 19 */
|
|
278
|
-
/***/ (function(module, exports) {
|
|
279
|
-
|
|
280
|
-
module.exports = require("lodash/isFinite");
|
|
281
|
-
|
|
282
|
-
/***/ }),
|
|
283
|
-
/* 20 */,
|
|
284
|
-
/* 21 */
|
|
285
|
-
/***/ (function(module, exports) {
|
|
286
|
-
|
|
287
|
-
module.exports = require("@splunk/react-ui/Popover");
|
|
288
|
-
|
|
289
|
-
/***/ }),
|
|
290
|
-
/* 22 */
|
|
291
|
-
/***/ (function(module, exports) {
|
|
292
|
-
|
|
293
|
-
module.exports = require("@splunk/react-ui/Dropdown");
|
|
294
|
-
|
|
295
|
-
/***/ }),
|
|
296
|
-
/* 23 */
|
|
297
|
-
/***/ (function(module, exports) {
|
|
298
|
-
|
|
299
|
-
module.exports = require("lodash/isString");
|
|
300
|
-
|
|
301
|
-
/***/ }),
|
|
302
|
-
/* 24 */,
|
|
303
|
-
/* 25 */,
|
|
304
|
-
/* 26 */,
|
|
305
|
-
/* 27 */,
|
|
306
|
-
/* 28 */
|
|
307
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
308
|
-
|
|
309
|
-
"use strict";
|
|
310
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getDocument; });
|
|
311
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ssrDocument; });
|
|
142
|
+
;// CONCATENATED MODULE: ./src/utils/ssrDocument.ts
|
|
312
143
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
313
144
|
var ssrDocument = {
|
|
314
145
|
body: {
|
|
@@ -371,396 +202,74 @@ function getDocument() {
|
|
|
371
202
|
}
|
|
372
203
|
|
|
373
204
|
|
|
205
|
+
;// CONCATENATED MODULE: ./src/utils/ssrWindow.ts
|
|
206
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
374
207
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
208
|
+
var ssrWindow = {
|
|
209
|
+
document: ssrDocument,
|
|
210
|
+
navigator: {
|
|
211
|
+
userAgent: ''
|
|
212
|
+
},
|
|
213
|
+
location: {
|
|
214
|
+
hash: '',
|
|
215
|
+
host: '',
|
|
216
|
+
hostname: '',
|
|
217
|
+
href: '',
|
|
218
|
+
origin: '',
|
|
219
|
+
pathname: '',
|
|
220
|
+
protocol: '',
|
|
221
|
+
search: ''
|
|
222
|
+
},
|
|
223
|
+
history: {
|
|
224
|
+
replaceState: function replaceState() {},
|
|
225
|
+
pushState: function pushState() {},
|
|
226
|
+
go: function go() {},
|
|
227
|
+
back: function back() {}
|
|
228
|
+
},
|
|
229
|
+
CustomEvent: function CustomEvent() {
|
|
230
|
+
return this;
|
|
231
|
+
},
|
|
232
|
+
addEventListener: function addEventListener() {},
|
|
233
|
+
removeEventListener: function removeEventListener() {},
|
|
234
|
+
getComputedStyle: function getComputedStyle() {
|
|
235
|
+
return {
|
|
236
|
+
getPropertyValue: function getPropertyValue() {
|
|
237
|
+
return '';
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
},
|
|
241
|
+
Image: function Image() {},
|
|
242
|
+
Date: function Date() {},
|
|
243
|
+
screen: {},
|
|
244
|
+
setTimeout: function setTimeout() {},
|
|
245
|
+
clearTimeout: function clearTimeout() {},
|
|
246
|
+
matchMedia: function matchMedia() {
|
|
247
|
+
return {};
|
|
248
|
+
},
|
|
249
|
+
requestAnimationFrame: function requestAnimationFrame(callback) {
|
|
250
|
+
if (typeof setTimeout === 'undefined') {
|
|
251
|
+
callback();
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
380
254
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
module.exports = require("lodash/throttle");
|
|
255
|
+
return setTimeout(callback, 0);
|
|
256
|
+
},
|
|
257
|
+
cancelAnimationFrame: function cancelAnimationFrame(id) {
|
|
258
|
+
if (typeof setTimeout === 'undefined') {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
389
261
|
|
|
390
|
-
|
|
391
|
-
/* 34 */,
|
|
392
|
-
/* 35 */,
|
|
393
|
-
/* 36 */,
|
|
394
|
-
/* 37 */,
|
|
395
|
-
/* 38 */
|
|
396
|
-
/***/ (function(module, exports) {
|
|
397
|
-
|
|
398
|
-
module.exports = require("@splunk/react-icons/enterprise/ChevronRight");
|
|
399
|
-
|
|
400
|
-
/***/ }),
|
|
401
|
-
/* 39 */
|
|
402
|
-
/***/ (function(module, exports) {
|
|
403
|
-
|
|
404
|
-
module.exports = require("@splunk/react-ui/Switch");
|
|
405
|
-
|
|
406
|
-
/***/ }),
|
|
407
|
-
/* 40 */,
|
|
408
|
-
/* 41 */,
|
|
409
|
-
/* 42 */,
|
|
410
|
-
/* 43 */,
|
|
411
|
-
/* 44 */,
|
|
412
|
-
/* 45 */
|
|
413
|
-
/***/ (function(module, exports) {
|
|
414
|
-
|
|
415
|
-
module.exports = require("@splunk/react-ui/Tooltip");
|
|
416
|
-
|
|
417
|
-
/***/ }),
|
|
418
|
-
/* 46 */
|
|
419
|
-
/***/ (function(module, exports) {
|
|
420
|
-
|
|
421
|
-
module.exports = require("@splunk/react-icons/ChevronRight");
|
|
422
|
-
|
|
423
|
-
/***/ }),
|
|
424
|
-
/* 47 */,
|
|
425
|
-
/* 48 */,
|
|
426
|
-
/* 49 */,
|
|
427
|
-
/* 50 */,
|
|
428
|
-
/* 51 */,
|
|
429
|
-
/* 52 */
|
|
430
|
-
/***/ (function(module, exports) {
|
|
431
|
-
|
|
432
|
-
module.exports = require("lodash/extend");
|
|
433
|
-
|
|
434
|
-
/***/ }),
|
|
435
|
-
/* 53 */
|
|
436
|
-
/***/ (function(module, exports) {
|
|
437
|
-
|
|
438
|
-
module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
439
|
-
|
|
440
|
-
/***/ }),
|
|
441
|
-
/* 54 */,
|
|
442
|
-
/* 55 */,
|
|
443
|
-
/* 56 */
|
|
444
|
-
/***/ (function(module, exports) {
|
|
445
|
-
|
|
446
|
-
module.exports = require("@splunk/react-icons/CaretSmallDown");
|
|
447
|
-
|
|
448
|
-
/***/ }),
|
|
449
|
-
/* 57 */
|
|
450
|
-
/***/ (function(module, exports) {
|
|
451
|
-
|
|
452
|
-
module.exports = require("@splunk/react-icons/enterprise/Caret");
|
|
453
|
-
|
|
454
|
-
/***/ }),
|
|
455
|
-
/* 58 */,
|
|
456
|
-
/* 59 */,
|
|
457
|
-
/* 60 */,
|
|
458
|
-
/* 61 */
|
|
459
|
-
/***/ (function(module, exports) {
|
|
460
|
-
|
|
461
|
-
module.exports = require("lodash/without");
|
|
462
|
-
|
|
463
|
-
/***/ }),
|
|
464
|
-
/* 62 */,
|
|
465
|
-
/* 63 */,
|
|
466
|
-
/* 64 */,
|
|
467
|
-
/* 65 */,
|
|
468
|
-
/* 66 */,
|
|
469
|
-
/* 67 */,
|
|
470
|
-
/* 68 */,
|
|
471
|
-
/* 69 */,
|
|
472
|
-
/* 70 */,
|
|
473
|
-
/* 71 */
|
|
474
|
-
/***/ (function(module, exports) {
|
|
475
|
-
|
|
476
|
-
module.exports = require("lodash/isFunction");
|
|
477
|
-
|
|
478
|
-
/***/ }),
|
|
479
|
-
/* 72 */,
|
|
480
|
-
/* 73 */,
|
|
481
|
-
/* 74 */,
|
|
482
|
-
/* 75 */,
|
|
483
|
-
/* 76 */,
|
|
484
|
-
/* 77 */
|
|
485
|
-
/***/ (function(module, exports) {
|
|
486
|
-
|
|
487
|
-
module.exports = require("lodash/isNumber");
|
|
488
|
-
|
|
489
|
-
/***/ }),
|
|
490
|
-
/* 78 */,
|
|
491
|
-
/* 79 */
|
|
492
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
493
|
-
|
|
494
|
-
"use strict";
|
|
495
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return assertDefined; });
|
|
496
|
-
// see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31245 for details
|
|
497
|
-
// regarding the css prop. certain (versions of) libraries included in the compilation
|
|
498
|
-
// - such as storybook->emotion - introduce the css prop using a global augmentation,
|
|
499
|
-
// which causes the prop to end up in our declaration files (via JSX.IntrinsicElements).
|
|
500
|
-
// it's difficult to control all nested dependencies and their types, which is why the
|
|
501
|
-
// css prop is omitted in the two prop helpers above - this ensures the css prop isn't
|
|
502
|
-
// erroneously included in react-ui's public api.
|
|
503
|
-
// see https://github.com/microsoft/TypeScript/pull/12253
|
|
504
|
-
// see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
|
|
505
|
-
function assertDefined(val, msg) {
|
|
506
|
-
if (val === undefined || val === null) {
|
|
507
|
-
throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected undefined or null');
|
|
262
|
+
clearTimeout(id);
|
|
508
263
|
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
/***/ }),
|
|
514
|
-
/* 80 */,
|
|
515
|
-
/* 81 */,
|
|
516
|
-
/* 82 */,
|
|
517
|
-
/* 83 */,
|
|
518
|
-
/* 84 */
|
|
519
|
-
/***/ (function(module, exports) {
|
|
520
|
-
|
|
521
|
-
module.exports = require("lodash/indexOf");
|
|
522
|
-
|
|
523
|
-
/***/ }),
|
|
524
|
-
/* 85 */,
|
|
525
|
-
/* 86 */,
|
|
526
|
-
/* 87 */
|
|
527
|
-
/***/ (function(module, exports) {
|
|
528
|
-
|
|
529
|
-
module.exports = require("@splunk/react-icons/DotsThreeVertical");
|
|
530
|
-
|
|
531
|
-
/***/ }),
|
|
532
|
-
/* 88 */,
|
|
533
|
-
/* 89 */,
|
|
534
|
-
/* 90 */,
|
|
535
|
-
/* 91 */,
|
|
536
|
-
/* 92 */,
|
|
537
|
-
/* 93 */,
|
|
538
|
-
/* 94 */,
|
|
539
|
-
/* 95 */,
|
|
540
|
-
/* 96 */,
|
|
541
|
-
/* 97 */,
|
|
542
|
-
/* 98 */,
|
|
543
|
-
/* 99 */,
|
|
544
|
-
/* 100 */,
|
|
545
|
-
/* 101 */,
|
|
546
|
-
/* 102 */,
|
|
547
|
-
/* 103 */,
|
|
548
|
-
/* 104 */,
|
|
549
|
-
/* 105 */,
|
|
550
|
-
/* 106 */,
|
|
551
|
-
/* 107 */,
|
|
552
|
-
/* 108 */,
|
|
553
|
-
/* 109 */,
|
|
554
|
-
/* 110 */,
|
|
555
|
-
/* 111 */
|
|
556
|
-
/***/ (function(module, exports) {
|
|
557
|
-
|
|
558
|
-
module.exports = require("@splunk/react-icons/CaretsSmallUpDown");
|
|
559
|
-
|
|
560
|
-
/***/ }),
|
|
561
|
-
/* 112 */,
|
|
562
|
-
/* 113 */,
|
|
563
|
-
/* 114 */
|
|
564
|
-
/***/ (function(module, exports) {
|
|
565
|
-
|
|
566
|
-
module.exports = require("lodash/findIndex");
|
|
567
|
-
|
|
568
|
-
/***/ }),
|
|
569
|
-
/* 115 */
|
|
570
|
-
/***/ (function(module, exports) {
|
|
571
|
-
|
|
572
|
-
module.exports = require("lodash/merge");
|
|
573
|
-
|
|
574
|
-
/***/ }),
|
|
575
|
-
/* 116 */,
|
|
576
|
-
/* 117 */
|
|
577
|
-
/***/ (function(module, exports) {
|
|
578
|
-
|
|
579
|
-
module.exports = require("lodash/isEqual");
|
|
580
|
-
|
|
581
|
-
/***/ }),
|
|
582
|
-
/* 118 */,
|
|
583
|
-
/* 119 */,
|
|
584
|
-
/* 120 */,
|
|
585
|
-
/* 121 */,
|
|
586
|
-
/* 122 */,
|
|
587
|
-
/* 123 */,
|
|
588
|
-
/* 124 */,
|
|
589
|
-
/* 125 */,
|
|
590
|
-
/* 126 */,
|
|
591
|
-
/* 127 */,
|
|
592
|
-
/* 128 */,
|
|
593
|
-
/* 129 */,
|
|
594
|
-
/* 130 */,
|
|
595
|
-
/* 131 */,
|
|
596
|
-
/* 132 */,
|
|
597
|
-
/* 133 */,
|
|
598
|
-
/* 134 */,
|
|
599
|
-
/* 135 */,
|
|
600
|
-
/* 136 */,
|
|
601
|
-
/* 137 */,
|
|
602
|
-
/* 138 */,
|
|
603
|
-
/* 139 */,
|
|
604
|
-
/* 140 */,
|
|
605
|
-
/* 141 */,
|
|
606
|
-
/* 142 */,
|
|
607
|
-
/* 143 */,
|
|
608
|
-
/* 144 */,
|
|
609
|
-
/* 145 */,
|
|
610
|
-
/* 146 */,
|
|
611
|
-
/* 147 */,
|
|
612
|
-
/* 148 */,
|
|
613
|
-
/* 149 */,
|
|
614
|
-
/* 150 */,
|
|
615
|
-
/* 151 */,
|
|
616
|
-
/* 152 */,
|
|
617
|
-
/* 153 */,
|
|
618
|
-
/* 154 */,
|
|
619
|
-
/* 155 */,
|
|
620
|
-
/* 156 */,
|
|
621
|
-
/* 157 */,
|
|
622
|
-
/* 158 */,
|
|
623
|
-
/* 159 */,
|
|
624
|
-
/* 160 */
|
|
625
|
-
/***/ (function(module, exports) {
|
|
626
|
-
|
|
627
|
-
module.exports = require("lodash/forEach");
|
|
628
|
-
|
|
629
|
-
/***/ }),
|
|
630
|
-
/* 161 */
|
|
631
|
-
/***/ (function(module, exports) {
|
|
632
|
-
|
|
633
|
-
module.exports = require("react-resize-detector");
|
|
634
|
-
|
|
635
|
-
/***/ }),
|
|
636
|
-
/* 162 */
|
|
637
|
-
/***/ (function(module, exports) {
|
|
638
|
-
|
|
639
|
-
module.exports = require("@splunk/react-icons/ArrowDown");
|
|
640
|
-
|
|
641
|
-
/***/ }),
|
|
642
|
-
/* 163 */
|
|
643
|
-
/***/ (function(module, exports) {
|
|
644
|
-
|
|
645
|
-
module.exports = require("@splunk/react-icons/ArrowUp");
|
|
646
|
-
|
|
647
|
-
/***/ }),
|
|
648
|
-
/* 164 */
|
|
649
|
-
/***/ (function(module, exports) {
|
|
650
|
-
|
|
651
|
-
module.exports = require("@splunk/react-icons/ArrowUpDown");
|
|
652
|
-
|
|
653
|
-
/***/ }),
|
|
654
|
-
/* 165 */
|
|
655
|
-
/***/ (function(module, exports) {
|
|
656
|
-
|
|
657
|
-
module.exports = require("@splunk/react-icons/enterprise/Info");
|
|
658
|
-
|
|
659
|
-
/***/ }),
|
|
660
|
-
/* 166 */,
|
|
661
|
-
/* 167 */,
|
|
662
|
-
/* 168 */,
|
|
663
|
-
/* 169 */,
|
|
664
|
-
/* 170 */
|
|
665
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
666
|
-
|
|
667
|
-
"use strict";
|
|
668
|
-
// ESM COMPAT FLAG
|
|
669
|
-
__webpack_require__.r(__webpack_exports__);
|
|
670
|
-
|
|
671
|
-
// EXPORTS
|
|
672
|
-
__webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ src_Table_Table; });
|
|
673
|
-
__webpack_require__.d(__webpack_exports__, "Body", function() { return /* reexport */ Table_Body; });
|
|
674
|
-
__webpack_require__.d(__webpack_exports__, "Caption", function() { return /* reexport */ Table_Caption; });
|
|
675
|
-
__webpack_require__.d(__webpack_exports__, "Cell", function() { return /* reexport */ Table_Cell; });
|
|
676
|
-
__webpack_require__.d(__webpack_exports__, "Head", function() { return /* reexport */ Table_Head; });
|
|
677
|
-
__webpack_require__.d(__webpack_exports__, "HeadCell", function() { return /* reexport */ Table_HeadCell; });
|
|
678
|
-
__webpack_require__.d(__webpack_exports__, "HeadDropdownCell", function() { return /* reexport */ Table_HeadDropdownCell; });
|
|
679
|
-
__webpack_require__.d(__webpack_exports__, "Row", function() { return /* reexport */ Table_Row; });
|
|
680
|
-
|
|
681
|
-
// EXTERNAL MODULE: external "react"
|
|
682
|
-
var external_react_ = __webpack_require__(2);
|
|
683
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
684
|
-
|
|
685
|
-
// EXTERNAL MODULE: external "prop-types"
|
|
686
|
-
var external_prop_types_ = __webpack_require__(1);
|
|
687
|
-
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
688
|
-
|
|
689
|
-
// EXTERNAL MODULE: external "lodash/forEach"
|
|
690
|
-
var forEach_ = __webpack_require__(160);
|
|
691
|
-
var forEach_default = /*#__PURE__*/__webpack_require__.n(forEach_);
|
|
692
|
-
|
|
693
|
-
// EXTERNAL MODULE: external "lodash/has"
|
|
694
|
-
var has_ = __webpack_require__(11);
|
|
695
|
-
var has_default = /*#__PURE__*/__webpack_require__.n(has_);
|
|
696
|
-
|
|
697
|
-
// EXTERNAL MODULE: external "lodash/indexOf"
|
|
698
|
-
var indexOf_ = __webpack_require__(84);
|
|
699
|
-
var indexOf_default = /*#__PURE__*/__webpack_require__.n(indexOf_);
|
|
700
|
-
|
|
701
|
-
// EXTERNAL MODULE: external "lodash/isEqual"
|
|
702
|
-
var isEqual_ = __webpack_require__(117);
|
|
703
|
-
var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual_);
|
|
704
|
-
|
|
705
|
-
// EXTERNAL MODULE: external "lodash/isNumber"
|
|
706
|
-
var isNumber_ = __webpack_require__(77);
|
|
707
|
-
|
|
708
|
-
// EXTERNAL MODULE: external "lodash/omit"
|
|
709
|
-
var omit_ = __webpack_require__(5);
|
|
710
|
-
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
711
|
-
|
|
712
|
-
// EXTERNAL MODULE: external "lodash/throttle"
|
|
713
|
-
var throttle_ = __webpack_require__(33);
|
|
714
|
-
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
|
|
715
|
-
|
|
716
|
-
// EXTERNAL MODULE: external "react-resize-detector"
|
|
717
|
-
var external_react_resize_detector_ = __webpack_require__(161);
|
|
718
|
-
var external_react_resize_detector_default = /*#__PURE__*/__webpack_require__.n(external_react_resize_detector_);
|
|
719
|
-
|
|
720
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
721
|
-
var EventListener_ = __webpack_require__(16);
|
|
722
|
-
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
723
|
-
|
|
724
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
725
|
-
var keyboard_ = __webpack_require__(7);
|
|
726
|
-
|
|
727
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
728
|
-
var ScrollContainerContext_ = __webpack_require__(53);
|
|
729
|
-
|
|
730
|
-
// EXTERNAL MODULE: external "lodash/findIndex"
|
|
731
|
-
var findIndex_ = __webpack_require__(114);
|
|
732
|
-
var findIndex_default = /*#__PURE__*/__webpack_require__.n(findIndex_);
|
|
733
|
-
|
|
734
|
-
// EXTERNAL MODULE: external "lodash/includes"
|
|
735
|
-
var includes_ = __webpack_require__(15);
|
|
736
|
-
var includes_default = /*#__PURE__*/__webpack_require__.n(includes_);
|
|
737
|
-
|
|
738
|
-
// EXTERNAL MODULE: external "lodash/without"
|
|
739
|
-
var without_ = __webpack_require__(61);
|
|
740
|
-
var without_default = /*#__PURE__*/__webpack_require__.n(without_);
|
|
741
|
-
|
|
742
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
743
|
-
var external_styled_components_ = __webpack_require__(3);
|
|
744
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
745
|
-
|
|
746
|
-
// EXTERNAL MODULE: external "@splunk/themes"
|
|
747
|
-
var themes_ = __webpack_require__(0);
|
|
748
|
-
|
|
749
|
-
// CONCATENATED MODULE: ./src/Table/BodyStyles.ts
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
var Styled = external_styled_components_default.a.tbody.withConfig({
|
|
753
|
-
displayName: "BodyStyles__Styled",
|
|
754
|
-
componentId: "sc-1k5p6pq-0"
|
|
755
|
-
})(["", " z-index:0;"], themes_["mixins"].reset('table-row-group'));
|
|
264
|
+
};
|
|
756
265
|
|
|
757
|
-
|
|
758
|
-
var
|
|
266
|
+
function getWindow() {
|
|
267
|
+
var win = typeof window !== 'undefined' ? window : ssrWindow;
|
|
268
|
+
return win;
|
|
269
|
+
}
|
|
759
270
|
|
|
760
|
-
// EXTERNAL MODULE: ./src/utils/ssrWindow.ts
|
|
761
|
-
var ssrWindow = __webpack_require__(18);
|
|
762
271
|
|
|
763
|
-
|
|
272
|
+
;// CONCATENATED MODULE: ./src/Table/Body.tsx
|
|
764
273
|
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); }
|
|
765
274
|
|
|
766
275
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -803,24 +312,24 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
803
312
|
|
|
804
313
|
var propTypes = {
|
|
805
314
|
/** @private. Generally passed by Table rather than added directly. */
|
|
806
|
-
actions: external_prop_types_default.
|
|
807
|
-
children: external_prop_types_default.
|
|
808
|
-
elementRef: external_prop_types_default.
|
|
315
|
+
actions: (external_prop_types_default()).bool,
|
|
316
|
+
children: (external_prop_types_default()).node,
|
|
317
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
809
318
|
|
|
810
319
|
/** @private. Generally passed by Table rather than added directly. */
|
|
811
|
-
movableColumns: external_prop_types_default.
|
|
320
|
+
movableColumns: (external_prop_types_default()).bool,
|
|
812
321
|
|
|
813
322
|
/** @private. Generally passed by Table rather than added directly. */
|
|
814
|
-
rowExpansion: external_prop_types_default.
|
|
323
|
+
rowExpansion: external_prop_types_default().oneOf(['single', 'multi', 'none', 'controlled']),
|
|
815
324
|
|
|
816
325
|
/** @private. Generally passed by Table rather than added directly. */
|
|
817
|
-
onRequestMoveRow: external_prop_types_default.
|
|
326
|
+
onRequestMoveRow: (external_prop_types_default()).func,
|
|
818
327
|
|
|
819
328
|
/** @private. Generally passed by Table rather than added directly. */
|
|
820
|
-
primaryColumnIndex: external_prop_types_default.
|
|
329
|
+
primaryColumnIndex: (external_prop_types_default()).number,
|
|
821
330
|
|
|
822
331
|
/** @private. Generally passed by Table rather than added directly. */
|
|
823
|
-
stripeRows: external_prop_types_default.
|
|
332
|
+
stripeRows: (external_prop_types_default()).bool
|
|
824
333
|
};
|
|
825
334
|
var defaultProps = {
|
|
826
335
|
actions: false,
|
|
@@ -828,7 +337,7 @@ var defaultProps = {
|
|
|
828
337
|
stripeRows: false
|
|
829
338
|
};
|
|
830
339
|
|
|
831
|
-
var
|
|
340
|
+
var Body = /*#__PURE__*/function (_Component) {
|
|
832
341
|
_inherits(Body, _Component);
|
|
833
342
|
|
|
834
343
|
var _super = _createSuper(Body);
|
|
@@ -852,7 +361,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
852
361
|
_defineProperty(_assertThisInitialized(_this), "handleDragStart", function (dragIndex, dragDataId) {
|
|
853
362
|
var _this$el, _this$el$parentElemen, _this$el$parentElemen2, _this$el2;
|
|
854
363
|
|
|
855
|
-
var window =
|
|
364
|
+
var window = getWindow();
|
|
856
365
|
_this.rect = (_this$el = _this.el) === null || _this$el === void 0 ? void 0 : (_this$el$parentElemen = _this$el.parentElement) === null || _this$el$parentElemen === void 0 ? void 0 : (_this$el$parentElemen2 = _this$el$parentElemen.parentElement) === null || _this$el$parentElemen2 === void 0 ? void 0 : _this$el$parentElemen2.getBoundingClientRect();
|
|
857
366
|
_this.rowHeight = (_this$el2 = _this.el) === null || _this$el2 === void 0 ? void 0 : _this$el2.children[0].getBoundingClientRect().height;
|
|
858
367
|
|
|
@@ -931,7 +440,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
931
440
|
dragDataId: dataId
|
|
932
441
|
});
|
|
933
442
|
|
|
934
|
-
if (toIndex <
|
|
443
|
+
if (toIndex < external_react_namespaceObject.Children.toArray(_this.props.children).length) {
|
|
935
444
|
var _this$props$onRequest2, _this$props2;
|
|
936
445
|
|
|
937
446
|
(_this$props$onRequest2 = (_this$props2 = _this.props).onRequestMoveRow) === null || _this$props$onRequest2 === void 0 ? void 0 : _this$props$onRequest2.call(_this$props2, {
|
|
@@ -944,7 +453,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
944
453
|
|
|
945
454
|
_defineProperty(_assertThisInitialized(_this), "handleMount", function (el) {
|
|
946
455
|
_this.el = el;
|
|
947
|
-
|
|
456
|
+
updateReactRef(_this.props.elementRef, el);
|
|
948
457
|
});
|
|
949
458
|
|
|
950
459
|
_defineProperty(_assertThisInitialized(_this), "updateDragPosition", throttle_default()(_this.updateDragPositionImpl, 100, {
|
|
@@ -1043,7 +552,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1043
552
|
}, {
|
|
1044
553
|
key: "cleanupDrag",
|
|
1045
554
|
value: function cleanupDrag() {
|
|
1046
|
-
var window =
|
|
555
|
+
var window = getWindow();
|
|
1047
556
|
window.removeEventListener('dragenter', this.handleDragEnter);
|
|
1048
557
|
window.removeEventListener('dragover', this.handleDragOver);
|
|
1049
558
|
window.removeEventListener('drop', this.handleDrop);
|
|
@@ -1071,7 +580,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1071
580
|
var rows = [];
|
|
1072
581
|
var guidelineRowIndex = this.calculateGuideIndex();
|
|
1073
582
|
var activeElementId = (_this$state$dragDataI = this.state.dragDataId) === null || _this$state$dragDataI === void 0 ? void 0 : _this$state$dragDataI.toString();
|
|
1074
|
-
var filteredChildren =
|
|
583
|
+
var filteredChildren = external_react_namespaceObject.Children.toArray(children).filter(external_react_namespaceObject.isValidElement);
|
|
1075
584
|
filteredChildren.forEach(function (child, i) {
|
|
1076
585
|
var showRowGuideline = 'none';
|
|
1077
586
|
|
|
@@ -1093,7 +602,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1093
602
|
_this2.handleRowExpansion(e, key, child.props.onExpansion);
|
|
1094
603
|
};
|
|
1095
604
|
|
|
1096
|
-
rows.push( /*#__PURE__*/
|
|
605
|
+
rows.push( /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(child, {
|
|
1097
606
|
index: i,
|
|
1098
607
|
showRowGuideline: showRowGuideline,
|
|
1099
608
|
stripe: stripe,
|
|
@@ -1112,8 +621,8 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1112
621
|
}));
|
|
1113
622
|
|
|
1114
623
|
if (expanded && child.props.expansionRow) {
|
|
1115
|
-
|
|
1116
|
-
return rows.push( /*#__PURE__*/
|
|
624
|
+
external_react_namespaceObject.Children.forEach(child.props.expansionRow, function (expansionRow, index) {
|
|
625
|
+
return rows.push( /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(expansionRow, {
|
|
1117
626
|
key: "".concat(key, "-expansion-").concat(index),
|
|
1118
627
|
stripe: stripe,
|
|
1119
628
|
movableColumns: movableColumns,
|
|
@@ -1129,7 +638,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1129
638
|
return null;
|
|
1130
639
|
}
|
|
1131
640
|
|
|
1132
|
-
return /*#__PURE__*/external_react_default.
|
|
641
|
+
return /*#__PURE__*/external_react_default().createElement(Styled, _extends({
|
|
1133
642
|
"data-test": "body"
|
|
1134
643
|
}, otherProps, {
|
|
1135
644
|
ref: this.handleMount
|
|
@@ -1138,53 +647,53 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1138
647
|
}]);
|
|
1139
648
|
|
|
1140
649
|
return Body;
|
|
1141
|
-
}(
|
|
650
|
+
}(external_react_namespaceObject.Component);
|
|
1142
651
|
|
|
1143
|
-
_defineProperty(
|
|
652
|
+
_defineProperty(Body, "splunkUiType", 'Table.Body');
|
|
1144
653
|
|
|
1145
|
-
_defineProperty(
|
|
654
|
+
_defineProperty(Body, "propTypes", propTypes);
|
|
1146
655
|
|
|
1147
|
-
_defineProperty(
|
|
656
|
+
_defineProperty(Body, "defaultProps", defaultProps);
|
|
1148
657
|
|
|
1149
|
-
/* harmony default export */
|
|
1150
|
-
|
|
658
|
+
/* harmony default export */ const Table_Body = (Body);
|
|
659
|
+
;// CONCATENATED MODULE: ./src/Table/TableStyles.ts
|
|
1151
660
|
|
|
1152
661
|
|
|
1153
|
-
var TableStyles_Styled = external_styled_components_default.
|
|
662
|
+
var TableStyles_Styled = external_styled_components_default().div.withConfig({
|
|
1154
663
|
displayName: "TableStyles__Styled",
|
|
1155
664
|
componentId: "sc-1cmfss7-0"
|
|
1156
|
-
})(["", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}"],
|
|
1157
|
-
var StyledTableContainer = external_styled_components_default.
|
|
665
|
+
})(["", ";max-width:100%;position:relative;z-index:1;@media print{max-height:none !important;}"], themes_namespaceObject.mixins.reset('block'));
|
|
666
|
+
var StyledTableContainer = external_styled_components_default().div.withConfig({
|
|
1158
667
|
displayName: "TableStyles__StyledTableContainer",
|
|
1159
668
|
componentId: "sc-1cmfss7-1"
|
|
1160
669
|
})(["overflow:auto;&::before{content:'';width:100%;height:0;top:0;position:absolute;}"]);
|
|
1161
|
-
var StyledTable = external_styled_components_default.
|
|
670
|
+
var StyledTable = external_styled_components_default().table.withConfig({
|
|
1162
671
|
displayName: "TableStyles__StyledTable",
|
|
1163
672
|
componentId: "sc-1cmfss7-2"
|
|
1164
|
-
})(["", ";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;}"],
|
|
673
|
+
})(["", ";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_namespaceObject.mixins.reset('table'), function (_ref) {
|
|
1165
674
|
var $resizableFillLayout = _ref.$resizableFillLayout;
|
|
1166
|
-
return $resizableFillLayout &&
|
|
675
|
+
return $resizableFillLayout && (0,external_styled_components_namespaceObject.css)(["width:100%;min-width:100%;table-layout:fixed;"]);
|
|
1167
676
|
});
|
|
1168
|
-
var StyledDockedScrollbar = external_styled_components_default.
|
|
677
|
+
var StyledDockedScrollbar = external_styled_components_default().div.withConfig({
|
|
1169
678
|
displayName: "TableStyles__StyledDockedScrollbar",
|
|
1170
679
|
componentId: "sc-1cmfss7-3"
|
|
1171
|
-
})(["position:fixed;bottom:0;overflow:auto;z-index:calc(", " + 1);"],
|
|
1172
|
-
var StyledDockedScrollbarContent = external_styled_components_default.
|
|
680
|
+
})(["position:fixed;bottom:0;overflow:auto;z-index:calc(", " + 1);"], themes_namespaceObject.variables.zindexFixedNavbar);
|
|
681
|
+
var StyledDockedScrollbarContent = external_styled_components_default().div.withConfig({
|
|
1173
682
|
displayName: "TableStyles__StyledDockedScrollbarContent",
|
|
1174
683
|
componentId: "sc-1cmfss7-4"
|
|
1175
684
|
})(["height:1px;"]);
|
|
1176
|
-
var StyledTableCaption = external_styled_components_default.
|
|
685
|
+
var StyledTableCaption = external_styled_components_default().caption.withConfig({
|
|
1177
686
|
displayName: "TableStyles__StyledTableCaption",
|
|
1178
687
|
componentId: "sc-1cmfss7-5"
|
|
1179
|
-
})(["padding:", ";font-size:", ";caption-side:", ";"],
|
|
1180
|
-
enterprise: "".concat(
|
|
688
|
+
})(["padding:", ";font-size:", ";caption-side:", ";"], (0,themes_namespaceObject.pick)({
|
|
689
|
+
enterprise: "".concat(themes_namespaceObject.variables.spacingQuarter, " 0"),
|
|
1181
690
|
prisma: "5px 0"
|
|
1182
|
-
}),
|
|
691
|
+
}), themes_namespaceObject.variables.fontSizeLarge, function (_ref2) {
|
|
1183
692
|
var side = _ref2.side;
|
|
1184
693
|
return side;
|
|
1185
694
|
});
|
|
1186
695
|
|
|
1187
|
-
|
|
696
|
+
;// CONCATENATED MODULE: ./src/Table/Caption.tsx
|
|
1188
697
|
function Caption_extends() { Caption_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Caption_extends.apply(this, arguments); }
|
|
1189
698
|
|
|
1190
699
|
function Caption_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Caption_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -1195,8 +704,8 @@ function Caption_objectWithoutPropertiesLoose(source, excluded) { if (source ==
|
|
|
1195
704
|
|
|
1196
705
|
|
|
1197
706
|
var Caption_propTypes = {
|
|
1198
|
-
children: external_prop_types_default.
|
|
1199
|
-
side: external_prop_types_default.
|
|
707
|
+
children: (external_prop_types_default()).node.isRequired,
|
|
708
|
+
side: external_prop_types_default().oneOf(['top', 'bottom'])
|
|
1200
709
|
};
|
|
1201
710
|
|
|
1202
711
|
/**
|
|
@@ -1210,7 +719,7 @@ function Caption(_ref) {
|
|
|
1210
719
|
otherProps = Caption_objectWithoutProperties(_ref, ["children", "side"]);
|
|
1211
720
|
|
|
1212
721
|
// @docs-props-type CaptionPropsBase
|
|
1213
|
-
return /*#__PURE__*/external_react_default.
|
|
722
|
+
return /*#__PURE__*/external_react_default().createElement(StyledTableCaption, Caption_extends({
|
|
1214
723
|
"data-test": "caption",
|
|
1215
724
|
side: side
|
|
1216
725
|
}, otherProps), children);
|
|
@@ -1218,81 +727,81 @@ function Caption(_ref) {
|
|
|
1218
727
|
|
|
1219
728
|
Caption.propTypes = Caption_propTypes;
|
|
1220
729
|
Caption.splunkUiType = 'Table.Caption';
|
|
1221
|
-
/* harmony default export */
|
|
1222
|
-
|
|
730
|
+
/* harmony default export */ const Table_Caption = (Caption);
|
|
731
|
+
;// CONCATENATED MODULE: ./src/Table/CellStyles.ts
|
|
1223
732
|
|
|
1224
733
|
|
|
1225
|
-
var CellStyles_Styled = external_styled_components_default.
|
|
734
|
+
var CellStyles_Styled = external_styled_components_default().td.withConfig({
|
|
1226
735
|
displayName: "CellStyles__Styled",
|
|
1227
736
|
componentId: "sc-1955xk2-0"
|
|
1228
|
-
})(["", " padding:", ";border-left:0 solid transparent;border-right:0 solid transparent;word-wrap:break-word;line-height:", ";vertical-align:top;", " ", " ", " ", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}[data-has-movable-columns='true'] > &:not([data-movable-column='false']){", "}"],
|
|
737
|
+
})(["", " padding:", ";border-left:0 solid transparent;border-right:0 solid transparent;word-wrap:break-word;line-height:", ";vertical-align:top;", " ", " ", " ", " ", " ", " [data-expansion-row='true'] > &:first-child{padding-top:8px;}[data-expansion-row='true'] > &:last-child{padding-bottom:14px;}[data-has-movable-columns='true'] > &:not([data-movable-column='false']){", "}"], themes_namespaceObject.mixins.reset('table-cell'), (0,themes_namespaceObject.pick)({
|
|
1229
738
|
enterprise: '6px 12px',
|
|
1230
739
|
prisma: {
|
|
1231
740
|
comfortable: '14px 8px',
|
|
1232
741
|
compact: '6px 8px'
|
|
1233
742
|
}
|
|
1234
|
-
}),
|
|
1235
|
-
center:
|
|
1236
|
-
left:
|
|
1237
|
-
right:
|
|
1238
|
-
}),
|
|
743
|
+
}), themes_namespaceObject.variables.lineHeight, (0,themes_namespaceObject.pickVariant)('$align', {
|
|
744
|
+
center: (0,external_styled_components_namespaceObject.css)(["text-align:center;"]),
|
|
745
|
+
left: (0,external_styled_components_namespaceObject.css)(["text-align:left;"]),
|
|
746
|
+
right: (0,external_styled_components_namespaceObject.css)(["text-align:right;"])
|
|
747
|
+
}), (0,themes_namespaceObject.pickVariant)('$variant', {
|
|
1239
748
|
expand: {
|
|
1240
|
-
enterprise:
|
|
749
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["padding:6px 0 0 0;"]),
|
|
1241
750
|
prisma: {
|
|
1242
|
-
comfortable:
|
|
1243
|
-
compact:
|
|
751
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["padding:12px 0 0 0;"]),
|
|
752
|
+
compact: (0,external_styled_components_namespaceObject.css)(["padding:4px 0 0 0;"])
|
|
1244
753
|
}
|
|
1245
754
|
},
|
|
1246
755
|
actions: {
|
|
1247
756
|
prisma: {
|
|
1248
|
-
comfortable:
|
|
1249
|
-
compact:
|
|
757
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["padding:4px 8px;"]),
|
|
758
|
+
compact: (0,external_styled_components_namespaceObject.css)(["padding:0 8px 0 0;"])
|
|
1250
759
|
}
|
|
1251
760
|
},
|
|
1252
761
|
toggle: {
|
|
1253
762
|
prisma: {
|
|
1254
|
-
comfortable:
|
|
1255
|
-
compact:
|
|
763
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["padding:10px 0 0 0;"]),
|
|
764
|
+
compact: (0,external_styled_components_namespaceObject.css)(["padding:6px 0 0 0;"])
|
|
1256
765
|
}
|
|
1257
766
|
}
|
|
1258
|
-
}),
|
|
767
|
+
}), (0,themes_namespaceObject.pickVariant)('$appearance', {
|
|
1259
768
|
rowLink: {
|
|
1260
|
-
enterprise:
|
|
1261
|
-
prisma:
|
|
769
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["color:", ";*:hover > &{cursor:pointer;}"], themes_namespaceObject.variables.linkColor),
|
|
770
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["color:", ";*:hover > &{cursor:pointer;}"], themes_namespaceObject.variables.contentColorDefault)
|
|
1262
771
|
},
|
|
1263
772
|
link: {
|
|
1264
|
-
enterprise:
|
|
773
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["color:", ";&:hover{cursor:pointer;color:{dark:variables.accentColorL20,light:variables.linkColor,};box-shadow:", ";}&:focus{color:{dark:variables.accentColorL20,light:variables.focusColor,};box-shadow:", ";}"], themes_namespaceObject.variables.linkColor, themes_namespaceObject.variables.focusShadowInset, themes_namespaceObject.variables.focusShadowInset)
|
|
1265
774
|
}
|
|
1266
775
|
}), function (_ref) {
|
|
1267
776
|
var $clickable = _ref.$clickable;
|
|
1268
|
-
return $clickable &&
|
|
777
|
+
return $clickable && (0,external_styled_components_namespaceObject.css)(["cursor:pointer;&:hover{background-color:", ";color:", ";}&:focus{box-shadow:", ";color:", ";}&:active{background:", ";}"], (0,themes_namespaceObject.pick)({
|
|
1269
778
|
enterprise: {
|
|
1270
|
-
light:
|
|
1271
|
-
dark:
|
|
779
|
+
light: themes_namespaceObject.variables.accentColorL50,
|
|
780
|
+
dark: themes_namespaceObject.variables.accentColorD50
|
|
1272
781
|
},
|
|
1273
|
-
prisma:
|
|
1274
|
-
}),
|
|
1275
|
-
prisma:
|
|
1276
|
-
}),
|
|
1277
|
-
prisma:
|
|
1278
|
-
}),
|
|
1279
|
-
prisma:
|
|
782
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlayHover
|
|
783
|
+
}), (0,themes_namespaceObject.pick)({
|
|
784
|
+
prisma: themes_namespaceObject.variables.contentColorDefault
|
|
785
|
+
}), themes_namespaceObject.variables.focusShadowInset, (0,themes_namespaceObject.pick)({
|
|
786
|
+
prisma: themes_namespaceObject.variables.contentColorDefault
|
|
787
|
+
}), (0,themes_namespaceObject.pick)({
|
|
788
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlayActive
|
|
1280
789
|
}));
|
|
1281
790
|
}, function (_ref2) {
|
|
1282
791
|
var $expanded = _ref2.$expanded;
|
|
1283
|
-
return $expanded &&
|
|
1284
|
-
prisma:
|
|
792
|
+
return $expanded && (0,external_styled_components_namespaceObject.css)(["background-color:", ";"], (0,themes_namespaceObject.pick)({
|
|
793
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlaySelected
|
|
1285
794
|
}));
|
|
1286
795
|
}, function (_ref3) {
|
|
1287
796
|
var $disabled = _ref3.$disabled;
|
|
1288
|
-
return $disabled &&
|
|
1289
|
-
prisma:
|
|
797
|
+
return $disabled && (0,external_styled_components_namespaceObject.css)(["color:", ";"], (0,themes_namespaceObject.pick)({
|
|
798
|
+
prisma: themes_namespaceObject.variables.contentColorDisabled
|
|
1290
799
|
}));
|
|
1291
|
-
},
|
|
1292
|
-
enterprise:
|
|
800
|
+
}, (0,themes_namespaceObject.pick)({
|
|
801
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["padding-left:29px;&:first-child{padding-left:28px;}"])
|
|
1293
802
|
}));
|
|
1294
803
|
|
|
1295
|
-
|
|
804
|
+
;// CONCATENATED MODULE: ./src/Table/Cell.tsx
|
|
1296
805
|
function Cell_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Cell_typeof = function _typeof(obj) { return typeof obj; }; } else { Cell_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Cell_typeof(obj); }
|
|
1297
806
|
|
|
1298
807
|
function Cell_extends() { Cell_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Cell_extends.apply(this, arguments); }
|
|
@@ -1329,32 +838,32 @@ function Cell_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
|
|
|
1329
838
|
|
|
1330
839
|
|
|
1331
840
|
var Cell_propTypes = {
|
|
1332
|
-
align: external_prop_types_default.
|
|
841
|
+
align: external_prop_types_default().oneOf(['left', 'center', 'right']),
|
|
1333
842
|
|
|
1334
843
|
/** @private */
|
|
1335
|
-
appearance: external_prop_types_default.
|
|
1336
|
-
children: external_prop_types_default.
|
|
1337
|
-
data: external_prop_types_default.
|
|
1338
|
-
elementRef: external_prop_types_default.
|
|
1339
|
-
onClick: external_prop_types_default.
|
|
844
|
+
appearance: external_prop_types_default().oneOf(['data', 'link', 'rowLink']),
|
|
845
|
+
children: (external_prop_types_default()).node,
|
|
846
|
+
data: (external_prop_types_default()).any,
|
|
847
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
848
|
+
onClick: (external_prop_types_default()).func,
|
|
1340
849
|
|
|
1341
850
|
/** @private */
|
|
1342
|
-
onKeyDown: external_prop_types_default.
|
|
851
|
+
onKeyDown: (external_prop_types_default()).func,
|
|
1343
852
|
|
|
1344
853
|
/** @private */
|
|
1345
|
-
disabled: external_prop_types_default.
|
|
854
|
+
disabled: (external_prop_types_default()).bool,
|
|
1346
855
|
|
|
1347
856
|
/** @private. */
|
|
1348
|
-
expand: external_prop_types_default.
|
|
857
|
+
expand: (external_prop_types_default()).bool,
|
|
1349
858
|
|
|
1350
859
|
/** @private. */
|
|
1351
|
-
variant: external_prop_types_default.
|
|
860
|
+
variant: external_prop_types_default().oneOf(['toggle', 'expand', 'drag', 'actions'])
|
|
1352
861
|
};
|
|
1353
862
|
var Cell_defaultProps = {
|
|
1354
863
|
align: 'left'
|
|
1355
864
|
};
|
|
1356
865
|
|
|
1357
|
-
var
|
|
866
|
+
var Cell = /*#__PURE__*/function (_Component) {
|
|
1358
867
|
Cell_inherits(Cell, _Component);
|
|
1359
868
|
|
|
1360
869
|
var _super = Cell_createSuper(Cell);
|
|
@@ -1374,7 +883,7 @@ var Cell_Cell = /*#__PURE__*/function (_Component) {
|
|
|
1374
883
|
|
|
1375
884
|
Cell_defineProperty(Cell_assertThisInitialized(_this), "handleMount", function (el) {
|
|
1376
885
|
_this.el = el;
|
|
1377
|
-
|
|
886
|
+
updateReactRef(_this.props.elementRef, el);
|
|
1378
887
|
});
|
|
1379
888
|
|
|
1380
889
|
Cell_defineProperty(Cell_assertThisInitialized(_this), "handleClick", function (e) {
|
|
@@ -1390,7 +899,7 @@ var Cell_Cell = /*#__PURE__*/function (_Component) {
|
|
|
1390
899
|
onClick = _this$props2.onClick,
|
|
1391
900
|
onKeyDown = _this$props2.onKeyDown;
|
|
1392
901
|
|
|
1393
|
-
if (
|
|
902
|
+
if ((0,keyboard_namespaceObject.keycode)(e.nativeEvent) === 'enter') {
|
|
1394
903
|
onClick === null || onClick === void 0 ? void 0 : onClick(e, data);
|
|
1395
904
|
}
|
|
1396
905
|
|
|
@@ -1416,7 +925,7 @@ var Cell_Cell = /*#__PURE__*/function (_Component) {
|
|
|
1416
925
|
|
|
1417
926
|
var clickable = onClick !== undefined;
|
|
1418
927
|
var defaultAppearance = clickable ? 'link' : 'data';
|
|
1419
|
-
return /*#__PURE__*/external_react_default.
|
|
928
|
+
return /*#__PURE__*/external_react_default().createElement(CellStyles_Styled, Cell_extends({
|
|
1420
929
|
"data-test": "cell",
|
|
1421
930
|
$align: align,
|
|
1422
931
|
$appearance: appearance || defaultAppearance,
|
|
@@ -1432,124 +941,113 @@ var Cell_Cell = /*#__PURE__*/function (_Component) {
|
|
|
1432
941
|
}]);
|
|
1433
942
|
|
|
1434
943
|
return Cell;
|
|
1435
|
-
}(
|
|
1436
|
-
|
|
1437
|
-
Cell_defineProperty(
|
|
1438
|
-
|
|
1439
|
-
Cell_defineProperty(
|
|
1440
|
-
|
|
1441
|
-
Cell_defineProperty(
|
|
1442
|
-
|
|
1443
|
-
/* harmony default export */
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
var keys_default = /*#__PURE__*/__webpack_require__.n(
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
var
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
var
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
var
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
var
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
var Caret_ = __webpack_require__(57);
|
|
1478
|
-
var Caret_default = /*#__PURE__*/__webpack_require__.n(Caret_);
|
|
1479
|
-
|
|
1480
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
1481
|
-
var i18n_ = __webpack_require__(4);
|
|
1482
|
-
|
|
1483
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
1484
|
-
var ScreenReaderContent_ = __webpack_require__(14);
|
|
1485
|
-
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
1486
|
-
|
|
1487
|
-
// CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
|
|
944
|
+
}(external_react_namespaceObject.Component);
|
|
945
|
+
|
|
946
|
+
Cell_defineProperty(Cell, "splunkUiType", 'Table.Cell');
|
|
947
|
+
|
|
948
|
+
Cell_defineProperty(Cell, "propTypes", Cell_propTypes);
|
|
949
|
+
|
|
950
|
+
Cell_defineProperty(Cell, "defaultProps", Cell_defaultProps);
|
|
951
|
+
|
|
952
|
+
/* harmony default export */ const Table_Cell = (Cell);
|
|
953
|
+
;// CONCATENATED MODULE: external "lodash/keys"
|
|
954
|
+
const keys_namespaceObject = require("lodash/keys");
|
|
955
|
+
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_namespaceObject);
|
|
956
|
+
;// CONCATENATED MODULE: external "lodash/isString"
|
|
957
|
+
const isString_namespaceObject = require("lodash/isString");
|
|
958
|
+
var isString_default = /*#__PURE__*/__webpack_require__.n(isString_namespaceObject);
|
|
959
|
+
;// CONCATENATED MODULE: external "lodash/merge"
|
|
960
|
+
const merge_namespaceObject = require("lodash/merge");
|
|
961
|
+
var merge_default = /*#__PURE__*/__webpack_require__.n(merge_namespaceObject);
|
|
962
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/ArrowDown"
|
|
963
|
+
const ArrowDown_namespaceObject = require("@splunk/react-icons/ArrowDown");
|
|
964
|
+
var ArrowDown_default = /*#__PURE__*/__webpack_require__.n(ArrowDown_namespaceObject);
|
|
965
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/ArrowUp"
|
|
966
|
+
const ArrowUp_namespaceObject = require("@splunk/react-icons/ArrowUp");
|
|
967
|
+
var ArrowUp_default = /*#__PURE__*/__webpack_require__.n(ArrowUp_namespaceObject);
|
|
968
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/ArrowUpDown"
|
|
969
|
+
const ArrowUpDown_namespaceObject = require("@splunk/react-icons/ArrowUpDown");
|
|
970
|
+
var ArrowUpDown_default = /*#__PURE__*/__webpack_require__.n(ArrowUpDown_namespaceObject);
|
|
971
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
|
|
972
|
+
const CaretSmallDown_namespaceObject = require("@splunk/react-icons/CaretSmallDown");
|
|
973
|
+
var CaretSmallDown_default = /*#__PURE__*/__webpack_require__.n(CaretSmallDown_namespaceObject);
|
|
974
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/CaretsSmallUpDown"
|
|
975
|
+
const CaretsSmallUpDown_namespaceObject = require("@splunk/react-icons/CaretsSmallUpDown");
|
|
976
|
+
var CaretsSmallUpDown_default = /*#__PURE__*/__webpack_require__.n(CaretsSmallUpDown_namespaceObject);
|
|
977
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Caret"
|
|
978
|
+
const Caret_namespaceObject = require("@splunk/react-icons/enterprise/Caret");
|
|
979
|
+
var Caret_default = /*#__PURE__*/__webpack_require__.n(Caret_namespaceObject);
|
|
980
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
981
|
+
const i18n_namespaceObject = require("@splunk/ui-utils/i18n");
|
|
982
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
983
|
+
const ScreenReaderContent_namespaceObject = require("@splunk/react-ui/ScreenReaderContent");
|
|
984
|
+
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_namespaceObject);
|
|
985
|
+
;// CONCATENATED MODULE: ./src/Table/HeadInnerStyles.ts
|
|
1488
986
|
|
|
1489
987
|
|
|
1490
988
|
|
|
1491
989
|
var tableHorizontalSpacing = '12px';
|
|
1492
|
-
var StyledDragContainer = external_styled_components_default.
|
|
990
|
+
var StyledDragContainer = external_styled_components_default().div.withConfig({
|
|
1493
991
|
displayName: "HeadInnerStyles__StyledDragContainer",
|
|
1494
992
|
componentId: "sc-1sa0wng-0"
|
|
1495
|
-
})(["position:absolute;cursor:move;top:0;", " padding:", ";"],
|
|
1496
|
-
enterprise:
|
|
1497
|
-
prisma:
|
|
1498
|
-
}),
|
|
993
|
+
})(["position:absolute;cursor:move;top:0;", " padding:", ";"], (0,themes_namespaceObject.pick)({
|
|
994
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["left:0;"]),
|
|
995
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["right:0;"])
|
|
996
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1499
997
|
enterprise: '9px 12px',
|
|
1500
998
|
prisma: {
|
|
1501
999
|
comfortable: '17px 4px 14px',
|
|
1502
1000
|
compact: '9px 4px 6px'
|
|
1503
1001
|
}
|
|
1504
1002
|
}));
|
|
1505
|
-
var StyledMenuIcon = external_styled_components_default.
|
|
1003
|
+
var StyledMenuIcon = external_styled_components_default().span.withConfig({
|
|
1506
1004
|
displayName: "HeadInnerStyles__StyledMenuIcon",
|
|
1507
1005
|
componentId: "sc-1sa0wng-1"
|
|
1508
|
-
})(["", " color:", ";position:relative;"],
|
|
1509
|
-
prisma:
|
|
1510
|
-
enterprise:
|
|
1511
|
-
}),
|
|
1512
|
-
enterprise:
|
|
1513
|
-
prisma:
|
|
1006
|
+
})(["", " color:", ";position:relative;"], (0,themes_namespaceObject.pick)({
|
|
1007
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["display:inline-flex;"]),
|
|
1008
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["padding-left:4px;"])
|
|
1009
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1010
|
+
enterprise: themes_namespaceObject.variables.textGray,
|
|
1011
|
+
prisma: themes_namespaceObject.variables.contentColorDefault
|
|
1514
1012
|
}));
|
|
1515
|
-
var StyledLabel = external_styled_components_default.
|
|
1013
|
+
var StyledLabel = external_styled_components_default().span.withConfig({
|
|
1516
1014
|
displayName: "HeadInnerStyles__StyledLabel",
|
|
1517
1015
|
componentId: "sc-1sa0wng-2"
|
|
1518
|
-
})(["flex:0 1 auto;position:relative;word-wrap:break-word;word-break:break-word;", " ", " ", " ", " ", " + &{margin-left:", ";}"],
|
|
1016
|
+
})(["flex:0 1 auto;position:relative;word-wrap:break-word;word-break:break-word;", " ", " ", " ", " ", " + &{margin-left:", ";}"], (0,themes_namespaceObject.pick)({
|
|
1519
1017
|
enterprise: function enterprise(_ref) {
|
|
1520
1018
|
var $align = _ref.$align;
|
|
1521
|
-
return $align !== 'right' &&
|
|
1019
|
+
return $align !== 'right' && (0,external_styled_components_namespaceObject.css)(["display:flex;justify-content:space-between;"]);
|
|
1522
1020
|
},
|
|
1523
|
-
prisma:
|
|
1524
|
-
}),
|
|
1525
|
-
"true":
|
|
1526
|
-
}),
|
|
1527
|
-
"true":
|
|
1528
|
-
}),
|
|
1529
|
-
right:
|
|
1530
|
-
left:
|
|
1531
|
-
center:
|
|
1021
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["display:flex;"])
|
|
1022
|
+
}), (0,themes_namespaceObject.pickVariant)('$truncate', {
|
|
1023
|
+
"true": (0,external_styled_components_namespaceObject.css)(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"])
|
|
1024
|
+
}), (0,themes_namespaceObject.pickVariant)('$fill', {
|
|
1025
|
+
"true": (0,external_styled_components_namespaceObject.css)(["flex:1 0 0px;"])
|
|
1026
|
+
}), (0,themes_namespaceObject.pickVariant)('$align', {
|
|
1027
|
+
right: (0,external_styled_components_namespaceObject.css)(["& > &{text-align:right;}"]),
|
|
1028
|
+
left: (0,external_styled_components_namespaceObject.css)(["& > &{text-align:left;}"]),
|
|
1029
|
+
center: (0,external_styled_components_namespaceObject.css)(["& > &{text-align:center;}"])
|
|
1532
1030
|
}),
|
|
1533
1031
|
/* sc-sel */
|
|
1534
|
-
StyledDragContainer,
|
|
1032
|
+
StyledDragContainer, (0,themes_namespaceObject.pick)({
|
|
1535
1033
|
enterprise: tableHorizontalSpacing
|
|
1536
1034
|
}));
|
|
1537
|
-
var HeadInnerStyles_Styled = external_styled_components_default.
|
|
1035
|
+
var HeadInnerStyles_Styled = external_styled_components_default().div.withConfig({
|
|
1538
1036
|
displayName: "HeadInnerStyles__Styled",
|
|
1539
1037
|
componentId: "sc-1sa0wng-3"
|
|
1540
|
-
})(["", " ", ";position:relative;font-size:", ";", ";line-height:", ";justify-content:", ";padding:", ";", " ", " ", " &[data-helper]{background-color:", ";position:absolute;left:-10000px;top:-10000px;box-shadow:", ";box-sizing:border-box;background-repeat:repeat-x;", ";}@media print{background-image:none;}"],
|
|
1038
|
+
})(["", " ", ";position:relative;font-size:", ";", ";line-height:", ";justify-content:", ";padding:", ";", " ", " ", " &[data-helper]{background-color:", ";position:absolute;left:-10000px;top:-10000px;box-shadow:", ";box-sizing:border-box;background-repeat:repeat-x;", ";}@media print{background-image:none;}"], themes_namespaceObject.mixins.reset('flex'), themes_namespaceObject.mixins.clearfix(), (0,themes_namespaceObject.pick)({
|
|
1541
1039
|
enterprise: 'inherit',
|
|
1542
1040
|
prisma: '12px'
|
|
1543
|
-
}),
|
|
1544
|
-
prisma:
|
|
1545
|
-
}),
|
|
1546
|
-
enterprise:
|
|
1041
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1042
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["font-weight:bold;"])
|
|
1043
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1044
|
+
enterprise: themes_namespaceObject.variables.lineHeight,
|
|
1547
1045
|
prisma: '16px'
|
|
1548
|
-
}),
|
|
1046
|
+
}), (0,themes_namespaceObject.pickVariant)('$align', {
|
|
1549
1047
|
center: 'center',
|
|
1550
1048
|
left: 'flex-start',
|
|
1551
1049
|
right: 'flex-end'
|
|
1552
|
-
}),
|
|
1050
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1553
1051
|
enterprise: '6px 12px',
|
|
1554
1052
|
prisma: {
|
|
1555
1053
|
comfortable: '16px 10px',
|
|
@@ -1557,239 +1055,239 @@ var HeadInnerStyles_Styled = external_styled_components_default.a.div.withConfig
|
|
|
1557
1055
|
}
|
|
1558
1056
|
}), function (_ref2) {
|
|
1559
1057
|
var $hasActionsHead = _ref2.$hasActionsHead;
|
|
1560
|
-
return $hasActionsHead &&
|
|
1058
|
+
return $hasActionsHead && (0,external_styled_components_namespaceObject.css)(["padding:0;"]);
|
|
1561
1059
|
}, function (_ref3) {
|
|
1562
1060
|
var $dragging = _ref3.$dragging;
|
|
1563
|
-
return $dragging &&
|
|
1061
|
+
return $dragging && (0,external_styled_components_namespaceObject.css)(["opacity:0;"]);
|
|
1564
1062
|
}, function (_ref4) {
|
|
1565
1063
|
var $draggable = _ref4.$draggable;
|
|
1566
|
-
return $draggable &&
|
|
1064
|
+
return $draggable && (0,external_styled_components_namespaceObject.css)(["padding-left:", ";-webkit-user-drag:element;user-select:none;"], (0,themes_namespaceObject.pick)({
|
|
1567
1065
|
enterprise: '16px'
|
|
1568
1066
|
}));
|
|
1569
|
-
},
|
|
1067
|
+
}, (0,themes_namespaceObject.pick)({
|
|
1570
1068
|
enterprise: {
|
|
1571
|
-
light:
|
|
1572
|
-
dark:
|
|
1069
|
+
light: themes_namespaceObject.variables.accentColorL50,
|
|
1070
|
+
dark: themes_namespaceObject.variables.accentColorD50
|
|
1573
1071
|
},
|
|
1574
|
-
prisma:
|
|
1575
|
-
}),
|
|
1576
|
-
enterprise:
|
|
1577
|
-
prisma:
|
|
1578
|
-
}),
|
|
1579
|
-
enterprise:
|
|
1072
|
+
prisma: themes_namespaceObject.mixins.overlayColors(themes_namespaceObject.variables.interactiveColorBackground, themes_namespaceObject.variables.interactiveColorOverlaySelected)
|
|
1073
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1074
|
+
enterprise: themes_namespaceObject.variables.overlayShadow,
|
|
1075
|
+
prisma: themes_namespaceObject.variables.dragShadow
|
|
1076
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1077
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["border:1px solid ", ";"], themes_namespaceObject.variables.borderColor)
|
|
1580
1078
|
}));
|
|
1581
|
-
var StyledSortIcon = external_styled_components_default.
|
|
1079
|
+
var StyledSortIcon = external_styled_components_default().span.withConfig({
|
|
1582
1080
|
displayName: "HeadInnerStyles__StyledSortIcon",
|
|
1583
1081
|
componentId: "sc-1sa0wng-4"
|
|
1584
|
-
})(["flex:0 0 auto;", ";", " color:", ";", ""],
|
|
1585
|
-
enterprise:
|
|
1586
|
-
prisma:
|
|
1587
|
-
}),
|
|
1588
|
-
prisma:
|
|
1589
|
-
}),
|
|
1082
|
+
})(["flex:0 0 auto;", ";", " color:", ";", ""], (0,themes_namespaceObject.pick)({
|
|
1083
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["right:0;"]),
|
|
1084
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["left:0;"])
|
|
1085
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1086
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["margin-right:4px;"])
|
|
1087
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1590
1088
|
enterprise: {
|
|
1591
|
-
light:
|
|
1592
|
-
dark:
|
|
1089
|
+
light: themes_namespaceObject.variables.textGray,
|
|
1090
|
+
dark: themes_namespaceObject.variables.gray80
|
|
1593
1091
|
}
|
|
1594
1092
|
}), function (_ref5) {
|
|
1595
1093
|
var $sorted = _ref5.$sorted;
|
|
1596
|
-
return $sorted &&
|
|
1597
|
-
enterprise:
|
|
1598
|
-
prisma:
|
|
1094
|
+
return $sorted && (0,external_styled_components_namespaceObject.css)(["color:", ";"], (0,themes_namespaceObject.pick)({
|
|
1095
|
+
enterprise: themes_namespaceObject.variables.accentColor,
|
|
1096
|
+
prisma: themes_namespaceObject.variables.contentColorDefault
|
|
1599
1097
|
}));
|
|
1600
1098
|
});
|
|
1601
|
-
var StyledResize = external_styled_components_default.
|
|
1099
|
+
var StyledResize = external_styled_components_default().button.withConfig({
|
|
1602
1100
|
displayName: "HeadInnerStyles__StyledResize",
|
|
1603
1101
|
componentId: "sc-1sa0wng-5"
|
|
1604
|
-
})(["", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > ", " > &{right:0;width:5px;}&::-moz-focus-inner{border:0;padding:0;}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}"],
|
|
1102
|
+
})(["", ";position:absolute;right:-5px;width:9px;top:0;bottom:0;z-index:1;cursor:col-resize;th:last-child > ", " > &{right:0;width:5px;}&::-moz-focus-inner{border:0;padding:0;}&:focus{outline:none;&::before{content:'';position:absolute;background:", ";box-shadow:", ";left:4px;width:1px;top:0;bottom:0;}}"], themes_namespaceObject.mixins.reset('block'),
|
|
1605
1103
|
/* sc-sel */
|
|
1606
|
-
HeadInnerStyles_Styled,
|
|
1104
|
+
HeadInnerStyles_Styled, themes_namespaceObject.variables.focusColor, themes_namespaceObject.variables.focusShadow); // TODO: SUI-5361 remove StyledCaretUp and StyledCaretDown once have made a general way to address the multicolor icon problem
|
|
1607
1105
|
|
|
1608
|
-
var StyledCaretDown = external_styled_components_default()(CaretsSmallUpDown_default
|
|
1106
|
+
var StyledCaretDown = external_styled_components_default()((CaretsSmallUpDown_default())).withConfig({
|
|
1609
1107
|
displayName: "HeadInnerStyles__StyledCaretDown",
|
|
1610
1108
|
componentId: "sc-1sa0wng-6"
|
|
1611
1109
|
})(["path:last-child{fill:transparent;}"]);
|
|
1612
|
-
var StyledCaretUp = external_styled_components_default()(CaretsSmallUpDown_default
|
|
1110
|
+
var StyledCaretUp = external_styled_components_default()((CaretsSmallUpDown_default())).withConfig({
|
|
1613
1111
|
displayName: "HeadInnerStyles__StyledCaretUp",
|
|
1614
1112
|
componentId: "sc-1sa0wng-7"
|
|
1615
1113
|
})(["path:first-child{fill:transparent;}"]);
|
|
1616
1114
|
|
|
1617
|
-
|
|
1115
|
+
;// CONCATENATED MODULE: ./src/Table/HeadCellStyles.ts
|
|
1618
1116
|
|
|
1619
1117
|
|
|
1620
1118
|
|
|
1621
|
-
var HeadCellStyles_Styled = external_styled_components_default.
|
|
1119
|
+
var HeadCellStyles_Styled = external_styled_components_default().th.withConfig({
|
|
1622
1120
|
displayName: "HeadCellStyles__Styled",
|
|
1623
1121
|
componentId: "sc-1hj81sa-0"
|
|
1624
|
-
})(["", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";& + &{border-left:1px solid ", ";}", " ", " ", " ", ""],
|
|
1122
|
+
})(["", ";background-color:", ";box-sizing:content-box;text-align:left;vertical-align:", ";& + &{border-left:1px solid ", ";}", " ", " ", " ", ""], themes_namespaceObject.mixins.reset('table-cell'), (0,themes_namespaceObject.pick)({
|
|
1625
1123
|
enterprise: {
|
|
1626
|
-
light:
|
|
1627
|
-
dark:
|
|
1124
|
+
light: themes_namespaceObject.variables.gray92,
|
|
1125
|
+
dark: themes_namespaceObject.variables.black
|
|
1628
1126
|
},
|
|
1629
|
-
prisma:
|
|
1127
|
+
prisma: themes_namespaceObject.variables.interactiveColorBackground
|
|
1630
1128
|
}), function (_ref) {
|
|
1631
1129
|
var $variant = _ref.$variant;
|
|
1632
1130
|
return $variant ? 'middle' : 'top';
|
|
1633
|
-
},
|
|
1634
|
-
enterprise:
|
|
1635
|
-
prisma:
|
|
1131
|
+
}, (0,themes_namespaceObject.pick)({
|
|
1132
|
+
enterprise: themes_namespaceObject.variables.backgroundColor,
|
|
1133
|
+
prisma: themes_namespaceObject.variables.backgroundColorPage
|
|
1636
1134
|
}), function (_ref2) {
|
|
1637
1135
|
var $isFixed = _ref2.$isFixed,
|
|
1638
1136
|
$zIndex = _ref2.$zIndex;
|
|
1639
|
-
return $isFixed &&
|
|
1640
|
-
enterprise:
|
|
1641
|
-
prisma:
|
|
1642
|
-
}),
|
|
1643
|
-
enterprise:
|
|
1644
|
-
prisma:
|
|
1137
|
+
return $isFixed && (0,external_styled_components_namespaceObject.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, (0,themes_namespaceObject.pick)({
|
|
1138
|
+
enterprise: themes_namespaceObject.variables.backgroundColor,
|
|
1139
|
+
prisma: themes_namespaceObject.variables.backgroundColorPage
|
|
1140
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1141
|
+
enterprise: themes_namespaceObject.variables.backgroundColor,
|
|
1142
|
+
prisma: themes_namespaceObject.variables.backgroundColorPage
|
|
1645
1143
|
}));
|
|
1646
1144
|
}, function (_ref3) {
|
|
1647
1145
|
var $clickable = _ref3.$clickable;
|
|
1648
|
-
return $clickable &&
|
|
1146
|
+
return $clickable && (0,external_styled_components_namespaceObject.css)(["cursor:pointer;&:focus{box-shadow:", ";outline:none;& > ", "{color:", ";background-color:", ";}}&:hover{outline:none;& > ", "{color:", ";background-color:", ";}}&:active{& > ", "{background-color:", ";}}"], themes_namespaceObject.variables.focusShadowInset,
|
|
1649
1147
|
/* sc-sel */
|
|
1650
|
-
HeadInnerStyles_Styled,
|
|
1148
|
+
HeadInnerStyles_Styled, (0,themes_namespaceObject.pick)({
|
|
1651
1149
|
enterprise: {
|
|
1652
|
-
light:
|
|
1653
|
-
dark:
|
|
1150
|
+
light: themes_namespaceObject.variables.accentColorD10,
|
|
1151
|
+
dark: themes_namespaceObject.variables.linkColorHover
|
|
1654
1152
|
}
|
|
1655
|
-
}),
|
|
1656
|
-
prisma:
|
|
1153
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1154
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlaySelected
|
|
1657
1155
|
}),
|
|
1658
1156
|
/* sc-sel */
|
|
1659
|
-
HeadInnerStyles_Styled,
|
|
1157
|
+
HeadInnerStyles_Styled, (0,themes_namespaceObject.pick)({
|
|
1660
1158
|
enterprise: {
|
|
1661
|
-
light:
|
|
1662
|
-
dark:
|
|
1159
|
+
light: themes_namespaceObject.variables.accentColorD10,
|
|
1160
|
+
dark: themes_namespaceObject.variables.linkColorHover
|
|
1663
1161
|
}
|
|
1664
|
-
}),
|
|
1665
|
-
prisma:
|
|
1162
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1163
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlayHover
|
|
1666
1164
|
}),
|
|
1667
1165
|
/* sc-sel */
|
|
1668
|
-
HeadInnerStyles_Styled,
|
|
1669
|
-
prisma:
|
|
1166
|
+
HeadInnerStyles_Styled, (0,themes_namespaceObject.pick)({
|
|
1167
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlayActive
|
|
1670
1168
|
}));
|
|
1671
1169
|
}, function (_ref4) {
|
|
1672
1170
|
var $dragging = _ref4.$dragging;
|
|
1673
|
-
return $dragging &&
|
|
1171
|
+
return $dragging && (0,external_styled_components_namespaceObject.css)(["background-color:", ";&:focus{box-shadow:none;}"], (0,themes_namespaceObject.pick)({
|
|
1674
1172
|
enterprise: {
|
|
1675
|
-
light:
|
|
1676
|
-
dark:
|
|
1173
|
+
light: themes_namespaceObject.variables.gray80,
|
|
1174
|
+
dark: themes_namespaceObject.variables.gray20
|
|
1677
1175
|
},
|
|
1678
|
-
prisma:
|
|
1176
|
+
prisma: themes_namespaceObject.mixins.overlayColors(themes_namespaceObject.variables.backgroundColorPage, themes_namespaceObject.variables.interactiveColorOverlayDrag)
|
|
1679
1177
|
}));
|
|
1680
|
-
},
|
|
1681
|
-
actions:
|
|
1178
|
+
}, (0,themes_namespaceObject.pickVariant)('$variant', {
|
|
1179
|
+
actions: (0,external_styled_components_namespaceObject.css)(["& > ", "{padding-right:8px;}"],
|
|
1682
1180
|
/* sc-sel */
|
|
1683
1181
|
HeadInnerStyles_Styled),
|
|
1684
|
-
info:
|
|
1182
|
+
info: (0,external_styled_components_namespaceObject.css)(["& > ", "{", ";}"],
|
|
1685
1183
|
/* sc-sel */
|
|
1686
|
-
HeadInnerStyles_Styled,
|
|
1687
|
-
enterprise:
|
|
1184
|
+
HeadInnerStyles_Styled, (0,themes_namespaceObject.pick)({
|
|
1185
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["padding-top:7px;"]),
|
|
1688
1186
|
prisma: {
|
|
1689
|
-
comfortable:
|
|
1690
|
-
compact:
|
|
1187
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["padding:16px 12px;"]),
|
|
1188
|
+
compact: (0,external_styled_components_namespaceObject.css)(["padding:6px 12px;"])
|
|
1691
1189
|
}
|
|
1692
1190
|
})),
|
|
1693
|
-
toggleAll:
|
|
1191
|
+
toggleAll: (0,external_styled_components_namespaceObject.css)(["& > ", "{padding-top:", ";}"],
|
|
1694
1192
|
/* sc-sel */
|
|
1695
|
-
HeadInnerStyles_Styled,
|
|
1193
|
+
HeadInnerStyles_Styled, (0,themes_namespaceObject.pick)({
|
|
1696
1194
|
prisma: {
|
|
1697
1195
|
comfortable: '14px',
|
|
1698
1196
|
compact: '7px'
|
|
1699
1197
|
}
|
|
1700
1198
|
}))
|
|
1701
1199
|
}));
|
|
1702
|
-
var StyledGuideLine = external_styled_components_default.
|
|
1200
|
+
var StyledGuideLine = external_styled_components_default().div.withConfig({
|
|
1703
1201
|
displayName: "HeadCellStyles__StyledGuideLine",
|
|
1704
1202
|
componentId: "sc-1hj81sa-1"
|
|
1705
|
-
})(["", " width:1px;position:absolute;background-color:", ";height:100%;top:0;z-index:1;", ""],
|
|
1706
|
-
enterprise:
|
|
1707
|
-
prisma:
|
|
1708
|
-
}),
|
|
1709
|
-
before:
|
|
1203
|
+
})(["", " width:1px;position:absolute;background-color:", ";height:100%;top:0;z-index:1;", ""], themes_namespaceObject.mixins.reset('block'), (0,themes_namespaceObject.pick)({
|
|
1204
|
+
enterprise: themes_namespaceObject.variables.linkColor,
|
|
1205
|
+
prisma: themes_namespaceObject.variables.interactiveColorPrimary
|
|
1206
|
+
}), (0,themes_namespaceObject.pickVariant)('$position', {
|
|
1207
|
+
before: (0,external_styled_components_namespaceObject.css)(["float:left;", ":not(:first-child) > &{margin-left:-1px;}"],
|
|
1710
1208
|
/* sc-sel */
|
|
1711
1209
|
HeadCellStyles_Styled),
|
|
1712
|
-
after:
|
|
1210
|
+
after: (0,external_styled_components_namespaceObject.css)(["right:0;"])
|
|
1713
1211
|
}));
|
|
1714
1212
|
|
|
1715
|
-
|
|
1213
|
+
;// CONCATENATED MODULE: ./src/Table/RowDragCellStyles.ts
|
|
1716
1214
|
|
|
1717
1215
|
|
|
1718
|
-
var RowDragCellStyles_Styled = external_styled_components_default.
|
|
1216
|
+
var RowDragCellStyles_Styled = external_styled_components_default().td.withConfig({
|
|
1719
1217
|
displayName: "RowDragCellStyles__Styled",
|
|
1720
1218
|
componentId: "sc-9kbaj2-0"
|
|
1721
|
-
})(["", " box-sizing:content-box;touch-action:none;width:", ";& + &{border-left:", ";}&:focus{box-shadow:", ";outline:none;}&:hover{background-color:", ";outline:none;}&:active{background-color:", ";}", ""],
|
|
1219
|
+
})(["", " box-sizing:content-box;touch-action:none;width:", ";& + &{border-left:", ";}&:focus{box-shadow:", ";outline:none;}&:hover{background-color:", ";outline:none;}&:active{background-color:", ";}", ""], themes_namespaceObject.mixins.reset('table-cell'), (0,themes_namespaceObject.pick)({
|
|
1722
1220
|
enterprise: '32px',
|
|
1723
1221
|
prisma: '36px'
|
|
1724
|
-
}),
|
|
1725
|
-
enterprise: "1px solid ".concat(
|
|
1726
|
-
prisma: "1px solid ".concat(
|
|
1727
|
-
}),
|
|
1222
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1223
|
+
enterprise: "1px solid ".concat(themes_namespaceObject.variables.backgroundColor),
|
|
1224
|
+
prisma: "1px solid ".concat(themes_namespaceObject.variables.interactiveColorBorder)
|
|
1225
|
+
}), themes_namespaceObject.variables.focusShadowInset, (0,themes_namespaceObject.pick)({
|
|
1728
1226
|
enterprise: {
|
|
1729
|
-
light:
|
|
1730
|
-
dark:
|
|
1227
|
+
light: themes_namespaceObject.variables.accentColorL50,
|
|
1228
|
+
dark: themes_namespaceObject.variables.accentColorD50
|
|
1731
1229
|
},
|
|
1732
|
-
prisma:
|
|
1733
|
-
}),
|
|
1734
|
-
prisma:
|
|
1230
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlayHover
|
|
1231
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1232
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlayActive
|
|
1735
1233
|
}), function (_ref) {
|
|
1736
1234
|
var $dragging = _ref.$dragging;
|
|
1737
|
-
return $dragging &&
|
|
1738
|
-
prisma:
|
|
1235
|
+
return $dragging && (0,external_styled_components_namespaceObject.css)(["&:active{background-color:", ";}"], (0,themes_namespaceObject.pick)({
|
|
1236
|
+
prisma: themes_namespaceObject.mixins.overlayColors(themes_namespaceObject.variables.backgroundColorPage, themes_namespaceObject.variables.interactiveColorOverlayDrag)
|
|
1739
1237
|
}));
|
|
1740
1238
|
});
|
|
1741
|
-
var RowDragCellStyles_StyledGuideLine = external_styled_components_default.
|
|
1239
|
+
var RowDragCellStyles_StyledGuideLine = external_styled_components_default().div.withConfig({
|
|
1742
1240
|
displayName: "RowDragCellStyles__StyledGuideLine",
|
|
1743
1241
|
componentId: "sc-9kbaj2-1"
|
|
1744
|
-
})(["", " width:100%;height:1px;position:absolute;left:0;z-index:1;", ""],
|
|
1745
|
-
before:
|
|
1746
|
-
enterprise:
|
|
1747
|
-
prisma:
|
|
1242
|
+
})(["", " width:100%;height:1px;position:absolute;left:0;z-index:1;", ""], themes_namespaceObject.mixins.reset('block'), (0,themes_namespaceObject.pickVariant)('$position', {
|
|
1243
|
+
before: (0,external_styled_components_namespaceObject.css)(["&::before{content:' ';border-top:1px solid;border-color:", ";width:100%;height:1px;top:0;position:absolute;}"], (0,themes_namespaceObject.pick)({
|
|
1244
|
+
enterprise: themes_namespaceObject.variables.linkColor,
|
|
1245
|
+
prisma: themes_namespaceObject.variables.interactiveColorPrimary
|
|
1748
1246
|
})),
|
|
1749
|
-
after:
|
|
1750
|
-
enterprise:
|
|
1751
|
-
prisma:
|
|
1247
|
+
after: (0,external_styled_components_namespaceObject.css)(["&::after{bottom:0;background-color:", ";}"], (0,themes_namespaceObject.pick)({
|
|
1248
|
+
enterprise: themes_namespaceObject.variables.linkColor,
|
|
1249
|
+
prisma: themes_namespaceObject.variables.interactiveColorPrimary
|
|
1752
1250
|
}))
|
|
1753
1251
|
}));
|
|
1754
|
-
var StyledDrag = external_styled_components_default.
|
|
1252
|
+
var StyledDrag = external_styled_components_default().div.withConfig({
|
|
1755
1253
|
displayName: "RowDragCellStyles__StyledDrag",
|
|
1756
1254
|
componentId: "sc-9kbaj2-2"
|
|
1757
|
-
})(["", " ", ";justify-content:center;cursor:move;", " ", " &[data-helper]{background-color:", ";position:absolute;left:-10000px;top:-10000px;box-shadow:", ";box-sizing:border-box;background-repeat:repeat-x;", ";}@media print{background-image:none;}"],
|
|
1255
|
+
})(["", " ", ";justify-content:center;cursor:move;", " ", " &[data-helper]{background-color:", ";position:absolute;left:-10000px;top:-10000px;box-shadow:", ";box-sizing:border-box;background-repeat:repeat-x;", ";}@media print{background-image:none;}"], themes_namespaceObject.mixins.reset('flex'), themes_namespaceObject.mixins.clearfix(), function (_ref2) {
|
|
1758
1256
|
var $dragging = _ref2.$dragging;
|
|
1759
|
-
return $dragging &&
|
|
1257
|
+
return $dragging && (0,external_styled_components_namespaceObject.css)(["opacity:0;"]);
|
|
1760
1258
|
}, function (_ref3) {
|
|
1761
1259
|
var $draggable = _ref3.$draggable;
|
|
1762
|
-
return $draggable &&
|
|
1260
|
+
return $draggable && (0,external_styled_components_namespaceObject.css)(["padding:", ";-webkit-user-drag:element;user-select:none;"], (0,themes_namespaceObject.pick)({
|
|
1763
1261
|
enterprise: '9px 0',
|
|
1764
1262
|
prisma: {
|
|
1765
1263
|
comfortable: '16px 17px 15px',
|
|
1766
1264
|
compact: '9px 17px 6px'
|
|
1767
1265
|
}
|
|
1768
1266
|
}));
|
|
1769
|
-
},
|
|
1267
|
+
}, (0,themes_namespaceObject.pick)({
|
|
1770
1268
|
enterprise: {
|
|
1771
|
-
light:
|
|
1772
|
-
dark:
|
|
1269
|
+
light: themes_namespaceObject.variables.accentColorL50,
|
|
1270
|
+
dark: themes_namespaceObject.variables.accentColorD50
|
|
1773
1271
|
},
|
|
1774
|
-
prisma:
|
|
1775
|
-
}),
|
|
1776
|
-
enterprise:
|
|
1777
|
-
prisma:
|
|
1778
|
-
}),
|
|
1779
|
-
enterprise:
|
|
1272
|
+
prisma: themes_namespaceObject.mixins.overlayColors(themes_namespaceObject.variables.interactiveColorBackground, themes_namespaceObject.variables.interactiveColorOverlaySelected)
|
|
1273
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1274
|
+
enterprise: themes_namespaceObject.variables.overlayShadow,
|
|
1275
|
+
prisma: themes_namespaceObject.variables.dragShadow
|
|
1276
|
+
}), (0,themes_namespaceObject.pick)({
|
|
1277
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["border:1px solid ", ";"], themes_namespaceObject.variables.borderColor)
|
|
1780
1278
|
}));
|
|
1781
1279
|
|
|
1782
|
-
|
|
1280
|
+
;// CONCATENATED MODULE: ./src/Table/DragHandleStyles.ts
|
|
1783
1281
|
|
|
1784
1282
|
|
|
1785
1283
|
|
|
1786
1284
|
|
|
1787
|
-
var DragHandleStyles_StyledDrag = external_styled_components_default.
|
|
1285
|
+
var DragHandleStyles_StyledDrag = external_styled_components_default().div.withConfig({
|
|
1788
1286
|
displayName: "DragHandleStyles__StyledDrag",
|
|
1789
1287
|
componentId: "sc-9eqfn5-0"
|
|
1790
|
-
})(["display:block;cursor:move;background:", ";", ""],
|
|
1791
|
-
enterprise:
|
|
1792
|
-
prisma:
|
|
1288
|
+
})(["display:block;cursor:move;background:", ";", ""], themes_namespaceObject.variables.draggableBackground, (0,themes_namespaceObject.pick)({
|
|
1289
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["width:7px;height:14px;"]),
|
|
1290
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["width:6px;height:20px;margin-top:-3px;opacity:0;", ":focus &,", ":hover &,", " &,[data-helper] &{opacity:1;}"],
|
|
1793
1291
|
/* sc-sel */
|
|
1794
1292
|
HeadCellStyles_Styled,
|
|
1795
1293
|
/* sc-sel */
|
|
@@ -1798,27 +1296,24 @@ var DragHandleStyles_StyledDrag = external_styled_components_default.a.div.withC
|
|
|
1798
1296
|
RowDragCellStyles_Styled)
|
|
1799
1297
|
}));
|
|
1800
1298
|
|
|
1801
|
-
|
|
1299
|
+
;// CONCATENATED MODULE: ./src/Table/DragHandle.tsx
|
|
1802
1300
|
|
|
1803
1301
|
|
|
1804
1302
|
|
|
1805
1303
|
|
|
1806
1304
|
var DragHandle_propTypes = {
|
|
1807
|
-
screenReaderContent: external_prop_types_default.
|
|
1305
|
+
screenReaderContent: (external_prop_types_default()).string
|
|
1808
1306
|
};
|
|
1809
1307
|
var DragHandle_defaultProps = {};
|
|
1810
1308
|
|
|
1811
1309
|
function DragHandle(_ref) {
|
|
1812
1310
|
var screenReaderContent = _ref.screenReaderContent;
|
|
1813
|
-
return /*#__PURE__*/external_react_default.
|
|
1311
|
+
return /*#__PURE__*/external_react_default().createElement(DragHandleStyles_StyledDrag, null, /*#__PURE__*/external_react_default().createElement((ScreenReaderContent_default()), null, screenReaderContent));
|
|
1814
1312
|
}
|
|
1815
1313
|
|
|
1816
1314
|
DragHandle.propTypes = DragHandle_propTypes;
|
|
1817
|
-
/* harmony default export */
|
|
1818
|
-
|
|
1819
|
-
var ssrDocument = __webpack_require__(28);
|
|
1820
|
-
|
|
1821
|
-
// CONCATENATED MODULE: ./src/Table/HeadInner.tsx
|
|
1315
|
+
/* harmony default export */ const Table_DragHandle = (DragHandle);
|
|
1316
|
+
;// CONCATENATED MODULE: ./src/Table/HeadInner.tsx
|
|
1822
1317
|
function HeadInner_extends() { HeadInner_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return HeadInner_extends.apply(this, arguments); }
|
|
1823
1318
|
|
|
1824
1319
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
@@ -1863,37 +1358,37 @@ function HeadInner_objectWithoutPropertiesLoose(source, excluded) { if (source =
|
|
|
1863
1358
|
|
|
1864
1359
|
|
|
1865
1360
|
var HeadInner_propTypes = {
|
|
1866
|
-
align: external_prop_types_default.
|
|
1867
|
-
columnId: external_prop_types_default.
|
|
1868
|
-
hasActionsHead: external_prop_types_default.
|
|
1869
|
-
id: external_prop_types_default.
|
|
1870
|
-
index: external_prop_types_default.
|
|
1871
|
-
isMenu: external_prop_types_default.
|
|
1872
|
-
label: external_prop_types_default.
|
|
1873
|
-
onAutosizeColumn: external_prop_types_default.
|
|
1874
|
-
onDragEnd: external_prop_types_default.
|
|
1875
|
-
onDragStart: external_prop_types_default.
|
|
1876
|
-
onRequestResize: external_prop_types_default.
|
|
1877
|
-
resizable: external_prop_types_default.
|
|
1878
|
-
sortDir: external_prop_types_default.
|
|
1879
|
-
truncate: external_prop_types_default.
|
|
1880
|
-
width: external_prop_types_default.
|
|
1361
|
+
align: external_prop_types_default().oneOf(['left', 'center', 'right']),
|
|
1362
|
+
columnId: (external_prop_types_default()).any,
|
|
1363
|
+
hasActionsHead: (external_prop_types_default()).bool,
|
|
1364
|
+
id: (external_prop_types_default()).string,
|
|
1365
|
+
index: (external_prop_types_default()).number,
|
|
1366
|
+
isMenu: (external_prop_types_default()).bool,
|
|
1367
|
+
label: (external_prop_types_default()).node,
|
|
1368
|
+
onAutosizeColumn: (external_prop_types_default()).func,
|
|
1369
|
+
onDragEnd: (external_prop_types_default()).func,
|
|
1370
|
+
onDragStart: (external_prop_types_default()).func,
|
|
1371
|
+
onRequestResize: (external_prop_types_default()).func,
|
|
1372
|
+
resizable: (external_prop_types_default()).bool,
|
|
1373
|
+
sortDir: external_prop_types_default().oneOf(['none', 'asc', 'desc']),
|
|
1374
|
+
truncate: (external_prop_types_default()).bool,
|
|
1375
|
+
width: external_prop_types_default().oneOfType([(external_prop_types_default()).number, external_prop_types_default().oneOf(['auto'])])
|
|
1881
1376
|
};
|
|
1882
1377
|
var sortDirections = new Set(['none', 'asc', 'desc']);
|
|
1883
1378
|
var sortDirToAriaLabelMap = Object.freeze({
|
|
1884
|
-
none:
|
|
1885
|
-
asc:
|
|
1886
|
-
desc:
|
|
1379
|
+
none: (0,i18n_namespaceObject._)('Click to sort'),
|
|
1380
|
+
asc: (0,i18n_namespaceObject._)('Press to sort descending'),
|
|
1381
|
+
desc: (0,i18n_namespaceObject._)('Press to sort ascending')
|
|
1887
1382
|
});
|
|
1888
1383
|
var enterpriseSortDirToIconMap = Object.freeze({
|
|
1889
|
-
none: CaretsSmallUpDown_default
|
|
1384
|
+
none: (CaretsSmallUpDown_default()),
|
|
1890
1385
|
asc: StyledCaretUp,
|
|
1891
1386
|
desc: StyledCaretDown
|
|
1892
1387
|
});
|
|
1893
1388
|
var prismaSortDirToIconMap = Object.freeze({
|
|
1894
|
-
none: ArrowUpDown_default
|
|
1895
|
-
asc: ArrowUp_default
|
|
1896
|
-
desc: ArrowDown_default
|
|
1389
|
+
none: (ArrowUpDown_default()),
|
|
1390
|
+
asc: (ArrowUp_default()),
|
|
1391
|
+
desc: (ArrowDown_default())
|
|
1897
1392
|
});
|
|
1898
1393
|
|
|
1899
1394
|
function HeadInner(_ref) {
|
|
@@ -1922,39 +1417,39 @@ function HeadInner(_ref) {
|
|
|
1922
1417
|
|
|
1923
1418
|
if (false) {}
|
|
1924
1419
|
|
|
1925
|
-
var _useSplunkTheme =
|
|
1420
|
+
var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
|
|
1926
1421
|
isEnterprise = _useSplunkTheme.isEnterprise;
|
|
1927
1422
|
|
|
1928
|
-
var clickScreenReaderText =
|
|
1423
|
+
var clickScreenReaderText = (0,i18n_namespaceObject._)('Click to open menu');
|
|
1929
1424
|
|
|
1930
|
-
var _useState =
|
|
1425
|
+
var _useState = (0,external_react_namespaceObject.useState)(),
|
|
1931
1426
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1932
1427
|
cloneEl = _useState2[0],
|
|
1933
1428
|
setCloneEl = _useState2[1];
|
|
1934
1429
|
|
|
1935
|
-
var _useState3 =
|
|
1430
|
+
var _useState3 = (0,external_react_namespaceObject.useState)(false),
|
|
1936
1431
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
1937
1432
|
isResizing = _useState4[0],
|
|
1938
1433
|
setResizing = _useState4[1];
|
|
1939
1434
|
|
|
1940
|
-
var _useState5 =
|
|
1435
|
+
var _useState5 = (0,external_react_namespaceObject.useState)(false),
|
|
1941
1436
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
1942
1437
|
isDragging = _useState6[0],
|
|
1943
1438
|
setIsDragging = _useState6[1];
|
|
1944
1439
|
|
|
1945
|
-
var _useState7 =
|
|
1440
|
+
var _useState7 = (0,external_react_namespaceObject.useState)(0),
|
|
1946
1441
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
1947
1442
|
startClientX = _useState8[0],
|
|
1948
1443
|
setStartClientX = _useState8[1];
|
|
1949
1444
|
|
|
1950
|
-
var _useState9 =
|
|
1445
|
+
var _useState9 = (0,external_react_namespaceObject.useState)(0),
|
|
1951
1446
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
1952
1447
|
startWidth = _useState10[0],
|
|
1953
1448
|
setStartWidth = _useState10[1];
|
|
1954
1449
|
|
|
1955
|
-
var ref =
|
|
1450
|
+
var ref = (0,external_react_namespaceObject.useRef)(null); // Cleanup dragend, and unmount during drag
|
|
1956
1451
|
|
|
1957
|
-
|
|
1452
|
+
(0,external_react_namespaceObject.useEffect)(function () {
|
|
1958
1453
|
return function () {
|
|
1959
1454
|
return cloneEl === null || cloneEl === void 0 ? void 0 : cloneEl.remove();
|
|
1960
1455
|
};
|
|
@@ -1980,7 +1475,7 @@ function HeadInner(_ref) {
|
|
|
1980
1475
|
}
|
|
1981
1476
|
|
|
1982
1477
|
var handleResizeKeyDown = function handleResizeKeyDown(e) {
|
|
1983
|
-
var key =
|
|
1478
|
+
var key = (0,keyboard_namespaceObject.keycode)(e.nativeEvent);
|
|
1984
1479
|
|
|
1985
1480
|
if (onRequestResize === undefined || index === undefined) {
|
|
1986
1481
|
return;
|
|
@@ -2073,7 +1568,7 @@ function HeadInner(_ref) {
|
|
|
2073
1568
|
var handleDragStart = function handleDragStart(e) {
|
|
2074
1569
|
var _el$textContent;
|
|
2075
1570
|
|
|
2076
|
-
var document =
|
|
1571
|
+
var document = getDocument();
|
|
2077
1572
|
var el = ref.current;
|
|
2078
1573
|
|
|
2079
1574
|
if (e.dataTransfer.setDragImage && (el === null || el === void 0 ? void 0 : el.parentElement)) {
|
|
@@ -2111,8 +1606,8 @@ function HeadInner(_ref) {
|
|
|
2111
1606
|
};
|
|
2112
1607
|
|
|
2113
1608
|
var draggable = !!onDragStart;
|
|
2114
|
-
var window =
|
|
2115
|
-
return /*#__PURE__*/external_react_default.
|
|
1609
|
+
var window = getWindow();
|
|
1610
|
+
return /*#__PURE__*/external_react_default().createElement(HeadInnerStyles_Styled, HeadInner_extends({
|
|
2116
1611
|
draggable: draggable || undefined,
|
|
2117
1612
|
onDragStart: draggable ? handleDragStart : undefined,
|
|
2118
1613
|
onDragEnd: draggable ? handleDragEnd : undefined,
|
|
@@ -2121,44 +1616,44 @@ function HeadInner(_ref) {
|
|
|
2121
1616
|
$align: align,
|
|
2122
1617
|
$draggable: draggable,
|
|
2123
1618
|
$dragging: !!isDragging
|
|
2124
|
-
}, omit_default()(otherProps, [].concat(_toConsumableArray(Object.keys(HeadInner.propTypes)), ['id']))), isResizing && /*#__PURE__*/external_react_default.
|
|
1619
|
+
}, omit_default()(otherProps, [].concat(_toConsumableArray(Object.keys(HeadInner.propTypes)), ['id']))), isResizing && /*#__PURE__*/external_react_default().createElement((external_react_default()).Fragment, null, /*#__PURE__*/external_react_default().createElement((EventListener_default()), {
|
|
2125
1620
|
target: window,
|
|
2126
1621
|
eventType: "mouseup",
|
|
2127
1622
|
listener: handleEndResize
|
|
2128
|
-
}), /*#__PURE__*/external_react_default.
|
|
1623
|
+
}), /*#__PURE__*/external_react_default().createElement((EventListener_default()), {
|
|
2129
1624
|
target: window,
|
|
2130
1625
|
eventType: "mousemove",
|
|
2131
1626
|
listener: handleResize
|
|
2132
|
-
})), onRequestResize && resizable && /*#__PURE__*/external_react_default.
|
|
1627
|
+
})), onRequestResize && resizable && /*#__PURE__*/external_react_default().createElement(StyledResize, {
|
|
2133
1628
|
onMouseDown: handleStartResize,
|
|
2134
1629
|
onDoubleClick: handleDoubleClick,
|
|
2135
1630
|
onKeyDown: handleResizeKeyDown,
|
|
2136
1631
|
"data-test": "resize"
|
|
2137
|
-
}), draggable && /*#__PURE__*/external_react_default.
|
|
2138
|
-
screenReaderContent:
|
|
2139
|
-
})), /*#__PURE__*/external_react_default.
|
|
1632
|
+
}), draggable && /*#__PURE__*/external_react_default().createElement(StyledDragContainer, null, /*#__PURE__*/external_react_default().createElement(Table_DragHandle, {
|
|
1633
|
+
screenReaderContent: (0,i18n_namespaceObject._)('Press left or right arrow key to reorder the columns.')
|
|
1634
|
+
})), /*#__PURE__*/external_react_default().createElement(StyledLabel, {
|
|
2140
1635
|
$align: align,
|
|
2141
1636
|
$truncate: truncate,
|
|
2142
1637
|
$fill: isMenu
|
|
2143
1638
|
}, label, isMenu &&
|
|
2144
1639
|
/*#__PURE__*/
|
|
2145
1640
|
// this icon indicates "has a menu" in all themes
|
|
2146
|
-
external_react_default.
|
|
1641
|
+
external_react_default().createElement(StyledMenuIcon, null, isEnterprise ? /*#__PURE__*/external_react_default().createElement((Caret_default()), {
|
|
2147
1642
|
"data-test": "caret-down",
|
|
2148
1643
|
screenReaderText: clickScreenReaderText,
|
|
2149
1644
|
hideDefaultTooltip: true,
|
|
2150
1645
|
size: 0.5
|
|
2151
|
-
}) : /*#__PURE__*/external_react_default.
|
|
1646
|
+
}) : /*#__PURE__*/external_react_default().createElement((CaretSmallDown_default()), {
|
|
2152
1647
|
"data-test": "caret-down",
|
|
2153
1648
|
"aria-label": clickScreenReaderText
|
|
2154
|
-
}))), sortDir && /*#__PURE__*/external_react_default.
|
|
1649
|
+
}))), sortDir && /*#__PURE__*/external_react_default().createElement(StyledSortIcon, {
|
|
2155
1650
|
$sorted: sortDir !== 'none'
|
|
2156
|
-
}, Icon !== undefined && (isEnterprise ? /*#__PURE__*/external_react_default.
|
|
1651
|
+
}, Icon !== undefined && (isEnterprise ? /*#__PURE__*/external_react_default().createElement(Icon, {
|
|
2157
1652
|
inline: true,
|
|
2158
1653
|
"aria-hidden": false,
|
|
2159
1654
|
"aria-label": ariaLabel,
|
|
2160
1655
|
viewBox: "-8 0 24 24"
|
|
2161
|
-
}) : /*#__PURE__*/external_react_default.
|
|
1656
|
+
}) : /*#__PURE__*/external_react_default().createElement(Icon, {
|
|
2162
1657
|
inline: true,
|
|
2163
1658
|
"aria-hidden": false,
|
|
2164
1659
|
"aria-label": ariaLabel
|
|
@@ -2166,13 +1661,13 @@ function HeadInner(_ref) {
|
|
|
2166
1661
|
}
|
|
2167
1662
|
|
|
2168
1663
|
HeadInner.propTypes = HeadInner_propTypes;
|
|
2169
|
-
/* harmony default export */
|
|
2170
|
-
|
|
1664
|
+
/* harmony default export */ const Table_HeadInner = (HeadInner);
|
|
1665
|
+
;// CONCATENATED MODULE: ./src/Table/TableContext.ts
|
|
2171
1666
|
|
|
2172
|
-
var TableContext = /*#__PURE__*/
|
|
1667
|
+
var TableContext = /*#__PURE__*/(0,external_react_namespaceObject.createContext)({});
|
|
2173
1668
|
TableContext.displayName = 'Table';
|
|
2174
|
-
/* harmony default export */
|
|
2175
|
-
|
|
1669
|
+
/* harmony default export */ const Table_TableContext = (TableContext);
|
|
1670
|
+
;// CONCATENATED MODULE: ./src/Table/HeadCell.tsx
|
|
2176
1671
|
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); }
|
|
2177
1672
|
|
|
2178
1673
|
function HeadCell_extends() { HeadCell_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return HeadCell_extends.apply(this, arguments); }
|
|
@@ -2221,58 +1716,58 @@ function HeadCell_defineProperty(obj, key, value) { if (key in obj) { Object.def
|
|
|
2221
1716
|
|
|
2222
1717
|
|
|
2223
1718
|
var HeadCell_propTypes = {
|
|
2224
|
-
align: external_prop_types_default.
|
|
2225
|
-
children: external_prop_types_default.
|
|
2226
|
-
columnId: external_prop_types_default.
|
|
2227
|
-
elementRef: external_prop_types_default.
|
|
1719
|
+
align: external_prop_types_default().oneOf(['left', 'center', 'right']),
|
|
1720
|
+
children: (external_prop_types_default()).node,
|
|
1721
|
+
columnId: (external_prop_types_default()).any,
|
|
1722
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
2228
1723
|
|
|
2229
1724
|
/** @private Indicates the presence of actions. */
|
|
2230
|
-
hasActionsHead: external_prop_types_default.
|
|
1725
|
+
hasActionsHead: (external_prop_types_default()).bool,
|
|
2231
1726
|
|
|
2232
1727
|
/** @private The index of the cell, skipping the info column. */
|
|
2233
|
-
index: external_prop_types_default.
|
|
1728
|
+
index: (external_prop_types_default()).number,
|
|
2234
1729
|
|
|
2235
1730
|
/** @private. */
|
|
2236
|
-
onAutosizeColumn: external_prop_types_default.
|
|
2237
|
-
onSort: external_prop_types_default.
|
|
1731
|
+
onAutosizeColumn: (external_prop_types_default()).func,
|
|
1732
|
+
onSort: (external_prop_types_default()).func,
|
|
2238
1733
|
|
|
2239
1734
|
/** @private. */
|
|
2240
|
-
onDragStart: external_prop_types_default.
|
|
1735
|
+
onDragStart: (external_prop_types_default()).func,
|
|
2241
1736
|
|
|
2242
1737
|
/**
|
|
2243
1738
|
* @private. Passed through and works as expected.
|
|
2244
1739
|
*/
|
|
2245
|
-
onKeyDown: external_prop_types_default.
|
|
1740
|
+
onKeyDown: (external_prop_types_default()).func,
|
|
2246
1741
|
|
|
2247
1742
|
/** @private. */
|
|
2248
|
-
onClick: external_prop_types_default.
|
|
1743
|
+
onClick: (external_prop_types_default()).func,
|
|
2249
1744
|
|
|
2250
1745
|
/** @private. */
|
|
2251
|
-
onRequestMoveColumn: external_prop_types_default.
|
|
1746
|
+
onRequestMoveColumn: (external_prop_types_default()).func,
|
|
2252
1747
|
|
|
2253
1748
|
/** @private. */
|
|
2254
|
-
onRequestResize: external_prop_types_default.
|
|
2255
|
-
resizable: external_prop_types_default.
|
|
1749
|
+
onRequestResize: (external_prop_types_default()).func,
|
|
1750
|
+
resizable: (external_prop_types_default()).bool,
|
|
2256
1751
|
|
|
2257
1752
|
/** @private. */
|
|
2258
|
-
showGuideline: external_prop_types_default.
|
|
2259
|
-
sortDir: external_prop_types_default.
|
|
2260
|
-
sortKey: external_prop_types_default.
|
|
2261
|
-
truncate: external_prop_types_default.
|
|
1753
|
+
showGuideline: external_prop_types_default().oneOf(['none', 'before', 'after']),
|
|
1754
|
+
sortDir: external_prop_types_default().oneOf(['asc', 'desc', 'none']),
|
|
1755
|
+
sortKey: (external_prop_types_default()).string,
|
|
1756
|
+
truncate: (external_prop_types_default()).bool,
|
|
2262
1757
|
|
|
2263
1758
|
/**
|
|
2264
1759
|
* Used internally to suppress focus and id when this `HeadCell` is superseded by one in an
|
|
2265
1760
|
* overlaid `HeadTable` for user interactions.
|
|
2266
1761
|
* @private
|
|
2267
1762
|
*/
|
|
2268
|
-
visible: external_prop_types_default.
|
|
2269
|
-
width: external_prop_types_default.
|
|
1763
|
+
visible: (external_prop_types_default()).bool,
|
|
1764
|
+
width: external_prop_types_default().oneOfType([(external_prop_types_default()).number, external_prop_types_default().oneOf(['auto'])]),
|
|
2270
1765
|
|
|
2271
1766
|
/** @private. */
|
|
2272
|
-
variant: external_prop_types_default.
|
|
1767
|
+
variant: external_prop_types_default().oneOf(['toggleAll', 'info', 'actions']),
|
|
2273
1768
|
|
|
2274
1769
|
/** @private. */
|
|
2275
|
-
zIndex: external_prop_types_default.
|
|
1770
|
+
zIndex: (external_prop_types_default()).number
|
|
2276
1771
|
};
|
|
2277
1772
|
var HeadCell_defaultProps = {
|
|
2278
1773
|
align: 'left',
|
|
@@ -2284,7 +1779,7 @@ var HeadCell_defaultProps = {
|
|
|
2284
1779
|
zIndex: 1
|
|
2285
1780
|
};
|
|
2286
1781
|
|
|
2287
|
-
var
|
|
1782
|
+
var HeadCell = /*#__PURE__*/function (_Component) {
|
|
2288
1783
|
HeadCell_inherits(HeadCell, _Component);
|
|
2289
1784
|
|
|
2290
1785
|
var _super = HeadCell_createSuper(HeadCell);
|
|
@@ -2329,15 +1824,15 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2329
1824
|
onRequestMoveColumn = _this$props3.onRequestMoveColumn;
|
|
2330
1825
|
|
|
2331
1826
|
if (e.target.getAttribute('data-test') !== 'resize') {
|
|
2332
|
-
if (
|
|
1827
|
+
if ((0,keyboard_namespaceObject.keycode)(e.nativeEvent) === 'enter') {
|
|
2333
1828
|
_this.handleClick(e);
|
|
2334
|
-
} else if (
|
|
1829
|
+
} else if ((0,keyboard_namespaceObject.keycode)(e.nativeEvent) === 'left' && index !== undefined && index > 0) {
|
|
2335
1830
|
onRequestMoveColumn === null || onRequestMoveColumn === void 0 ? void 0 : onRequestMoveColumn({
|
|
2336
1831
|
fromIndex: index,
|
|
2337
1832
|
toIndex: index - 1,
|
|
2338
1833
|
columnId: columnId
|
|
2339
1834
|
});
|
|
2340
|
-
} else if (
|
|
1835
|
+
} else if ((0,keyboard_namespaceObject.keycode)(e.nativeEvent) === 'right' && index !== undefined) {
|
|
2341
1836
|
onRequestMoveColumn === null || onRequestMoveColumn === void 0 ? void 0 : onRequestMoveColumn({
|
|
2342
1837
|
fromIndex: index,
|
|
2343
1838
|
toIndex: index + 1,
|
|
@@ -2417,7 +1912,7 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2417
1912
|
var headType = this.context.headType;
|
|
2418
1913
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
2419
1914
|
|
|
2420
|
-
return /*#__PURE__*/external_react_default.
|
|
1915
|
+
return /*#__PURE__*/external_react_default().createElement(HeadCellStyles_Styled, HeadCell_extends({
|
|
2421
1916
|
style: mergedStyle,
|
|
2422
1917
|
ref: elementRef,
|
|
2423
1918
|
"aria-sort": onSort && (this.sortDirAriaMapping[sortDir] || 'none'),
|
|
@@ -2434,7 +1929,7 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2434
1929
|
$isFixed: headType === 'fixed'
|
|
2435
1930
|
}, omit_default()(this.props, [].concat(HeadCell_toConsumableArray(Object.keys(HeadCell.propTypes)), ['id', 'style'])), {
|
|
2436
1931
|
onKeyDown: draggable || onSort || hasOnClick ? this.handleKeyDown : undefined
|
|
2437
|
-
}), /*#__PURE__*/external_react_default.
|
|
1932
|
+
}), /*#__PURE__*/external_react_default().createElement(Table_HeadInner, {
|
|
2438
1933
|
label: children,
|
|
2439
1934
|
align: align,
|
|
2440
1935
|
columnId: columnId,
|
|
@@ -2449,7 +1944,7 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2449
1944
|
sortDir: onSort && sortDir,
|
|
2450
1945
|
truncate: truncate,
|
|
2451
1946
|
width: width
|
|
2452
|
-
}), showGuideline !== 'none' && /*#__PURE__*/external_react_default.
|
|
1947
|
+
}), showGuideline !== 'none' && /*#__PURE__*/external_react_default().createElement(StyledGuideLine, {
|
|
2453
1948
|
$position: showGuideline
|
|
2454
1949
|
}));
|
|
2455
1950
|
/* eslint-enable jsx-a11y/no-static-element-interactions */
|
|
@@ -2457,26 +1952,24 @@ var HeadCell_HeadCell = /*#__PURE__*/function (_Component) {
|
|
|
2457
1952
|
}]);
|
|
2458
1953
|
|
|
2459
1954
|
return HeadCell;
|
|
2460
|
-
}(
|
|
2461
|
-
|
|
2462
|
-
HeadCell_defineProperty(HeadCell_HeadCell, "splunkUiType", 'Table.HeadCell');
|
|
2463
|
-
|
|
2464
|
-
HeadCell_defineProperty(HeadCell_HeadCell, "propTypes", HeadCell_propTypes);
|
|
1955
|
+
}(external_react_namespaceObject.Component);
|
|
2465
1956
|
|
|
2466
|
-
HeadCell_defineProperty(
|
|
1957
|
+
HeadCell_defineProperty(HeadCell, "splunkUiType", 'Table.HeadCell');
|
|
2467
1958
|
|
|
2468
|
-
HeadCell_defineProperty(
|
|
1959
|
+
HeadCell_defineProperty(HeadCell, "propTypes", HeadCell_propTypes);
|
|
2469
1960
|
|
|
2470
|
-
|
|
2471
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Info"
|
|
2472
|
-
var Info_ = __webpack_require__(165);
|
|
2473
|
-
var Info_default = /*#__PURE__*/__webpack_require__.n(Info_);
|
|
1961
|
+
HeadCell_defineProperty(HeadCell, "defaultProps", HeadCell_defaultProps);
|
|
2474
1962
|
|
|
2475
|
-
|
|
2476
|
-
var ChevronRight_ = __webpack_require__(46);
|
|
2477
|
-
var ChevronRight_default = /*#__PURE__*/__webpack_require__.n(ChevronRight_);
|
|
1963
|
+
HeadCell_defineProperty(HeadCell, "contextType", Table_TableContext);
|
|
2478
1964
|
|
|
2479
|
-
|
|
1965
|
+
/* harmony default export */ const Table_HeadCell = (HeadCell);
|
|
1966
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Info"
|
|
1967
|
+
const Info_namespaceObject = require("@splunk/react-icons/enterprise/Info");
|
|
1968
|
+
var Info_default = /*#__PURE__*/__webpack_require__.n(Info_namespaceObject);
|
|
1969
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
|
|
1970
|
+
const ChevronRight_namespaceObject = require("@splunk/react-icons/ChevronRight");
|
|
1971
|
+
var ChevronRight_default = /*#__PURE__*/__webpack_require__.n(ChevronRight_namespaceObject);
|
|
1972
|
+
;// CONCATENATED MODULE: ./src/Table/icons/HeadExpandRows.tsx
|
|
2480
1973
|
|
|
2481
1974
|
|
|
2482
1975
|
|
|
@@ -2485,44 +1978,38 @@ var ChevronRight_default = /*#__PURE__*/__webpack_require__.n(ChevronRight_);
|
|
|
2485
1978
|
/* This file works around the use of withSplunkTheme in Head. */
|
|
2486
1979
|
|
|
2487
1980
|
function HeadExpandRows() {
|
|
2488
|
-
var _useSplunkTheme =
|
|
1981
|
+
var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
|
|
2489
1982
|
isEnterprise = _useSplunkTheme.isEnterprise;
|
|
2490
1983
|
|
|
2491
|
-
var screenReaderText =
|
|
1984
|
+
var screenReaderText = (0,i18n_namespaceObject._)('More Information');
|
|
2492
1985
|
|
|
2493
|
-
return isEnterprise ? /*#__PURE__*/external_react_default.
|
|
1986
|
+
return isEnterprise ? /*#__PURE__*/external_react_default().createElement((Info_default()), {
|
|
2494
1987
|
hideDefaultTooltip: true,
|
|
2495
1988
|
screenReaderText: screenReaderText
|
|
2496
|
-
}) : /*#__PURE__*/external_react_default.
|
|
1989
|
+
}) : /*#__PURE__*/external_react_default().createElement((ChevronRight_default()), {
|
|
2497
1990
|
"aria-label": screenReaderText,
|
|
2498
1991
|
height: "16px",
|
|
2499
1992
|
width: "16px"
|
|
2500
1993
|
});
|
|
2501
1994
|
}
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
var DotsThreeVertical_default = /*#__PURE__*/__webpack_require__.n(
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
var
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/ChevronRight"
|
|
2522
|
-
var enterprise_ChevronRight_ = __webpack_require__(38);
|
|
2523
|
-
var enterprise_ChevronRight_default = /*#__PURE__*/__webpack_require__.n(enterprise_ChevronRight_);
|
|
2524
|
-
|
|
2525
|
-
// CONCATENATED MODULE: ./src/Table/icons/ExpansionRow.tsx
|
|
1995
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeVertical"
|
|
1996
|
+
const DotsThreeVertical_namespaceObject = require("@splunk/react-icons/DotsThreeVertical");
|
|
1997
|
+
var DotsThreeVertical_default = /*#__PURE__*/__webpack_require__.n(DotsThreeVertical_namespaceObject);
|
|
1998
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Button"
|
|
1999
|
+
const Button_namespaceObject = require("@splunk/react-ui/Button");
|
|
2000
|
+
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_namespaceObject);
|
|
2001
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
|
|
2002
|
+
const Dropdown_namespaceObject = require("@splunk/react-ui/Dropdown");
|
|
2003
|
+
var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_namespaceObject);
|
|
2004
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
|
|
2005
|
+
const Tooltip_namespaceObject = require("@splunk/react-ui/Tooltip");
|
|
2006
|
+
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_namespaceObject);
|
|
2007
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/format"
|
|
2008
|
+
const format_namespaceObject = require("@splunk/ui-utils/format");
|
|
2009
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/ChevronRight"
|
|
2010
|
+
const enterprise_ChevronRight_namespaceObject = require("@splunk/react-icons/enterprise/ChevronRight");
|
|
2011
|
+
var enterprise_ChevronRight_default = /*#__PURE__*/__webpack_require__.n(enterprise_ChevronRight_namespaceObject);
|
|
2012
|
+
;// CONCATENATED MODULE: ./src/Table/icons/ExpansionRow.tsx
|
|
2526
2013
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
2527
2014
|
|
|
2528
2015
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { ExpansionRow_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -2537,15 +2024,15 @@ function ExpansionRow_defineProperty(obj, key, value) { if (key in obj) { Object
|
|
|
2537
2024
|
|
|
2538
2025
|
|
|
2539
2026
|
var ExpansionRow_propTypes = {
|
|
2540
|
-
className: external_prop_types_default.
|
|
2541
|
-
expanded: external_prop_types_default.
|
|
2027
|
+
className: (external_prop_types_default()).string,
|
|
2028
|
+
expanded: (external_prop_types_default()).bool
|
|
2542
2029
|
};
|
|
2543
2030
|
|
|
2544
|
-
var
|
|
2031
|
+
var ExpansionRow = function ExpansionRow(_ref) {
|
|
2545
2032
|
var className = _ref.className,
|
|
2546
2033
|
expanded = _ref.expanded;
|
|
2547
2034
|
|
|
2548
|
-
var _useSplunkTheme =
|
|
2035
|
+
var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
|
|
2549
2036
|
isEnterprise = _useSplunkTheme.isEnterprise;
|
|
2550
2037
|
|
|
2551
2038
|
var sharedProps = {
|
|
@@ -2559,25 +2046,25 @@ var ExpansionRow_ExpansionRow = function ExpansionRow(_ref) {
|
|
|
2559
2046
|
|
|
2560
2047
|
var prismaProps = _objectSpread({}, sharedProps);
|
|
2561
2048
|
|
|
2562
|
-
var chevronRightIcon = isEnterprise ? /*#__PURE__*/external_react_default.
|
|
2563
|
-
return /*#__PURE__*/external_react_default.
|
|
2049
|
+
var chevronRightIcon = isEnterprise ? /*#__PURE__*/external_react_default().createElement((enterprise_ChevronRight_default()), enterpiseProps) : /*#__PURE__*/external_react_default().createElement((ChevronRight_default()), prismaProps);
|
|
2050
|
+
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
2564
2051
|
"aria-hidden": true,
|
|
2565
|
-
title: expanded ?
|
|
2052
|
+
title: expanded ? (0,i18n_namespaceObject._)('Collapse row') : (0,i18n_namespaceObject._)('Expand row')
|
|
2566
2053
|
}, chevronRightIcon);
|
|
2567
2054
|
};
|
|
2568
2055
|
|
|
2569
|
-
var StyledExpansionRowIcon = external_styled_components_default()(
|
|
2056
|
+
var StyledExpansionRowIcon = external_styled_components_default()(ExpansionRow).withConfig({
|
|
2570
2057
|
displayName: "ExpansionRow__StyledExpansionRowIcon",
|
|
2571
2058
|
componentId: "sc-1b6vao4-0"
|
|
2572
|
-
})(["transition:transform ", ";", ""],
|
|
2059
|
+
})(["transition:transform ", ";", ""], (0,themes_namespaceObject.pick)({
|
|
2573
2060
|
enterprise: '300ms',
|
|
2574
2061
|
prisma: '200ms'
|
|
2575
2062
|
}), function (props) {
|
|
2576
|
-
return props.expanded &&
|
|
2063
|
+
return props.expanded && (0,external_styled_components_namespaceObject.css)(["transform:rotate(90deg);"]);
|
|
2577
2064
|
});
|
|
2578
2065
|
StyledExpansionRowIcon.propTypes = ExpansionRow_propTypes;
|
|
2579
|
-
/* harmony default export */
|
|
2580
|
-
|
|
2066
|
+
/* harmony default export */ const icons_ExpansionRow = (StyledExpansionRowIcon);
|
|
2067
|
+
;// CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
|
|
2581
2068
|
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); }
|
|
2582
2069
|
|
|
2583
2070
|
function RowDragCell_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -2610,21 +2097,21 @@ function RowDragCell_defineProperty(obj, key, value) { if (key in obj) { Object.
|
|
|
2610
2097
|
|
|
2611
2098
|
|
|
2612
2099
|
var RowDragCell_propTypes = {
|
|
2613
|
-
activeElementId: external_prop_types_default.
|
|
2614
|
-
dataId: external_prop_types_default.
|
|
2615
|
-
index: external_prop_types_default.
|
|
2616
|
-
onDragEnd: external_prop_types_default.
|
|
2617
|
-
onDragStart: external_prop_types_default.
|
|
2618
|
-
onKeyDown: external_prop_types_default.
|
|
2619
|
-
onRequestMoveRow: external_prop_types_default.
|
|
2620
|
-
rowSpan: external_prop_types_default.
|
|
2621
|
-
showRowGuideline: external_prop_types_default.
|
|
2100
|
+
activeElementId: (external_prop_types_default()).string,
|
|
2101
|
+
dataId: external_prop_types_default().oneOfType([(external_prop_types_default()).string, (external_prop_types_default()).number]),
|
|
2102
|
+
index: (external_prop_types_default()).number,
|
|
2103
|
+
onDragEnd: (external_prop_types_default()).func,
|
|
2104
|
+
onDragStart: (external_prop_types_default()).func,
|
|
2105
|
+
onKeyDown: (external_prop_types_default()).func,
|
|
2106
|
+
onRequestMoveRow: (external_prop_types_default()).func,
|
|
2107
|
+
rowSpan: (external_prop_types_default()).number,
|
|
2108
|
+
showRowGuideline: external_prop_types_default().oneOf(['none', 'before', 'after'])
|
|
2622
2109
|
};
|
|
2623
2110
|
var RowDragCell_defaultProps = {
|
|
2624
2111
|
showRowGuideline: 'none'
|
|
2625
2112
|
};
|
|
2626
2113
|
|
|
2627
|
-
var
|
|
2114
|
+
var RowDragCell = /*#__PURE__*/function (_Component) {
|
|
2628
2115
|
RowDragCell_inherits(RowDragCell, _Component);
|
|
2629
2116
|
|
|
2630
2117
|
var _super = RowDragCell_createSuper(RowDragCell);
|
|
@@ -2647,7 +2134,7 @@ var RowDragCell_RowDragCell = /*#__PURE__*/function (_Component) {
|
|
|
2647
2134
|
RowDragCell_defineProperty(RowDragCell_assertThisInitialized(_this), "handleDragStart", function (e) {
|
|
2648
2135
|
var _this$el, _this$el$textContent, _this$el2, _this$props$onDragSta, _this$props;
|
|
2649
2136
|
|
|
2650
|
-
var document =
|
|
2137
|
+
var document = getDocument();
|
|
2651
2138
|
e.stopPropagation();
|
|
2652
2139
|
|
|
2653
2140
|
if (e.dataTransfer.setDragImage && ((_this$el = _this.el) === null || _this$el === void 0 ? void 0 : _this$el.parentElement)) {
|
|
@@ -2693,7 +2180,7 @@ var RowDragCell_RowDragCell = /*#__PURE__*/function (_Component) {
|
|
|
2693
2180
|
index = _this$props3.index,
|
|
2694
2181
|
dataId = _this$props3.dataId,
|
|
2695
2182
|
onKeyDown = _this$props3.onKeyDown;
|
|
2696
|
-
var code =
|
|
2183
|
+
var code = (0,keyboard_namespaceObject.keycode)(e.nativeEvent);
|
|
2697
2184
|
|
|
2698
2185
|
if (code === 'up' || code === 'down') {
|
|
2699
2186
|
e.preventDefault();
|
|
@@ -2767,84 +2254,84 @@ var RowDragCell_RowDragCell = /*#__PURE__*/function (_Component) {
|
|
|
2767
2254
|
var _this$props5 = this.props,
|
|
2768
2255
|
showRowGuideline = _this$props5.showRowGuideline,
|
|
2769
2256
|
rowSpan = _this$props5.rowSpan;
|
|
2770
|
-
return /*#__PURE__*/external_react_default.
|
|
2257
|
+
return /*#__PURE__*/external_react_default().createElement(RowDragCellStyles_Styled, {
|
|
2771
2258
|
$align: "center",
|
|
2772
2259
|
"data-test": "drag",
|
|
2773
2260
|
$dragging: this.state.isDragging,
|
|
2774
2261
|
tabIndex: 0,
|
|
2775
2262
|
rowSpan: rowSpan,
|
|
2776
2263
|
onKeyDown: this.handleKeyDown
|
|
2777
|
-
}, showRowGuideline !== 'none' && /*#__PURE__*/external_react_default.
|
|
2264
|
+
}, showRowGuideline !== 'none' && /*#__PURE__*/external_react_default().createElement(RowDragCellStyles_StyledGuideLine, {
|
|
2778
2265
|
$position: showRowGuideline
|
|
2779
|
-
}), /*#__PURE__*/external_react_default.
|
|
2266
|
+
}), /*#__PURE__*/external_react_default().createElement(StyledDrag, {
|
|
2780
2267
|
draggable: true,
|
|
2781
2268
|
$draggable: true,
|
|
2782
2269
|
$dragging: this.state.isDragging || undefined,
|
|
2783
2270
|
onDragStart: this.handleDragStart,
|
|
2784
2271
|
onDragEnd: this.handleDragEnd,
|
|
2785
2272
|
ref: this.handleMount
|
|
2786
|
-
}, /*#__PURE__*/external_react_default.
|
|
2787
|
-
screenReaderContent:
|
|
2273
|
+
}, /*#__PURE__*/external_react_default().createElement(Table_DragHandle, {
|
|
2274
|
+
screenReaderContent: (0,i18n_namespaceObject._)('Press up or down arrow key to reorder the columns.')
|
|
2788
2275
|
})));
|
|
2789
2276
|
}
|
|
2790
2277
|
}]);
|
|
2791
2278
|
|
|
2792
2279
|
return RowDragCell;
|
|
2793
|
-
}(
|
|
2280
|
+
}(external_react_namespaceObject.Component);
|
|
2794
2281
|
|
|
2795
|
-
RowDragCell_defineProperty(
|
|
2282
|
+
RowDragCell_defineProperty(RowDragCell, "propTypes", RowDragCell_propTypes);
|
|
2796
2283
|
|
|
2797
|
-
RowDragCell_defineProperty(
|
|
2284
|
+
RowDragCell_defineProperty(RowDragCell, "defaultProps", RowDragCell_defaultProps);
|
|
2798
2285
|
|
|
2799
|
-
/* harmony default export */
|
|
2800
|
-
|
|
2286
|
+
/* harmony default export */ const Table_RowDragCell = (RowDragCell);
|
|
2287
|
+
;// CONCATENATED MODULE: ./src/Table/RowStyles.ts
|
|
2801
2288
|
|
|
2802
2289
|
|
|
2803
2290
|
|
|
2804
|
-
var StyledStripeNone = external_styled_components_default.
|
|
2291
|
+
var StyledStripeNone = external_styled_components_default().tr.withConfig({
|
|
2805
2292
|
displayName: "RowStyles__StyledStripeNone",
|
|
2806
2293
|
componentId: "f0igqq-0"
|
|
2807
|
-
})(["", " background-color:", ";", ";@media print{background-color:none;}", " ", ""],
|
|
2808
|
-
prisma:
|
|
2294
|
+
})(["", " background-color:", ";", ";@media print{background-color:none;}", " ", ""], themes_namespaceObject.mixins.reset('table-row'), (0,themes_namespaceObject.pick)({
|
|
2295
|
+
prisma: themes_namespaceObject.variables.transparent
|
|
2809
2296
|
}), function (_ref) {
|
|
2810
2297
|
var $clickable = _ref.$clickable;
|
|
2811
|
-
return $clickable &&
|
|
2298
|
+
return $clickable && (0,external_styled_components_namespaceObject.css)(["cursor:pointer;&:hover{background-color:", ";}&:focus{box-shadow:", ";}"], (0,themes_namespaceObject.pick)({
|
|
2812
2299
|
enterprise: {
|
|
2813
|
-
light:
|
|
2814
|
-
dark:
|
|
2300
|
+
light: themes_namespaceObject.variables.accentColorL50,
|
|
2301
|
+
dark: themes_namespaceObject.variables.accentColorD50
|
|
2815
2302
|
},
|
|
2816
|
-
prisma:
|
|
2817
|
-
}),
|
|
2303
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlayHover
|
|
2304
|
+
}), themes_namespaceObject.variables.focusShadowInset);
|
|
2818
2305
|
}, function (_ref2) {
|
|
2819
2306
|
var disabled = _ref2.disabled,
|
|
2820
2307
|
$expandable = _ref2.$expandable;
|
|
2821
|
-
return !disabled && !$expandable &&
|
|
2822
|
-
prisma:
|
|
2308
|
+
return !disabled && !$expandable && (0,external_styled_components_namespaceObject.css)(["&:not([data-expansion-row='true']){&:hover{background-color:", ";}}"], (0,themes_namespaceObject.pick)({
|
|
2309
|
+
prisma: themes_namespaceObject.variables.interactiveColorOverlayHover
|
|
2823
2310
|
}));
|
|
2824
2311
|
}, function (_ref3) {
|
|
2825
2312
|
var disabled = _ref3.disabled;
|
|
2826
|
-
return disabled &&
|
|
2827
|
-
prisma:
|
|
2313
|
+
return disabled && (0,external_styled_components_namespaceObject.css)(["color:", ";"], (0,themes_namespaceObject.pick)({
|
|
2314
|
+
prisma: themes_namespaceObject.variables.contentColorDisabled
|
|
2828
2315
|
}));
|
|
2829
2316
|
});
|
|
2830
2317
|
var StyledStripeOdd = external_styled_components_default()(StyledStripeNone).withConfig({
|
|
2831
2318
|
displayName: "RowStyles__StyledStripeOdd",
|
|
2832
2319
|
componentId: "f0igqq-1"
|
|
2833
|
-
})(["background-color:", ";"],
|
|
2320
|
+
})(["background-color:", ";"], (0,themes_namespaceObject.pick)({
|
|
2834
2321
|
enterprise: {
|
|
2835
|
-
dark:
|
|
2322
|
+
dark: themes_namespaceObject.variables.gray22
|
|
2836
2323
|
},
|
|
2837
|
-
prisma:
|
|
2324
|
+
prisma: themes_namespaceObject.variables.transparent
|
|
2838
2325
|
}));
|
|
2839
2326
|
var StyledStripeEven = external_styled_components_default()(StyledStripeNone).withConfig({
|
|
2840
2327
|
displayName: "RowStyles__StyledStripeEven",
|
|
2841
2328
|
componentId: "f0igqq-2"
|
|
2842
|
-
})(["background-color:", ";"],
|
|
2329
|
+
})(["background-color:", ";"], (0,themes_namespaceObject.pick)({
|
|
2843
2330
|
enterprise: {
|
|
2844
|
-
light:
|
|
2845
|
-
dark:
|
|
2331
|
+
light: themes_namespaceObject.variables.gray96,
|
|
2332
|
+
dark: themes_namespaceObject.variables.gray20
|
|
2846
2333
|
},
|
|
2847
|
-
prisma:
|
|
2334
|
+
prisma: themes_namespaceObject.variables.transparent
|
|
2848
2335
|
}));
|
|
2849
2336
|
var StyledCellSelectionDisabled = external_styled_components_default()(Table_Cell).withConfig({
|
|
2850
2337
|
displayName: "RowStyles__StyledCellSelectionDisabled",
|
|
@@ -2853,23 +2340,22 @@ var StyledCellSelectionDisabled = external_styled_components_default()(Table_Cel
|
|
|
2853
2340
|
var StyledCellExpansionDisabled = external_styled_components_default()(Table_Cell).withConfig({
|
|
2854
2341
|
displayName: "RowStyles__StyledCellExpansionDisabled",
|
|
2855
2342
|
componentId: "f0igqq-4"
|
|
2856
|
-
})(["width:", ";"],
|
|
2343
|
+
})(["width:", ";"], (0,themes_namespaceObject.pick)({
|
|
2857
2344
|
enterprise: '35px',
|
|
2858
2345
|
prisma: '40px'
|
|
2859
2346
|
}));
|
|
2860
2347
|
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
var Switch_default = /*#__PURE__*/__webpack_require__.n(
|
|
2348
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Switch"
|
|
2349
|
+
const Switch_namespaceObject = require("@splunk/react-ui/Switch");
|
|
2350
|
+
var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch_namespaceObject);
|
|
2351
|
+
;// CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
|
|
2864
2352
|
|
|
2865
|
-
// CONCATENATED MODULE: ./src/Table/ToggleStyles.ts
|
|
2866
2353
|
|
|
2867
2354
|
|
|
2868
|
-
|
|
2869
|
-
var StyledSwitch = external_styled_components_default()(Switch_default.a).withConfig({
|
|
2355
|
+
var StyledSwitch = external_styled_components_default()((Switch_default())).withConfig({
|
|
2870
2356
|
displayName: "ToggleStyles__StyledSwitch",
|
|
2871
2357
|
componentId: "sc-1x3ikch-0"
|
|
2872
|
-
})(["margin:", ";justify-content:center;"],
|
|
2358
|
+
})(["margin:", ";justify-content:center;"], (0,themes_namespaceObject.pickVariant)('$allRows', {
|
|
2873
2359
|
"true": {
|
|
2874
2360
|
enterprise: '-6px 0',
|
|
2875
2361
|
prisma: '-10px 0'
|
|
@@ -2877,7 +2363,7 @@ var StyledSwitch = external_styled_components_default()(Switch_default.a).withCo
|
|
|
2877
2363
|
"false": '-6px 0'
|
|
2878
2364
|
}));
|
|
2879
2365
|
|
|
2880
|
-
|
|
2366
|
+
;// CONCATENATED MODULE: ./src/Table/Toggle.tsx
|
|
2881
2367
|
function Toggle_extends() { Toggle_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Toggle_extends.apply(this, arguments); }
|
|
2882
2368
|
|
|
2883
2369
|
function Toggle_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Toggle_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -2889,10 +2375,10 @@ function Toggle_objectWithoutPropertiesLoose(source, excluded) { if (source == n
|
|
|
2889
2375
|
|
|
2890
2376
|
|
|
2891
2377
|
var Toggle_propTypes = {
|
|
2892
|
-
allRows: external_prop_types_default.
|
|
2893
|
-
disabled: external_prop_types_default.
|
|
2894
|
-
onClick: external_prop_types_default.
|
|
2895
|
-
selected: external_prop_types_default.
|
|
2378
|
+
allRows: (external_prop_types_default()).bool,
|
|
2379
|
+
disabled: (external_prop_types_default()).bool,
|
|
2380
|
+
onClick: (external_prop_types_default()).func,
|
|
2381
|
+
selected: external_prop_types_default().oneOf([true, false, 'some'])
|
|
2896
2382
|
};
|
|
2897
2383
|
|
|
2898
2384
|
function Toggle(_ref) {
|
|
@@ -2903,15 +2389,15 @@ function Toggle(_ref) {
|
|
|
2903
2389
|
selected = _ref$selected === void 0 ? false : _ref$selected,
|
|
2904
2390
|
otherProps = Toggle_objectWithoutProperties(_ref, ["allRows", "disabled", "selected"]);
|
|
2905
2391
|
|
|
2906
|
-
var ariaLabel = allRows ?
|
|
2392
|
+
var ariaLabel = allRows ? (0,i18n_namespaceObject._)('No rows selected') : (0,i18n_namespaceObject._)('Row unselected');
|
|
2907
2393
|
|
|
2908
2394
|
if (selected === 'some') {
|
|
2909
|
-
ariaLabel =
|
|
2395
|
+
ariaLabel = (0,i18n_namespaceObject._)('Some rows selected');
|
|
2910
2396
|
} else if (selected) {
|
|
2911
|
-
ariaLabel = allRows ?
|
|
2397
|
+
ariaLabel = allRows ? (0,i18n_namespaceObject._)('All rows selected') : (0,i18n_namespaceObject._)('Row selected');
|
|
2912
2398
|
}
|
|
2913
2399
|
|
|
2914
|
-
return /*#__PURE__*/external_react_default.
|
|
2400
|
+
return /*#__PURE__*/external_react_default().createElement(StyledSwitch, Toggle_extends({
|
|
2915
2401
|
$allRows: allRows
|
|
2916
2402
|
}, otherProps, {
|
|
2917
2403
|
interactive: false,
|
|
@@ -2919,15 +2405,15 @@ function Toggle(_ref) {
|
|
|
2919
2405
|
value: "",
|
|
2920
2406
|
selected: selected,
|
|
2921
2407
|
"aria-label": ariaLabel,
|
|
2922
|
-
selectedLabel: allRows ?
|
|
2923
|
-
unselectedLabel: allRows ?
|
|
2924
|
-
someSelectedLabel:
|
|
2408
|
+
selectedLabel: allRows ? (0,i18n_namespaceObject._)('All rows selected') : (0,i18n_namespaceObject._)('Row selected'),
|
|
2409
|
+
unselectedLabel: allRows ? (0,i18n_namespaceObject._)('No rows selected') : (0,i18n_namespaceObject._)('Row unselected'),
|
|
2410
|
+
someSelectedLabel: (0,i18n_namespaceObject._)('Some rows selected')
|
|
2925
2411
|
}));
|
|
2926
2412
|
}
|
|
2927
2413
|
|
|
2928
2414
|
Toggle.propTypes = Toggle_propTypes;
|
|
2929
|
-
/* harmony default export */
|
|
2930
|
-
|
|
2415
|
+
/* harmony default export */ const Table_Toggle = (Toggle);
|
|
2416
|
+
;// CONCATENATED MODULE: ./src/Table/Row.tsx
|
|
2931
2417
|
function Row_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Row_typeof = function _typeof(obj) { return typeof obj; }; } else { Row_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Row_typeof(obj); }
|
|
2932
2418
|
|
|
2933
2419
|
function Row_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Row_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -2984,73 +2470,73 @@ var StyledStripeComponents = {
|
|
|
2984
2470
|
|
|
2985
2471
|
var Row_propTypes = {
|
|
2986
2472
|
/** @private. Generally passed by Table rather than added directly. */
|
|
2987
|
-
activeElementId: external_prop_types_default.
|
|
2988
|
-
actionPrimary: external_prop_types_default.
|
|
2989
|
-
actionsSecondary: external_prop_types_default.
|
|
2990
|
-
children: external_prop_types_default.
|
|
2991
|
-
data: external_prop_types_default.
|
|
2473
|
+
activeElementId: (external_prop_types_default()).string,
|
|
2474
|
+
actionPrimary: (external_prop_types_default()).element,
|
|
2475
|
+
actionsSecondary: (external_prop_types_default()).element,
|
|
2476
|
+
children: (external_prop_types_default()).node,
|
|
2477
|
+
data: (external_prop_types_default()).any,
|
|
2992
2478
|
|
|
2993
2479
|
/** @private. Generally passed by Table rather than added directly. */
|
|
2994
|
-
dataId: external_prop_types_default.
|
|
2995
|
-
disabled: external_prop_types_default.
|
|
2480
|
+
dataId: external_prop_types_default().oneOfType([(external_prop_types_default()).string, (external_prop_types_default()).number]),
|
|
2481
|
+
disabled: (external_prop_types_default()).bool,
|
|
2996
2482
|
|
|
2997
2483
|
/** @private. Generally passed by Table rather than added directly. */
|
|
2998
|
-
draggable: external_prop_types_default.
|
|
2999
|
-
elementRef: external_prop_types_default.
|
|
2484
|
+
draggable: (external_prop_types_default()).bool,
|
|
2485
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
3000
2486
|
|
|
3001
2487
|
/** @private. */
|
|
3002
|
-
expandable: external_prop_types_default.
|
|
3003
|
-
expanded: external_prop_types_default.
|
|
3004
|
-
expansionRow: external_prop_types_default.
|
|
2488
|
+
expandable: (external_prop_types_default()).bool,
|
|
2489
|
+
expanded: (external_prop_types_default()).bool,
|
|
2490
|
+
expansionRow: external_prop_types_default().oneOfType([(external_prop_types_default()).element, external_prop_types_default().arrayOf((external_prop_types_default()).element)]),
|
|
3005
2491
|
|
|
3006
2492
|
/** @private. Indicates whether the table has an actions column. */
|
|
3007
|
-
actions: external_prop_types_default.
|
|
2493
|
+
actions: (external_prop_types_default()).bool,
|
|
3008
2494
|
|
|
3009
2495
|
/** @private. Generally passed by `Table` rather than added directly. */
|
|
3010
|
-
index: external_prop_types_default.
|
|
2496
|
+
index: (external_prop_types_default()).number,
|
|
3011
2497
|
|
|
3012
2498
|
/** @private. Generally passed by `Table` rather than added directly. */
|
|
3013
|
-
movableColumns: external_prop_types_default.
|
|
3014
|
-
onClick: external_prop_types_default.
|
|
2499
|
+
movableColumns: (external_prop_types_default()).bool,
|
|
2500
|
+
onClick: (external_prop_types_default()).func,
|
|
3015
2501
|
|
|
3016
2502
|
/** @private. Generally passed by `Table` rather than added directly. */
|
|
3017
|
-
onDragStart: external_prop_types_default.
|
|
3018
|
-
onExpansion: external_prop_types_default.
|
|
2503
|
+
onDragStart: (external_prop_types_default()).func,
|
|
2504
|
+
onExpansion: (external_prop_types_default()).func,
|
|
3019
2505
|
|
|
3020
2506
|
/** @private. This is passed through and works as expected. */
|
|
3021
|
-
onKeyDown: external_prop_types_default.
|
|
2507
|
+
onKeyDown: (external_prop_types_default()).func,
|
|
3022
2508
|
|
|
3023
2509
|
/** @private. Generally passed by `Table` rather than added directly. */
|
|
3024
|
-
onRequestMoveRow: external_prop_types_default.
|
|
3025
|
-
onRequestToggle: external_prop_types_default.
|
|
2510
|
+
onRequestMoveRow: (external_prop_types_default()).func,
|
|
2511
|
+
onRequestToggle: (external_prop_types_default()).func,
|
|
3026
2512
|
|
|
3027
2513
|
/** @private. Generally passed by `Table` rather than added directly. */
|
|
3028
|
-
primaryColumnIndex: external_prop_types_default.
|
|
3029
|
-
rowScreenReaderText: external_prop_types_default.
|
|
3030
|
-
selected: external_prop_types_default.
|
|
2514
|
+
primaryColumnIndex: (external_prop_types_default()).number,
|
|
2515
|
+
rowScreenReaderText: (external_prop_types_default()).string,
|
|
2516
|
+
selected: (external_prop_types_default()).bool,
|
|
3031
2517
|
|
|
3032
2518
|
/** @private. Generally passed by `Table` rather than added directly. */
|
|
3033
|
-
showRowGuideline: external_prop_types_default.
|
|
2519
|
+
showRowGuideline: external_prop_types_default().oneOf(['none', 'before', 'after']),
|
|
3034
2520
|
|
|
3035
2521
|
/** @private. */
|
|
3036
|
-
stripe: external_prop_types_default.
|
|
2522
|
+
stripe: external_prop_types_default().oneOf(['odd', 'even', 'none'])
|
|
3037
2523
|
};
|
|
3038
2524
|
var Row_defaultProps = {
|
|
3039
2525
|
stripe: 'none',
|
|
3040
2526
|
primaryColumnIndex: 0
|
|
3041
2527
|
};
|
|
3042
|
-
var ActionsSecondaryToggle = /*#__PURE__*/external_react_default.
|
|
3043
|
-
var _useSplunkTheme =
|
|
2528
|
+
var ActionsSecondaryToggle = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
2529
|
+
var _useSplunkTheme = (0,themes_namespaceObject.useSplunkTheme)(),
|
|
3044
2530
|
isCompact = _useSplunkTheme.isCompact;
|
|
3045
2531
|
|
|
3046
2532
|
var prismaSize = isCompact ? '20px' : '24px';
|
|
3047
|
-
return /*#__PURE__*/external_react_default.
|
|
3048
|
-
content:
|
|
2533
|
+
return /*#__PURE__*/external_react_default().createElement((Tooltip_default()), Row_extends({
|
|
2534
|
+
content: (0,i18n_namespaceObject._)('Actions'),
|
|
3049
2535
|
contentRelationship: "label"
|
|
3050
|
-
}, props), /*#__PURE__*/external_react_default.
|
|
2536
|
+
}, props), /*#__PURE__*/external_react_default().createElement((Button_default()), {
|
|
3051
2537
|
appearance: "secondary",
|
|
3052
2538
|
"data-test": "actions-secondary-toggle",
|
|
3053
|
-
icon: /*#__PURE__*/external_react_default.
|
|
2539
|
+
icon: /*#__PURE__*/external_react_default().createElement((DotsThreeVertical_default()), {
|
|
3054
2540
|
height: prismaSize,
|
|
3055
2541
|
width: prismaSize
|
|
3056
2542
|
}),
|
|
@@ -3058,7 +2544,7 @@ var ActionsSecondaryToggle = /*#__PURE__*/external_react_default.a.forwardRef(fu
|
|
|
3058
2544
|
}));
|
|
3059
2545
|
});
|
|
3060
2546
|
|
|
3061
|
-
var
|
|
2547
|
+
var Row = /*#__PURE__*/function (_Component) {
|
|
3062
2548
|
Row_inherits(Row, _Component);
|
|
3063
2549
|
|
|
3064
2550
|
var _super = Row_createSuper(Row);
|
|
@@ -3106,7 +2592,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3106
2592
|
onClick = _this$props2.onClick,
|
|
3107
2593
|
onKeyDown = _this$props2.onKeyDown;
|
|
3108
2594
|
|
|
3109
|
-
if (
|
|
2595
|
+
if ((0,keyboard_namespaceObject.keycode)(e.nativeEvent) === 'enter' && onClick) {
|
|
3110
2596
|
onClick(e, data);
|
|
3111
2597
|
}
|
|
3112
2598
|
|
|
@@ -3137,7 +2623,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3137
2623
|
var actionPrimary = _this.props.actionPrimary;
|
|
3138
2624
|
|
|
3139
2625
|
if (actionPrimary && actionPrimary.props.onClick) {
|
|
3140
|
-
return /*#__PURE__*/
|
|
2626
|
+
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(actionPrimary, {
|
|
3141
2627
|
onClick: function onClick(e) {
|
|
3142
2628
|
var _actionPrimary$props$, _actionPrimary$props;
|
|
3143
2629
|
|
|
@@ -3154,10 +2640,10 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3154
2640
|
var actionsSecondary = _this.props.actionsSecondary;
|
|
3155
2641
|
|
|
3156
2642
|
if (actionsSecondary && actionsSecondary.props.children) {
|
|
3157
|
-
var actions =
|
|
2643
|
+
var actions = external_react_namespaceObject.Children.toArray(actionsSecondary.props.children).filter(external_react_namespaceObject.isValidElement);
|
|
3158
2644
|
var clonedActions = actions.map(function (action) {
|
|
3159
2645
|
if (action.props.onClick) {
|
|
3160
|
-
return /*#__PURE__*/
|
|
2646
|
+
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(action, {
|
|
3161
2647
|
onClick: function onClick(e) {
|
|
3162
2648
|
var _action$props$onClick, _action$props;
|
|
3163
2649
|
|
|
@@ -3169,7 +2655,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3169
2655
|
|
|
3170
2656
|
return action;
|
|
3171
2657
|
});
|
|
3172
|
-
return /*#__PURE__*/
|
|
2658
|
+
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(actionsSecondary, {
|
|
3173
2659
|
children: clonedActions
|
|
3174
2660
|
});
|
|
3175
2661
|
}
|
|
@@ -3178,7 +2664,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3178
2664
|
});
|
|
3179
2665
|
|
|
3180
2666
|
Row_defineProperty(Row_assertThisInitialized(_this), "handleMount", function (el) {
|
|
3181
|
-
|
|
2667
|
+
updateReactRef(_this.props.elementRef, el);
|
|
3182
2668
|
_this.elementRef = el;
|
|
3183
2669
|
});
|
|
3184
2670
|
|
|
@@ -3217,13 +2703,13 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3217
2703
|
stripe = _this$props5.stripe,
|
|
3218
2704
|
otherProps = Row_objectWithoutProperties(_this$props5, ["actions", "actionPrimary", "actionsSecondary", "activeElementId", "children", "dataId", "disabled", "draggable", "elementRef", "expandable", "expanded", "expansionRow", "index", "movableColumns", "onClick", "onDragStart", "onExpansion", "onRequestMoveRow", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "showRowGuideline", "stripe"]);
|
|
3219
2705
|
|
|
3220
|
-
var childrenCloned = !onClick ?
|
|
3221
|
-
return /*#__PURE__*/
|
|
2706
|
+
var childrenCloned = !onClick ? external_react_namespaceObject.Children.toArray(children).map(function (child) {
|
|
2707
|
+
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(child, {
|
|
3222
2708
|
disabled: disabled
|
|
3223
2709
|
});
|
|
3224
2710
|
}) // ensure consistent keys
|
|
3225
|
-
:
|
|
3226
|
-
return /*#__PURE__*/
|
|
2711
|
+
: external_react_namespaceObject.Children.toArray(children).filter(external_react_namespaceObject.isValidElement).map(function (child) {
|
|
2712
|
+
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(child, {
|
|
3227
2713
|
appearance: 'rowLink',
|
|
3228
2714
|
disabled: disabled
|
|
3229
2715
|
});
|
|
@@ -3244,15 +2730,15 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3244
2730
|
if (false) {}
|
|
3245
2731
|
}
|
|
3246
2732
|
|
|
3247
|
-
var selectedString =
|
|
2733
|
+
var selectedString = (0,format_namespaceObject.sprintf)((0,i18n_namespaceObject._)('%(selected)s'), {
|
|
3248
2734
|
selected: selected ? 'selected' : 'unselected'
|
|
3249
2735
|
});
|
|
3250
2736
|
var StyledStripe = StyledStripeComponents[stripe];
|
|
3251
2737
|
var StyledCellToggle = disabled ? StyledCellSelectionDisabled : Table_Cell;
|
|
3252
|
-
var rowSpan = expanded ?
|
|
2738
|
+
var rowSpan = expanded ? external_react_namespaceObject.Children.count(expansionRow) + 1 : undefined;
|
|
3253
2739
|
var dataMovableColumn = movableColumns ? 'false' : undefined;
|
|
3254
|
-
var actionsSecondaryToggle = /*#__PURE__*/external_react_default.
|
|
3255
|
-
return /*#__PURE__*/external_react_default.
|
|
2740
|
+
var actionsSecondaryToggle = /*#__PURE__*/external_react_default().createElement(ActionsSecondaryToggle, null);
|
|
2741
|
+
return /*#__PURE__*/external_react_default().createElement(StyledStripe, Row_extends({
|
|
3256
2742
|
"data-test": "row",
|
|
3257
2743
|
"data-test-selected": onRequestToggle ? selected : undefined,
|
|
3258
2744
|
$clickable: !!onClick,
|
|
@@ -3265,7 +2751,7 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3265
2751
|
onClick: onClick ? this.handleClick : undefined,
|
|
3266
2752
|
onKeyDown: this.handleKeyDown,
|
|
3267
2753
|
$rowSelected: !!(onRequestToggle && selected)
|
|
3268
|
-
}), draggable && /*#__PURE__*/external_react_default.
|
|
2754
|
+
}), draggable && /*#__PURE__*/external_react_default().createElement(Table_RowDragCell, {
|
|
3269
2755
|
activeElementId: activeElementId,
|
|
3270
2756
|
dataId: dataId,
|
|
3271
2757
|
"data-movable-column": dataMovableColumn,
|
|
@@ -3274,8 +2760,8 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3274
2760
|
onDragStart: onDragStart,
|
|
3275
2761
|
rowSpan: rowSpan,
|
|
3276
2762
|
showRowGuideline: showRowGuideline
|
|
3277
|
-
}), onRequestToggle && /*#__PURE__*/external_react_default.
|
|
3278
|
-
"aria-label":
|
|
2763
|
+
}), onRequestToggle && /*#__PURE__*/external_react_default().createElement(StyledCellToggle, {
|
|
2764
|
+
"aria-label": (0,format_namespaceObject.sprintf)((0,i18n_namespaceObject._)('%(rowLabelValue)s %(selectedString)s'), {
|
|
3279
2765
|
rowLabelValue: rowLabelValue,
|
|
3280
2766
|
selectedString: selectedString
|
|
3281
2767
|
}),
|
|
@@ -3287,84 +2773,84 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3287
2773
|
rowSpan: rowSpan,
|
|
3288
2774
|
role: "checkbox",
|
|
3289
2775
|
"aria-checked": selected
|
|
3290
|
-
}, /*#__PURE__*/external_react_default.
|
|
2776
|
+
}, /*#__PURE__*/external_react_default().createElement(Table_Toggle, {
|
|
3291
2777
|
disabled: disabled,
|
|
3292
2778
|
selected: selected
|
|
3293
|
-
})), expandable && expansionRow && /*#__PURE__*/external_react_default.
|
|
2779
|
+
})), expandable && expansionRow && /*#__PURE__*/external_react_default().createElement(Table_Cell, {
|
|
3294
2780
|
align: "center",
|
|
3295
2781
|
appearance: "data",
|
|
3296
2782
|
"aria-expanded": expanded,
|
|
3297
|
-
"aria-label":
|
|
2783
|
+
"aria-label": (0,i18n_namespaceObject._)('Expandable row'),
|
|
3298
2784
|
"data-movable-column": dataMovableColumn,
|
|
3299
2785
|
"data-test": "expand",
|
|
3300
2786
|
expand: expanded,
|
|
3301
2787
|
onClick: this.handleExpansion,
|
|
3302
2788
|
rowSpan: rowSpan,
|
|
3303
2789
|
variant: "expand"
|
|
3304
|
-
}, /*#__PURE__*/external_react_default.
|
|
2790
|
+
}, /*#__PURE__*/external_react_default().createElement(icons_ExpansionRow, {
|
|
3305
2791
|
expanded: expanded
|
|
3306
|
-
})), expandable && !expansionRow && /*#__PURE__*/external_react_default.
|
|
2792
|
+
})), expandable && !expansionRow && /*#__PURE__*/external_react_default().createElement(StyledCellExpansionDisabled, {
|
|
3307
2793
|
variant: "expand",
|
|
3308
2794
|
"data-movable-column": dataMovableColumn
|
|
3309
|
-
}), childrenCloned, actions && !actionPrimary && !actionsSecondary && /*#__PURE__*/external_react_default.
|
|
2795
|
+
}), childrenCloned, actions && !actionPrimary && !actionsSecondary && /*#__PURE__*/external_react_default().createElement(Table_Cell, {
|
|
3310
2796
|
align: "right",
|
|
3311
2797
|
appearance: disabled ? 'data' : 'rowLink',
|
|
3312
2798
|
"data-test": "row-actions",
|
|
3313
2799
|
variant: "actions",
|
|
3314
2800
|
"data-movable-column": dataMovableColumn
|
|
3315
|
-
}), (actionPrimary || actionsSecondary) && /*#__PURE__*/external_react_default.
|
|
2801
|
+
}), (actionPrimary || actionsSecondary) && /*#__PURE__*/external_react_default().createElement(Table_Cell, {
|
|
3316
2802
|
align: "right",
|
|
3317
2803
|
appearance: "rowLink",
|
|
3318
2804
|
"data-test": "row-actions",
|
|
3319
2805
|
variant: "actions",
|
|
3320
2806
|
"data-movable-column": dataMovableColumn
|
|
3321
|
-
}, actionPrimary && this.renderActionPrimary(), actionsSecondary && /*#__PURE__*/external_react_default.
|
|
2807
|
+
}, actionPrimary && this.renderActionPrimary(), actionsSecondary && /*#__PURE__*/external_react_default().createElement((Dropdown_default()), {
|
|
3322
2808
|
toggle: actionsSecondaryToggle
|
|
3323
2809
|
}, this.renderActionsSecondary())));
|
|
3324
2810
|
}
|
|
3325
2811
|
}]);
|
|
3326
2812
|
|
|
3327
2813
|
return Row;
|
|
3328
|
-
}(
|
|
2814
|
+
}(external_react_namespaceObject.Component);
|
|
3329
2815
|
|
|
3330
|
-
Row_defineProperty(
|
|
2816
|
+
Row_defineProperty(Row, "splunkUiType", 'Table.Row');
|
|
3331
2817
|
|
|
3332
|
-
Row_defineProperty(
|
|
2818
|
+
Row_defineProperty(Row, "propTypes", Row_propTypes);
|
|
3333
2819
|
|
|
3334
|
-
Row_defineProperty(
|
|
2820
|
+
Row_defineProperty(Row, "defaultProps", Row_defaultProps);
|
|
3335
2821
|
|
|
3336
|
-
/* harmony default export */
|
|
3337
|
-
|
|
2822
|
+
/* harmony default export */ const Table_Row = (Row);
|
|
2823
|
+
;// CONCATENATED MODULE: ./src/Table/HeadStyles.ts
|
|
3338
2824
|
|
|
3339
2825
|
|
|
3340
2826
|
|
|
3341
|
-
var HeadStyles_Styled = external_styled_components_default.
|
|
2827
|
+
var HeadStyles_Styled = external_styled_components_default().thead.withConfig({
|
|
3342
2828
|
displayName: "HeadStyles__Styled",
|
|
3343
2829
|
componentId: "iap21t-0"
|
|
3344
|
-
})(["", ";"],
|
|
2830
|
+
})(["", ";"], themes_namespaceObject.mixins.reset('table-header-group'));
|
|
3345
2831
|
var StyledToggleAll = external_styled_components_default()(Table_HeadCell).withConfig({
|
|
3346
2832
|
displayName: "HeadStyles__StyledToggleAll",
|
|
3347
2833
|
componentId: "iap21t-1"
|
|
3348
|
-
})(["width:", ";"],
|
|
2834
|
+
})(["width:", ";"], (0,themes_namespaceObject.pick)({
|
|
3349
2835
|
enterprise: '42px',
|
|
3350
2836
|
prisma: '40px'
|
|
3351
2837
|
}));
|
|
3352
2838
|
var StyledInfo = external_styled_components_default()(Table_HeadCell).withConfig({
|
|
3353
2839
|
displayName: "HeadStyles__StyledInfo",
|
|
3354
2840
|
componentId: "iap21t-2"
|
|
3355
|
-
})(["width:", ";"],
|
|
2841
|
+
})(["width:", ";"], (0,themes_namespaceObject.pick)({
|
|
3356
2842
|
enterprise: '32px',
|
|
3357
2843
|
prisma: '40px'
|
|
3358
2844
|
}));
|
|
3359
2845
|
var StyledDragRow = external_styled_components_default()(Table_HeadCell).withConfig({
|
|
3360
2846
|
displayName: "HeadStyles__StyledDragRow",
|
|
3361
2847
|
componentId: "iap21t-3"
|
|
3362
|
-
})(["width:", ";"],
|
|
2848
|
+
})(["width:", ";"], (0,themes_namespaceObject.pick)({
|
|
3363
2849
|
enterprise: '32px',
|
|
3364
2850
|
prisma: '40px'
|
|
3365
2851
|
}));
|
|
3366
2852
|
|
|
3367
|
-
|
|
2853
|
+
;// CONCATENATED MODULE: ./src/Table/Head.tsx
|
|
3368
2854
|
function Head_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Head_typeof = function _typeof(obj) { return typeof obj; }; } else { Head_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Head_typeof(obj); }
|
|
3369
2855
|
|
|
3370
2856
|
function Head_extends() { Head_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Head_extends.apply(this, arguments); }
|
|
@@ -3406,42 +2892,42 @@ function Head_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
|
|
|
3406
2892
|
|
|
3407
2893
|
var Head_propTypes = {
|
|
3408
2894
|
/** @private. */
|
|
3409
|
-
actions: external_prop_types_default.
|
|
2895
|
+
actions: external_prop_types_default().arrayOf((external_prop_types_default()).node),
|
|
3410
2896
|
|
|
3411
2897
|
/** @private. */
|
|
3412
|
-
actionsColumnWidth: external_prop_types_default.
|
|
3413
|
-
children: external_prop_types_default.
|
|
2898
|
+
actionsColumnWidth: (external_prop_types_default()).number,
|
|
2899
|
+
children: (external_prop_types_default()).node,
|
|
3414
2900
|
|
|
3415
2901
|
/** @private. */
|
|
3416
|
-
dragPosition: external_prop_types_default.
|
|
2902
|
+
dragPosition: (external_prop_types_default()).number,
|
|
3417
2903
|
|
|
3418
2904
|
/** @private. */
|
|
3419
|
-
dragIndex: external_prop_types_default.
|
|
3420
|
-
elementRef: external_prop_types_default.
|
|
2905
|
+
dragIndex: (external_prop_types_default()).number,
|
|
2906
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
3421
2907
|
|
|
3422
2908
|
/** @private. */
|
|
3423
|
-
hasDragColumn: external_prop_types_default.
|
|
2909
|
+
hasDragColumn: (external_prop_types_default()).bool,
|
|
3424
2910
|
|
|
3425
2911
|
/** @private. */
|
|
3426
|
-
hasInfoColumn: external_prop_types_default.
|
|
2912
|
+
hasInfoColumn: (external_prop_types_default()).bool,
|
|
3427
2913
|
|
|
3428
2914
|
/** @private. */
|
|
3429
|
-
onAutosizeColumn: external_prop_types_default.
|
|
2915
|
+
onAutosizeColumn: (external_prop_types_default()).func,
|
|
3430
2916
|
|
|
3431
2917
|
/** @private. */
|
|
3432
|
-
onDragStart: external_prop_types_default.
|
|
2918
|
+
onDragStart: (external_prop_types_default()).func,
|
|
3433
2919
|
|
|
3434
2920
|
/** @private. */
|
|
3435
|
-
onRequestMoveColumn: external_prop_types_default.
|
|
2921
|
+
onRequestMoveColumn: (external_prop_types_default()).func,
|
|
3436
2922
|
|
|
3437
2923
|
/** @private. */
|
|
3438
|
-
onRequestResizeColumn: external_prop_types_default.
|
|
2924
|
+
onRequestResizeColumn: (external_prop_types_default()).func,
|
|
3439
2925
|
|
|
3440
2926
|
/** @private. */
|
|
3441
|
-
onRequestToggleAllRows: external_prop_types_default.
|
|
2927
|
+
onRequestToggleAllRows: (external_prop_types_default()).func,
|
|
3442
2928
|
|
|
3443
2929
|
/** @private. */
|
|
3444
|
-
rowSelection: external_prop_types_default.
|
|
2930
|
+
rowSelection: external_prop_types_default().oneOf(['all', 'some', 'none'])
|
|
3445
2931
|
};
|
|
3446
2932
|
var Head_defaultProps = {
|
|
3447
2933
|
actions: []
|
|
@@ -3450,7 +2936,7 @@ var columnOneIndexOffset = 3;
|
|
|
3450
2936
|
var columnTwoIndexOffset = 2;
|
|
3451
2937
|
var columnThreeIndexOffset = 1;
|
|
3452
2938
|
|
|
3453
|
-
var
|
|
2939
|
+
var Head = /*#__PURE__*/function (_Component) {
|
|
3454
2940
|
Head_inherits(Head, _Component);
|
|
3455
2941
|
|
|
3456
2942
|
var _super = Head_createSuper(Head);
|
|
@@ -3472,7 +2958,7 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3472
2958
|
fromIndex = _ref.fromIndex,
|
|
3473
2959
|
toIndex = _ref.toIndex;
|
|
3474
2960
|
|
|
3475
|
-
if (toIndex <
|
|
2961
|
+
if (toIndex < external_react_namespaceObject.Children.toArray(_this.props.children).length) {
|
|
3476
2962
|
var _this$props$onRequest, _this$props;
|
|
3477
2963
|
|
|
3478
2964
|
// HeadCell never requests less than zero
|
|
@@ -3486,13 +2972,13 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3486
2972
|
|
|
3487
2973
|
Head_defineProperty(Head_assertThisInitialized(_this), "handleMount", function (el) {
|
|
3488
2974
|
_this.el = el;
|
|
3489
|
-
|
|
2975
|
+
updateReactRef(_this.props.elementRef, el);
|
|
3490
2976
|
});
|
|
3491
2977
|
|
|
3492
2978
|
Head_defineProperty(Head_assertThisInitialized(_this), "handleDragStart", function (dragIndex, dragColumnId) {
|
|
3493
2979
|
var _this$props$onDragSta, _this$props2;
|
|
3494
2980
|
|
|
3495
|
-
var window =
|
|
2981
|
+
var window = getWindow();
|
|
3496
2982
|
|
|
3497
2983
|
_this.setState({
|
|
3498
2984
|
dragColumnId: dragColumnId
|
|
@@ -3551,7 +3037,7 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3551
3037
|
value: function getCellWidths() {
|
|
3552
3038
|
var _this$el$firstElement, _this$el, _this$el$firstElement2;
|
|
3553
3039
|
|
|
3554
|
-
var window =
|
|
3040
|
+
var window = getWindow();
|
|
3555
3041
|
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 : []);
|
|
3556
3042
|
var result = headRowCells.map(function (el) {
|
|
3557
3043
|
var computedStyle = window.getComputedStyle(el);
|
|
@@ -3608,7 +3094,7 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3608
3094
|
}, {
|
|
3609
3095
|
key: "cleanupDrag",
|
|
3610
3096
|
value: function cleanupDrag() {
|
|
3611
|
-
var window =
|
|
3097
|
+
var window = getWindow();
|
|
3612
3098
|
window.removeEventListener('dragend', this.handleDragEnd);
|
|
3613
3099
|
this.cells = undefined;
|
|
3614
3100
|
}
|
|
@@ -3630,7 +3116,7 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3630
3116
|
rowSelection = _this$props5.rowSelection;
|
|
3631
3117
|
var headType = this.context.headType;
|
|
3632
3118
|
var guidelineIndex = this.calculateGuideIndex();
|
|
3633
|
-
var validChildren =
|
|
3119
|
+
var validChildren = external_react_namespaceObject.Children.toArray(children).filter(external_react_namespaceObject.isValidElement);
|
|
3634
3120
|
var minimumIndex = validChildren.length + (actions.length || actionsColumnWidth ? 1 : 0);
|
|
3635
3121
|
var clonedChildren = validChildren.map(function (child, index, original) {
|
|
3636
3122
|
var showGuideline = 'none';
|
|
@@ -3641,7 +3127,7 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3641
3127
|
showGuideline = 'before';
|
|
3642
3128
|
}
|
|
3643
3129
|
|
|
3644
|
-
return /*#__PURE__*/
|
|
3130
|
+
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(child, {
|
|
3645
3131
|
index: index,
|
|
3646
3132
|
showGuideline: showGuideline,
|
|
3647
3133
|
onRequestResize: onRequestResizeColumn,
|
|
@@ -3661,16 +3147,16 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3661
3147
|
var ariaChecked = toggleState === 'some' ? 'mixed' : toggleState;
|
|
3662
3148
|
var defaultActionsColumnWidth = actionsColumnWidth || 48;
|
|
3663
3149
|
var testHookValue = headType === 'fixed' ? 'fixed-head' : 'head';
|
|
3664
|
-
return /*#__PURE__*/external_react_default.
|
|
3150
|
+
return /*#__PURE__*/external_react_default().createElement(HeadStyles_Styled, Head_extends({
|
|
3665
3151
|
ref: this.handleMount,
|
|
3666
3152
|
"data-test": testHookValue
|
|
3667
|
-
}, omit_default()(this.props, keys_default()(Head.propTypes))), /*#__PURE__*/external_react_default.
|
|
3153
|
+
}, omit_default()(this.props, keys_default()(Head.propTypes))), /*#__PURE__*/external_react_default().createElement(Table_Row, null, hasDragColumn && /*#__PURE__*/external_react_default().createElement(StyledDragRow, {
|
|
3668
3154
|
key: "drag_rows_head_cell",
|
|
3669
3155
|
"data-test": "drag-rows-head-cell",
|
|
3670
3156
|
align: "center",
|
|
3671
3157
|
resizable: false,
|
|
3672
3158
|
zIndex: minimumIndex + columnOneIndexOffset
|
|
3673
|
-
}), onRequestToggleAllRows && /*#__PURE__*/external_react_default.
|
|
3159
|
+
}), onRequestToggleAllRows && /*#__PURE__*/external_react_default().createElement(StyledToggleAll, {
|
|
3674
3160
|
key: "toggle_all",
|
|
3675
3161
|
"data-test": "toggle-all",
|
|
3676
3162
|
resizable: false,
|
|
@@ -3681,17 +3167,17 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3681
3167
|
role: "checkbox",
|
|
3682
3168
|
"aria-checked": ariaChecked,
|
|
3683
3169
|
zIndex: minimumIndex + columnTwoIndexOffset
|
|
3684
|
-
}, /*#__PURE__*/external_react_default.
|
|
3170
|
+
}, /*#__PURE__*/external_react_default().createElement(Table_Toggle, {
|
|
3685
3171
|
selected: toggleState,
|
|
3686
3172
|
allRows: true
|
|
3687
|
-
})), hasInfoColumn && /*#__PURE__*/external_react_default.
|
|
3173
|
+
})), hasInfoColumn && /*#__PURE__*/external_react_default().createElement(StyledInfo, {
|
|
3688
3174
|
key: "more_info_head_cell",
|
|
3689
3175
|
"data-test": "more-info-head-cell",
|
|
3690
3176
|
align: "center",
|
|
3691
3177
|
resizable: false,
|
|
3692
3178
|
variant: "info",
|
|
3693
3179
|
zIndex: minimumIndex + columnThreeIndexOffset
|
|
3694
|
-
}, /*#__PURE__*/external_react_default.
|
|
3180
|
+
}, /*#__PURE__*/external_react_default().createElement(HeadExpandRows, null)), clonedChildren, actions.length > 0 && /*#__PURE__*/external_react_default().createElement(Table_HeadCell, {
|
|
3695
3181
|
hasActionsHead: true,
|
|
3696
3182
|
key: "actions_head_cell",
|
|
3697
3183
|
"data-test": "actions-head-cell",
|
|
@@ -3703,7 +3189,7 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3703
3189
|
},
|
|
3704
3190
|
variant: "actions",
|
|
3705
3191
|
zIndex: 1
|
|
3706
|
-
}, actions), actions.length === 0 && actionsColumnWidth && /*#__PURE__*/external_react_default.
|
|
3192
|
+
}, actions), actions.length === 0 && actionsColumnWidth && /*#__PURE__*/external_react_default().createElement(Table_HeadCell, {
|
|
3707
3193
|
key: "actions_head_cell",
|
|
3708
3194
|
"data-test": "actions-head-cell",
|
|
3709
3195
|
align: "right",
|
|
@@ -3724,33 +3210,29 @@ var Head_Head = /*#__PURE__*/function (_Component) {
|
|
|
3724
3210
|
}]);
|
|
3725
3211
|
|
|
3726
3212
|
return Head;
|
|
3727
|
-
}(
|
|
3728
|
-
|
|
3729
|
-
Head_defineProperty(Head_Head, "contextType", Table_TableContext);
|
|
3213
|
+
}(external_react_namespaceObject.Component);
|
|
3730
3214
|
|
|
3731
|
-
Head_defineProperty(
|
|
3215
|
+
Head_defineProperty(Head, "contextType", Table_TableContext);
|
|
3732
3216
|
|
|
3733
|
-
Head_defineProperty(
|
|
3217
|
+
Head_defineProperty(Head, "splunkUiType", 'Table.Head');
|
|
3734
3218
|
|
|
3735
|
-
Head_defineProperty(
|
|
3219
|
+
Head_defineProperty(Head, "propTypes", Head_propTypes);
|
|
3736
3220
|
|
|
3737
|
-
|
|
3738
|
-
// EXTERNAL MODULE: external "lodash/isFinite"
|
|
3739
|
-
var isFinite_ = __webpack_require__(19);
|
|
3740
|
-
var isFinite_default = /*#__PURE__*/__webpack_require__.n(isFinite_);
|
|
3221
|
+
Head_defineProperty(Head, "defaultProps", Head_defaultProps);
|
|
3741
3222
|
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3223
|
+
/* harmony default export */ const Table_Head = (Head);
|
|
3224
|
+
;// CONCATENATED MODULE: external "lodash/isFinite"
|
|
3225
|
+
const isFinite_namespaceObject = require("lodash/isFinite");
|
|
3226
|
+
var isFinite_default = /*#__PURE__*/__webpack_require__.n(isFinite_namespaceObject);
|
|
3227
|
+
;// CONCATENATED MODULE: external "lodash/isFunction"
|
|
3228
|
+
const isFunction_namespaceObject = require("lodash/isFunction");
|
|
3229
|
+
var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction_namespaceObject);
|
|
3230
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/id"
|
|
3231
|
+
const id_namespaceObject = require("@splunk/ui-utils/id");
|
|
3232
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Popover"
|
|
3233
|
+
const Popover_namespaceObject = require("@splunk/react-ui/Popover");
|
|
3234
|
+
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_namespaceObject);
|
|
3235
|
+
;// CONCATENATED MODULE: ./src/Table/HeadDropdownCell.tsx
|
|
3754
3236
|
function HeadDropdownCell_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { HeadDropdownCell_typeof = function _typeof(obj) { return typeof obj; }; } else { HeadDropdownCell_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return HeadDropdownCell_typeof(obj); }
|
|
3755
3237
|
|
|
3756
3238
|
function HeadDropdownCell_extends() { HeadDropdownCell_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return HeadDropdownCell_extends.apply(this, arguments); }
|
|
@@ -3808,60 +3290,60 @@ function HeadDropdownCell_defineProperty(obj, key, value) { if (key in obj) { Ob
|
|
|
3808
3290
|
|
|
3809
3291
|
var possibleCloseReasons = ['clickAway', 'contentClick', 'escapeKey', 'offScreen', 'tabKey', 'toggleClick'];
|
|
3810
3292
|
var HeadDropdownCell_propTypes = {
|
|
3811
|
-
align: external_prop_types_default.
|
|
3812
|
-
canCoverHead: external_prop_types_default.
|
|
3813
|
-
children: external_prop_types_default.
|
|
3814
|
-
closeReasons: external_prop_types_default.
|
|
3815
|
-
columnId: external_prop_types_default.
|
|
3816
|
-
defaultPlacement: external_prop_types_default.
|
|
3817
|
-
elementRef: external_prop_types_default.
|
|
3818
|
-
focusToggleReasons: external_prop_types_default.
|
|
3293
|
+
align: external_prop_types_default().oneOf(['left', 'center', 'right']),
|
|
3294
|
+
canCoverHead: (external_prop_types_default()).bool,
|
|
3295
|
+
children: (external_prop_types_default()).node.isRequired,
|
|
3296
|
+
closeReasons: external_prop_types_default().arrayOf(external_prop_types_default().oneOf(possibleCloseReasons)),
|
|
3297
|
+
columnId: (external_prop_types_default()).any,
|
|
3298
|
+
defaultPlacement: external_prop_types_default().oneOf(['above', 'below', 'left', 'right', 'vertical', 'horizontal']),
|
|
3299
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
3300
|
+
focusToggleReasons: external_prop_types_default().arrayOf(external_prop_types_default().oneOf(possibleCloseReasons)),
|
|
3819
3301
|
|
|
3820
3302
|
/** @private The index of the cell, skipping the info column. */
|
|
3821
|
-
index: external_prop_types_default.
|
|
3822
|
-
label: external_prop_types_default.
|
|
3303
|
+
index: (external_prop_types_default()).number,
|
|
3304
|
+
label: (external_prop_types_default()).node,
|
|
3823
3305
|
|
|
3824
3306
|
/** @private. */
|
|
3825
|
-
onAutosizeColumn: external_prop_types_default.
|
|
3307
|
+
onAutosizeColumn: (external_prop_types_default()).func,
|
|
3826
3308
|
|
|
3827
3309
|
/** @private. */
|
|
3828
|
-
onDragStart: external_prop_types_default.
|
|
3310
|
+
onDragStart: (external_prop_types_default()).func,
|
|
3829
3311
|
|
|
3830
3312
|
/**
|
|
3831
3313
|
* @private. This will be passed through, and will work as expected.
|
|
3832
3314
|
*/
|
|
3833
|
-
onKeyDown: external_prop_types_default.
|
|
3834
|
-
onRequestClose: external_prop_types_default.
|
|
3315
|
+
onKeyDown: (external_prop_types_default()).func,
|
|
3316
|
+
onRequestClose: (external_prop_types_default()).func,
|
|
3835
3317
|
|
|
3836
3318
|
/** @private. */
|
|
3837
|
-
onRequestMoveColumn: external_prop_types_default.
|
|
3838
|
-
onRequestOpen: external_prop_types_default.
|
|
3319
|
+
onRequestMoveColumn: (external_prop_types_default()).func,
|
|
3320
|
+
onRequestOpen: (external_prop_types_default()).func,
|
|
3839
3321
|
|
|
3840
3322
|
/** @private. */
|
|
3841
|
-
onRequestResize: external_prop_types_default.
|
|
3842
|
-
open: external_prop_types_default.
|
|
3843
|
-
repositionMode: external_prop_types_default.
|
|
3844
|
-
resizable: external_prop_types_default.
|
|
3845
|
-
retainFocus: external_prop_types_default.
|
|
3323
|
+
onRequestResize: (external_prop_types_default()).func,
|
|
3324
|
+
open: (external_prop_types_default()).bool,
|
|
3325
|
+
repositionMode: external_prop_types_default().oneOf(['none', 'flip', 'any']),
|
|
3326
|
+
resizable: (external_prop_types_default()).bool,
|
|
3327
|
+
retainFocus: (external_prop_types_default()).bool,
|
|
3846
3328
|
|
|
3847
3329
|
/** @private. */
|
|
3848
|
-
showGuideline: external_prop_types_default.
|
|
3849
|
-
takeFocus: external_prop_types_default.
|
|
3850
|
-
truncate: external_prop_types_default.
|
|
3330
|
+
showGuideline: external_prop_types_default().oneOf(['none', 'before', 'after']),
|
|
3331
|
+
takeFocus: (external_prop_types_default()).bool,
|
|
3332
|
+
truncate: (external_prop_types_default()).bool,
|
|
3851
3333
|
|
|
3852
3334
|
/**
|
|
3853
3335
|
* @private
|
|
3854
3336
|
* Used internally to suppress focus when this `HeadDropdownCell` is superseded by one in an
|
|
3855
3337
|
* overlaid `HeadTable` for user interactions.
|
|
3856
3338
|
*/
|
|
3857
|
-
visible: external_prop_types_default.
|
|
3858
|
-
width: external_prop_types_default.
|
|
3339
|
+
visible: (external_prop_types_default()).bool,
|
|
3340
|
+
width: (external_prop_types_default()).number,
|
|
3859
3341
|
|
|
3860
3342
|
/** @private. */
|
|
3861
|
-
variant: external_prop_types_default.
|
|
3343
|
+
variant: external_prop_types_default().oneOf(['toggleAll', 'info', 'actions']),
|
|
3862
3344
|
|
|
3863
3345
|
/** @private. */
|
|
3864
|
-
zIndex: external_prop_types_default.
|
|
3346
|
+
zIndex: (external_prop_types_default()).number
|
|
3865
3347
|
};
|
|
3866
3348
|
var HeadDropdownCell_defaultProps = {
|
|
3867
3349
|
align: 'left',
|
|
@@ -3878,7 +3360,7 @@ var HeadDropdownCell_defaultProps = {
|
|
|
3878
3360
|
zIndex: 1
|
|
3879
3361
|
};
|
|
3880
3362
|
|
|
3881
|
-
var
|
|
3363
|
+
var HeadDropdownCell = /*#__PURE__*/function (_Component) {
|
|
3882
3364
|
HeadDropdownCell_inherits(HeadDropdownCell, _Component);
|
|
3883
3365
|
|
|
3884
3366
|
var _super = HeadDropdownCell_createSuper(HeadDropdownCell);
|
|
@@ -3908,7 +3390,7 @@ var HeadDropdownCell_HeadDropdownCell = /*#__PURE__*/function (_Component) {
|
|
|
3908
3390
|
el: el
|
|
3909
3391
|
});
|
|
3910
3392
|
|
|
3911
|
-
|
|
3393
|
+
updateReactRef(_this.props.elementRef, el);
|
|
3912
3394
|
});
|
|
3913
3395
|
|
|
3914
3396
|
HeadDropdownCell_defineProperty(HeadDropdownCell_assertThisInitialized(_this), "handleRequestClose", function (_ref) {
|
|
@@ -3998,15 +3480,15 @@ var HeadDropdownCell_HeadDropdownCell = /*#__PURE__*/function (_Component) {
|
|
|
3998
3480
|
onRequestMoveColumn = _this$props4.onRequestMoveColumn;
|
|
3999
3481
|
|
|
4000
3482
|
if (e.target.getAttribute('data-test') !== 'resize') {
|
|
4001
|
-
if (
|
|
3483
|
+
if ((0,keyboard_namespaceObject.keycode)(e.nativeEvent) === 'enter') {
|
|
4002
3484
|
_this.handleClick(e);
|
|
4003
|
-
} else if (
|
|
3485
|
+
} else if ((0,keyboard_namespaceObject.keycode)(e.nativeEvent) === 'left' && index !== undefined && index > 0) {
|
|
4004
3486
|
onRequestMoveColumn === null || onRequestMoveColumn === void 0 ? void 0 : onRequestMoveColumn({
|
|
4005
3487
|
fromIndex: index,
|
|
4006
3488
|
toIndex: index - 1,
|
|
4007
3489
|
columnId: columnId
|
|
4008
3490
|
});
|
|
4009
|
-
} else if (
|
|
3491
|
+
} else if ((0,keyboard_namespaceObject.keycode)(e.nativeEvent) === 'right' && index !== undefined) {
|
|
4010
3492
|
onRequestMoveColumn === null || onRequestMoveColumn === void 0 ? void 0 : onRequestMoveColumn({
|
|
4011
3493
|
fromIndex: index,
|
|
4012
3494
|
toIndex: index + 1,
|
|
@@ -4052,8 +3534,8 @@ var HeadDropdownCell_HeadDropdownCell = /*#__PURE__*/function (_Component) {
|
|
|
4052
3534
|
open: false
|
|
4053
3535
|
};
|
|
4054
3536
|
_this.controlledExternally = has_default()(props, 'open');
|
|
4055
|
-
_this.popoverId =
|
|
4056
|
-
_this.cellId =
|
|
3537
|
+
_this.popoverId = (0,id_namespaceObject.createDOMID)('popover');
|
|
3538
|
+
_this.cellId = (0,id_namespaceObject.createDOMID)('cellId');
|
|
4057
3539
|
|
|
4058
3540
|
if (false) {}
|
|
4059
3541
|
|
|
@@ -4127,7 +3609,7 @@ var HeadDropdownCell_HeadDropdownCell = /*#__PURE__*/function (_Component) {
|
|
|
4127
3609
|
clientX = _this$state.clientX;
|
|
4128
3610
|
var cellId = id || this.cellId;
|
|
4129
3611
|
var headType = this.context.headType;
|
|
4130
|
-
return /*#__PURE__*/external_react_default.
|
|
3612
|
+
return /*#__PURE__*/external_react_default().createElement(HeadCellStyles_Styled, HeadDropdownCell_extends({
|
|
4131
3613
|
style: merge_default()(style, {
|
|
4132
3614
|
width: width
|
|
4133
3615
|
}),
|
|
@@ -4146,7 +3628,7 @@ var HeadDropdownCell_HeadDropdownCell = /*#__PURE__*/function (_Component) {
|
|
|
4146
3628
|
"aria-expanded": this.isOpen(),
|
|
4147
3629
|
$isFixed: headType === 'fixed',
|
|
4148
3630
|
$zIndex: zIndex
|
|
4149
|
-
}), /*#__PURE__*/external_react_default.
|
|
3631
|
+
}), /*#__PURE__*/external_react_default().createElement(Table_HeadInner, {
|
|
4150
3632
|
label: label,
|
|
4151
3633
|
align: align,
|
|
4152
3634
|
columnId: columnId,
|
|
@@ -4160,9 +3642,9 @@ var HeadDropdownCell_HeadDropdownCell = /*#__PURE__*/function (_Component) {
|
|
|
4160
3642
|
onRequestResize: onRequestResize,
|
|
4161
3643
|
truncate: truncate,
|
|
4162
3644
|
width: width
|
|
4163
|
-
}), showGuideline !== 'none' && /*#__PURE__*/external_react_default.
|
|
3645
|
+
}), showGuideline !== 'none' && /*#__PURE__*/external_react_default().createElement(StyledGuideLine, {
|
|
4164
3646
|
$position: showGuideline
|
|
4165
|
-
}), /*#__PURE__*/external_react_default.
|
|
3647
|
+
}), /*#__PURE__*/external_react_default().createElement((Popover_default()), {
|
|
4166
3648
|
align: "center",
|
|
4167
3649
|
open: !!el && this.isOpen(),
|
|
4168
3650
|
autoCloseWhenOffScreen: includes_default()(closeReasons, 'offScreen'),
|
|
@@ -4182,38 +3664,37 @@ var HeadDropdownCell_HeadDropdownCell = /*#__PURE__*/function (_Component) {
|
|
|
4182
3664
|
return (
|
|
4183
3665
|
/*#__PURE__*/
|
|
4184
3666
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
4185
|
-
external_react_default.
|
|
3667
|
+
external_react_default().createElement("div", {
|
|
4186
3668
|
onClick: _this3.handleContentClick
|
|
4187
3669
|
}, children.apply(void 0, arguments))
|
|
4188
3670
|
);
|
|
4189
3671
|
} :
|
|
4190
3672
|
/*#__PURE__*/
|
|
4191
3673
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
4192
|
-
external_react_default.
|
|
3674
|
+
external_react_default().createElement("div", {
|
|
4193
3675
|
onClick: this.handleContentClick
|
|
4194
3676
|
}, children)));
|
|
4195
3677
|
}
|
|
4196
3678
|
}]);
|
|
4197
3679
|
|
|
4198
3680
|
return HeadDropdownCell;
|
|
4199
|
-
}(
|
|
4200
|
-
|
|
4201
|
-
HeadDropdownCell_defineProperty(HeadDropdownCell_HeadDropdownCell, "splunkUiType", 'Table.HeadDropdownCell');
|
|
3681
|
+
}(external_react_namespaceObject.Component);
|
|
4202
3682
|
|
|
4203
|
-
HeadDropdownCell_defineProperty(
|
|
3683
|
+
HeadDropdownCell_defineProperty(HeadDropdownCell, "splunkUiType", 'Table.HeadDropdownCell');
|
|
4204
3684
|
|
|
4205
|
-
HeadDropdownCell_defineProperty(
|
|
3685
|
+
HeadDropdownCell_defineProperty(HeadDropdownCell, "possibleCloseReasons", possibleCloseReasons);
|
|
4206
3686
|
|
|
4207
|
-
HeadDropdownCell_defineProperty(
|
|
3687
|
+
HeadDropdownCell_defineProperty(HeadDropdownCell, "propTypes", HeadDropdownCell_propTypes);
|
|
4208
3688
|
|
|
4209
|
-
HeadDropdownCell_defineProperty(
|
|
3689
|
+
HeadDropdownCell_defineProperty(HeadDropdownCell, "defaultProps", HeadDropdownCell_defaultProps);
|
|
4210
3690
|
|
|
4211
|
-
|
|
4212
|
-
// EXTERNAL MODULE: external "lodash/extend"
|
|
4213
|
-
var extend_ = __webpack_require__(52);
|
|
4214
|
-
var extend_default = /*#__PURE__*/__webpack_require__.n(extend_);
|
|
3691
|
+
HeadDropdownCell_defineProperty(HeadDropdownCell, "contextType", Table_TableContext);
|
|
4215
3692
|
|
|
4216
|
-
|
|
3693
|
+
/* harmony default export */ const Table_HeadDropdownCell = (HeadDropdownCell);
|
|
3694
|
+
;// CONCATENATED MODULE: external "lodash/extend"
|
|
3695
|
+
const extend_namespaceObject = require("lodash/extend");
|
|
3696
|
+
var extend_default = /*#__PURE__*/__webpack_require__.n(extend_namespaceObject);
|
|
3697
|
+
;// CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
|
|
4217
3698
|
|
|
4218
3699
|
|
|
4219
3700
|
|
|
@@ -4221,19 +3702,19 @@ var HeadTableStyles_Styled = external_styled_components_default()(StyledTable).w
|
|
|
4221
3702
|
displayName: "HeadTableStyles__Styled",
|
|
4222
3703
|
componentId: "g85wgf-0"
|
|
4223
3704
|
})(["min-width:0;table-layout:fixed;"]);
|
|
4224
|
-
var StyledDockedContainer = external_styled_components_default.
|
|
3705
|
+
var StyledDockedContainer = external_styled_components_default().div.withConfig({
|
|
4225
3706
|
displayName: "HeadTableStyles__StyledDockedContainer",
|
|
4226
3707
|
componentId: "g85wgf-1"
|
|
4227
|
-
})(["overflow:hidden;position:fixed;box-shadow:", ";z-index:", ";@media print{display:none;}"],
|
|
4228
|
-
enterprise:
|
|
3708
|
+
})(["overflow:hidden;position:fixed;box-shadow:", ";z-index:", ";@media print{display:none;}"], (0,themes_namespaceObject.pick)({
|
|
3709
|
+
enterprise: themes_namespaceObject.variables.overlayShadow,
|
|
4229
3710
|
prisma: 'none'
|
|
4230
|
-
}),
|
|
3711
|
+
}), themes_namespaceObject.variables.zindexFixedNavbar);
|
|
4231
3712
|
var StyledFixedContainer = external_styled_components_default()(StyledDockedContainer).withConfig({
|
|
4232
3713
|
displayName: "HeadTableStyles__StyledFixedContainer",
|
|
4233
3714
|
componentId: "g85wgf-2"
|
|
4234
3715
|
})(["position:absolute;box-shadow:none;z-index:1;"]);
|
|
4235
3716
|
|
|
4236
|
-
|
|
3717
|
+
;// CONCATENATED MODULE: ./src/Table/HeadTable.tsx
|
|
4237
3718
|
function HeadTable_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { HeadTable_typeof = function _typeof(obj) { return typeof obj; }; } else { HeadTable_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return HeadTable_typeof(obj); }
|
|
4238
3719
|
|
|
4239
3720
|
function HeadTable_extends() { HeadTable_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return HeadTable_extends.apply(this, arguments); }
|
|
@@ -4270,21 +3751,21 @@ function HeadTable_defineProperty(obj, key, value) { if (key in obj) { Object.de
|
|
|
4270
3751
|
|
|
4271
3752
|
|
|
4272
3753
|
var HeadTable_propTypes = {
|
|
4273
|
-
cellWidths: external_prop_types_default.
|
|
4274
|
-
dragIndex: external_prop_types_default.
|
|
4275
|
-
elementRef: external_prop_types_default.
|
|
4276
|
-
hasDragColumn: external_prop_types_default.
|
|
4277
|
-
hasRowExpansion: external_prop_types_default.
|
|
4278
|
-
hasRowSelection: external_prop_types_default.
|
|
4279
|
-
headType: external_prop_types_default.
|
|
4280
|
-
horizontalOffset: external_prop_types_default.
|
|
4281
|
-
isFixedColumn: external_prop_types_default.
|
|
4282
|
-
rowSelection: external_prop_types_default.
|
|
4283
|
-
tableStyle: external_prop_types_default.
|
|
4284
|
-
tableWidth: external_prop_types_default.
|
|
4285
|
-
tHead: external_prop_types_default.
|
|
4286
|
-
top: external_prop_types_default.
|
|
4287
|
-
width: external_prop_types_default.
|
|
3754
|
+
cellWidths: external_prop_types_default().arrayOf((external_prop_types_default()).number).isRequired,
|
|
3755
|
+
dragIndex: (external_prop_types_default()).number,
|
|
3756
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
3757
|
+
hasDragColumn: (external_prop_types_default()).bool,
|
|
3758
|
+
hasRowExpansion: (external_prop_types_default()).bool,
|
|
3759
|
+
hasRowSelection: (external_prop_types_default()).bool,
|
|
3760
|
+
headType: external_prop_types_default().oneOf(['docked', 'fixed']).isRequired,
|
|
3761
|
+
horizontalOffset: (external_prop_types_default()).number,
|
|
3762
|
+
isFixedColumn: (external_prop_types_default()).bool,
|
|
3763
|
+
rowSelection: external_prop_types_default().oneOf(['all', 'some', 'none']),
|
|
3764
|
+
tableStyle: (external_prop_types_default()).object,
|
|
3765
|
+
tableWidth: (external_prop_types_default()).number.isRequired,
|
|
3766
|
+
tHead: (external_prop_types_default()).element.isRequired,
|
|
3767
|
+
top: (external_prop_types_default()).number.isRequired,
|
|
3768
|
+
width: (external_prop_types_default()).number.isRequired
|
|
4288
3769
|
};
|
|
4289
3770
|
var HeadTable_defaultProps = {
|
|
4290
3771
|
horizontalOffset: 0
|
|
@@ -4295,7 +3776,7 @@ var HeadTable_defaultProps = {
|
|
|
4295
3776
|
* HeadTable is an internal component that provides a detached table head that can
|
|
4296
3777
|
* then be positioned in different ways outside of the main table.
|
|
4297
3778
|
*/
|
|
4298
|
-
var
|
|
3779
|
+
var HeadTable = /*#__PURE__*/function (_Component) {
|
|
4299
3780
|
HeadTable_inherits(HeadTable, _Component);
|
|
4300
3781
|
|
|
4301
3782
|
var _super = HeadTable_createSuper(HeadTable);
|
|
@@ -4361,25 +3842,25 @@ var HeadTable_HeadTable = /*#__PURE__*/function (_Component) {
|
|
|
4361
3842
|
} // Set the widths of the head cells if not fixed column
|
|
4362
3843
|
|
|
4363
3844
|
|
|
4364
|
-
var cells = isFixedColumn ?
|
|
4365
|
-
|
|
4366
|
-
return /*#__PURE__*/
|
|
3845
|
+
var cells = isFixedColumn ? external_react_namespaceObject.Children.toArray(tHead.props.children) : // ensure consistent keys
|
|
3846
|
+
external_react_namespaceObject.Children.toArray(tHead.props.children).filter(external_react_namespaceObject.isValidElement).map(function (cell, i) {
|
|
3847
|
+
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(cell, {
|
|
4367
3848
|
style: extend_default()({}, cell.props.style, {
|
|
4368
3849
|
width: cellWidths[i + indexOffset]
|
|
4369
3850
|
})
|
|
4370
3851
|
});
|
|
4371
3852
|
});
|
|
4372
|
-
var clonedTHead = /*#__PURE__*/
|
|
3853
|
+
var clonedTHead = /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(tHead, {
|
|
4373
3854
|
ref: this.handleHeadMount,
|
|
4374
3855
|
'data-test': "".concat(headType, "-head")
|
|
4375
3856
|
}, cells);
|
|
4376
|
-
return /*#__PURE__*/external_react_default.
|
|
3857
|
+
return /*#__PURE__*/external_react_default().createElement(StyledContainer, {
|
|
4377
3858
|
style: {
|
|
4378
3859
|
top: top,
|
|
4379
3860
|
width: width
|
|
4380
3861
|
},
|
|
4381
3862
|
ref: elementRef
|
|
4382
|
-
}, /*#__PURE__*/external_react_default.
|
|
3863
|
+
}, /*#__PURE__*/external_react_default().createElement(HeadTableStyles_Styled, HeadTable_extends({
|
|
4383
3864
|
"data-test": "".concat(headType, "-head-table"),
|
|
4384
3865
|
"data-fixed-column": isFixedColumn ? 'true' : undefined,
|
|
4385
3866
|
style: extend_default()({}, tableStyle, {
|
|
@@ -4391,17 +3872,31 @@ var HeadTable_HeadTable = /*#__PURE__*/function (_Component) {
|
|
|
4391
3872
|
}]);
|
|
4392
3873
|
|
|
4393
3874
|
return HeadTable;
|
|
4394
|
-
}(
|
|
3875
|
+
}(external_react_namespaceObject.Component);
|
|
4395
3876
|
|
|
4396
|
-
HeadTable_defineProperty(
|
|
3877
|
+
HeadTable_defineProperty(HeadTable, "propTypes", HeadTable_propTypes);
|
|
4397
3878
|
|
|
4398
|
-
HeadTable_defineProperty(
|
|
3879
|
+
HeadTable_defineProperty(HeadTable, "defaultProps", HeadTable_defaultProps);
|
|
4399
3880
|
|
|
4400
|
-
/* harmony default export */
|
|
4401
|
-
|
|
4402
|
-
|
|
3881
|
+
/* harmony default export */ const Table_HeadTable = (HeadTable);
|
|
3882
|
+
;// CONCATENATED MODULE: ./src/utils/types.ts
|
|
3883
|
+
// see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31245 for details
|
|
3884
|
+
// regarding the css prop. certain (versions of) libraries included in the compilation
|
|
3885
|
+
// - such as storybook->emotion - introduce the css prop using a global augmentation,
|
|
3886
|
+
// which causes the prop to end up in our declaration files (via JSX.IntrinsicElements).
|
|
3887
|
+
// it's difficult to control all nested dependencies and their types, which is why the
|
|
3888
|
+
// css prop is omitted in the two prop helpers above - this ensures the css prop isn't
|
|
3889
|
+
// erroneously included in react-ui's public api.
|
|
3890
|
+
// see https://github.com/microsoft/TypeScript/pull/12253
|
|
3891
|
+
// see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
|
|
3892
|
+
function assertDefined(val, msg) {
|
|
3893
|
+
if (val === undefined || val === null) {
|
|
3894
|
+
throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected undefined or null');
|
|
3895
|
+
}
|
|
3896
|
+
}
|
|
4403
3897
|
|
|
4404
|
-
|
|
3898
|
+
|
|
3899
|
+
;// CONCATENATED MODULE: ./src/Table/Table.tsx
|
|
4405
3900
|
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); }
|
|
4406
3901
|
|
|
4407
3902
|
function Table_extends() { Table_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Table_extends.apply(this, arguments); }
|
|
@@ -4471,25 +3966,25 @@ function Table_defineProperty(obj, key, value) { if (key in obj) { Object.define
|
|
|
4471
3966
|
/** @public */
|
|
4472
3967
|
|
|
4473
3968
|
var Table_propTypes = {
|
|
4474
|
-
actions: external_prop_types_default.
|
|
4475
|
-
actionsColumnWidth: external_prop_types_default.
|
|
4476
|
-
children: external_prop_types_default.
|
|
4477
|
-
dockOffset: external_prop_types_default.
|
|
4478
|
-
dockScrollBar: external_prop_types_default.
|
|
4479
|
-
elementRef: external_prop_types_default.
|
|
4480
|
-
headType: external_prop_types_default.
|
|
4481
|
-
innerStyle: external_prop_types_default.
|
|
4482
|
-
onRequestToggleAllRows: external_prop_types_default.
|
|
4483
|
-
onScroll: external_prop_types_default.
|
|
4484
|
-
outerStyle: external_prop_types_default.
|
|
4485
|
-
primaryColumnIndex: external_prop_types_default.
|
|
4486
|
-
rowExpansion: external_prop_types_default.
|
|
4487
|
-
rowSelection: external_prop_types_default.
|
|
4488
|
-
stripeRows: external_prop_types_default.
|
|
4489
|
-
tableStyle: external_prop_types_default.
|
|
4490
|
-
onRequestMoveColumn: external_prop_types_default.
|
|
4491
|
-
onRequestMoveRow: external_prop_types_default.
|
|
4492
|
-
onRequestResizeColumn: external_prop_types_default.
|
|
3969
|
+
actions: external_prop_types_default().arrayOf((external_prop_types_default()).element),
|
|
3970
|
+
actionsColumnWidth: (external_prop_types_default()).number,
|
|
3971
|
+
children: (external_prop_types_default()).node,
|
|
3972
|
+
dockOffset: (external_prop_types_default()).number,
|
|
3973
|
+
dockScrollBar: (external_prop_types_default()).bool,
|
|
3974
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
3975
|
+
headType: external_prop_types_default().oneOf(['docked', 'fixed', 'inline']),
|
|
3976
|
+
innerStyle: (external_prop_types_default()).object,
|
|
3977
|
+
onRequestToggleAllRows: (external_prop_types_default()).func,
|
|
3978
|
+
onScroll: (external_prop_types_default()).func,
|
|
3979
|
+
outerStyle: (external_prop_types_default()).object,
|
|
3980
|
+
primaryColumnIndex: (external_prop_types_default()).number,
|
|
3981
|
+
rowExpansion: external_prop_types_default().oneOf(['single', 'multi', 'controlled', 'none']),
|
|
3982
|
+
rowSelection: external_prop_types_default().oneOf(['all', 'some', 'none']),
|
|
3983
|
+
stripeRows: (external_prop_types_default()).bool,
|
|
3984
|
+
tableStyle: (external_prop_types_default()).object,
|
|
3985
|
+
onRequestMoveColumn: (external_prop_types_default()).func,
|
|
3986
|
+
onRequestMoveRow: (external_prop_types_default()).func,
|
|
3987
|
+
onRequestResizeColumn: (external_prop_types_default()).func
|
|
4493
3988
|
};
|
|
4494
3989
|
var Table_defaultProps = {
|
|
4495
3990
|
actions: [],
|
|
@@ -4501,7 +3996,7 @@ var Table_defaultProps = {
|
|
|
4501
3996
|
primaryColumnIndex: 0
|
|
4502
3997
|
};
|
|
4503
3998
|
|
|
4504
|
-
var
|
|
3999
|
+
var Table = /*#__PURE__*/function (_Component) {
|
|
4505
4000
|
Table_inherits(Table, _Component);
|
|
4506
4001
|
|
|
4507
4002
|
var _super = Table_createSuper(Table);
|
|
@@ -4521,7 +4016,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4521
4016
|
value: function getHeadFocusState(head) {
|
|
4522
4017
|
var _head$getEl, _head$getEl2;
|
|
4523
4018
|
|
|
4524
|
-
var document =
|
|
4019
|
+
var document = getDocument();
|
|
4525
4020
|
|
|
4526
4021
|
if (head === undefined || head === null) {
|
|
4527
4022
|
return undefined;
|
|
@@ -4552,7 +4047,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4552
4047
|
}, {
|
|
4553
4048
|
key: "getOffset",
|
|
4554
4049
|
value: function getOffset(el) {
|
|
4555
|
-
var window =
|
|
4050
|
+
var window = getWindow();
|
|
4556
4051
|
var rect = el.getBoundingClientRect();
|
|
4557
4052
|
return {
|
|
4558
4053
|
top: rect.top + window.pageYOffset,
|
|
@@ -4622,7 +4117,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4622
4117
|
Table_defineProperty(Table_assertThisInitialized(_this), "tableContainer", null);
|
|
4623
4118
|
|
|
4624
4119
|
Table_defineProperty(Table_assertThisInitialized(_this), "updateDockedHeadState", function () {
|
|
4625
|
-
var window =
|
|
4120
|
+
var window = getWindow();
|
|
4626
4121
|
|
|
4627
4122
|
if (_this.isInline()) {
|
|
4628
4123
|
return;
|
|
@@ -4686,7 +4181,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4686
4181
|
|
|
4687
4182
|
Table_defineProperty(Table_assertThisInitialized(_this), "handleDragStart", function (_ref2) {
|
|
4688
4183
|
var dragIndex = _ref2.dragIndex;
|
|
4689
|
-
var window =
|
|
4184
|
+
var window = getWindow();
|
|
4690
4185
|
|
|
4691
4186
|
_this.setState({
|
|
4692
4187
|
dragIndex: dragIndex
|
|
@@ -4758,7 +4253,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4758
4253
|
});
|
|
4759
4254
|
|
|
4760
4255
|
Table_defineProperty(Table_assertThisInitialized(_this), "handleHeadTableKeyUp", function (e) {
|
|
4761
|
-
if (!_this.headTableEl || !_this.tableContainer ||
|
|
4256
|
+
if (!_this.headTableEl || !_this.tableContainer || (0,keyboard_namespaceObject.keycode)(e.nativeEvent) !== 'tab') {
|
|
4762
4257
|
return;
|
|
4763
4258
|
}
|
|
4764
4259
|
|
|
@@ -4775,7 +4270,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4775
4270
|
|
|
4776
4271
|
var index = _ref3.index,
|
|
4777
4272
|
columnId = _ref3.columnId;
|
|
4778
|
-
var document =
|
|
4273
|
+
var document = getDocument();
|
|
4779
4274
|
|
|
4780
4275
|
if (index === undefined) {
|
|
4781
4276
|
return;
|
|
@@ -4897,9 +4392,9 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4897
4392
|
rowExpansion = _this$props3.rowExpansion,
|
|
4898
4393
|
rowSelection = _this$props3.rowSelection;
|
|
4899
4394
|
var dragIndex = this.state.dragIndex;
|
|
4900
|
-
var headCells =
|
|
4901
|
-
var validActions = actions.filter(
|
|
4902
|
-
var newHead = /*#__PURE__*/
|
|
4395
|
+
var headCells = external_react_namespaceObject.Children.toArray(base.props.children).filter(external_react_namespaceObject.isValidElement);
|
|
4396
|
+
var validActions = actions.filter(external_react_namespaceObject.isValidElement);
|
|
4397
|
+
var newHead = /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(base, {
|
|
4903
4398
|
actions: validActions,
|
|
4904
4399
|
actionsColumnWidth: actionsColumnWidth,
|
|
4905
4400
|
dragIndex: dragIndex,
|
|
@@ -4920,8 +4415,8 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4920
4415
|
key: "createBody",
|
|
4921
4416
|
value: function createBody(base) {
|
|
4922
4417
|
var actions = this.props.actions;
|
|
4923
|
-
var validActions = actions.filter(
|
|
4924
|
-
return /*#__PURE__*/
|
|
4418
|
+
var validActions = actions.filter(external_react_namespaceObject.isValidElement);
|
|
4419
|
+
return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(base, {
|
|
4925
4420
|
actions: validActions.length > 0,
|
|
4926
4421
|
movableColumns: !!this.props.onRequestMoveColumn,
|
|
4927
4422
|
onRequestMoveRow: this.props.onRequestMoveRow,
|
|
@@ -4948,7 +4443,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4948
4443
|
}, {
|
|
4949
4444
|
key: "showDockedHeader",
|
|
4950
4445
|
value: function showDockedHeader() {
|
|
4951
|
-
var window =
|
|
4446
|
+
var window = getWindow();
|
|
4952
4447
|
|
|
4953
4448
|
if (!this.headerIsDocked() || !this.table || !this.head || !this.tableContainer) {
|
|
4954
4449
|
return false;
|
|
@@ -4961,7 +4456,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4961
4456
|
}, {
|
|
4962
4457
|
key: "showDockedScrollBar",
|
|
4963
4458
|
value: function showDockedScrollBar() {
|
|
4964
|
-
var window =
|
|
4459
|
+
var window = getWindow();
|
|
4965
4460
|
|
|
4966
4461
|
if (!this.props.dockScrollBar || !this.table || !this.tableContainer) {
|
|
4967
4462
|
return false;
|
|
@@ -4980,7 +4475,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
4980
4475
|
}, {
|
|
4981
4476
|
key: "cleanupDrag",
|
|
4982
4477
|
value: function cleanupDrag() {
|
|
4983
|
-
var window =
|
|
4478
|
+
var window = getWindow();
|
|
4984
4479
|
window.removeEventListener('dragenter', this.handleDragEnter);
|
|
4985
4480
|
window.removeEventListener('dragover', this.handleDragOver);
|
|
4986
4481
|
window.removeEventListener('drop', this.handleDrop);
|
|
@@ -5007,7 +4502,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
5007
4502
|
return false;
|
|
5008
4503
|
}
|
|
5009
4504
|
|
|
5010
|
-
return /*#__PURE__*/external_react_default.
|
|
4505
|
+
return /*#__PURE__*/external_react_default().createElement(Table_HeadTable, {
|
|
5011
4506
|
headType: "docked",
|
|
5012
4507
|
tHead: tHead,
|
|
5013
4508
|
cellWidths: cellWidths,
|
|
@@ -5034,7 +4529,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
5034
4529
|
value: function renderDockedScrollbar() {
|
|
5035
4530
|
var _this2 = this;
|
|
5036
4531
|
|
|
5037
|
-
var window =
|
|
4532
|
+
var window = getWindow();
|
|
5038
4533
|
|
|
5039
4534
|
if (!this.showDockedScrollBar()) {
|
|
5040
4535
|
return false;
|
|
@@ -5049,7 +4544,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
5049
4544
|
shiftPosition = Math.min(availableSpace - this.dockedScrollBar.offsetHeight, 0);
|
|
5050
4545
|
}
|
|
5051
4546
|
|
|
5052
|
-
return /*#__PURE__*/external_react_default.
|
|
4547
|
+
return /*#__PURE__*/external_react_default().createElement(StyledDockedScrollbar, {
|
|
5053
4548
|
style: {
|
|
5054
4549
|
width: this.state.width,
|
|
5055
4550
|
marginBottom: shiftPosition
|
|
@@ -5059,7 +4554,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
5059
4554
|
ref: function ref(el) {
|
|
5060
4555
|
_this2.dockedScrollBar = el;
|
|
5061
4556
|
}
|
|
5062
|
-
}, /*#__PURE__*/external_react_default.
|
|
4557
|
+
}, /*#__PURE__*/external_react_default().createElement(StyledDockedScrollbarContent, {
|
|
5063
4558
|
style: {
|
|
5064
4559
|
width: this.state.tableWidth
|
|
5065
4560
|
},
|
|
@@ -5086,7 +4581,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
5086
4581
|
var tBody;
|
|
5087
4582
|
var tCaption;
|
|
5088
4583
|
var isFixedColumn = !!onRequestResizeColumn;
|
|
5089
|
-
|
|
4584
|
+
external_react_namespaceObject.Children.toArray(children).forEach(function (child) {
|
|
5090
4585
|
var splunkUiType = child.type.splunkUiType;
|
|
5091
4586
|
|
|
5092
4587
|
if (splunkUiType === 'Table.Head') {
|
|
@@ -5094,7 +4589,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
5094
4589
|
|
|
5095
4590
|
if (!isFixedColumn) {
|
|
5096
4591
|
// if all the HeadCells are fixed width, then the table is fixed.
|
|
5097
|
-
isFixedColumn = !
|
|
4592
|
+
isFixedColumn = !external_react_namespaceObject.Children.toArray(child.props.children).filter(external_react_namespaceObject.isValidElement).some(function (th) {
|
|
5098
4593
|
return !has_default()(th.props, 'width');
|
|
5099
4594
|
});
|
|
5100
4595
|
}
|
|
@@ -5108,56 +4603,56 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
5108
4603
|
tCaption = child;
|
|
5109
4604
|
}
|
|
5110
4605
|
});
|
|
5111
|
-
|
|
4606
|
+
assertDefined(tHead, 'A Table.Head is required.');
|
|
5112
4607
|
var headTable = this.renderHeadTable(tHead, isFixedColumn); // When a `headTable` is used, suppress focus interactions in the primary `Head`. Focus
|
|
5113
4608
|
// interactions will be handled by the overlaid `headTable` instead.
|
|
5114
4609
|
|
|
5115
|
-
var headCells =
|
|
4610
|
+
var headCells = external_react_namespaceObject.Children.toArray(tHead.props.children).filter(external_react_namespaceObject.isValidElement).map(function (cell) {
|
|
5116
4611
|
return (
|
|
5117
4612
|
/*#__PURE__*/
|
|
5118
4613
|
// TS: onClick is different for regular/dropdown head cells, that's ok
|
|
5119
|
-
|
|
4614
|
+
(0,external_react_namespaceObject.cloneElement)(cell, {
|
|
5120
4615
|
visible: !headTable
|
|
5121
4616
|
})
|
|
5122
4617
|
);
|
|
5123
4618
|
});
|
|
5124
|
-
tHead = /*#__PURE__*/
|
|
5125
|
-
var defaultScrollContainer = this.context ||
|
|
4619
|
+
tHead = /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(tHead, {}, headCells);
|
|
4620
|
+
var defaultScrollContainer = this.context || getWindow();
|
|
5126
4621
|
var scrollContainer = this.isFixed() ? this.tableContainer : defaultScrollContainer;
|
|
5127
4622
|
|
|
5128
4623
|
if (resizableFillLayout) {
|
|
5129
4624
|
isFixedColumn = false;
|
|
5130
4625
|
}
|
|
5131
4626
|
|
|
5132
|
-
return /*#__PURE__*/external_react_default.
|
|
4627
|
+
return /*#__PURE__*/external_react_default().createElement(TableStyles_Styled, Table_extends({
|
|
5133
4628
|
"data-test": "table",
|
|
5134
4629
|
ref: elementRef,
|
|
5135
4630
|
style: outerStyle,
|
|
5136
4631
|
"data-test-row-selection": onRequestToggleAllRows ? rowSelection : undefined
|
|
5137
|
-
}, omit_default()(this.props, [].concat(Table_toConsumableArray(Object.keys(Table.propTypes)), ['style']))), /*#__PURE__*/external_react_default.
|
|
5138
|
-
target:
|
|
4632
|
+
}, omit_default()(this.props, [].concat(Table_toConsumableArray(Object.keys(Table.propTypes)), ['style']))), /*#__PURE__*/external_react_default().createElement((EventListener_default()), {
|
|
4633
|
+
target: getWindow(),
|
|
5139
4634
|
eventType: "scroll",
|
|
5140
4635
|
listener: this.handleScroll,
|
|
5141
4636
|
options: {
|
|
5142
4637
|
passive: false,
|
|
5143
4638
|
capture: true
|
|
5144
4639
|
}
|
|
5145
|
-
}), /*#__PURE__*/external_react_default.
|
|
4640
|
+
}), /*#__PURE__*/external_react_default().createElement((external_react_resize_detector_default()), {
|
|
5146
4641
|
handleWidth: true,
|
|
5147
4642
|
onResize: this.handleResize
|
|
5148
|
-
}), /*#__PURE__*/external_react_default.
|
|
4643
|
+
}), /*#__PURE__*/external_react_default().createElement(Table_TableContext.Provider, {
|
|
5149
4644
|
value: {
|
|
5150
4645
|
headType: headType
|
|
5151
4646
|
}
|
|
5152
|
-
}, headTable, /*#__PURE__*/external_react_default.
|
|
4647
|
+
}, headTable, /*#__PURE__*/external_react_default().createElement(StyledTableContainer, {
|
|
5153
4648
|
onScroll: this.handleContainerScroll,
|
|
5154
4649
|
ref: function ref(el) {
|
|
5155
4650
|
_this3.tableContainer = el;
|
|
5156
4651
|
},
|
|
5157
4652
|
style: innerStyle
|
|
5158
|
-
}, /*#__PURE__*/external_react_default.
|
|
4653
|
+
}, /*#__PURE__*/external_react_default().createElement(ScrollContainerContext_namespaceObject.ScrollContainerProvider, {
|
|
5159
4654
|
value: scrollContainer
|
|
5160
|
-
}, /*#__PURE__*/external_react_default.
|
|
4655
|
+
}, /*#__PURE__*/external_react_default().createElement(StyledTable, {
|
|
5161
4656
|
ref: function ref(el) {
|
|
5162
4657
|
_this3.table = el;
|
|
5163
4658
|
},
|
|
@@ -5170,33 +4665,33 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
5170
4665
|
}]);
|
|
5171
4666
|
|
|
5172
4667
|
return Table;
|
|
5173
|
-
}(
|
|
5174
|
-
|
|
5175
|
-
Table_defineProperty(Table_Table, "propTypes", Table_propTypes);
|
|
4668
|
+
}(external_react_namespaceObject.Component);
|
|
5176
4669
|
|
|
5177
|
-
Table_defineProperty(
|
|
4670
|
+
Table_defineProperty(Table, "propTypes", Table_propTypes);
|
|
5178
4671
|
|
|
5179
|
-
Table_defineProperty(
|
|
4672
|
+
Table_defineProperty(Table, "contextType", ScrollContainerContext_namespaceObject.ScrollContainerContext);
|
|
5180
4673
|
|
|
5181
|
-
Table_defineProperty(
|
|
4674
|
+
Table_defineProperty(Table, "defaultProps", Table_defaultProps);
|
|
5182
4675
|
|
|
5183
|
-
Table_defineProperty(
|
|
4676
|
+
Table_defineProperty(Table, "Caption", Table_Caption);
|
|
5184
4677
|
|
|
5185
|
-
Table_defineProperty(
|
|
4678
|
+
Table_defineProperty(Table, "Head", Table_Head);
|
|
5186
4679
|
|
|
5187
|
-
Table_defineProperty(
|
|
4680
|
+
Table_defineProperty(Table, "HeadCell", Table_HeadCell);
|
|
5188
4681
|
|
|
5189
|
-
Table_defineProperty(
|
|
4682
|
+
Table_defineProperty(Table, "HeadDropdownCell", Table_HeadDropdownCell);
|
|
5190
4683
|
|
|
5191
|
-
Table_defineProperty(
|
|
4684
|
+
Table_defineProperty(Table, "Body", Table_Body);
|
|
5192
4685
|
|
|
5193
|
-
Table_defineProperty(
|
|
4686
|
+
Table_defineProperty(Table, "Row", Table_Row);
|
|
5194
4687
|
|
|
5195
|
-
|
|
4688
|
+
Table_defineProperty(Table, "Cell", Table_Cell);
|
|
5196
4689
|
|
|
5197
|
-
|
|
4690
|
+
/* harmony default export */ const Table_Table = (Table);
|
|
5198
4691
|
|
|
4692
|
+
;// CONCATENATED MODULE: ./src/Table/index.ts
|
|
5199
4693
|
|
|
5200
4694
|
|
|
5201
|
-
|
|
5202
|
-
/******/
|
|
4695
|
+
module.exports = __webpack_exports__;
|
|
4696
|
+
/******/ })()
|
|
4697
|
+
;
|